Admin SDK / JSP Exception --- Number :19003 --- Description

Hi All,

Did anyone work on admin SDK. I am getting following error when I am trying to open session.

Admin SDK / JSP Exception — Number :19003 — Description : Unknown error.

My Code Snippet

<%
String  strName = "test";
String  strPass = "test";

try 
{ 
  
  Session currentSession = adminServer.openSession(strName, strPass); 
  if (currentSession.isValid())
  {
    String parentGroup = "TEST";
    Manager manager = currentSession.getManager();
    User user = manager.createUser("TEST","TEST",Profile.USER);
    user.changePassword("TEST");
  }
} 
catch(AdminException adme) { 
 adme.printStackTrace();
 System.out.println("Error    :" + adme.getMessage());
} 
%>

I am trying to create userid and password dynamically from my application. I am getting above exception when trying to open session.

Can anyone help me.

Regards
patra

[Used bbc CODE formatting - Andreas]


patra_bt2004 (BOB member since 2004-03-01)

There are couple of things you can investigate. I noticed that the samples have a sleep after the user creation which is called before the password change. I am not aware of any documented requirement for the sleep but it does appear to help

Thread.currentThread().sleep(300);

Also, did you add the line MODE=ASF to your webi.properties file which is found in wijsp\WEB-INF\classes? The SDK documentation indicates it is required.

I hope this helps.

Chris C.


CC2 (BOB member since 2004-07-26)

Hi,

as I never read thios I’m curious :shock:

When is it required to set the mode to ASF?

All I found so far is that I can switch the ‘BalanceAlgorithm’ to ASF - whatever that may mean :wink:

cu,

olli


haupto :de: (BOB member since 2004-04-16)

Hi,

you should include the onStart/onEndpage calls before accising any BO methods on sessions/servers and the like.

Else you’ll surely get some unexpected behavior from the BO server.

cu,

olli


haupto :de: (BOB member since 2004-04-16)

The configuration requirement is documented in the Developer Suite help file adminsdkEN.chm (Developer Suite 6.1). It can be found in the “Before you start” section of Customizing Adminstration. I am not aware of other configurations that are documented for use with the Admin SDK. However, I have not experimented with alternative configurations.

Chris C.


CC2 (BOB member since 2004-07-26)

Regarding “mode=ASF”
We got this response from an AdminSDK developer:

-Kevin


Ke6n Swindlehurst :us: (BOB member since 2003-09-16)

Did you ever find a fix for this? I am having the same problem in a program that was working a couple of months ago. I haven’t changed anything in the program (haven’t even recompiled it since it was last working).

So I’m guessing it must be a server/configuration problem.

Does anybody have any suggestions?


JohnSmith (BOB member since 2004-01-07)