Jsp在IBM Websphere 8.5中遇到complie time错误

时间:2018-11-28 11:24:30

标签: java jsp servlets websphere websphere-8

我的jsp突然出现编译时错误。在它完美运行之前的几天,它的行为突然变得怪异。我收到以下错误。它发生在我的生产系统中

JSPG0091E: An error occurred at line: 414 in the file: /signOff.jsp
JSPG0093E: Generated servlet error from file: /signOff.jsp 

/apps/wbr/was/8.5/profiles/as/temp/apvra00a0037_as/ 1PPA_PnP_Cluster_apvra00a0037_as/ appOne/ testOne.war/_signOff.java : 504 : Syntax error, insert ")" to complete MethodInvocation

JSPG0091E: An error occurred at line: 414 in the file: /signOff.jsp
JSPG0093E: Generated servlet error from file: /signOff.jsp 

/apps/wbr/was/8.5/profiles/as/temp/apvra00a0037_as/ 1PPA_PnP_Cluster_apvra00a0037_as/appOne/testOne.war/_signOff.java : 504 : Syntax error, insert ";" to complete Statement

at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:616)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:477)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:298)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:498)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.getServletWrapper(AbstractJSPExtensionProcessor.java:338)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1010)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4047)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:213)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)

这是我的jsp代码,其中显示错误 enter image description here

2 个答案:

答案 0 :(得分:1)

如果它刚开始时没有任何代码更改,那么我猜您的WebSphere版本已更新-也许已应用修订包-现在正在对某些内容进行更严格的检查。

我还将尝试更改JSP,以将整个scriptlet表达式放在一行上。即<%= your-variable %>。我现在无法找到是否必须在一行上的任何陈述,但是我发现的所有示例都是这种方式,并且我肯定已经看到WebSphere在应用诸如修订包之类的事情上变得更加严格。

您也可以尝试从配置文件目录的temp目录(例如/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/temp/...)中删除已编译的JSP文件,以强制重新编译。

答案 1 :(得分:0)

删除java scriplet代码之间的注释行后,问题已解决。像这样的<%versionProcess.getProcessNextVesrion(pn)%>