TitleNPE When access Welcome page
Date20-Feb-2006 02:48:53 EET
Version2.2.33
SubmitterTM
Bug criticalityFatalBug
Browser versionIE, Mozilla
Bug statusClosedBug
PageProvider usedVersioningFileProvider
Servlet Containerjboss 3.2.1
Operating SystemHPUX
URLWiki.jsp - Install.jsp works fine
Java version1.4

Note: 2.0.52 works fine....

JSPWiki has detected an error
Error Message 
An unknown exception java.lang.NullPointerException was caught by Error.jsp. 
Exception 
java.lang.NullPointerException 
Place where detected 
org.apache.jasper.runtime.JspRuntimeLibrary.getContextRelativePath(), line 776 
If you have changed the templates, please do check them. This error message may show up because of that. If you have not changed them, and you are either installing JSPWiki for the first time or have changed configuration, then you might want to check your configuration files. If you are absolutely sure that JSPWiki was running quite okay or you can't figure out what is going on, then by all means, come over to jspwiki.org and tell us. There is more information in the log file (like the full stack trace, which you should add to any error report). 

And don't worry - it's just a computer program. Nothing really serious is probably going on: at worst you can lose a few nights sleep. It's not like it's the end of the world. 

What do the log (both the server and jspwiki logs) say? By the error report it seems that you have some sort of a configuration problem...

-- JanneJalkanen


Thanks for looking at this!
2006-02-19 18:59:35,063 [PoolThread-14] DEBUG com.ecyrd.jspwiki.auth.UserManager itgWiki:Welcome - Stored username=null
2006-02-19 18:59:35,071 [PoolThread-14] DEBUG JSPWiki itgWiki:Welcome itgWiki:Welcome - Error.jsp exception is: 
java.lang.NullPointerException
	at org.apache.jasper.runtime.JspRuntimeLibrary.getContextRelativePath(JspRuntimeLibrary.java:776)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:821)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:398)
	at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:68)
	at org.apache.jsp.Wiki_jsp._jspService(Wiki_jsp.java:136)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(Unknown Source)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(Unknown Source)
	at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Unknown Source)
	at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129)
	at org.mortbay.jetty.servlet.Default.handleGet(Unknown Source)
	at org.mortbay.jetty.servlet.Default.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(Unknown Source)
	at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Unknown Source)
	at org.mortbay.jetty.servlet.ServletHandler.handle(Unknown Source)
	at org.mortbay.http.HttpContext.handle(Unknown Source)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(Unknown Source)
	at org.mortbay.http.HttpContext.handle(Unknown Source)
	at org.mortbay.http.HttpServer.service(Unknown Source)
	at org.jboss.jetty.Jetty.service(Unknown Source)
	at org.mortbay.http.HttpConnection.service(Unknown Source)
	at org.mortbay.http.HttpConnection.handleNext(Unknown Source)
	at org.mortbay.http.HttpConnection.handle(Unknown Source)
	at org.mortbay.http.SocketListener.handleConnection(Unknown Source)
	at org.mortbay.util.ThreadedServer.handle(Unknown Source)
	at org.mortbay.util.ThreadPool$PoolThread.run(Unknown Source)


--TM, 21-Feb-2006

Hmmm.... This is quite interesting. You state that your app server is JBoss, but according to the server log you're using jetty. Eh?

-- JanneJalkanen


Ahh, you're right. It appears to be a JBOSS integrated with Jetty package I'm trying to put this on...

--TM, 22-Feb-2006


Do you have any suggestions of where to start looking? This was a straight copy of our 2.0.52 instance... I copied the 2.052 instance to a new server, brought it up, worked ok. I then made another copy to run with the current release.

1) Tried with original web.xml and jspwiki.properties, changing file paths,wiki name, and template to default (from mrg). Error. 2) Tried with mrg template. Error. 3) Tried with the new mrg-remix template. Error. 4) Tried with new jspwiki.properties and new web.xml Error.

--TM, 23-Feb-2006


This is quite problematic... NPEs in general don't give much information, and as far as I can tell, either JSPWiki is passing a template name of null, or that Jetty has an internal path set to null. One thing you might want to check is that the WAR file is opened and deployed properly, and that you don't have any old classes in your classpath.

-- JanneJalkanen, 23-Feb-2006


Got it Fixed! The problem was the jetty configuration - it had all the jsp compiles going to a common scratch directory. I suspect when the old wiki and the new wiki's jsp's intersected, they were getting lost. I commented out the section about scratchdir, restarted, and it worked!

scratchdir - What scratch directory should we use when compiling JSP pages? Default is the work directory for the current web application.

http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html

--TM, 25-Feb-2006


Marking as closed.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-20) was last changed on 26-Sep-2007 22:58 by JanneJalkanen