Liferay输入Edtior投掷错误(__ckeditor.java:827)

时间:2015-12-01 00:47:23

标签: configuration liferay-6 maven-plugin weblogic12c liferay-aui

我是liferay portlets的新手。我在liferay-ui面临一个奇怪的问题:输入编辑器。 我的环境,

  • Liferay 6.2 CE
  • 的Maven
  • Weblogic 12c

我有一个工作的portlet,它有一个configuration.jsp来配置一些内容。如果我通过复制到liferayAuto文件夹使用自动部署部署portlet,则portlet可以正常工作。但是当我手动部署预处理时,每当我尝试打开配置时,我都会收到以下错误。问题在于liferay-ui:输入编辑器,因为它在删除标签时工作正常。以下是错误。

java.lang.NullPointerException
        at jsp_servlet._html._js._editor.__ckeditor._jspService(__ckeditor.java:827)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:119)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:588)
        at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:481)
        at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
        at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
        at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
        at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
        at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)

在__ckeditor.java中,第827行显示了这个,

doAsGroupId = (Long)request.getAttribute("liferay-ui:input-editor:groupId");}

非常感谢任何帮助...

1 个答案:

答案 0 :(得分:0)

在configuration.jsp中添加<liferay-theme:defineObjects />解决了这个问题。