我遇到了重定向到jsp页面的问题。
<portlet:renderURL var="DLMSnewSearch">
<portlet:param name="mvcPath" value="/view.jsp" />
</portlet:renderURL>
<p>
<a href="<%=DLMSnewSearch%>">← New Search</a>
</p>
Eclipse抛出警告:未找到“/view.jsp”。
抛出异常:
00:38:09,048 ERROR [http-bio-8080-exec-140][render_portlet_jsp:132] null
java.lang.NullPointerException
at org.apache.jsp.view_jsp._jspService(view_jsp.java:716)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:331)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:112)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:371)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:387)
一直有效,直到我重新安装了我的Linux Mint并从现有源添加了Liferay项目......这是我从之前的Mint保存的备份。 提前谢谢。
答案 0 :(得分:2)
由于您使用Eclipse IDE为Liferay开发,我相信以下内容将适用。您可以通过跟踪此错误跟踪器来获取该软件的修补程序,或者等待将其合并到滚动版本中。
JIRA issue: IDE-1855 - The jsp tag "param" has incorrect validation
Eclipse Java IDE
听起来你受到Liferay软件中已知错误的影响。通过在IDE中执行以下步骤来解决此问题: