Hi,

I have a batch program that I run as user admin. In a nutshell the batch 
program reads data from a 3rd party and creates products, parties etc ...

It starts off fine, but at some point during the batch run the admin password 
becomes disabled which causes some of the services required by the batch run to 
fail. The first bit of the log below shows the service 
createPartyContactMechPurpose working fine, the second bit of the log shows the 
permission errors ocurring as a result of the admin user been disabled.

Any ideas on what is causing the admin user to disable?Any work arounds?

Kind regards

Grant Edwards

[PartyContactMechServices.xml#createPartyTelecomNumber] Creating telecom number
[ContactMechServices.xml#createContactMech] Contact mech created with id 12142
Sync service [webtools/createTelecomNumber] finished in [103] milliseconds
[PartyContactMechServices.xml#createPartyTelecomNumber] Copied id to 
createPartyContactMechMap: 12142
[CommonPermissionServices.xml#genericBasePermissionCheck] Checking for primary 
permission PARTYMGR_CREATE
[CommonPermissionServices.xml#genericBasePermissionCheck] Checking for 
alternate permission PARTYMGR_PCM_CREATE
[PartyContactMechServices.xml#createPartyContactMech] Contact mechTypeId: 12142 
already exists with value:  for party: 8140
Running Service ECA Service: createPartyContactMechPurpose, triggered by rule 
on Service: createPartyContactMech
Sync service [webtools/createPartyTelecomNumber] finished in [223] milliseconds
Setting ACCOUNTS_PARTY = EventsNow for productId = 8140
Running Entity ECA Service: indexProductKeywords, triggered by rule on Entity: 
Product




CommonPermissionServices.xml#genericBasePermissionCheck] Checking for primary 
permission PARTYMGR_CREATE
[CommonPermissionServices.xml#genericBasePermissionCheck] Checking for 
alternate permission PARTYMGR_PCM_CREATE
PartyContactMechServices.xml#createPartyContactMech] Contact mechTypeId: 12144 
already exists with value:  for party: 8806
Running Service ECA Service: createPartyContactMechPurpose, triggered by rule 
on Service: createPartyContactMech
ResourceBundle ServiceErrorUiLabels (en) created in 0.135s with 6 properties
ServiceDispatcher.java:530:ERROR] Error in Service 
[createPartyContactMechPurpose]: You do not have permission to perform this 
operation for this party.
2009-07-16 10:12:58,615 (http-0.0.0.0-18443-1) [    
TransactionUtil.java:321:WARN ] 
---- exception report ----------------------------------------------------------
[TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this 
stack trace shows where this is happening:
Exception: java.lang.Exception
Message: Error in Service [createPartyContactMechPurpose]: You do not have 
permission to perform this operation for this party.
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Error in Service [createPartyContactMechPurpose]: You do 
not have permission to perform this operation for this party.
org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:321)



      

Reply via email to