06-21-2010 12:39 PM
Hi,
I tried configuring SNC setup on my local machine using SAP JCo 3.0.5.
I am trying to establish a secure connection using a SAP JCo , using sapcrypto lib file provided on SAP portal.
I tried following the steps mentioned in this blog:
/people/gregor.wolf3/blog/2006/09/29/setup-data-encryption-between-rfc-client-and-web-as-abap-with-snc
But, I am still getting below mentioned error:-
Attributes:
[Thr 4424] Mon Jun 14 22:04:59 2010
[Thr 4424] *** ERROR => SncPEstablishContext() failed for target='p:CN=sap00.sapperf2, OU=Adapter, O=IBM, C=US'
[Thr 4424] [sncxxall3370]com.sap.conn.jco.JCoException: (107) RFC_ERROR_PROTOCOL: CPIC-CALL: 'CMRCV'
null
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:619)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1286)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:665)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:799)
at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:634)
at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:29)
at SNCConnectionTest.main(SNCConnectionTest.java:24)
Caused by: RfcException: [null]
message: CPIC-CALL: 'CMRCV'
null
Return code: RFC_FAILURE(1)
error group: 107
key: RFC_ERROR_PROTOCOL
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:179)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1279)
... 9 more
Caused by:
<div class="jive-quote">RfcIoException:</div>
message: CPIC-CALL: 'CMRCV'
null
Return code: RFCIO_ERROR_NO_DATA(8)<
at com.sap.conn.rfc.engine.RfcIoOpenCntl.ab_rfclisten(RfcIoOpenCntl.java:1360)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:143)
... 10 more
any advice /comments to overcome this error will be very helpful
06-23-2010 12:50 AM
This seems to be a Basis issue,
From the Basis perspective, check the host to host pinging if it works that is you are checking if the Network is fine
Next do the ping test from your JCO if its working.
If it all works its to do with some system issue like Shared memory/Space.
From the security perspective,
If you have not made the correct entries to have the jco connector setting page, you will get a wrong ping test result
other possibility is the RFC user mismatch could be an issue , If you are dealing with SLD in your landscape then you need to maintain userid's the same for you to be successful.
My recommendation: Make sure you have followed all steps of installation , support pack and service pack all latest
Ping test host to host Network layer , then tranport layer and JCO ping
Check your RFC user and give SAP_ALL to perform the test, if SLD Maintain same userid and password
sometimes mismatch in password also can cause an RFC protocal error.
Hope this throws some light
06-23-2010 12:58 AM
Hi ,
It looks like you are using a personal machine to do this
make sure your machine is 64BIt Software/hardware.
if you do not have the OS 64 bit inconsistency between the JCo RFC and the CPIC layer will occur
another point I remember way in 2007 that we have to have host entries and gateway entries made on the host machines.
06-23-2010 4:20 AM
06-23-2010 7:27 PM
Hi Franklin and Sri,
Thanks for your prompt reply.
But I am able to connect my Java program using same JCo file when I am not connecting through SNC.
So , I believe network settings are correct.
my machine has 32 bit JVM and I am using 32 bit JCo file
my RFC user is having SAP_ALL,SAP_NEW permission and service file also have correct host and gateway entries.
In transaction SU01 , I can see these details and also seems SNC is correctly configured.
I am not sure if any traces will be generated in SAP for it, since connection itself doesnt get established.
Is there a way I can find the exact reason for the error?
Hope to resolve this error early