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



Mar 18, 2011, 11:37 AM
8 Posts

Problems with XPages on Domino Server 8.5.2 for Linux

  • Category: Server Side JavaScript
  • Platform: Linux
  • Release: 8.5.2
  • Role: Developer
  • Tags: XPages,Linux,Repeater,View,getDocumentByKey
  • Replies: 3
Hello,
 
I have a problem with XPages and Lotus Domino 8.5.2 Server on Linux.
 
There is one database with the XPages and another one with a view I need. The XPages are using Repeaters to load documents from the needed view in the other database. This works fine always at the minimum one time. But then it seems so that the view in the database has a "bug". A document should be found with the "key", but a error is occurred:

Exception occurred calling method NotesView.getDocumentByKey(java.util.Vector)
null
 
Also the Linux Server crashed very fast sometimes, when/after the Repeaters has loaded the data.
 
Simple short code snippet:

[...]
var view:NotesView = db.getView("($all)");
var doc:NotesDocument = view.getDocumentByKey(key);
[...]
 
With Domino Servers on Windows I don't have these problems. Anyone can confirm these problems, that you can't access the view by using "getDocumentByKey" anymore?

Greetings,
Michael
Mar 18, 2011, 2:56 PM
16 Posts
Re: Problems with XPages on Domino Server 8.5.2 for Linux
Hi,
 
I cannot see from your code whether this is related. However, you do mention that you need to refer to another database. Have you taken into consideration that file names and paths are case sensitive on Linux (and other operating systems than Windows)? The reason why it sometimes work anyway is if the database has been opened before (and cached....). I know this kind of problem can be difficult to spot.
 
/John 
Mar 18, 2011, 4:52 PM
8 Posts
Re: Problems with XPages on Domino Server 8.5.2 for Linux
 Thanks for your response!
 
Well, thats all good points to think about. My application (XPage DB and a notes database) is very tricky and can read information from documents from any other notes database. The XPage shows the data, and the data which should be displayed are configured in the notes database.
 
I am understanding you right, that it is not good, if the XPage always again and again gets the notes database? 
 
I do like this very often, because I don't know how to declare this global: 
var db:NotesDatabase = session.getDatabase(server,path,false) 
var vw:NotesView = db.getView("whateverviewuwant"); 
Mar 20, 2011, 9:02 PM
14 Posts
Re: Problems with XPages on Domino Server 8.5.2 for Linux
 I have experienced very odd crashes on linux related to getDocumentByKey or getAllEntriesByKey. In some cases it was "bad" input from users (binary garbage which was passed into keys property of view data source). Sometimes it was caused by "too fast" lookups (getDocumentByKey called inisde a loop).
 
FK 
 

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