Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the JAVA SDK to Logon to the CE 9.0 APS

Status
Not open for further replies.

tpaddack

Programmer
Nov 17, 2003
28
US
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
 
Try this:

String apsAuthType = "secEnterprise";
 
Dude you rule! And I am such a moron... I totally forgot about the 'sec' prefix.

Thanks!

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top