• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logs filled with exceptions in Solaris

 
senthil loganathan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I have some tested JSP's working fine in NT Machine in Websphere 3.5 application server.
i have moved this code to websphere present in solaris.
In Solaris when i see the error logs lot of exceptions are thrown.
[02.04.23 15:47:55:868 GMT+08:00] e0491b ServletInstan X Uncaught service() exception thrown by servlet {0}: {1}
"JSP 1.0 Processor"
com.sun.jsp.JspWithNoErrorPageException: Server caught unhandled exception from JSP [ldregistration.jsp]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
Like the above... in many screes it is writing exceptions like this, unhandled exception thrown from JSP. But in NT Server logs.. no exceptions like this are written in the logs..
can anybody explain the problem??
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not a Solaris expert, but as I read this, the service() method threw an exception and it appears that for some reason the error reporting mechanism isn't reporting is very well.
Try wrapping the service() code with this:

If it works better, use System.out.println or the servlet log method, instead.
If you're not directly implementing service(), you might want to apply the above to your doGet() and doPost() methods.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error: com.sun.jsp.JspWithNoErrorPageException is pretty suspicious to me. I've never heard of this error, and when I googled it, all I got were google's cached pages of this error. ie: Sites that threw that error. And guess what? All of them were websphere.

Also, the "JSP 1.0 Processor" in the stack trace is not so good.

Are you sure the JSPs you're porting over to websphere are the same version that your websphere instance supports?
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Websphere, you might have the Error Reporting facility servlet deployed in your web app. Open your console, select your webapp, go to advanced properties and set default error page to /ErrorReporter (or whatever URL pattern will invoke your Error Reporting servlet).
This should help you get rid of the error about not having an erro page configured and maybe you will see your real error.
Oh and I almost forgot, the error that you are seeing is in the service() method of your JSP 1.0 Processor, not one of your own servlets so it wouldn't be trivial to modify the code for it, and you shouldn't have to anyway. I think if you get the Error Reporting Facility configured, you will see what is going on.
[ April 23, 2002: Message edited by: BJ Grau ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic