Quantcast
Channel: SCN : Popular Discussions - Java Development
Viewing all articles
Browse latest Browse all 518

Simple JCo connection with SNC

$
0
0

Hi SCN,

 

I want to connect to an SAP system via a JCo connection, but it always fails.

 

I am inside the SAP network and use the connection parameters of my SAP Logon.

 

Here is my example:

 

        JCO.Client  mConnection;

        Properties props=new Properties();

            props.setProperty("jco.client.client","001");

            props.setProperty("jco.client.sysnr","00");

            props.setProperty("jco.client.ashost","icpxxxx.wdf.sap.corp");

            props.setProperty("jco.client.snc_mode","1");

            props.setProperty("jco.client.snc_partnername","p:CN=Cxxxxxxx, O=SAP-AG, C=DE");

            props.setProperty("jco.client.snc_lib", "C:\\Program Files (x86)\\SECUDE\\OfficeSecurity\\secude.dll");

        mConnection = JCO.createClient(props);

        mConnection.connect();

 

but I always get this exception:

 

Thr 12088] Tue Jul 30 22:05:00 2013
[Thr 12088] *** ERROR => SncPDLInit()==SNCERR_INIT, Adapter #1 (C:\Program Files (x86)\SECUDE\OfficeSecurity\secude.dll) not loaded [sncxxdl.c  640]
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM  GWHOST=icpxxxx.wdf.sap.corp, GWSERV=sapgw00, SYSNR=00

LOCATION    CPIC (TCP/IP) on local host
ERROR       SncPDLInit()==SNCERR_INIT
            Unable to load GSS-API DLL
            named "C:\Program Files
            (x86)\SECUDE\OfficeSecurity\secude.dll"
TIME        Tue Jul 30 22:05:00 201
RELEASE     640
COMPONENT   SNC (Secure Network Communication)
VERSION     5
RC          -1
MODULE      sncxxdl.c
LINE        378
DETAIL      LoadLibra

 

Any idea what is wrong ?

 

Regards

Volker


Viewing all articles
Browse latest Browse all 518

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>