Nullpointer Exception while look up: URGENT!!!! - Websphere

This is a discussion on Nullpointer Exception while look up: URGENT!!!! - Websphere ; Hi, We are getting the following null pointer excption while trying to get the pageId from page unique name. {code} java.lang.NullPointerException at com.aig.ci.utils.CIExternalPortalUtility.getPageDe fId(CIExternalPortalUtility.java:177) at com.aig.ci.utils.CIExternalPortalUtility.createPag eURL(CIExternalPortalUtility.java:149) at pagecode.testportlet.TestPortletView.getProducerCo desBroker(EComAdminView.java:440) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Nullpointer Exception while look up: URGENT!!!!

  1. Nullpointer Exception while look up: URGENT!!!!

    Hi,
    We are getting the following null pointer excption while trying to get the pageId from page unique name.
    {code}
    java.lang.NullPointerException
    at com.aig.ci.utils.CIExternalPortalUtility.getPageDe fId(CIExternalPortalUtility.java:177)
    at com.aig.ci.utils.CIExternalPortalUtility.createPag eURL(CIExternalPortalUtility.java:149)
    at pagecode.testportlet.TestPortletView.getProducerCo desBroker(EComAdminView.java:440)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.faces.el.MethodBindingImpl.invoke(MethodBi ndingImpl.java:127)
    at com.sun.faces.application.ActionListenerImpl.proce ssAction(ActionListenerImpl.java:73)
    at javax.faces.component.UICommand.broadcast(UIComman d.java:312)
    at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:302)
    at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:419)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.exe cute(InvokeApplicationPhase.java:77)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(Lifecy cleImpl.java:220)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(Life cycleImpl.java:91)
    at com.ibm.faces.portlet.FacesPortlet.processAction(F acesPortlet.java:161)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletFi lterChainImpl.doFilter(PortletFilterChainImpl.java :77)
    at com.ibm.wps.propertybroker.standard.filter.Propert yBrokerActionFilter.doFilter(PropertyBrokerActionF ilter.java:731)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletFi lterChainImpl.doFilter(PortletFilterChainImpl.java :69)
    at com.ibm.wps.propertybroker.standard.filter.C2APort letFilter.doFilter(C2APortletFilter.java:166)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletFi lterChainImpl.doFilter(PortletFilterChainImpl.java :69)
    at com.ibm.wps.engine.dpr.portlet.impl.ProcessActionM emoFilter.doFilter(ProcessActionMemoFilter.java:88 )
    at com.ibm.ws.portletcontainer.invoker.impl.PortletFi lterChainImpl.doFilter(PortletFilterChainImpl.java :69)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.doDispatch(PortletServlet.java:527)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:114)
    at com.ibm.ws.portletcontainer.rrd.RRDServerPortletSe rvletCollaborator.doAction(RRDServerPortletServlet Collaborator.java:117)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:101)
    at com.ibm.ws.portletcontainer.cache.CacheCollaborato r.doAction(CacheCollaborator.java:84)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:101)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCo llaboratorImpl.doAction(PortletServletCollaborator Impl.java:146)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:101)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.doDispatch(PortletServlet.java:301)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:82)
    at com.ibm.ws.portletcontainer.rrd.RRDServerPortletSe rvletCollaborator.doDispatch(RRDServerPortletServl etCollaborator.java:60)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
    at com.ibm.ws.portletcontainer.cache.CacheCollaborato r.doDispatch(CacheCollaborator.java:74)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCo llaboratorImpl.doDispatch(PortletServletCollaborat orImpl.java:121)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.dispatch(PortletServlet.java:208)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.service(PortletServlet.java:165)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1095)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1036)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:118)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:832)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:679)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:565)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletW rapper.handleRequest(GenericServletWrapper.java:12 2)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.include(WebAppRequestDispatcher.java:639)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerImpl.invoke(PortletInvokerImpl.java:235)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerCollaboratorChainImpl.doCollaborator(PortletI nvokerCollaboratorChainImpl.java:76)
    at com.ibm.ws.portletcontainer.cache.PortletInvokerCa cheCollaborator.doAction(PortletInvokerCacheCollab orator.java:50)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerCollaboratorChainImpl.doCollaborator(PortletI nvokerCollaboratorChainImpl.java:65)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.invoke(PortletInvokerPerforman ceCollaborator.java:313)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.doInvoke(PortletInvokerPerform anceCollaborator.java:101)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.invokePMI(PortletInvokerPerfor manceCollaborator.java:163)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.doInvoke(PortletInvokerPerform anceCollaborator.java:91)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.doAction(PortletInvokerPerform anceCollaborator.java:62)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerCollaboratorChainImpl.doCollaborator(PortletI nvokerCollaboratorChainImpl.java:65)
    at com.ibm.ws.portletcontainer.cache.PortletInvokerCa cheCollaborator.doAction(PortletInvokerCacheCollab orator.java:50)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerCollaboratorChainImpl.doCollaborator(PortletI nvokerCollaboratorChainImpl.java:65)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.invoke(PortletInvokerPerforman ceCollaborator.java:313)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.doInvoke(PortletInvokerPerform anceCollaborator.java:101)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.invokePMI(PortletInvokerPerfor manceCollaborator.java:163)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.doInvoke(PortletInvokerPerform anceCollaborator.java:91)
    at com.ibm.ws.portletcontainer.ext.PortletInvokerPerf ormanceCollaborator.doAction(PortletInvokerPerform anceCollaborator.java:62)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerCollaboratorChainImpl.doCollaborator(PortletI nvokerCollaboratorChainImpl.java:65)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletIn vokerImpl.action(PortletInvokerImpl.java:77)
    at com.ibm.ws.portletcontainer.PortletContainerImpl.d oAction(PortletContainerImpl.java:186)
    at com.ibm.ws.portletcontainer.PortletContainerInvoke rCollaboratorChainImpl.doCollaborator(PortletConta inerInvokerCollaboratorChainImpl.java:78)
    at com.ibm.ws.portletcontainer.ext.ExtCollaborator.do Action(ExtCollaborator.java:54)
    at com.ibm.ws.portletcontainer.PortletContainerInvoke rCollaboratorChainImpl.doCollaborator(PortletConta inerInvokerCollaboratorChainImpl.java:65)
    at com.ibm.ws.portletcontainer.cache.CacheInvokerColl aborator.doAction(CacheInvokerCollaborator.java:76 )
    at com.ibm.ws.portletcontainer.PortletContainerInvoke rCollaboratorChainImpl.doCollaborator(PortletConta inerInvokerCollaboratorChainImpl.java:65)
    at com.ibm.ws.portletcontainer.PortletContainerImpl.p rocessPortletAction(PortletContainerImpl.java:152)
    at com.ibm.ws.portletcontainer.pcinvoker.PortletInvok erImpl$1.run(PortletInvokerImpl.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.ibm.ws.portletcontainer.pcinvoker.PortletInvok erImpl.invokeProcessAction(PortletInvokerImpl.java :55)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerIm pl$3.invoke(PortletInvokerImpl.java:116)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerIm pl.invoke(PortletInvokerImpl.java:176)
    at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerIm pl.invokeProcessAction(PortletInvokerImpl.java:114 )
    at com.ibm.wps.pe.pc.waspc.event.ActionEvent.execute( ActionEvent.java:78)
    at com.ibm.wps.pe.pc.waspc.event.EventQueueManager.pr ocessEventLoop(EventQueueManager.java:112)
    at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.perfo rmEvents(PortletContainerImpl.java:206)
    at com.ibm.wps.pe.pc.PortletContainerImpl.performEven ts(PortletContainerImpl.java:298)
    at com.ibm.wps.engine.phases.WPActionPhase.processPor tlets(WPActionPhase.java:2505)
    at com.ibm.wps.engine.phases.WPActionPhase.execute(WP ActionPhase.java:694)
    at com.ibm.wps.state.phases.AbstractActionPhase.next( AbstractActionPhase.java:130)
    at com.ibm.wps.engine.Servlet.callPortal(Servlet.java :801)
    at com.ibm.wps.engine.Servlet.doGet(Servlet.java:608)
    at com.ibm.wps.engine.Servlet.doPost(Servlet.java:834 )
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:1 188)
    at com.ibm.wps.resolver.servlet.ContentHandlerCleanup .doFilter(ContentHandlerCleanup.java:648)
    at com.ibm.wps.resolver.servlet.AbstractFilter.doFilt er(AbstractFilter.java:82)
    at com.ibm.wps.engine.Servlet.service(Servlet.java:11 79)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1095)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1036)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:145)
    at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(E xtendedLocaleFilter.java:113)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at com.ibm.wps.resolver.friendly.servlet.FriendlySele ctionFilter.doFilter(FriendlySelectionFilter.java: 191)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(U RLAnalyzer.java:365)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at com.ibm.wps.engine.VirtualPortalFilter.doFilter(Vi rtualPortalFilter.java:88)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at com.ibm.wps.state.filter.StateCleanup.doFilter(Sta teCleanup.java:89)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:832)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:679)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:565)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3440)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:267)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:815)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1461)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:118)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.java:267)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscriminators(NewConnectionIniti alReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewConnectionInitialReadCallba ck.java:113)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
    {code}
    I';ve attached the source code. The exception is at line 65 of the attached text.
    This is a very urgent requriement. Can someone please help me.

    Thanks in advance.

  2. Re: Nullpointer Exception while look up: URGENT!!!!

    That was a NPE which was not handled in the code. What confused us is the error occurred only for basic users and not for administrators. It is solved now.

+ Reply to Thread