<jsp:param>抛出NullPointerException </jsp:param>

时间:2014-07-21 12:32:17

标签: java jsp nullpointerexception weblogic jsp-tags

我在Weblogic Server中获取NullPointerException,同时在jsp中更改以下更改:

    <jsp:include page="Nav.jspx">
        <jsp:param name="invoiceType" value="${invoiceTypeLong}"/>
        <jsp:param name="current" value="Header"/>
    </jsp:include>

我已经给出了将上述代码修改为下面提到的安全实现代码的说明。两个代码片段在tomcat中工作正常,但是下面提到的weblogic代码给出了NullPointerException。

   <jsp:include page="Nav.jspx">
        <jsp:param name="invoiceType"> 
            <jsp:attribute name="value"> 
               <c:out value="${invoiceTypeLong}"/> 
            </jsp:attribute> 
         </jsp:param>
        <jsp:param name="current" value="Header"/>
    </jsp:include>

如果我需要更改任何配置文件或原因是什么,有人可以建议我吗?

异常StackTrace:

2014-07-21 05:13:38.861 0       Error   Exception          weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/ml/jsp/Invoice/INVOICE/Header.jspx
 Exception occurred while processing 'C:\Views\spambi_64view\GC3\WEB-INF\ml\jsp\Invoice\INVOICE\Header.jspx'java.lang.NullPointerException
    at weblogic.jsp.internal.jsp.JspScriptTransform$TransformContext.addTokens(JspScriptTransform.java:2408)
    at weblogic.jsp.internal.jsp.JspJavaTransform.addParamTag(JspJavaTransform.java:1100)
    at weblogic.jsp.internal.jsp.JspJavaTransform.addActionBefore(JspJavaTransform.java:171)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAction(JspScriptTransform.java:1194)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAll(JspScriptTransform.java:750)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAction(JspScriptTransform.java:1207)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAll(JspScriptTransform.java:750)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAction(JspScriptTransform.java:1425)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAll(JspScriptTransform.java:750)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAction(JspScriptTransform.java:1122)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformAll(JspScriptTransform.java:750)
    at weblogic.jsp.internal.jsp.JspScriptTransform.addJspService(JspScriptTransform.java:221)
    at weblogic.jsp.internal.jsp.JspScriptTransform.transformPage(JspScriptTransform.java:178)
    at weblogic.jsp.internal.jsp.JspScriptTransform.<init>(JspScriptTransform.java:153)
    at weblogic.jsp.internal.jsp.JspCheckContext.check(JspCheckContext.java:82)
    at weblogic.jsp.internal.jsp.JspAnalyzer.check(JspAnalyzer.java:57)
    at weblogic.jsp.internal.ProxySourceFile._check(ProxySourceFile.java:140)
    at weblogic.jsp.internal.SourceFile.masterCheck(SourceFile.java:782)
    at weblogic.jsp.internal.SourceFile.check(SourceFile.java:314)
    at weblogic.jsp.internal.SourceFile.check(SourceFile.java:335)
    at weblogic.jsp.internal.ProxySourceFile.codeGen(ProxySourceFile.java:229)
    at weblogic.jsp.internal.SourceFile.codeGen(SourceFile.java:327)
    at weblogic.jsp.internal.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:622)
    at weblogic.jsp.internal.client.Job.performJob(Job.java:85)
    at weblogic.jsp.internal.client.ThreadPool$WorkerThread.run(ThreadPool.java:219)
Header.jspx: java.lang.NullPointerException 

0 个答案:

没有答案