SAP Knowledge Base Article - Preview

3096804 - NW JAVA: Consumer Proxy exception - String index out of range: -1 when Tomcat and SAP Web Dispatcher involved

Symptom

  • String index out of range: -1 exception occurs in NW Java Portal 7.50 when defining a new consumer proxy:
    • Trying to import WSDL in NWA->SOA->Single Service administration -> Create new port
    • The created consumer proxy's port points to a loadbalancer with tomcat(s) acting as the web service provider
    • The loadbalancer is a SAP Web Dispatcher or a 3rd party solution which has SAP Web Dispatcher(s) configured

  • Stacktrace in the developer traces of the NetWeaver Java 7.50 system:
    Connection Exception. Check nested exception for details. Http proxy info: none
    [EXCEPTION]
    com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Connection Exception. Check nested exception for details. Http proxy info: none
    [...]

    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1977)
    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.parseFirstLine(HTTPSocket.java:996)
    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getInputStream(HTTPSocket.java:429)
    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getResponseCode(HTTPSocket.java:319)
    at com.sap.engine.services.webservices.espbase.client.bindings.ClientHTTPTransport.getResponseCode(ClientHTTPTransport.java:209)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.outputSOAPMessage(SOAPTransportBinding.java:393)
    ... 100 more

 

  • String index out of range: -1 error occurs when trying to import WSDL from a Tomcat 8.5.x:


Read more...

Environment

  • NetWeaver Java Portal 7.50 all Support Package
  • Tomcat 8.5.x - BI Platform / BOBJ / BOBI 4.2
  • Tomcat 9.x  - BI Platform / BOBI / BOBJ 4.3
  • SAP Web Dispatcher 7.77

Product

SAP BusinessObjects Business Intelligence platform 4.2 ; SAP BusinessObjects Business Intelligence platform 4.3 ; SAP NetWeaver 7.5 ; SAP Web Dispatcher 7.77 ; TOMCAT BY APACHE 8.5 ; TOMCAT BY APACHE 9.0

Keywords

sendReasonPhrase, Tomcat, loadbalancer, webservice, BOBJ, BOBI, BI Platform, QaaWS, Query as a Web Service , KBA , BC-ESI-WS-JAV-RT , Runtime , BI-BIP-DEP , Webapp Deployment, Networking, Vulnerabilities, Webservices , Known Error

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.