get null pointer exception while publishing portlet

When I try to Publish a portlet on the MWS, I get the following error. This is a very basic portlet having just a text box.

Publishing failed

There’s not quite enough information to recommend an approach.

Thanks Mark,
I will try that.

We seem to be facing the same issue. Was there a resolution to this? If so, could you please share?

You can email me at rahul.pahuja@softwareag.com

Thanks,
Rahul

Hi,
i’m getting the same problem when i’m trying to publish an application portlet project.


2014-04-30 18:10:52 GMT+01:00 ((Framework:INFO)  - wm_pghelpers DeployComponent-fileName: CAF_AnagraficaContati_2.war
2014-04-30 18:10:54 GMT+01:00 (Framework:INFO)  - wm_pghelpers DeployComponent-tempFile: C:\SoftwareAG\MWS\server\default\temp\temp_316851348\CAF_AnagraficaContati_2.war
2014-04-30 18:10:57 GMT+01:00 (Framework:INFO)  - Web Application destroyed: CAF_AnagraficaContati_2
2014-04-30 18:10:57 GMT+01:00 (Framework:INFO)  - unregisterPortletApplication: caf_anagraficacontati_2
2014-04-30 18:11:01 GMT+01:00 (javax.enterprise.resource.webcontainer.jsf.config:INFO)  - Initializing Mojarra (1.2_14-b01-FCS) for context '/caf_anagraficacontati_2'
2014-04-30 18:11:13 GMT+01:00 (Framework:INFO)  - Web Application initialized: CAF_AnagraficaContati_2
2014-04-30 18:11:13 GMT+01:00 (Framework:INFO)  - registerPortletApplication: caf_anagraficacontati_2
2014-04-30 18:11:15 GMT+01:00 (Framework:INFO)  - Initializing components of: caf_anagraficacontati_2
2014-04-30 18:11:28 GMT+01:00 (Framework:WARN)  - Caught throwable: 
java.lang.NullPointerException
	at com.webmethods.portal.system.impl.BaseProvider.getComponent(BaseProvider.java:236)
	at com.webmethods.portal.system.init.impl.DefaultPhase.getInitializable(DefaultPhase.java:141)
	at com.webmethods.portal.portlet.impl.wm_pghelpers.bizPolicy.command.DeployComponent.deployComponent(DeployComponent.java:108)
	at com.webmethods.portal.portlet.impl.wm_pghelpers.bizPolicy.command.DeployComponent.handle(DeployComponent.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.webmethods.portal.webservices.handlers.CommandProvider.invokeMethod(CommandProvider.java:240)
	at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
	at com.webmethods.portal.webservices.handlers.CommandProvider.processMessage(CommandProvider.java:199)
	at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
	at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
	at com.webmethods.portal.webservices.servlet.PortalAxisServlet.doPost(PortalAxisServlet.java:188)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at com.webmethods.portal.webservices.auth.BasicAuthFilter.doFilter(BasicAuthFilter.java:75)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

I’d recommend going through SoftwareG customer support. It can be tough to diagnose these issues over Forum posts.