2 Replies Latest reply: Apr 23, 2014 12:43 PM by Sarath.Dontireddy RSS

    Programatically editing asset Issue:  Error in ComplexAsset: number-10015

    Sarath.Dontireddy

      Hi while updating the assets programatically application is throwing below exceptions. However asset was not locked and we are able to edit the asset manully.

       

      We are using asset API and below is the excerpt of the code. Any help  would be appreciated.

       

      Session ses = SessionFactory.newSession(userName, password);
       AssetDataManager mgr = (AssetDataManager) ses.getManager(AssetDataManager.class.getName() );
       mgr.update(sAssets);
      

       

      [2014-04-23 11:27:13,916 EDT] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.framework] Unable to lock record 1328829919853 in catalog XXX_ASSET_TYPE error code 11

      [2014-04-23 11:27:13,917 EDT] [ERROR] [.kernel.Default (self-tuning)'] [logging.cs.xcelerate.asset] Error in ComplexAsset: number-10015 (No description provided)

      com.openmarket.basic.interfaces.AssetException: number-10015 (No description provided)

              at com.openmarket.assetframework.complexasset.ComplexAsset.supercheckout(ComplexAsset.java:591)

              at com.openmarket.assetframework.complexasset.AssetManager.checkout(AssetManager.java:584)

              at com.openmarket.assetframework.complexasset.ComplexAsset.CheckOut(ComplexAsset.java:569)

              at sun.reflect.GeneratedMethodAccessor1149.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at com.openmarket.xcelerate.asset.Asset.callCheckOut(Asset.java:6848)

              at com.fatwire.assetapi.data.BasicAssetDataWriteStrategy._checkOut(BasicAssetDataWriteStrategy.java:208)

              at com.fatwire.assetapi.data.BasicAssetDataWriteStrategy._saveOneAssetType(BasicAssetDataWriteStrategy.java:247)

              at com.fatwire.assetapi.data.BasicAssetDataWriteStrategy._save(BasicAssetDataWriteStrategy.java:177)

              at com.fatwire.assetapi.data.FlexAssetDataWriteStrategy.write(FlexAssetDataWriteStrategy.java:45)

              at com.fatwire.assetapi.data.AssetDataManagerImpl.update(AssetDataManagerImpl.java:255)

      Thanks,

      SD