java.lang.NullPointerException

WE are trying to send idoc from sap to BC. In Routing>Transaktions we get roll back error and we are not able to see the sender and receiver. When we checked in SM58 (Trfc monitor) we get an error (java.lang.NullPointerException ‘IDOC_INBOUND_ASYNCHRONOUS’).
We have also attached the screenshot of the same for your reference. By the way, SAP user which i use have SAP_ALL privileges.
Could anyone please let me know why this happens.
Screenshot
Thanks for your help in advance.

the following Java error is posted in sap.log:
00000 2008-08-11 15:38:31 CEST
000001 http://B2B-SAP.0002.0022 Log level set to 4
000002 http://B2B-SAP.0002.0025 Registered SAP package trace with core trace
000003 http://B2B-SAP.0003.0001 Loading native libraries
000004 http://B2B-SAP.0003.0002 JCO version: 2.1.0 (2003-04-24) sapjcorfc 2.1.0 (2003-04-24)
000005 http://B2B-SAP.0003.0004 jRFCLibrary info: 2.1.0 (2003-04-24)(C:\sapbc47\Server\packages\SAP\code\libs\sapjcorfc.dll)
000006 http://B2B-SAP.0003.0003 RfcLibrary version: 620,0,846
000007 http://B2B-SAP.0002.0013 SAP Listener started: SAPBC at 172.28.xxx.16(sapgw01)
000008 http://B2B-SAP.0004.0001 Starting Listener for SAPBC on 172.28.xxx.16(sapgw01)
000009 http://B2B-SAP.0004.0002 Accepting requests for SAPBC on 172.28.xxx.16(sapgw01)
00000A http://B2B-SAP.0008.0011 Inbound tRfc: Check 0A0A0B1C107448A042755A1A
00000B http://B2B-SAP.0004.0004 Error in SAP Listener: com.sap.mw.jco.JCO$Exception: (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template ‘䥄佃彉乂何乄å½Â�Ã¥Â�™ä¹ƒä¡’’
caused by: com.sap.mw.jco.JCO$AbapException: (126) FU_NOT_FOUND: FU_NOT_FOUND
00000C http://B2B-SAP.0004.0004 Error in SAP Listener: com.sap.mw.jco.JCO$Exception: (120) JCO_ERROR_EXTENSION: JCO.Server could not create server function ‘䥄佃彉乂何乄å½Â�Ã¥Â�™ä¹ƒä¡’’
00000D http://B2B-SAP.0008.0014 Inbound tRfc: Rollback 0A0A0B1C107448A042755A1A
00000E http://B2B-SAP.0004.0011 Listener SAPBC on 172.28.xxx.16 is currently dead or stopped

Hi ESIMov,

I suspect the one of field data type is not supported by webM and its causing this issues. Usually it happens due to Character set type definition mismatch (Uni Code or Non Unicode).

Go thru all the fiels and identify the data type by executing a look service thru SAP adapter service Admin page.
Also increase the log level, to print the incoming data.

Hope this helps to start with.

-Rookie4WebM-

Regards,
Rookie4WebM

Hello,
Thank you for your reply. I am very confused. But I think we are problem with RFC, because we found these trace files :
rfc02928_00324.trc:
**** Trace file opened at 20080811 202133 Westeuropäische, SAP-REL 620,0,846 RFC-VER 3 569712 MT-SL
<* RfcClose
<* RfcDispatch [10] : returns 6:RFC_CLOSED
*> RfcAcceptExt: -g"172.28.xx.16" -x"sapgw01" -a"SAPBC" -t
> RfcRegisterProgram …
Server Program ID = SAPBC
Host name of Gateway = 172.28.xx.16
Service of Gateway = 3301
RFC-Trace = ON
SNC Own Name =
SNC Library Name =
RFC Handle = 15
<
RfcRegisterProgram ended successfully

dev_rfc.trc:
**** ERROR file opened at 20080811 202133 Westeuropäische, SAP-REL 620,0,846 RFC-VER 3 569712 MT-SL
T:2616 <* RfcDispatch [14] : returns 1:RFC_FAILURE

<* RfcAcceptExt ended successfully [15] *>

esimov,
did you ever resolve this, i see the last posting was july
I have the same error
my situation is this was working fine, up until the r/3 system was upgraded to ECC6 and Unicode
It feels to me like a version incompatibility either jvm/jre or jco
but i have changed various things and not got it resolved

thanks in advance for any pointers

