Uploaded image for project: 'Lucee Development'
  1. LDEV-600

Dump error for static members with no access modifier

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.105
    • Fix Version/s: 5.1.1.9
    • Labels:
      None
    • Environment:

      Windows 7 Pro
      Tomcat 8
      Java 8, 64bit

      Description

      Trying to dump an instance of the following component throws an exception:

      component {
        static {
          final MEMBER = "value";
        }
      }
      

      Adding an access modifier to the member prevents the error on dump:

      component {
        static {
          public final MEMBER = "value"; // or private
        }
      }
      

      Stacktrace:

      Lucee 5.0.0.105-SNAPSHOT Error (java.lang.ArrayIndexOutOfBoundsException)
      Message 	-1
      Cause 	java.lang.ArrayIndexOutOfBoundsException
      Stacktrace 	The Error Occurred in
      C:\luceeCommon\luceeServerConfig\lucee-server\context\library\tag\Dump.cfc: line 99
      
          97: }
          98: catch(e) {
          99: var meta = dumpStruct(structKeyExists(attrib,'var') ? attrib.var : nullValue(), attrib.top, attrib.show, attrib.hide, attrib.keys, attrib.metaInfo, attrib.showUDFs);
          100: }
          101:
      
      called from C:\Users\jesse.shaffer\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webapp\index.cfm: line 17
      Java Stacktrace 	lucee.runtime.exp.NativeException: -1
       	at lucee.runtime.StaticScope._toDumpData(StaticScope.java:442)
       	at lucee.runtime.ComponentImpl.toDumpData(ComponentImpl.java:1047)
       	at lucee.runtime.ComponentImpl.toDumpData(ComponentImpl.java:1017)
       	at lucee.runtime.dump.DumpUtil.toDumpData(DumpUtil.java:269)
       	at lucee.runtime.functions.other.DumpStruct.call(DumpStruct.java:91)
       	at lucee.runtime.functions.other.DumpStruct.call(DumpStruct.java:80)
       	at dump_cfc$cf.udfCall1(C:\luceeCommon\luceeServerConfig\lucee-server\context\library\tag\Dump.cfc:99)
       	at dump_cfc$cf.udfCall(C:\luceeCommon\luceeServerConfig\lucee-server\context\library\tag\Dump.cfc)
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105)
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337)
       	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:208)
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580)
       	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1919)
       	at lucee.runtime.tag.CFTag.cfcStartTag(CFTag.java:395)
       	at lucee.runtime.tag.CFTag.doStartTag(CFTag.java:177)
       	at index_cfm$cf.call(C:\Users\jesse.shaffer\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webapp\index.cfm:17)
       	at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:908)
       	at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:823)
       	at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:818)
       	at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:60)
       	at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
       	at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2265)
       	at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2257)
       	at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2225)
       	at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:682)
       	at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:103)
       	at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62)
       	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
       	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
       	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
       	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
       	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
       	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
       	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
       	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
       	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
       	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
       	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
       	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
       	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1526)
       	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1482)
       	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
       	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       	at java.lang.Thread.run(Thread.java:745)
       Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
       	... 50 more 
      

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              dajester2015 Jesse Shaffer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: