My Oracle Support Banner

Error Illegal Attempt to Modify Read-Only Entity Upon Updating User Entity via a Java Batch Program (Doc ID 1587404.1)

Last updated on MAY 07, 2018

Applies to:

Oracle Utilities Framework - Version 4.1.0 to 4.1.0.1.0 [Release 4.1]
Information in this document applies to any platform.

Goal

It is not possible to Update User External Id via Java Batch Program. The user is successfully retrieved, the external id field is modified, but while saving this change, the following error occurs:

ERROR:

- 2013-09-23 16:07:22,888 [DEFAULTWorker:1] ERROR (support.api.AbstractBusinessEntity) Illegal attempt to modify read-only entity User_Per[MRIBEIRO]
com.splwg.shared.common.LoggedException: Illegal attempt to modify read-only entity User_Per[MRIBEIRO]
  at com.splwg.shared.common.LoggedException.raised(LoggedException.java:67)
  at com.splwg.base.support.api.AbstractBusinessEntity.checkWhetherCacheModeAllowsModification(AbstractBusinessEntity.java:269)
  at com.splwg.base.support.api.AbstractBusinessEntity$1.run(AbstractBusinessEntity.java:255)
  at com.splwg.base.support.api.AbstractBusinessEntity$JumpToFrameworkRunner.run(AbstractBusinessEntity.java:348)
  at com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:280)
  at com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:1905)
  at com.splwg.base.support.api.AbstractBusinessEntity.executeCallStackJump(AbstractBusinessEntity.java:274)
  at com.splwg.base.support.api.AbstractBusinessEntity.setDTOEtc(AbstractBusinessEntity.java:261)
  at com.splwg.tax.domain.security.user.User_Per.setDTO(User_Per.java:567)
  at com.splwg.cm.domain.jms.jmsMessage.batch.CmUpdateUserExternalIdBatch$CmUpdateUserExternalIdBatchWorker.executeWorkUnit(CmUpdateUserExternalIdBatch.java:109)
  at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:171)
  at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:116)
  at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:88)
  at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:247)
  at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
  at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
  at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
  at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:58)
  at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
  at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
  at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:50)
  at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:63)
  at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
  at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
  at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
  at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
  at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
  at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
  at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
  at java.lang.Thread.run(Thread.java:619)

 
Steps to reproduce the issue:
1. Create a Java Program (Batch Process)
2. Configure a Batch control
3. Configure a Business Service to update the User
4. Create a Batch Job Submission
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.