I'm having some trouble getting my simple java program to logon to the CE 9.0 APS. I'm using simple code:
public static void loadReports(){
IEnterpriseSession es;
String user = "Administrator";
String password = "";
String apsName = "apsName";
String apsAuthType = "Enterprise";
String token;
try {
es = CrystalEnterprise.getSessionMgr().logon( user, password, apsName, apsAuthType);
ILogonTokenMgr tokenMgr = es.getLogonTokenMgr();
token = tokenMgr.createLogonToken("",1440,100);
System.err.println("bugger" + es.getAPSName());
es.logoff();
} catch (SDKException e) {e.printStackTrace();}
}
It always fails at the line:
es = CrystalEnterprise.getSessionMgr().logon( user, password, apsName, apsAuthType);
The error encountered (I have tried this against many of my company's CE Standard 9.0 installations) and get the same error:
com.crystaldecisions.sdk.exception.SDKException$PluginNotFoundAtAPS: The plugin Enterprise does not exist in the APS
cause:com.seagatesoftware.img.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
detail:The plugin Enterprise does not exist in the APS
The exception originally thrown was com.seagatesoftware.img.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
at com.crystaldecisions.sdk.occa.pluginmgr.internal.c.getPluginInfo(Unknown Source)
at com.crystaldecisions.sdk.occa.pluginmgr.internal.c.getPluginInterface(Unknown Source)...
and so on...
I tried the fix in the knowledgebase article:
But it got me nowhere. Perhaps this is a problem because I am using CE Standard?
If anyone has any ideas as to how to fix this, please let me know.
Thanks,
T
public static void loadReports(){
IEnterpriseSession es;
String user = "Administrator";
String password = "";
String apsName = "apsName";
String apsAuthType = "Enterprise";
String token;
try {
es = CrystalEnterprise.getSessionMgr().logon( user, password, apsName, apsAuthType);
ILogonTokenMgr tokenMgr = es.getLogonTokenMgr();
token = tokenMgr.createLogonToken("",1440,100);
System.err.println("bugger" + es.getAPSName());
es.logoff();
} catch (SDKException e) {e.printStackTrace();}
}
It always fails at the line:
es = CrystalEnterprise.getSessionMgr().logon( user, password, apsName, apsAuthType);
The error encountered (I have tried this against many of my company's CE Standard 9.0 installations) and get the same error:
com.crystaldecisions.sdk.exception.SDKException$PluginNotFoundAtAPS: The plugin Enterprise does not exist in the APS
cause:com.seagatesoftware.img.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
detail:The plugin Enterprise does not exist in the APS
The exception originally thrown was com.seagatesoftware.img.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
at com.crystaldecisions.sdk.occa.pluginmgr.internal.c.getPluginInfo(Unknown Source)
at com.crystaldecisions.sdk.occa.pluginmgr.internal.c.getPluginInterface(Unknown Source)...
and so on...
I tried the fix in the knowledgebase article:
But it got me nowhere. Perhaps this is a problem because I am using CE Standard?
If anyone has any ideas as to how to fix this, please let me know.
Thanks,
T