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



May 30, 2011, 7:09 AM
170 Posts

Help: Error while executing JavaScript action expression

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
 I'm getting this when opening an xpage application
 
HTTP JVM: com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript action expression 
 
No more information on where the problem is. 
 
I have tried to add print inside my code to see where this happends but no luck. 
 
Anybody having any idea how to find what is giving this error. 
I have added try{ }catch where I think the error chould be but no luck. 
May 30, 2011, 8:13 AM
30 Posts
Re: Error while executing JavaScript action expression
 The reason for this error is that something is wrong. Helpful, huh? =)
 
This is the most frequent error message I get as well, it can by far be the most frustrating because lack of input on to what is causing it. (A line error would be nice!) 
 
What I find is causing this in general is that one of the parameters I'm passing to a method is "null" and that particular method can't handle it.
 
 
In your catch-block, have you logged e.message? Sometimes this seems go give some more information.
Otherwise I simply use print statements to determine where the code crashes. 
 
 
/J 
May 30, 2011, 9:42 AM
170 Posts
Re: Error while executing JavaScript action expression
 I have tried to change to e.message on all try catch
 
But I still get the error message. 
 
I have added a print statement at the en of my on page load code and a print statement on my first  
SSJS code element on the page 
 
and the error message is shown between these two statements.  
But I don't have any code there. 
 
It's so strange. 
Jul 13, 2011, 4:01 PM
135 Posts
Re: Help: Error while executing JavaScript action expression
 I used to get a nice listing of all the SSJS code showing the error line in red. Now I'm getting only this error. I have tried different error page options on app properties. How do I enable the full SSJS error reporting?
 
EDIT: I think I found out now how this works. If an error occurs in the events that are triggered when the XPage is loaded (beforeRenderResponce etc.), no error page is shown. In that case the error is reported to xpages log file in IBM_TECHNICAL_SUPPORT folder. If I put my code to a onclick event of a button I get the error page. It would of course be nice to get the error page no matter where the error occurs.
 
thanks, 
 
- Panu 

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