Topic
  • 1 reply
  • Latest Post - ‏2008-05-07T13:23:59Z by SystemAdmin
Raj_Mahalle
Raj_Mahalle
2 Posts

Pinned topic Null PointerException: Deploying Portlet Factory War bundled in EAR:on ClusteredEnvironment

‏2007-07-17T04:56:30Z |
Hi,

PFB the detailed explanation of the problem currently faced:

This is regarding the deployment of Portlet Factory Portlet on a clustered environment.

For deploying on the cluster the PF project has been exported WAR which is bundled into an EAR.

Following are the steps followed for constructing the EAR and deploying the same:
1. A build script was constructed using buildDeployment.xml present in WEB-INF\bin\deployment folder as the base to work on
2. The build script first compiles the source files and then constructs a WAR file
3. Next step is; it bundles the WAR file into the EAR.
4. The ear is then deployed on the WebSphere_Portal instance through the administrative console
5. We then run an xmlaccess script for registering the pre-deployed EAR
6. The portlet (present in the EAR) is placed on a page through the Portal UI.

Issues:
1. On accessing the page it shows the defaultErrorPage.jsp. (indicates that an error has occurred in the PF portlet)
2. On checking the logs we encounter the following exception and we are not using the FileUpload any where in our code
java.lang.NullPointerException
at org.apache.commons.fileupload.FileUploadBase.isMultipartContent(FileUploadBase.java:96)
at com.bowstreet.webapp.engine.WebAppRunner.isMultipartRequest(WebAppRunner.java:1377)
at com.bowstreet.portlet.adapter.WebAppRunnerPortlet.createRequestInputs(WebAppRunnerPortlet.java:1614)
at com.bowstreet.portlet.adapter.WebAppRunnerPortlet.runModel(WebAppRunnerPortlet.java:1332)
at com.bowstreet.portlet.adapter.WebAppRunnerPortlet.runModel(WebAppRunnerPortlet.java:1293)
at com.bowstreet.portlet.adapter.WebAppRunnerPortlet.runModel(WebAppRunnerPortlet.java:1265)
at com.bowstreet.portlet.adapter.WebAppRunnerPortlet.processAction(WebAppRunnerPortlet.java:323)
at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:104)
at com.ibm.wps.propertybroker.standard.filter.PropertyBrokerActionFilter.processAction(PropertyBrokerActionFilter.java:261)
at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:95)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.dispatch(PortletServlet.java:148)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.doPost(PortletServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.wps.pe.pc.std.cache.CacheablePortlet.service(CacheablePortlet.java:393)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.wps.pe.om.definition.impl.ServletDefinitionImpl$RDWrapper.include(ServletDefinitionImpl.java(Compiled Code))
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:204)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:82)
at com.ibm.wps.pe.pc.std.event.ActionEvent.execute(ActionEvent.java:114)
at com.ibm.wps.pe.pc.std.event.EventQueueManager.processEventLoop(EventQueueManager.java:86)
at com.ibm.wps.pe.pc.std.PortletContainerImpl.performEvents(PortletContainerImpl.java:168)
at com.ibm.wps.pe.pc.PortletContainerImpl.performEvents(PortletContainerImpl.java(Compiled Code))
at com.ibm.wps.engine.phases.WPActionPhase.processPortlets(WPActionPhase.java:889)
at com.ibm.wps.engine.phases.WPActionPhase.execute(WPActionPhase.java:487)
at com.ibm.wps.state.phases.AbstractActionPhase.next(AbstractActionPhase.java:130)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:788)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java(Compiled Code))
at com.ibm.wps.engine.Servlet.doPost(Servlet.java:814)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:86)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:257)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java(Compiled Code))
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
We are not using any fileupload builder in our code. If we deploy manually the WAR file it works fine.

Observations:
1. Error indicates a problem with the fileUploadBase.java present in commons-fileUpload.jar.( Could you please indicate where the PF application uses this)
2. On just deploying the WAR no issues are encountered. The portlet works fine

PFA the application.xml present in the META-INF folder of the ear. Is there any other structure of application.xml used for PF ears?
Thanks And Regards,
Rajesh
Updated on 2008-05-07T13:23:59Z at 2008-05-07T13:23:59Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    895 Posts

    Re: Null PointerException: Deploying Portlet Factory War bundled in EAR:on ClusteredEnvironment

    ‏2008-05-07T13:23:59Z  
    Hi Rajesh,

    Did you ever find out a solution to this issue. I'm facing the same issue.

    Thanks,

    Rama.