It's all about the answers!

Ask a question

Error when saving Asset


EclipseTalk . (32735654) | asked May 04 '10, 5:48 p.m.
Hello,
I'm getting an error when I save an Asset using RAM 7.2. Below is the call stack. Does anyone know what's happening?
Note that the asset is saved despite that error.
Thanks

javax.faces.FacesException: #{submitAssetHandler.doFinishAction}: javax.faces.el.EvaluationException: com.ibm.ram.common.data.exception.RAMRuntimeException: java.lang.NullPointerException

at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:302)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:419)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1152)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.ibm.ram.repository.web.security.RAMServletFilter.doFilter(RAMServletFilter.java:418)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ram.repository.web.filters.GZipFilter.doFilter(GZipFilter.java:42)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: javax.faces.el.EvaluationException: com.ibm.ram.common.data.exception.RAMRuntimeException: java.lang.NullPointerException
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:131)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:73)
... 36 more
Caused by: com.ibm.ram.common.data.exception.RAMRuntimeException: java.lang.NullPointerException
at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.getActiveStateHistory(AssetLifecycleManager.java:1414)
at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.getActiveStateHistory(AssetLifecycleManager.java:1370)
at com.ibm.ram.repository.rest.RestUtils.copy(RestUtils.java:415)
at com.ibm.ram.repository.rest.RestUtils.getAsset(RestUtils.java:257)
at com.ibm.ram.repository.assets.AssetManager.primUpdateAssetWithState(AssetManager.java:3528)
at com.ibm.ram.repository.assets.AssetManager.updateAssetWithState(AssetManager.java:3345)
at com.ibm.ram.repository.assets.AssetManager.updateAsset(AssetManager.java:3318)
at com.ibm.ram.repository.assets.AssetManager.updateAsset(AssetManager.java:3292)
at com.ibm.ram.repository.web.upload.SubmitAssetHandler.uploadAsset(SubmitAssetHandler.java:243)
at com.ibm.ram.repository.web.upload.SubmitAssetHandler.doFinishAction(SubmitAssetHandler.java:845)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:127)
... 37 more
Caused by: java.lang.NullPointerException
at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.getJazzLifecycleHandle(AssetLifecycleManager.java:1831)
at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.getActiveStateHistory(AssetLifecycleManager.java:1400)
... 51 more

4 answers



permanent link
EclipseTalk . (32735654) | answered May 05 '10, 2:17 p.m.
Thanks for the update. I'm not using the lifecycle, simply saving an asset within a comunity with type and category.

permanent link
Kevin Bauer (34621) | answered May 05 '10, 11:49 a.m.
JAZZ DEVELOPER
It looks like we are not able to find and existing life cycle for this asset when you save it (does that make sense would you have expected this asset to be within a lifecycle when you made the update)?

We were expecting a different exception when this occurred so we are printing the NPE to the console and moving forward with the update.

If this asset was not in a lifecycle this is a benign exception, if you were you would loose the history of this asset when this occurs.

permanent link
m sawires (1462268) | answered May 05 '10, 10:54 a.m.
Thanks for the reply - I'm using the latest 7.2.0.2

permanent link
Kevin Bauer (34621) | answered May 05 '10, 10:46 a.m.
JAZZ DEVELOPER
What version of RAM 7.2 are you using 7.2.0.0, 7.2.0.1 or 7.2.0.2 (of course we would recommend that you step up to 7.2.0.2 if that is not what you are using). I need to know so I can match the stack up with code.

Your answer


Register or to post your answer.