Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-432

Shorthand XML element assignment giving type conversion exception

    Details

      Description

      When trying to set the value of an xml element in the shorthand notation it gives an error.

      Here is an example of setting it with a short notation:

      <cfset xrdsService.URI[1] = duplicate(xrdsService.URI[2]) />

      It works alright when using the full notation:

      <cfset xrdsService.xmlChildren[2] = duplicate(xrdsService.URI[2]) />

      Here is the stacktrace:

      Object railo.runtime.text.xml.struct.XMLNodeStruct must be a XML Element
      at railo.runtime.text.xml.XMLCaster.toElement(XMLCaster.java:228):228
      at railo.runtime.text.xml.struct.XMLMultiElementStruct.set(XMLMultiElementStruct.java:183):183
      at railo.runtime.text.xml.struct.XMLMultiElementStruct.set(XMLMultiElementStruct.java:176):176
      at railo.runtime.util.VariableUtilImpl.set(VariableUtilImpl.java:366):366
      at railo.runtime.PageContextImpl.set(PageContextImpl.java:1037):1037
      at cf9.index_cfm$cf.call(/Users/randy/Projects/cf9/index.cfm:21):21
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:613):613
      at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:35):35
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:24):24
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1679):1679
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:248):248
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853):853
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502):502
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390):390
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216):216
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182):182
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765):765
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418):418
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327):327
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126):126
      at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:493):493
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740):740
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853):853
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502):502
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390):390
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216):216
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182):182
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765):765
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418):418
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230):230
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114):114
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152):152
      at org.mortbay.jetty.Server.handle(Server.java:326):326
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536):536
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:913):913
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539):539
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212):212
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405):405
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409):409
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451):451

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                Zoramite Randy Merrill
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: