I tried to call bapi to create sales order in SAP thru SAPBC 46.
However, the message ‘NullPointerException’ occurred when lock session.
There is no sales Order document created in SAP but the message in
SAPBC 46 shown Sales Order is created successfully with a Sales Order
Document.
= = = = = = = = = = = = = = = = = = = = = = = = = = =
The flow service invokes the services below.
pub.sap.client:lockSession
SAPInterface.BAPI:BAPI_SALESORDER_CREATEFROMDAT2
SAPInterface.BAPI:BAPI_TRANSACTION_COMMIT
pub.sap.client:releaseSession
= = = = = = = = = = = = = = = = = = = = = = = = = = =
The SAPBC 46 information is quoted below.
Product webMethods B2B SAP Adapter
Version SAP Adapter 4.6 SP5 Release Notes
Build Number 625
Environment
JayCo Version 2.0.9 (2003-07-04)
JayCo Middleware sapjcorfc
JayCo Middleware Version 2.0.9 (2003-07-04)
jRFCLibrary Version 2.0.9 (2003-07-04)
jRFC Library Location D:\sapbc46
\Server\packages\SAP\code\libs\sapjcorfc.dll
RFC Library Version This RFC library belongs to the SAP R/3 Release ***
620,0,1237 *** MT-SL Versions of SAP internal libraries: dptr: 2 ni :
36 cpic: 3 rfc : 3
jARM Version 2.1.0
OS Version 5.0
Current User Administrator
Working Directory D:\sapbc46\Server
= = = = = = = = = = = = = = = = = = = = = = = = = = =
The error mesage is quoted below.
2004-12-31 19:41:54 CST java.lang.NullPointerException
at com.wm.pkg.sap.rfc.SessionManager.lockSession(Unknown Source)
at com.wm.pkg.sap.rfc.SessionManager.lockSession(Unknown Source)
at pub.sap.client.lockSession(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:715)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:715)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:715)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:472)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:464)
at com.wm.app.tn.route.RoutingActions.invokeWrapper
(RoutingActions.java:818)
at wm.tn.route.invokeWrapper(route.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:715)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:472)
at com.wm.app.b2b.server.ServiceThread.run(ServiceThread.java:82)
at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-
terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
at java.lang.Thread.run(Thread.java:479)