Profile picture for user freddy

Good Day,

I am getting an error at random intervals when using the following method:

Databse.Find ( int SearchKind, int[] itemTypes, int AttrTypeNum, int LocaleId, String sAttrValue, int CompareFlags )

The error retrieved from the system.out file:

report-engine-exception: cannot initialize selection objects
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.AArisReportRoot.executeUseCase(AArisReportRoot.java:1189)
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.AItem.Find(AItem.java:1802)
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.AItem.Find(AItem.java:1676)
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.AItem.Find(AItem.java:1962)
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.AItem.Find(AItem.java:1900)
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.ADatabase.Find(ADatabase.java:1268)
Caused by: com.aris.modeling.common.core.arisom.base.AAOMLockException: object -uB1g55QD3T:p:L is locked by e0787ee7-be78-475c-bde4-25fe641339ed
    at com.aris.modeling.common.core.arisomimpl.base.AObjectProviderToAOMExceptionFactory.createAAOMException(AObjectProviderToAOMExceptionFactory.java:26)
    at com.aris.modeling.common.core.arisomimpl.base.AObjectProviderToAOMExceptionFactory.createAndThrowAAOMException(AObjectProviderToAOMExceptionFactory.java:39)
    at com.aris.modeling.common.core.arisomimpl.base.ASaveOperation.invoke(ASaveOperation.java:298)
    at com.aris.modeling.common.core.arisomimpl.base.ASession.intermediateSaveModifiedObjects(ASession.java:291)
    at com.aris.modeling.common.core.arisomimpl.base.ASession.saveModifiedObjectsInternal(ASession.java:224)
    at com.aris.modeling.common.core.arisomimpl.base.ASession.saveModifiedObjects(ASession.java:188)
    at com.aris.modeling.common.core.arisomimpl.directctx.AUseCaseExecutor.execDAOCall(AUseCaseExecutor.java:271)
    at com.aris.modeling.common.core.arisomimpl.directctx.ADirectContext.execDAOCall(ADirectContext.java:337)
    at com.aris.modeling.common.core.arisomimpl.methodctx.AMethodContext.execDAOCall(AMethodContext.java:83)
    at com.aris.modeling.common.core.arisomimpl.accessrightctx.AAccessRightContext.execDAOCall(AAccessRightContext.java:144)
    at com.aris.modeling.common.core.arisomimpl.arisctx.AArisContext.execDAOCall(AArisContext.java:129)
    at com.aris.modeling.server.bl.common.reportobjects.aris.logic.AArisReportRoot.executeUseCase(AArisReportRoot.java:1185)
    ... 32 more
Caused by: com.aris.modeling.common.core.arisomimpl.objectprovider.impl.AObjectProviderLockException: object -uB1g55QD3T:p:L is locked by e0787ee7-be78-475c-bde4-25fe641339ed
    at com.aris.modeling.server.services.aom.aomobjectproviderimpl.AObjectProvider.lockForDelete(AObjectProvider.java:710)
    at com.aris.modeling.common.core.arisomimpl.base.ASaveOperation.invoke(ASaveOperation.java:264)
    ... 41 more
Caused by: com.aris.modeling.server.services.lockservice.ObjectLockedException: object -uB1g55QD3T:p:L is locked by e0787ee7-be78-475c-bde4-25fe641339ed
    at com.aris.modeling.server.services.lockservice.cipbased.ALockServiceImpl.lock(ALockServiceImpl.java:106)
    at com.aris.modeling.server.services.aom.aomobjectproviderimpl.AObjectProvider.lockForDelete(AObjectProvider.java:688)

My script creates/updates/delete objects from data retrieved from a web service.

All objects are locked and unlocked when needed. Most of the times the objects are locked when I try to find them in the database, but like I said it sometimes gives an error.

Anyone able to help with this issue?



Regards,

Freddy Barkhuizen

by Martin Miskovic
Posted on Wed, 07/15/2015 - 11:33

Hi Freddy,

I never run into this kind of issue, but can it be because of another application or user has write permissions to the object at the time you are running the script?

Martin

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock