Hi, we had a similar issue at work, on a clustered environment with the apache front-end not mantaining sessions, and our app not being configured to mantain the session through all the cluster's members. We workarounded it by using some weblogic propietary configuration, but maybe something similar is happening here? Vitor, could you describe your deployment environment?
br, juan pablo On Tue, Feb 25, 2014 at 8:15 AM, Adrien Beau <adrienb...@gmail.com> wrote: > 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/HttpServletRequest.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-returns-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(JspServletWrapper.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.java:174) > > > > > > > com.ecyrd.jspwiki.preferences.Preferences.getLocale(Preferences.java:211) > > > com.ecyrd.jspwiki.WikiContext.getBundle(WikiContext.java:970) > > > > > > > > > com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleHyperlinks(JSPWikiMarkupParser.java:1446) > > > > > > > > > com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleOpenbracket(JSPWikiMarkupParser.java:2274) > > > > > > > > > com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parseToken(JSPWikiMarkupParser.java:2850) > > > > > > > > > com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.fillBuffer(JSPWikiMarkupParser.java:2649) > > > > > > > > > com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parse(JSPWikiMarkupParser.java:2922) > > > > > > > > > com.ecyrd.jspwiki.render.RenderingManager.getRenderedDocument(RenderingManager.java:234) > > > > > > > > > com.ecyrd.jspwiki.render.RenderingManager.getHTML(RenderingManager.java:315) > > > com.ecyrd.jspwiki.WikiEngine.textToHTML(WikiEngine.java:1516) > > > > > > > > > com.ecyrd.jspwiki.PageManager$SaveWikiPageTask.execute(PageManager.java: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 > > > > > >