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



Nov 15, 2013, 6:05 PM
47 Posts

Previewing an XPage on localhost yields Command Not Handled Exception

  • Category: Debugging
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 5

I am putting together some XPage training databases and when I try to preview them locally (via design-preview in web browser-default browser) I get a 500 Error:  Command Not Handled Exception.

reading some of the forums led me to try running Designer/Notes as administrator (Windows 7) but to no avail.  I read another post about JVM not being updated properly on the Notes client upgrade and that may be the issue.  I would rather not resort to that if possible.

BTW, I have checked the Xpages logs and the log.nsf and neither has detailed information about the issue.

Thanks in advance.

Mike

Nov 15, 2013, 9:32 PM
366 Posts
so there is nothing...

in the console.log or xpages_execxxxx.log file in the Notes\Data\IBM_TECHNICAL_SUPPORT folder of your notes client?

 

Should tell you something.  At least a stack trace. 

Nov 15, 2013, 10:58 PM
47 Posts
console.log

The console.log has:

20E4:0002-2178] 11/15/2013 02:12:25 PM  JVM: Java Virtual Machine initialized.
[20E4:0002-2178] 11/15/2013 02:12:25 PM  HTTP Server: Java Virtual Machine loaded
[20E4:0002-2178] 11/15/2013 02:12:26 PM  Xsp Initialization error - Could not load class or methods
[20E4:0002-2178] 11/15/2013 02:12:26 PM  No statistics block. HTTP load statistics will not be collected
[20E4:0009-206C] 11/15/2013 02:12:26 PM  HTTP Web Server: Command Not Handled Exception [/sample.nsf/test.xsp] Anonymous
[20E4:0002-2178] 11/15/2013 02:12:26 PM  HTTP Server: Started

The XSP initialization error is probably the key here but I don't know if that means the JVM is corrupt or something else.

Nov 16, 2013, 3:21 PM
366 Posts
Yea, that means...

the XSP engine is borked.  Try to do a client "repair" installation.  that should make sure all the bits and bytes are in order without a full reinstall.

Nov 17, 2013, 10:36 PM
298 Posts
There is a Windows security issue that sometimes causes issues
If you have Win 7, 64 bit, and your Notes and data are in the program files directory there is a security issue writing to a file.  Try shutting down Notes, Designer, and Admin client.  Restart the Notes client by right clicking and then run as admin. Then start Designer and try again to see if it works.

Howard
Nov 21, 2013, 4:52 PM
47 Posts
Fixed

There was a few issues.  I think, as Paul suggested, there was some corruption.  So I uninstalled Notes and renamed the legacy jvm directory to oldjvm and reinstalled.  Then I got a few permission errors.  Fixed them by adding in an entry in the java.policy file for this NSF.  The app was using DB2 as well so putting the db2 jar files into jvm/lib/ext solved the remaining pieces.

Thanks to the responders.

Mike


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