It's all about the answers!

Ask a question

Change asset status to archieve not work


pan tianming (4765644) | asked Oct 11 '12, 10:17 p.m.
We created a defect before for archieve problem on RAM 7202:
(https://jazz.net/jazz02/web/projects/Rational%20Asset%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=62734)

Right now we have upgraded to RAM 7511, after testing with following codes:

            asset.setAction(RAMAction.RETIRE);
            session.put(asset, new RAMStatusMonitor());
            asset.setAction(RAMAction.ARCHIVE);
                     session.put(asset, new RAMStatusMonitor());

But it will throw out following exception:
com.ibm.ram.common.data.exception.RAMRuntimeException: Failed to load asset lifecyle
    at com.ibm.ram.client.RAMAsset.getLifecycle(RAMAsset.java:322)
    at com.ibm.ram.client.RAMAsset.isInLifecycle(RAMAsset.java:327)
    at com.ibm.ram.client.RAMSession.isInALifecycleAndUseRetireActionsSwitchFromConsts(RAMSession.java:3458)
    at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:2991)
    at com.ibm.ram.client.RAMSession.put(RAMSession.java:5032)
    at com.ibm.cloud.ram.RAMClient.getAsset(RAMClient.java:958)
    at com.ibm.cloud.ram.RAMClientTest.testGetAsset(RAMClientTest.java:119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: com.ibm.ram.internal.client.RAMServiceException: CRRAM2009E - The workflow "com.ibm.ram.legacy" is not found.[500]
    at com.ibm.ram.repository.rest.RestActionsService.RestActionsService.java(doGet:116)
    at com.ibm.ram.repository.web.WSRestServlet.WSRestServlet.java(doGet:506)
    at javax.servlet.http.HttpServlet.HttpServlet.java(service:718)
    at javax.servlet.http.HttpServlet.HttpServlet.java(service:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(service:1663)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(service:1597)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.WebAppFilterChain.java(doFilter:104)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.WebAppFilterChain.java(_doFilter:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.WebAppFilterManager.java(doFilter:908)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(handleRequest:934)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(handleRequest:502)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.ServletWrapperImpl.java(handleRequest:181)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.WebAppRequestDispatcher.java(forward:372)
    at com.ibm.ram.repository.web.ws.RAMSecure.RAMSecure.java(doRequest:40)
    at com.ibm.ram.repository.web.ws.RAMSecure.RAMSecure.java(doGet:33)
    at javax.servlet.http.HttpServlet.HttpServlet.java(service:718)
    at javax.servlet.http.HttpServlet.HttpServlet.java(service:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(service:1663)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(service:1597)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.WebAppFilterChain.java(doFilter:131)
    at com.ibm.ram.repository.web.RAMWSServletFilter.RAMWSServletFilter.java(doFilter:511)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.FilterInstanceWrapper.java(doFilter:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.WebAppFilterChain.java(doFilter:116)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.WebAppFilterChain.java(_doFilter:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.WebAppFilterManager.java(doFilter:908)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(handleRequest:934)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ServletWrapper.java(handleRequest:502)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.ServletWrapperImpl.java(handleRequest:181)
    at com.ibm.ws.webcontainer.webapp.WebApp.WebApp.java(handleRequest:3935)
    at com.ibm.ws.webcontainer.webapp.WebGroup.WebGroup.java(handleRequest:276)
    at com.ibm.ws.webcontainer.WebContainer.WebContainer.java(handleRequest:931)
    at com.ibm.ws.webcontainer.WSWebContainer.WSWebContainer.java(handleRequest:1592)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.WCChannelLink.java(ready:186)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.HttpInboundLink.java(handleDiscrimination:452)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.HttpInboundLink.java(handleNewRequest:511)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.HttpInboundLink.java(processRequest:305)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.HttpICLReadCallback.java(complete:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.AioReadCompletionListener.java(futureCompleted:165)
    at com.ibm.io.async.AbstractAsyncFuture.AbstractAsyncFuture.java(invokeCallback:217)
    at com.ibm.io.async.AsyncChannelFuture.AsyncChannelFuture.java(fireCompletionActions:161)
    at com.ibm.io.async.AsyncFuture.AsyncFuture.java(completed:138)
    at com.ibm.io.async.ResultHandler.ResultHandler.java(complete:204)
    at com.ibm.io.async.ResultHandler.ResultHandler.java(runEventProcessingLoop:775)
    at com.ibm.io.async.ResultHandler$2.ResultHandler.java(run:905)
    at com.ibm.ws.util.ThreadPool$Worker.ThreadPool.java(run:1613)

Is any other change needed for above operation?
Thanks.

One answer



permanent link
Rich Kulp (3.6k38) | answered Oct 12 '12, 11:33 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
This was fixed in testfix 7 of 7511. The latest available testfix is testfix8 for 7511. That contains the fix you are looking for (which I believe is Defect 72861).

Your answer


Register or to post 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.