Hi All,
In order to fetch jco details i am using the following code in a java class in java dc.The java dc is deployed using a j2ee server library DC and then i call the java method getPassword() in a web dynpro dc
public String getPassword()
{
String password=null,strUser=null;
try{
String myDestination = "jcotest";
IWDJCOClientConnection client =
WDSystemLandscape.getJCOClientConnection(myDestination);
strUser = client.getUser();
password = client.getPassword();
}
catch(Exception e)
{
e.toString();
password=+e.toString();
}
return password+"a"+strUser;
}
}
Iam getting a nullpointer exception in IWDJCOClientConnection client =
WDSystemLandscape.getJCOClientConnection(myDestination);
Any pointers?The same code works fine in a standalone web dynpro dc application
Regards
Shilpa