Why is the exception [7/3/12 4:52:18:250 GMT] 0000009b SystemErr R com.ibm.cloud.ram.RAMAccessException: Unable to find asset to update seen when an update asset is performed ?
The issue is that whenever we try to update an asset there is an exception thrown at the session.put() statement,hence the asset does not get updated.But this happens intermittently as when to try to update the same asset after sometime it works fine.
The exception is: [7/3/12 4:52:17:676 GMT] 0000009b RAMClient 1 com.ibm.cloud.ram.RAMClient updateRAMAsset WL :The artifact name :d4ca4b61ea474c09ced9531e1054cf45.zip [7/3/12 4:52:17:676 GMT] 0000009b RAMClient 1 com.ibm.cloud.ram.RAMClient updateRAMAsset WL :The artifact size is:59074 [7/3/12 4:52:17:676 GMT] 0000009b RAMClient 1 com.ibm.cloud.ram.RAMClient updateRAMAsset WL :The number of removed artifacts are :1 [7/3/12 4:52:18:144 GMT] 0000009b RAMClient E com.ibm.cloud.ram.RAMClient updateRAMAsset WL :The asset with the GUID{321B8B79-5C5F-97B9-9A8F-FBF9C7BDF5B1}could not be updated :Unable to find asset to update [7/3/12 4:52:18:145 GMT] 0000009b UserServiceIm 1 com.ibm.cloud.bss.register.impl.UserServiceImpl extractUsername Parsing principal ISMRealm/mrc1@pb.com [7/3/12 4:52:18:249 GMT] 0000009b AuditTrail I com.ibm.wdp.ccp.audit.AuditTrail logRecords Logged Operation Details to AuditTrail : [108,897,mrc1@pb.com,Update RAM Asset,Failure,,Tue Jul 03 04:52:18 GMT 2012] [7/3/12 4:52:18:250 GMT] 0000009b PBCustomizati E com.ibm.cloud.customization.ram.PBCustomizationRAMClient updateAsset The asset having GUID :{321B8B79-5C5F-97B9-9A8F-FBF9C7BDF5B1}could not be updated for the prime bidderd4ca4b61ea474c09ced9531e1054cf45 [7/3/12 4:52:18:250 GMT] 0000009b SystemErr R com.ibm.cloud.ram.RAMAccessException: Unable to find asset to update [7/3/12 4:52:18:250 GMT] 0000009b SystemErr R at com.ibm.cloud.ram.RAMClient.updateRAMAsset(RAMClient.java:1785) [7/3/12 4:52:18:250 GMT] 0000009b SystemErr R at com.ibm.cloud.customization.ram.PBCustomizationRAMClient.updateAsset(PBCustomizationRAMClient.java:92) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.cloud.customization.service.impl.PBCustomizationServiceImpl.uploadZipFile(PBCustomizationServiceImpl.java:205) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.cloud.admin.action.PBCustomizationFileUploadAction.uploadCustomizedFile(PBCustomizationFileUploadAction.java:122) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.cloud.servlet.PBZipUploadDownloadController.doPost(PBZipUploadDownloadController.java:98) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.cloud.filters.PBRedirect.doFilter(PBRedirect.java:107) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.cloud.filters.CSRFController.checkSecurity(CSRFController.java:64) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.cloud.filters.SecurityController.doFilter(SecurityController.java:54) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) [7/3/12 4:52:18:251 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.cloud.filters.XSSController.checkSecurity(XSSController.java:55) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.cloud.filters.SecurityController.doFilter(SecurityController.java:54) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305) [7/3/12 4:52:18:252 GMT] 0000009b SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R Caused by: com.ibm.ram.common.data.exception.RAMRuntimeException: Unable to find asset to update [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3256) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.ram.client.RAMSession.put(RAMSession.java:4730) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R at com.ibm.cloud.ram.RAMClient.updateRAMAsset(RAMClient.java:1768) [7/3/12 4:52:18:253 GMT] 0000009b SystemErr R ... 41 more [7/3/12 4:52:18:254 GMT] 0000009b SystemErr R Caused by: com.ibm.ram.internal.client.RAMServiceException: Unable to find asset to update [7/3/12 4:52:18:254 GMT] 0000009b SystemErr R at com.ibm.ram.internal.client.RAMClient.uploadAsset(RAMClient.java:1083) [7/3/12 4:52:18:254 GMT] 0000009b SystemErr R at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3005) [7/3/12 4:52:18:254 GMT] 0000009b SystemErr R ... 43 more [7/3/12 4:52:18:254 GMT] 0000009b PBCustomizati E com.ibm.cloud.customization.service.impl.PBCustomizationServiceImpl uploadZipFile Unable to find asset to update com.ibm.cloud.ram.RAMAccessException: Unable to find asset to update at com.ibm.cloud.customization.ram.PBCustomizationRAMClient.updateAsset(PBCustomizationRAMClient.java:102) at com.ibm.cloud.customization.service.impl.PBCustomizationServiceImpl.uploadZipFile(PBCustomizationServiceImpl.java:205) at com.ibm.cloud.admin.action.PBCustomizationFileUploadAction.uploadCustomizedFile(PBCustomizationFileUploadAction.java:122) at com.ibm.cloud.servlet.PBZipUploadDownloadController.doPost(PBZipUploadDownloadController.java:98) 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.cloud.filters.PBRedirect.doFilter(PBRedirect.java:107) 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.cloud.filters.CSRFController.checkSecurity(CSRFController.java:64) at com.ibm.cloud.filters.SecurityController.doFilter(SecurityController.java:54) at com.ibm.ws.webcontainer.filter.FilterInstanceWrap |
2 answers
The code snippet for reference
newAsset = session.replaceAssetNewVersion(asset, version); newAsset.setShortDescription(shortDescription); RAMFolderArtifact root = (RAMFolderArtifact) newAsset .getArtifactsRoot(); Artifact[] artifacts = root.getChildren(); if (artifacts != null) { for (Artifact artifact : artifacts) { root.removeArtifact(artifact); noOfFiles++; } LocalFileArtifact fileArtifact = new LocalFileArtifact(zipFile); fileArtifact.setName(artifactName); if(noOfFiles==artifacts.length){ root.addArtifact(fileArtifact); } } session.put(newAsset, new NullProgressMonitor()); |
Further, the following error is reported in the RAM client log.
2012-07-03 04:52:18,143 [WebContainer : 8] [com.ibm.ram.internal.client.RAMClient] [WARN] - HTTP Error trying to upload. (400: Bad Request), STATUSTEXT:Bad Request, RESPONSE:Error 400: Unable to find asset to update 2012-07-03 04:52:18,143 [WebContainer : 8] [com.ibm.ram.client.RAMSession] [ERROR] - Error when uploading the asset {0}.d4ca4b61ea474c09ced9531e1054cf45[1.0] Manifest = <?xml version="1.0" encoding="UTF-8"?> <defaultprofile:Asset xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:defaultprofile="http:///defaultprofile22.ecore" name="d4ca4b61ea474c09ced9531e1054cf45" id="{321B8B79-5C5F-97B9-9A8F-FBF9C7BDF5B1}" date="2012-05-03" state="Approved" version="1.0" shortDescription="Uploaded Customization File"> <classification> <descriptorGroup name="AssetType"> <nodeDescriptor href="https://www-147stage.raleigh.us.sni.ibm.com/cloud/enterprise/ram/classif/assetTypesSchema.xmi#libraries"/> </descriptorGroup> <descriptorGroup name="StandardInfo"> <freeFormValue value="6" freeFormDescriptor="//@classification/@descriptorGroup.1/@freeFormDescriptor.0"/> <freeFormDescriptor name="revisionCount"/> </descriptorGroup> </classification> <solution> <artifact name="d4ca4b61ea474c09ced9531e1054cf45.zip"> <reference value="d4ca4b61ea474c09ced9531e1054cf45.zip"/> </artifact> </solution> </defaultprofile:Asset> Archive = /tmp/local_ram_store/com_ibm_ram_client_RAMSession_5e895e89/ASSET_321B8B79-5C5F-97B9-9A8F-FBF9C7BDF5B1__1_0/upload/delta.zip 2012-07-03 04:52:18,143 [WebContainer : 8] [com.ibm.ram.client.RAMSession] [ERROR] - The asset d4ca4b61ea474c09ced9531e1054cf45[1.0] was not updated. |
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.