Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Run time exception while submitting an asset in RAM using Java API

 I'm trying to create an asset in RAM using API. During creation of asset I see the following error:

[07/03/14 04:32:53 CEST] CRRAM0001E 1166295403 ERROR ws com.ibm.ram.common.data.exception.RAMRuntimeException - RAM Runtime Exception. com.ibm.ram.common.data.exception.RAMRuntimeException: com.ibm.ram.common.data.exception.RAMRuntimeException: com.ibm.ram.repository.core.IRepositoryAccess$AssetBusyException: Asset is busy being updated by someone else. Asset is "D5DC53D4-3850-1605-A69F-0AE66ACC45E0 \u200e[2014.07.03.04.32.48]" at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.primUpdateLifecycle(AssetLifecycleManager.java:3783) at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.updateLifecycleIfNeeded(AssetLifecycleManager.java:1844) at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.handleEventCycle(AssetLifecycleManager.java:1675) at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.handleEventCycle(AssetLifecycleManager.java:1653) at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.handleEvent(AssetLifecycleManager.java:487) at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.save(AssetLifecycleManager.java:365) at com.ibm.ram.repository.assets.AssetManager.submitAssetWithState(AssetManager.java:4150) at com.ibm.ram.repository.assets.AssetManager.createNewVersionAsset(AssetManager.java:3960) at com.ibm.ram.repository.ws.core.BaseAssetAccess.submitAsset(BaseAssetAccess.java:276) at com.ibm.ram.repository.web.RAMAssetAccess.submitAsset(RAMAssetAccess.java:489) at com.ibm.ram.repository.web.RAMAssetAccess.upload(RAMAssetAccess.java:262) at com.ibm._jsp._RAMAssetAccess._jspService(_RAMAssetAccess.java:87) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:259) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:354) at com.ibm.ram.repository.web.ws.RAMSecure.doRequest(RAMSecure.java:40) at com.ibm.ram.repository.web.ws.RAMSecure.doPost(RAMSecure.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131) at com.ibm.ram.repository.web.RAMWSServletFilter.doFilter(RAMWSServletFilter.java:511) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) 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:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) Caused by: com.ibm.ram.common.data.exception.RAMRuntimeException: com.ibm.ram.repository.core.IRepositoryAccess$AssetBusyException: Asset is busy being updated by someone else. Asset is "D5DC53D4-3850-1605-A69F-0AE66ACC45E0 \u200e[2014.07.03.04.32.48]" at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.startReview(AssetLifecycleManager.java:1079) at com.ibm.ram.repository.lifecycle.AssetLifecycleManager.primUpdateLifecycle(AssetLifecycleManager.java:3774)

  1. Can some one help out how to avoid this situation?
  2. Can some one give me some more information when can this kind of issues raises?(In logs I see that, at that point of time some one is busy in updating that asset. To my knowledge there is no one modifying this asset)
  3. Does this issue araises when we try to browse for the same asset in RAM?

Thanks and Regards, Vijay

0 votes

Comments

It does not make sense to me. If you are creating an asset, how can someone else see it, let alone update it? Have you checked whether the quoted asset an existing one or the one you were creating?

 Im creating a new version of an asset or  new asset depending on the some pre - conditions 

@gvreddy79, Would you like to tell me what the version of RAM is you are using and the env RAM is running on, like db and os. Also, that would help if you could offer the code section where exception happen, and the logs from client


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,963

Question asked: Jul 03 '14, 2:12 a.m.

Question was seen: 4,330 times

Last updated: Jul 03 '14, 11:37 p.m.

Confirmation Cancel Confirm