Can not delete RAM asset
When we try to delete our assets, they always report the
error like "Argument Error: One or more parameters are null.". the exception : CRRAM0001E 270826979 ERROR pagecode.error.Error - java.lang.NullPointerException: Argument Error: One or more parameters are null. at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeAttribute(HtmlResponseWriter.java:240) at com.ibm.ram.repository.web.jsf.components.UIDojoWidget.encodeBegin(UIDojoWidget.java:63) at com.ibm.faces.renderkit.html_extended.Utils.encodeComponent(Utils.java:182) at com.ibm.faces.renderkit.html_extended.Utils.encodeChildren(Utils.java:172) at com.ibm.faces.component.UIJspPanel.encodeChildren(UIJspPanel.java:286) at com.ibm.faces.renderkit.html_extended.Utils.encodeComponent(Utils.java:184) at com.ibm.faces.renderkit.html_extended.Utils.encodeChildren(Utils.java:172) at com.ibm.faces.component.UIJspPanel.encodeChildren(UIJspPanel.java:286) at com.ibm.ram.repository.web.jsf.components.UIMessagesEx.encodeFacet(UIMessagesEx.java:198) at com.ibm.ram.repository.web.jsf.components.UIMessagesEx.writeMessageBlock(UIMessagesEx.java:275) at com.ibm.ram.repository.web.jsf.components.UIMessagesEx.encodeBegin(UIMessagesEx.java:166) at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:598) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:550) at com.ibm.ram.repository.web.jsf.tags.MessagesExTag.doEndTag(MessagesExTag.java:99) at com.ibm._jsp._generalDetails._jspx_meth_ram_messagesEx_3(_generalDetails.java:10700) at com.ibm._jsp._generalDetails._jspx_meth_hx_viewFragment_3(_generalDetails.java:10720) at com.ibm._jsp._generalDetails._jspx_meth_h_form_12(_generalDetails.java:16484) at com.ibm._jsp._generalDetails._jspService(_generalDetails.java:789) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 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:118) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) We must delete them again, then can successful. We have a defect for the first time delete asset always file. Our RAM version is 7.2.0.2 test fix 9fa. |
7 answers
What browser are you using?
|
What browser are you using? I tested with FireFox 3 and IE 7 & 8, all have this problem. |
What WAS level and WAS fix pack level are you using? Also, could you open a defect and attach your ramDebug.log file and SystemOut.log file?
https://jazz.net/jazz02/web/projects/Rational%20Asset%20Manager#action=com.ibm.team.workitem.newWorkItem&type=defect |
Our WAS server is 6.1.0.27, I have created a defect 58648 in the URL you mean, thank you.
|
Hi
Could you attach your ramDebug.log file and SystemOut.log file to the defect? We need these logs to diagnose the issue. Thanks. |
Hi,
We have a custom policy configured which checks for the type of asset being deleted.If it satisfies the condition then a error code along with a message is returned. The asset deletion does fail but does not show the message that is passed instead show an error saying one or more arguments are null. The code we use is something like : We check for template topologyand template service. Result status = new Result(this); if ((event.getAsset().getType().toLowerCase().trim() .contains(ASSET_TYPE_1)) || (event.getAsset().getType().toLowerCase().trim() .contains(ASSET_TYPE_2)) || (event.getAsset().getType().toLowerCase().trim() .contains(ASSET_TYPE_3))){ /*status.addDetail(new ResultDetail(ResultDetail.ERROR, RAM_DELETE_EXCEPTION));*/ log.debug("The asset cannot be deleted,hence return an error code"); status.setMessage(RAM_DELETE_EXCEPTION); status.setReturnCode(ResultDetail.ERROR); } |
I could not attach the logs here.
Pasting the exception from the ramDebug.log file : CRRAM0003I 188222245 DEBUG web com.ibm.ram.problems.admin.ProblemsAdminServiceImpl - Query - getProblemTrackingRepositoriesByTeamspace CRRAM0003I 188222250 DEBUG web com.ibm.ram.repository.lifecycle.AssetLifecycleManager - Asset Testdelete1 AssetLifecycleManager.getLifecycleBestMatch() took 3ms CRRAM0003I 188222258 DEBUG web com.ibm.ram.repository.lifecycle.LifecycleManager - Lifecycle New_LC AssetLifecycleManager.populateLifecycle() took 8ms CRRAM0003I 188222272 DEBUG web com.ibm.ram.repository.lifecycle.AssetLifecycleManager - Asset Testdelete1 fetch active state history took 11ms CRRAM0003I 188222343 DEBUG web com.ibm.ram.repository.lifecycle.AssetLifecycleManager - Asset Testdelete1 AssetLifecycleManager.getPopulatedStateHistory() took 70ms CRRAM0003I 188222344 DEBUG web com.ibm.ram.repository.lifecycle.AssetLifecycleManager - Asset Testdelete1 AssetLifecycleManager.getActiveStateHistory (including comments true) took 83ms CRRAM0001E 188222358 FATAL web com.ibm.ram.repository.web.jsf.tags.MessagesExTag - java.lang.NullPointerException: Argument Error: One or more parameters are null. CRRAM0001E 188222366 ERROR pagecode.error.Error - URL: https://usrdram012ccxra.ccmp.ibm.lab/cloud/enterprise/ram/error/errorJSP.jsp CRRAM0001E 188222366 ERROR pagecode.error.Error - java.lang.NullPointerException: Argument Error: One or more parameters are null. at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeAttribute(HtmlResponseWriter.java:240) at com.ibm.ram.repository.web.jsf.components.UIDojoWidget.encodeBegin(UIDojoWidget.java:63) at com.ibm.faces.renderkit.html_extended.Utils.encodeComponent(Utils.java:182) at com.ibm.faces.renderkit.html_extended.Utils.encodeChildren(Utils.java:172) at com.ibm.faces.component.UIJspPanel.encodeChildren(UIJspPanel.java:286) at com.ibm.faces.renderkit.html_extended.Utils.encodeComponent(Utils.java:184) at com.ibm.faces.renderkit.html_extended.Utils.encodeChildren(Utils.java:172) at com.ibm.faces.component.UIJspPanel.encodeChildren(UIJspPanel.java:286) at com.ibm.ram.repository.web.jsf.components.UIMessagesEx.encodeFacet(UIMessagesEx.java:198) at com.ibm.ram.repository.web.jsf.components.UIMessagesEx.writeMessageBlock(UIMessagesEx.java:275) at com.ibm.ram.repository.web.jsf.components.UIMessagesEx.encodeBegin(UIMessagesEx.java:166) at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:598) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:550) at com.ibm.ram.repository.web.jsf.tags.MessagesExTag.doEndTag(MessagesExTag.java:99) at com.ibm._jsp._generalDetails._jspx_meth_ram_messagesEx_3(_generalDetails.java:10700) at com.ibm._jsp._generalDetails._jspx_meth_hx_viewFragment_3(_generalDetails.java:10720) at com.ibm._jsp._generalDetails._jspx_meth_h_form_12(_generalDetails.java:16484) at com.ibm._jsp._generalDetails._jspService(_generalDetails.java:789) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:248) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:264) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154) 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:45) 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:848) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102) at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1830) 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:1551) |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.