Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Johannes Hipp
Liferay 6.0.1 on OC4J = Operation failed with error: java.lang.NullPointerE
April 27, 2010 3:54 AM
Answer

Johannes Hipp

Rank: Junior Member

Posts: 38

Join Date: February 6, 2010

Recent Posts

Hello,

have somebody deployed Liferay 6.0.1 successful on OC4J?

Version 5.2.3 is working fine,but when I try to deploy Version 6, I get this NullPoint error:
Operation failed with error: java.lang.NullPointerException

Thank you!

Best regards,
Johannes
Joeri De Haes
RE: Liferay 6.0.1 on OC4J = Operation failed with error: java.lang.NullPoin
May 4, 2010 1:36 AM
Answer

Joeri De Haes

Rank: New Member

Posts: 19

Join Date: June 21, 2007

Recent Posts

I got past that error by changing the webapp tag in the web.xml file to:
1<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">

Since, up until OC4J 10.1.3.5, the 2.5 web.xml standard ain't supported.

But I do get into trouble after that.

I'm getting JSP-0008 errors on the JSP's, stating that the Servlet output stream is null and that The Writer is closed...???
Johannes Hipp
RE: Liferay 6.0.1 on OC4J = Operation failed with error: java.lang.NullPoin
May 4, 2010 1:52 AM
Answer

Johannes Hipp

Rank: Junior Member

Posts: 38

Join Date: February 6, 2010

Recent Posts

Hmm I changed the web.xml and get this error now:

1
2Operation failed with error: Error creating bean with name 'messageListener.layouts_local_publisher' defined in class path resource [META-INF/messaging-misc-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.kernel.messaging.sender.MessageSender' while setting bean property 'responseSender'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.liferay.portal.kernel.messaging.sender.MessageSender' is defined
Joeri De Haes
RE: Liferay 6.0.1 on OC4J = Operation failed with error: java.lang.NullPoin
May 4, 2010 5:02 AM
Answer

Joeri De Haes

Rank: New Member

Posts: 19

Join Date: June 21, 2007

Recent Posts

Didn't have that problem... sry

I did try to get it running on an OC4J 10.1.3.5 and to get it working on there I did need to replace my xml parser as described here

But again got the bugging JSP-0008 notifications
stating the error:
  113:44:47,090 ERROR [InsertTag:922] ServletException in '/html/common/themes/portlet.jsp': The Writer is closed
  2javax.servlet.ServletException: The Writer is closed
  3        at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
  4        at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
  5        at _html._common._themes._portlet._jspService(_portlet.java:3298)
  6        at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
  7        at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:735)
  8        at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:425)
  9        at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
 10        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
 11        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 12        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
 13        at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:177)
 14        at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:68)
 15        at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:114)
 16        at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
 17        at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
 18        at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:456)
 19        at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:409)
 20        at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
 21        at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
 22        at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
 23        at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
 24        at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
 25        at _html._portal._render__portlet._jspService(_render__portlet.java:1772)
 26        at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
 27        at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
 28        at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
 29        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
 30        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 31        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
 32        at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:177)
 33        at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:68)
 34        at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:114)
 35        at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
 36        at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
 37        at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3415)
 38        at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1063)
 39        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:159)
 40        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:93)
 41        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:265)
 42        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:179)
 43        at _html._portal._layout._view._portlet._jspService(_portlet.java:734)
 44        at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
 45        at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:735)
 46        at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:425)
 47        at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
 48        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
 49        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 50        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
 51        at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:177)
 52        at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:68)
 53        at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:114)
 54        at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
 55        at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
 56        at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:338)
 57        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:595)
 58        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:217)
 59        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 60        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 61        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
 62        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 63        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 64        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 65        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:625)
 66        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:602)
 67        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 68        at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
 69        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 70        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
 71        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
 72        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 73        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
 74        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
 75        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 76        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:294)
 77        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
 78        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
 79        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 80        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
 81        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
 82        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 83        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
 84        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
 85        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
 86        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 87        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
 88        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
 89        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
 90        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
 91        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
 92        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
 93        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
 94        at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
 95        at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:308)
 96        at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
 97        at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
 98        at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
 99        at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
100        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:134)
101        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
102        at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
103        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
104        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
105        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
106        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
107        at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:47)
108        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
109        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
110        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
111        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
112        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
113        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
114        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:242)
115        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
116        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
117        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
118        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
119        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
120        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
121        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:128)
122        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
123        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
124        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
125        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
126        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
127        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
128        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
129        at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:213)
130        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
131        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
132        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
133        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
134        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
135        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
136        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:387)
137        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
138        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
139        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
140        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
141        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
142        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
143        at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
144        at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:308)
145        at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
146        at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
147        at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
148        at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
149        at com.liferay.portal.servlet.I18nServlet.service(I18nServlet.java:101)
150        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
151        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
152        at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
153        at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:308)
154        at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
155        at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
156        at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
157        at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
158        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:314)
159        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
160        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
161        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
162        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
163        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
164        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
165        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
166        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
167        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
168        at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
169        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
170        at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:37)
171        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
172        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
173        at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
174        at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
175        at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
176        at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
177        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
178        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
179        at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
180        at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
181        at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
182        at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
183        at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
184        at java.lang.Thread.run(Thread.java:619)


Any dev out there that can help us out?

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!