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

rest services inoperative on ubuntu-14/apache/tomcat configuration - Railo 4.2.1.008 Error (java.lang.StringIndexOutOfBoundsException)

    Details

    • Steps to Reproduce:
      Hide

      skype me at skype:dejannenov and I will provide access to the runing system or a vnware image

      Show
      skype me at skype:dejannenov and I will provide access to the runing system or a vnware image
    • Estimated Difficulty:
      High

      Description

      root directory is /var/www/

      file /var/www/gapi/tra.cfc contains:

      <cfcomponent rest="true" >
      <cfsetting showdebugoutput="yes">
      <cffunction name="apitest" access="remote" returnFormat="json" returntype="struct" httpMethod="GET">

      <cfoutput>

      {"it":"works"}

      </cfoutput>
      </cffunction>
      </cfcomponent>

      Trying to access the service produces:
      (see attached screenshots as well)

      Railo 4.2.1.008 Error (java.lang.StringIndexOutOfBoundsException)
      Message String index out of range: -14
      Cause java.lang.StringIndexOutOfBoundsException
      Java Stacktrace String index out of range: -14
      at java.lang.String.substring(String.java:1871):1871
      at railo.runtime.PageSourceImpl.createComponentName(PageSourceImpl.java:596):596
      at railo.runtime.PageSourceImpl.getComponentName(PageSourceImpl.java:545):545
      at railo.runtime.type.util.ComponentUtil.getClassname(ComponentUtil.java:306):306
      at railo.runtime.type.util.ComponentUtil.getComponentJavaAccess(ComponentUtil.java:86):86
      at railo.runtime.ComponentImpl.getJavaAccessClass(ComponentImpl.java:1830):1830
      at railo.runtime.ComponentImpl.getMetaData(ComponentImpl.java:1412):1412
      at railo.runtime.ComponentImpl.getMetaData(ComponentImpl.java:1386):1386
      at railo.runtime.ComponentImpl.getMetaData(ComponentImpl.java:1345):1345
      at railo.runtime.rest.Mapping._init(Mapping.java:124):124
      at railo.runtime.rest.Mapping.init(Mapping.java:82):82
      at railo.runtime.rest.Mapping.getResult(Mapping.java:190):190
      at railo.runtime.rest.RestRequestListener.execute(RestRequestListener.java:39):39
      at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:104):104
      at railo.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:84):84
      at railo.runtime.PageContextImpl.executeRest(PageContextImpl.java:2146):2146
      at railo.runtime.engine.CFMLEngineImpl.serviceRest(CFMLEngineImpl.java:376):376
      at railo.loader.servlet.RestServlet.service(RestServlet.java:29):29
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727):727
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303):303
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220):220
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122):122
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501):501
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102):102
      at mod_cfml.core.invoke(core.java:132):132
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950):950
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116):116
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408):408
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040):1040
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607):607
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314):314
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
      at java.lang.Thread.run(Thread.java:745):745

      Timestamp 10/13/14 1:16:10 AM UTC

        Gliffy Diagrams

          Attachments

          1. apache2.conf
            8 kB
          2. railo-server.xml
            18 kB
          3. screenshot-1.png
            screenshot-1.png
            35 kB
          4. screenshot-2.png
            screenshot-2.png
            107 kB
          5. screenshot-3.png
            screenshot-3.png
            156 kB

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                dnenov Dejan Nenov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified