SAP Adapter 12c: RFC inbound generates NPE

(Doc ID 2183329.1)

Last updated on JANUARY 23, 2017

Applies to:

Oracle Service Bus - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms


Using the SAP Adapter in a proxy to call an SAP RFC.
At runtime the adapter fails to convert the information from the RFC with the following error:


[2016-07-16T11:42:13.745-03:00] [OSB] [ERROR] [] [oracle.soa.adapter.sap.inbound] [tid: JCoServerThread-1] [userId: ] [ecid: 5f35b1e8-5f5e-408a-b973-bc46d77de83d-000000cc,0] [partition-name: DOMAIN] [tenant-name: GLOBAL] Exception while Adapter Stop watch intialization [[
java.lang.NullPointerException
  at java.util.AbstractMap.toString(AbstractMap.java:524)
  at java.lang.String.valueOf(String.java:2994)
  at java.lang.StringBuilder.append(StringBuilder.java:131)
  at oracle.tip.adapter.sap.inbound.SAPFunctionHandler.handleRequest(SAPFunctionHandler.java:189)
  at com.sap.conn.jco.rt.DefaultServerWorker$FunctionDispatcher.handleRequest(DefaultServerWorker.java:1041)
  at com.sap.conn.jco.rt.DefaultServerWorker$FunctionDispatcher.handleRequest(DefaultServerWorker.java:977)
  at com.sap.conn.jco.rt.DefaultServerWorker.dispatchRequest(DefaultServerWorker.java:148)
  at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.dispatchRequest(MiddlewareJavaRfc.java:3685)
  at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(MiddlewareJavaRfc.java:2729)
  at com.sap.conn.jco.rt.DefaultServerWorker.dispatch(DefaultServerWorker.java:275)
  at com.sap.conn.jco.rt.DefaultServerWorker.loop(DefaultServerWorker.java:356)
  at com.sap.conn.jco.rt.DefaultServerWorker.run(DefaultServerWorker.java:232)
  at java.lang.Thread.run(Thread.java:745)




Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms