IntelliJ Java IDE
The moose likes JBoss and the fly likes Jboss 6.0.0 final Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply locked New topic
Author

Jboss 6.0.0 final

velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi All,

I am using Jboss6.0.0. final version, when i run my jsp i am getting below error.
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException

how we can handle these error.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
By finding out which object that the code is trying to access is null. There should be a lengthy stack trace in one of the log files that gives you further information on where to look. In all likelihood, this has nothing to do with JBoss, and everything to do with your code.
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32

This page is running on Jboss4.2.3 when i come to jboss6.0.0 final neo getting
javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to compile class for JSP

is any parameter i have to change the format.
Jaikiran Pai
Saloon Keeper

Joined: Jul 20, 2005
Posts: 6720

Like Tim said, you'll have to check what object is null. The entire exception stacktrace will have some clues. Probably some scriplet code in your jsp is running into a NullPointerException

P.S: Please use a meaningful and descriptive subject for your threads.

[My Blog] [JavaRanch Journal]
Jaikiran Pai
Saloon Keeper

Joined: Jul 20, 2005
Posts: 6720

I'm now going to close this thread too. You now have 3 threads talking of the same issue. Please continue the discussion in the other thread here http://www.coderanch.com/t/559050/JBoss/Jboss-Jsp-Struts. And please do not create multiple threads for the same issue.
 
 
subject: Jboss 6.0.0 final
 
Threads others viewed
Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
How do I solve the problem:Syntax error on tokens, delete these tokens?
Jboss 6 final
Stripes errors duplicated in JSP page
exception handling in jsp
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture