Error "java.Lang.Nullpointerexception" When Attempting to Run a Process Extension to Update Affected Items (Doc ID 1918059.1)

Last updated on JANUARY 24, 2016

Applies to:

Oracle Agile Product Collaboration - Version 9.3.1.2 to 9.3.3.0 [Release 9.3]
Oracle Agile PLM Framework - Version 9.3.1.2 to 9.3.3.0 [Release 9.3]
Information in this document applies to any platform.
***Checked for relevance on 25-Jan-2016***

Symptoms

On : 9.3.1.2 version, SDK (PC)

When attempting to run a Process Extension to update Affected Items, the following error occurs.

ERROR
-----------------------
java.lang.NullPointerException
at com.xxxx.Release.RestrictItemInPendingChange.getAffectedItempendingChangeTable(RestrictItemInPendingChange.java:182)
at com.xxxx.Release.RestrictItemInPendingChange.doAction(RestrictItemInPendingChange.java:128)
at com.agile.px.Extensions2$PXEventActionNode.invoke(Extensions2.java:746)
at com.agile.px.Extensions2.doCustomPXEvent(Extensions2.java:541)
at com.agile.px.Extensions2.invokeAction(Extensions2.java:247)
at com.agile.px.PxSessionBean.invokeAction(PxSessionBean.java:117)
at com.agile.px.com_agile_px_PxSession_l8vd22_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:32)
at com.agile.px.com_agile_px_PxSession_l8vd22_EOImpl.invokeAction(Unknown Source)
at com.agile.soa.event.handler.PXInitiator.invoke(PXInitiator.java:102)
at com.agile.soa.event.handler.PXInitiator.invoke(PXInitiator.java:64)
at com.agile.soa.event.eventmgr.EventMgr.invokeEventHandlers(EventMgr.java:257)
at com.agile.soa.event.eventmgr.EventMgrSessionBean.sendEvent(EventMgrSessionBean.java:119)
at com.agile.soa.event.eventmgr.EventMgrSessionBean_naafhr_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:32)
at com.agile.soa.event.eventmgr.EventMgrSessionBean_naafhr_EOImpl.sendEvent(Unknown Source)
at com.agile.soa.event.eventmgr.EventUtil.sendEvent(EventUtil.java:73)
at com.agile.soa.event.eventmgr.EventUtil.sendEvent(EventUtil.java:99)
at com.agile.soa.event.eventmgr.EventUtil.sendUpdateTableEvent(EventUtil.java:499)
at com.agile.soa.event.eventmgr.EventUtil.sendUpdateTableEvent(EventUtil.java:474)
at com.agile.pc.cmserver.base.CMSessionBean.triggerUpdateTableEvent(CMSessionBean.java:9236)
at com.agile.pc.cmserver.change.ChangeSessionBean.addToAI(ChangeSessionBean.java:701)
at com.agile.pc.cmserver.change.ChangeSessionBean.singleAssmblyDoBulkChangeBomCombined(ChangeSessionBean.java:648)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.__WL_invoke_2(Unknown Source)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.__WL_invoke_1(Unknown Source)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:32)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.singleAssmblyDoBulkChangeBomCombined(Unknown Source)
at com.agile.pc.cmserver.base.CMSessionBean.bulkChangesBOMCombined(CMSessionBean.java:8645)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.__WL_invoke_2(Unknown Source)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.__WL_invoke_1(Unknown Source)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:32)
at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.bulkChangesBOMCombined(Unknown Source)
at com.agile.ipa.pc.CMChange.bulkChangesBOMCombined(CMChange.java:563)
at com.agile.ui.pcm.change.IdentifyAssembliesForBomStep.leaving(IdentifyAssembliesForBomStep.java:297)
at com.agile.ui.web.wizard.WizardHandler.finish(WizardHandler.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.agile.ui.web.action.ActionServlet.invokeMethod(ActionServlet.java:1072)
at com.agile.ui.web.action.ActionServlet.handleRequest(ActionServlet.java:676)
at com.agile.ui.web.action.ActionServlet.doPost(ActionServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.agile.ui.pcm.common.filter.RemoteFSRequestFilter.doFilter(RemoteFSRequestFilter.java:148)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.agile.ui.web.filter.LoggingFilter.doFilter(LoggingFilter.java:108)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.agile.ui.pcm.common.filter.WebClientLog.doFilter(WebClientLog.java:79)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.jspbook.GZIPFilter.doFilter(GZIPFilter.java:21)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.agile.ui.pcm.common.filter.SSOTicketFilter.doFilter(SSOTicketFilter.java:89)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.agile.ui.pcm.common.filter.WebSecurityFilter.doFilter(WebSecurityFilter.java:166)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:


1. Create a Java Process Extension (PX) to update Affected Items
2. Error when PX runs


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms