Problem Retrieving Accounts from SAP system
hi,
I can to connect a SAP system successfully but when doing a full reconciliation and loading from resource ,i am geeting the following errors :
com.waveset.util.WavesetException: Error retrieving users java.lang.NullPointerException
com.waveset.util.WavesetException: Error retrieving users
java.lang.NullPointerException
at com.waveset.adapter.SAPResourceAdapter$AcctIter.<init>(SAPResourceAdapter .java:3244)
at com.waveset.adapter.SAPResourceAdapter.getAccountIterator(SAPResourceAdapter.ja va:3213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.adapter.ResourceAdapterBase$ProxyThread.run(ResourceAdapterBase.jav a:3505)
Can anyone of you tell me the solution to this problem.
Thnaks in advance.
Gaurav
[1079 byte] By [
Gaurav_IDM] at [2007-11-26 11:28:04]

# 3
Hey guys,
Even I faced a similar problem.
The solution for this is
a) Check which version of JCo you are using
b) If you are using SAP JCo 2.1.7 ..then boy oh boy you are in trouble.
If it is (b) then you should go back to a lower version like 2.0.12 which solved the problem in my case.
Looks like the latest jar which sun has added in SAP JCo has got some problems.
The following needs to be done.
Setting Trace: SAP JCo
Set the SAP JCo Trace Level to 4 and all the calls that happen to SAP JCo can be checked in the trace files dumped into the directory of <Tomcat Installation> \dump.
Downloading JCo
You need to be an SAP customer or partner (with a valid SAP net (OSS) userid) to
download JCo. Go to http://service.sap.com/connectors and follow the download instructions. You will also find the complete list of supported platforms here.
Note: 1. The version of SAP JCo Release 2.1.7 when used ends up in a Null Pointer Exception.
2. The version of SAP JCo Release 2.0.12 is more stable and works fine when used for provisions, de provisions and reconciliation of Accounts.
Configurations to be done where Identity Manager is installed.
Get the zip file sapjco-ntintel-2.0.12.
The following are the main components present in the zip file.
sapjco.jar
librfc32.dll
sapjcorfc.dll
Copy the file sapjco.jar to <IDM Installation Folder>\WEB-INF\lib
Copy the librfc32.dll file from your JCo root directory to C:\WINNT\SYSTEM32 unless the version you already have there is newer than the one supplied with JCo
Copy sapjcorfc.dll <Java Installation>\bin
Note: Refer JCo Tutorial.pdf present in the zip file for more troubleshooting tips.
Sample Code to Test Connectivity.
Execute the following client code to check if the connection is working fine.
Note: Before doing this ensure that the class path is set.
import com.sap.mw.jco.*;
public class TutorialConnect1 extends Object {
JCO.Client mConnection;
public TutorialConnect1() {
try {
// Change the logon information to your own system/user
mConnection =
JCO.createClient("100", // SAP client
"xxxxx", // userid
"xxxxxx123", // password
null, // language
"10.201.109.278", // application server host name
"00"); // system number
mConnection.connect();
System.out.println(mConnection.getAttributes());
mConnection.disconnect();
}
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
}
public static void main (String args[]) {
TutorialConnect1 app = new TutorialConnect1();
}
}
Best Regards,
Vinod Kandukuri
# 4
That client example is a good sanity check.
But IdM uses the SAP gateway, so a better test is to also pass the SAP gateway host and service--this will test whether the gateway service is present on the SAP machine. For example:
JCO.createClient("100", // SAP client
"xxxxx", // userid
"xxxxxx123", // password
null, // language
"10.201.109.278", // application server host name
"00", // system number
"10.201.109.278", // gateway host
"sapgw25"); // gateway service
If that fails you can beat up theSAP admin to tell you the real gateway parameters :-).
Rob.