This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 6, 2011, 1:41 PM
2 Posts

sessionAsSigner different domains/servers error?

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer,Administrator
  • Tags: sessionAsSigner,Domain,Domains,Servers,Server,getDatabase,different,getEffectiveUserName
  • Replies: 0
Hi!

I am trying to connect to a DB on another domain but errors occur when I am using sessionAsSigner. When I do the following on an XPage submit button on serverX it works fine and writes to the testField on a specific document and DB on serverY (both servers is located in the same domain).

 

var dbName = "someFolder\\someDB.nsf";

var serverName = "CN=P******s/OU=S*****/O=B****";   //serverY

var np = ”test”;

                                                                                                                   //sessionAsSigner on serverX                     

var db:NotesDatabase = sessionAsSigner.getDatabase(serverName, dbName);

                   

var doc:NotesDocument = db.getDocumentByUNID("62E575EEAAAAAAAAAAAAAAA2E02B45BC");

 

doc.replaceItemValue("testField", np);

 

doc.save();

doc.recycle();

 

If I change the serverName to a server on a different domain it doesn’t work.

Now I am trying to do a simple test on the server on the other domain and I end up with the following errors.

(I am trying to print sessionAsSigner effective username on test.xsp. Works fine on serverX, but I get an error when I try to do the same thing on Server 2(on the other domain).)

 

What possible settings could be wrong?

 

ServerX,   8.5.2 FP2

Code on submit button

Print(sessionAsSigner.getEffectiveUserName()) ;    

Result on server console

1: HTTP JVM : CN= J**********n/OU=Staff/O=B********  -- the result I want on server 2 to be able to get an handle on a db object.

 

Code on computed field

sessionAsSigner.getEffectiveUserName();

Result

CN=J* ** * ** * * *n/OU=Staff/O=B****** -- the result I want on server 2

 

 

Server 2, 8.5.2 FP2, Different domain

 

Code on submit button

Print(sessionAsSigner.getEffectiveUserName()) ;   

Result

1: HTTP JVM: ‘Print’ not found 
 
 
 

Code on computed field

sessionAsSigner.getEffectiveUserName();

Result

1: HTTP JVM : com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing javaScript computed expression

2: HTTP JVM : com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing javaScript computed expression

3:  HTTP JVM : CLFAD0211E: Exception thrown. For more detailed information, please consult error-log-0.xml located in d:/ **********/logs

4: HTTP JVM : CLFAD02046E: Exception occurred servicing for request  for: /somefolder/someDB.nsf/someXpage.xsp – HTTP Code 500. For more detailed information, please consult error-log-0.xml located in d:/ **********/logs

5: HTTP Web Server: Command Not Handled Exception [/somefolder/someDB.nsf/someXpage.xsp] Anonymous

 

If I log in on the server while browsing I still get the same error messages except for the last line(5)..

5: HTTP Web Server: Command Not Handled Exception [/somefolder/someDB.nsf/someXpage.xsp] CN= J**********n/OU=Staff/O=B******** 

 

So, any suggestions!?

 

 

 

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal