Hi,  Adrien

- Is the problem reproducible? Or did it happen only one?
If you would like I can provide the source code.

- Is it the first time you use the workflow features, or did it work fine 
previously?
yes, it is the first time

- Did the problem appear in production, under heavy load? Or did it appear in a 
lightly loaded test environment?
The problem happens in both environments

- Has this JSPWiki instance been in production for a long time? Has Tomcat been 
recently upgraded?
I'm at the stage of deployment jspwiki.

- What was the previous Tomcat version that was used to run JSPWiki?
apache-tomcat-7.0.50

- Was the JSPWiki source code modified in any way?
There was no change in the source code

- Is there any special Tomcat configuration in place?
No

Thanks a lot 
Vitor

-----Original Message-----
From: Adrien Beau [mailto:adrienb...@gmail.com] 
Sent: Tuesday, February 25, 2014 4:16 AM
To: user@jspwiki.apache.org
Subject: Re: HTTP Status 500 - java.lang.NullPointerException

There is a very theoretical possibility that the request object is altered in 
another thread (and its session is nulled) between execution of lines
172 and 174.

There is also a possibility that the JSPWiki being run has been modified from 
the original source. However the previous lines in the stack trace match the 
released source code very well.

Finally, since this is a recent version of Tomcat, there is a possibility of a 
bug in Tomcat, especially if using unusual, advanced or recent features.

Can the bug reported provide the following information?

- Is the problem reproducible? Or did it happen only one?

- Is it the first time you use the workflow features, or did it work fine 
previously?

- Did the problem appear in production, under heavy load? Or did it appear in a 
lightly loaded test environment?

- Has this JSPWiki instance been in production for a long time? Has Tomcat been 
recently upgraded?

- What was the previous Tomcat version that was used to run JSPWiki?

- Was the JSPWiki source code modified in any way?

- Is there any special Tomcat configuration in place?

Regards,
Adrien
Le 24 févr. 2014 19:03, "Harry Metske" <harry.met...@gmail.com> a écrit :

> now that's a weird one, the failing line of code 
> (Preferences.java:174) is this :
>
>         Preferences prefs = 
> (Preferences)request.getSession().getAttribute(
> SESSIONPREFS );
>
> The request is sure not null because that is checked one line before 
> this one, so that means that getSession() retuns null, and that should 
> never happen according to the spec:
>
> http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequ
> est.html#getSession%28%29
>
> I googled around a bit, but only find old reports on this, for example
>
> http://freddebostrom.wordpress.com/2008/03/13/tomcat-55-getsession-ret
> urns-null/
>
> Anyone ideas ?
>
> regards,
> Harry
>
>
>
> On 24 February 2014 15:40, Petkevicius, Vitor 
> <vitor.petkevic...@atos.net
> >wrote:
>
> > I use the version 2.8.4, below error
> >
> > HTTP Status 500 - An exception occurred processing JSP page 
> > /Workflow.jsp at line 46
> >
> > type Exception report
> >
> > message An exception occurred processing JSP page /Workflow.jsp at 
> > line
> 46
> >
> > description The server encountered an internal error that prevented 
> > it from fulfilling this request.
> >
> > exception
> >
> > org.apache.jasper.JasperException: An exception occurred processing 
> > JSP page /Workflow.jsp at line 46
> >
> > 43:             if (d.getId() == id)
> > 44:             {
> > 45:               // Cool, we found it. Now make the decision.
> > 46:               dq.decide(d, outcome);
> > 47:             }
> > 48:           }
> > 49:         }
> >
> >
> > Stacktrace:
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ
> letWrapper.java:568)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
> java:470)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> >
> >
> com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java
> :174)
> >
> com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:111)
> > root cause
> >
> > java.lang.NullPointerException
> >
> >
> com.ecyrd.jspwiki.preferences.Preferences.getPreference(Preferences.ja
> va:174)
> >
> > com.ecyrd.jspwiki.preferences.Preferences.getLocale(Preferences.java:211)
> >         
> > com.ecyrd.jspwiki.WikiContext.getBundle(WikiContext.java:970)
> >
> >
> com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleHyperlinks(JSPWikiM
> arkupParser.java:1446)
> >
> >
> com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleOpenbracket(JSPWiki
> MarkupParser.java:2274)
> >
> >
> com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parseToken(JSPWikiMarkupP
> arser.java:2850)
> >
> >
> com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.fillBuffer(JSPWikiMarkupP
> arser.java:2649)
> >
> >
> com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parse(JSPWikiMarkupParser
> .java:2922)
> >
> >
> com.ecyrd.jspwiki.render.RenderingManager.getRenderedDocument(Renderin
> gManager.java:234)
> >
> >
> com.ecyrd.jspwiki.render.RenderingManager.getHTML(RenderingManager.jav
> a:315)
> >         
> > com.ecyrd.jspwiki.WikiEngine.textToHTML(WikiEngine.java:1516)
> >
> >
> com.ecyrd.jspwiki.PageManager$SaveWikiPageTask.execute(PageManager.jav
> a:760)
> >
> > com.ecyrd.jspwiki.workflow.Workflow.processCurrentStep(Workflow.java:766)
> >         com.ecyrd.jspwiki.workflow.Workflow.restart(Workflow.java:585)
> >         
> > com.ecyrd.jspwiki.workflow.Decision.decide(Decision.java:134)
> >
> > com.ecyrd.jspwiki.workflow.DecisionQueue.decide(DecisionQueue.java:145)
> >         
> > org.apache.jsp.Workflow_jsp._jspService(Workflow_jsp.java:128)
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
> java:432)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> >
> >
> com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java
> :174)
> >
> com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:111)
> > note The full stack trace of the root cause is available in the 
> > Apache
> > Tomcat/7.0.50 logs.
> >
> >
> > -----Original Message-----
> > From: Florian Holeczek [mailto:flori...@apache.org]
> > Sent: Thursday, February 13, 2014 6:58 PM
> > To: user@jspwiki.apache.org
> > Subject: Re: HTTP Status 500 - java.lang.NullPointerException
> >
> >
> > Hi Vitor,
> >
> > > When I try aproval a change in JSPWiki (workflow.jsp), i get a 
> > > HTTP
> > Status 500 - java.lang.NullPointerException error
> >
> > what do the logs tell?
> >
> > Regards
> >  Florian
> >
>

Reply via email to