java.lang.StringIndexOutOfBoundsException: String index out of range: -2

Google Groups | Remco Overdevest | 5 days ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ITI-18 audit message

    Google Groups | 5 days ago | Remco Overdevest
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  2. 0

    IPF Client IHE iti.x

    Google Groups | 3 years ago | Francisco Aguilar Montada
    org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: QueryRegistry[query=GetDocumentsAndAssociationsQuery[associationStatuses=<null>,metadataLevel=<null>,uniqueIds=[12.21.34, 43.56.89],uuids=[urn:uuid:1.2.3.4, urn:uuid:2.3.4.5],homeCommunityId=12.21.41,extraParameters={},type=GET_DOCUMENTS_AND_ASSOCIATIONS],returnType=OBJECT_REF]]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -2

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:658)[na:1.8.0_111]
    1 frame
  3. org.openehealth.ipf
    OutPayloadExtractorInterceptor.handleMessage
    1. org.openehealth.ipf.commons.ihe.ws.utils.SoapUtils.extractSoapBody(SoapUtils.java:144)[ipf-commons-ihe-ws-3.2-rc2.jar:na]
    2. org.openehealth.ipf.commons.ihe.ws.cxf.payload.OutPayloadExtractorInterceptor.handleMessage(OutPayloadExtractorInterceptor.java:61)[ipf-commons-ihe-ws-3.2-rc2.jar:na]
    2 frames
  4. Apache CXF Core
    ClientImpl.invoke
    1. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)[cxf-core-3.1.8.jar:3.1.8]
    2. org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)[cxf-core-3.1.8.jar:3.1.8]
    3. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)[cxf-core-3.1.8.jar:3.1.8]
    4. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)[cxf-core-3.1.8.jar:3.1.8]
    5. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)[cxf-core-3.1.8.jar:3.1.8]
    5 frames
  5. Apache CXF Runtime Simple Frontend
    ClientProxy.invokeSync
    1. org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)[cxf-rt-frontend-simple-3.1.8.jar:3.1.8]
    1 frame
  6. Apache CXF Runtime JAX-WS Frontend
    JaxWsClientProxy.invoke
    1. org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)[cxf-rt-frontend-jaxws-3.1.8.jar:3.1.8]
    1 frame
  7. com.sun.proxy
    $Proxy173.documentRegistryRegistryStoredQuery
    1. com.sun.proxy.$Proxy173.documentRegistryRegistryStoredQuery(Unknown Source)[na:na]
    1 frame
  8. xx.xxxxxx.xx
    MHDRequestConsumer.handleBundleProviderRequest
    1. xx.xxxxxx.xx.registry.Iti18Client.doRequest(Iti18Client.java:28)[classes/:na]
    2. xx.xxxxxx.xx.mhd.MHDRequestConsumer.handleBundleProviderRequest(MHDRequestConsumer.java:139)[classes/:na]
    2 frames
  9. org.openehealth.ipf
    Iti67ResourceProvider.documentManifestSearch
    1. org.openehealth.ipf.commons.ihe.fhir.AbstractPlainProvider.requestBundleProvider(AbstractPlainProvider.java:153)[ipf-commons-ihe-fhir-core-3.2-rc2.jar:na]
    2. org.openehealth.ipf.commons.ihe.fhir.iti67.Iti67ResourceProvider.documentManifestSearch(Iti67ResourceProvider.java:105)[ipf-commons-ihe-fhir-mhd-3.2-rc2.jar:na]
    2 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_111]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_111]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_111]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_111]
    4 frames
  11. HAPI FHIR - Core Library
    RestfulServer.service
    1. ca.uhn.fhir.rest.method.BaseMethodBinding.invokeServerMethod(BaseMethodBinding.java:258)[hapi-fhir-base-2.2.jar:na]
    2. ca.uhn.fhir.rest.method.SearchMethodBinding.invokeServer(SearchMethodBinding.java:279)[hapi-fhir-base-2.2.jar:na]
    3. ca.uhn.fhir.rest.method.SearchMethodBinding.invokeServer(SearchMethodBinding.java:55)[hapi-fhir-base-2.2.jar:na]
    4. ca.uhn.fhir.rest.method.BaseResourceReturningMethodBinding.doInvokeServer(BaseResourceReturningMethodBinding.java:306)[hapi-fhir-base-2.2.jar:na]
    5. ca.uhn.fhir.rest.method.BaseResourceReturningMethodBinding.invokeServer(BaseResourceReturningMethodBinding.java:257)[hapi-fhir-base-2.2.jar:na]
    6. ca.uhn.fhir.rest.server.RestfulServer.handleRequest(RestfulServer.java:676)[hapi-fhir-base-2.2.jar:na]
    7. ca.uhn.fhir.rest.server.RestfulServer.doGet(RestfulServer.java:1226)[hapi-fhir-base-2.2.jar:na]
    8. ca.uhn.fhir.rest.server.RestfulServer.service(RestfulServer.java:1202)[hapi-fhir-base-2.2.jar:na]
    8 frames
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.5.11.jar:8.5.11]
    1 frame
  13. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  14. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.5.11.jar:8.5.11]
    1 frame
  15. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  16. org.springframework.boot
    ApplicationContextHeaderFilter.doFilterInternal
    1. org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    1 frame
  17. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    1 frame
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  19. Spring Boot Actuator
    WebRequestTraceFilter.doFilterInternal
    1. org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:108)[spring-boot-actuator-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    1 frame
  20. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    1 frame
  21. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  22. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2 frames
  23. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  24. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:89)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2 frames
  25. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  26. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2 frames
  27. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  28. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2 frames
  29. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2 frames
  30. Spring Boot Actuator
    MetricsFilter.doFilterInternal
    1. org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106)[spring-boot-actuator-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    1 frame
  31. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    1 frame
  32. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.11.jar:8.5.11]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)[tomcat-embed-core-8.5.11.jar:8.5.11]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)[tomcat-embed-core-8.5.11.jar:8.5.11]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)[tomcat-embed-core-8.5.11.jar:8.5.11]
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)[tomcat-embed-core-8.5.11.jar:8.5.11]
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.5.11.jar:8.5.11]
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)[tomcat-embed-core-8.5.11.jar:8.5.11]
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)[tomcat-embed-core-8.5.11.jar:8.5.11]
    9 frames
  33. Grizzly HTTP
    SocketProcessorBase.run
    1. org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)[tomcat-embed-core-8.5.11.jar:8.5.11]
    2. org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)[tomcat-embed-core-8.5.11.jar:8.5.11]
    3. org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)[tomcat-embed-core-8.5.11.jar:8.5.11]
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)[tomcat-embed-core-8.5.11.jar:8.5.11]
    5. org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)[tomcat-embed-core-8.5.11.jar:8.5.11]
    5 frames
  34. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_111]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_111]
    2 frames
  35. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.5.11.jar:8.5.11]
    1 frame
  36. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_111]
    1 frame