-
1. Re: NullPointer when executing JSP compiled page on JBoss AS
vickyk May 25, 2009 11:55 PM (in response to spagobi)"spagobi" wrote:
I get the following error when executing a JSP compiled page in JBoss AS 5.0.1 (never got in JBoss 4.x) :
Paste the contents of the simple sample jsp here which will simulate the issue. -
2. Re: NullPointer when executing JSP compiled page on JBoss AS
egwada Jun 7, 2009 11:00 AM (in response to spagobi)Hi All!
Just to contribute on this trouble. The exception come from the call of a spapbi tag :<spagobiwa:userMenu viewTrackPath='<%=viewTrackPath%>'/>
The generated java codes are :// spagobiwa:userMenu it.eng.spagobi.commons.presentation.tags.UserMenuTag _jspx_th_spagobiwa_005fuserMenu_005f0 = (new it.eng.spagobi.commons.presentation.tags.UserMenuTag()); _jsp_instancemanager.newInstance(_jspx_th_spagobiwa_005fuserMenu_005f0); _jspx_th_spagobiwa_005fuserMenu_005f0.setPageContext(_jspx_page_context); _jspx_th_spagobiwa_005fuserMenu_005f0.setParent(null); // /WEB-INF/jsp/wapp/home.jsp(569,2) name = viewTrackPath type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_spagobiwa_005fuserMenu_005f0.setViewTrackPath(viewTrackPath); int _jspx_eval_spagobiwa_005fuserMenu_005f0 = _jspx_th_spagobiwa_005fuserMenu_005f0.doStartTag(); if (_jspx_th_spagobiwa_005fuserMenu_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _jspx_th_spagobiwa_005fuserMenu_005f0.release(); _jsp_instancemanager.destroyInstance(_jspx_th_spagobiwa_005fuserMenu_005f0); return; } _jspx_th_spagobiwa_005fuserMenu_005f0.release(); _jsp_instancemanager.destroyInstance(_jspx_th_spagobiwa_005fuserMenu_005f0);
I hope that can help you to imagine what happen. I try to find the code of the SpagoBI tag libray to put it here.
Best regards. -
3. Re: NullPointer when executing JSP compiled page on JBoss AS 5.0
jsipher Apr 16, 2010 2:39 PM (in response to spagobi)I ran into this upgrading from 4.2.3 to 5.1.0. The problem pages all extend a common base class, and I changed the base class's jspInit() method to to check whether there's a _jspInit() method and, if so, call it.
public void jspInit() { try { Method _jspInit = this.getClass().getMethod("_jspInit", (Class[])null); try { _jspInit.invoke(this, (Object[])null); } catch (Exception e) { _log.error("Exception invoking _jspInit",e); } } catch (NoSuchMethodException ignored) { } }
It doesn't seem like I should need to do that, and I'd appreciate knowing the "correct" fix if anyone knows what it is.