regards
graham

Hello Graham,

please check the Unicode-Settings on BC RFC-Listener to SAP-System.

we are facing same issue while receiving the IDOCS from SAP side to webMethods.have any faced this type of issue while sending idocs from SAP to WM.
wmsap–transaction-we are getting roolback status without any value in sender,receiver & message type.

Connection,Listener,listener notification are enabled.

sap error logs:-
[SAP.0104.0005W] Error in SAP Listener: Server repository could not create function template ‘䅒䙃彄䕓呟äÂ�Â�乆䥒’
caused by: [SAP.104.9153] WmSAP Adapter: Could not get function template for ########.
[SAP.0104.0005W] Error in SAP Listener: JCO.Server could not create server function ‘䅒䙃彄䕓呟äÂ�Â�乆䥒’
[SAP.0104.0013E] Listener SAP-WMEDI-BATCH on 10.30.3.25 is currently dead or stopped
[SAP.0104.0013E] Listener SAP-WMEDI-BATCH on 10.30.3.25 is currently dead or stopped
[SAP.0104.0004V2] Exiting Listener main loop for SAP-WMEDI-BATCH on 10.30.3.25(sapgw00)
[SAP.0104.0006D] Shutting down Listener for SAP-WMEDI-BATCH on 10.30.3.25(sapgw00)
[SAP.0104.0007D] SAP Listener stopped: 10.30.3.25 on SAP-WMEDI-BATCH(sapgw00)
[SAP.0104.0002D] SAP Listener started: SAP-WMEDI-BATCH on 10.30.3.25(sapgw00)
[SAP.0104.0001D] Starting Listener for SAP-WMEDI-BATCH on 10.30.3.25(sapgw00)
[SAP.0104.0003D] Accepting requests for SAP-WMEDI-BATCH on 10.30.3.25(sapgw00)

trc logs:-
**** ERROR file opened at 20090303 182812 India Standard, SAP-REL 640,0,165 RFC-VER 3 881549 MT-SLT:2020 Error in program ‘java’: <* RfcDispatch [13] : returns 1:RFC_FAILURE>TS> Tue Mar 03 18:30:49 2009T:2020 Error in program ‘SAP-WMEDI-BATCH’: <* RfcDispatch [17] : returns 1:RFC_FAILURE
looking for quick response

Please find the attach screenshot for listener & rollback transaction

Thanks
RJ

Hello RJ,

please check the Unicode Settings in WM.
See below:
[url]http://fatihcan123.fa.funpic.de/wp-content/uploads/2009/03/unicode.PNG[/url]
Best Regards,
Esimov

i have changes the setting in my listener from unicode to “No” but then also we are receving same error while sending the idocs from SAP system lerror ike “JCO server could not create server function”

Hello RJ,
You can check this aspects…
1.change the setting in your listener from unicode to “Yes” (test again)
2.Check the privileges from the User which you posting idocs.

Thanks Esimov,

That a partially resolve solution of my requested posted.
but i want to add one more thing like we have to do same setting in SAP system while configuring RFC destination like Unicode (check radio button setting in SAP system)
1 check radio button in SAP system for unicode while rfc setting
2 change setting in Wm listener Unicode value to YES.
3 publish all manedatory value in idocs
now i am able to view the idocs coming from SAP side with sender,receiver & msgtype values

Thanks
RJ

Hi,
SAP system in our organisation was also upgraded to Unicode (will move to ECC later as well) and I received exactly same errors in SAP Business connector 4.5 while receicing RFC calls. I changed the setting in the listener and selected ‘Unicode Listener’ as yes.

Errors received are given below
2009-06-09 09:57:35 MST com.sap.mw.jco.JCO$Exception: (120) JCO_ERROR_EXTENSION: JCO.Server could not create server function ‘Y_TEST’
at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(Unknown Source)
at com.sap.mw.jco.JCO$Server.listen(Unknown Source)
at com.sap.mw.jco.JCO$Server.run(Unknown Source)(Compiled Code)
at com.wm.pkg.sap.rfc.Listener.run(Listener.java(Compiled Code))
at java.lang.Thread.run(Thread.java:513)

2009-06-09 09:57:35 MST com.sap.mw.jco.JCO$Exception: (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template ‘Y_MFF_ODS_PART_VALIDATION’
caused by: com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: Missing GWHOST=… in connect_param in RfcOpenEx

Any luck in resolving your error? Please help

BC User