Skip to Content
avatar image
Former Member

Problem connecting to SAP via SNC

Hi,

<BR>

I am having problems connecting to SAP via SNC. I have a standalone Java program to connect to SAP.

<BR><BR>

I recived the following error when i test the program:

com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: connection closed without message (CM_NO_DATA_RECEIVED) (remote system is | SAPSNC.svl.ibm.com/00)

at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:639)

at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1313)

at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:712)

at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)

at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:189)

at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:45)

at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:178)

at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:760)

at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:598)

at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:28)

at SNCConnectionTest.main(SNCConnectionTest.java:24)

Caused by: RfcException: [ | SAPSNC.svl.ibm.com/00]

message: connection closed without message (CM_NO_DATA_RECEIVED)

Return code: RFC_CLOSED(6)

error group: 102

key: RFC_ERROR_COMMUNICATION

Exception raised by | SAPSNC.svl.ibm.com/00

at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2070)

at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:187)

at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1306)

... 9 more

Caused by: com.sap.conn.rfc.exceptions.RfcGetException: connection closed without message (CM_NO_DATA_RECEIVED)

at com.sap.conn.rfc.engine.RfcGet.rfcget_gethead(RfcGet.java:479)

at com.sap.conn.rfc.engine.RfcGet.rfcget_run(RfcGet.java:40)

at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:23)

at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:33)

at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1970)

... 11 more

Caused by:

>RfcIoException:

message: connection closed without message (CM_NO_DATA_RECEIVED)

Return code: RFCIO_ERROR_DEALLOCATED(10)<

at com.sap.conn.rfc.engine.RfcIoOpenCntl.ab_rfcread(RfcIoOpenCntl.java:650)

at com.sap.conn.rfc.engine.RfcGet.rfcget_gethead(RfcGet.java:475)

... 15 more

GSS-API(maj): Defective token provided.GSS-API(min):

<BR>

<BR>

Also I increased the trace level in SAP GUI to check the problem and below is the error stack.

Adresse Offset Appc-Data to Gateway

-


0000000010145560 000000 060b0200 00820000 01c60000 00000000 |................|

0000000010145570 000016 00ffffff ff000000 00000000 00001000 |................|

0000000010145580 000032 00000000 00000000 34323830 31333430 |........42801340|

0000000010145590 000048 00000000 00000000 00000000 00000000 |................|

00000000101455A0 000064 00000000 00000000 00000000 00000000 |................|

00000000101455B0 000080 2a455252 2a003100 4753532d 41504928 |ERR.1.GSS-API(|

00000000101455C0 000096 6d616a29 3a204465 66656374 69766520 |maj): Defective |

00000000101455D0 000112 746f6b65 6e207072 6f766964 65640a47 |token provided.G|

00000000101455E0 000128 53532d41 5049286d 696e293a 20546869 |SS-API(min): Thi|

00000000101455F0 000144 73206973 206e6f74 20612076 616c6964 |s is not a valid|

0000000010145600 000160 20746f6b 656e0a55 6e61626c 6520746f | token.Unable to|

0000000010145610 000176 20657374 61626c69 73682074 68652073 | establish the s|

0000000010145620 000192 65637572 69747920 636f6e74 65787400 |ecurity context.|

0000000010145630 000208 2d340053 4e432028 53656375 7265204e |-4.SNC (Secure N|

0000000010145640 000224 6574776f 726b2043 6f6d6d75 6e696361 |etwork Communica|

0000000010145650 000240 74696f6e 29003730 30003500 736e6378 |tion).700.5.sncx|

0000000010145660 000256 78616c6c 2e630033 33353200 536e6350 |xall.c.3352.SncP|

0000000010145670 000272 45737461 626c6973 68436f6e 74657874 |EstablishContext|

0000000010145680 000288 00546875 204d6172 20303320 30303a34 |.Thu Mar 03 00:4|

0000000010145690 000304 373a3034 20323031 31006773 735f6163 |7:04 2011.gss_ac|

00000000101456A0 000320 63657074 5f736563 5f636f6e 74657874 |cept_sec_context|

00000000101456B0 000336 00000033 37005341 502d5365 72766572 |...37.SAP-Server|

00000000101456C0 000352 20736170 736e635f 534e435f 3030206f | sapsnc_SNC_00 o|

00000000101456D0 000368 6e20686f 73742073 6170736e 63202877 |n host sapsnc (w|

00000000101456E0 000384 70203029 00004753 532d4150 49286d61 |p 0)..GSS-API(ma|

00000000101456F0 000400 6a293a20 44656665 63746976 6520746f |j): Defective to|

0000000010145700 000416 6b656e20 70726f76 69646564 3b3b3b3b |ken provided;;;;|

0000000010145710 000432 0a3b3b3b 3b475353 2d415049 286d696e |.;;;;GSS-API(min|

0000000010145720 000448 293a2054 68697320 6973206e 6f742061 |): This is not a|

0000000010145730 000464 2076616c 69642074 6f6b656e 3b3b3b3b | valid token;;;;|

0000000010145740 000480 0a3b3b3b 3b556e61 626c6520 746f2065 |.;;;;Unable to e|

0000000010145750 000496 73746162 6c697368 20746865 20736563 |stablish the sec|

0000000010145760 000512 75726974 7920636f 6e746578 74000000 |urity context...|

0000000010145770 000528 2a455252 2a00 |ERR. |

<BR>

<BR>

I see that its due to defective token.Followed the steps in below URL to setup SNC

[/people/gregor.wolf3/blog/2006/09/29/setup-data-encryption-between-rfc-client-and-web-as-abap-with-snc|/people/gregor.wolf3/blog/2006/09/29/setup-data-encryption-between-rfc-client-and-web-as-abap-with-snc]<BR>

<BR>

Can anyone help me to figure out what is missing in my configuration?

Edited by: SowmyaGrama on Apr 25, 2011 11:12 AM

Edited by: SowmyaGrama on Apr 25, 2011 11:13 AM

Edited by: SowmyaGrama on Apr 25, 2011 11:16 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 25, 2011 at 09:57 AM

    Dear Sowmya

    This is SAP Supply Network Collaboration forum

    Kindly post your query in below forum

    SAP NetWeaver Administrator

    Please close this thread

    Best Regards

    Vinod

    Add comment
    10|10000 characters needed characters exceeded