[
https://issues.apache.org/jira/browse/OFBIZ-12726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17793365#comment-17793365
]
Ioan Eugen Stan edited comment on OFBIZ-12726 at 12/5/23 5:19 PM:
--
I would like to know how to run the test from IDE as it's not very clear to me.
I have the this test failing
|[accountingtests|http://localhost:63342/1_accountingtests.html]|
[accounting-tests-data-load|http://localhost:63342/1_accountingtests.html#accounting-tests-data-load]|Error|
with the following error, but it does not tell me where in the code the test is
failing.
{noformat}
A transaction error occurred reading data
org.xml.sax.SAXException: A transaction error occurred
reading data
org.apache.ofbiz.entity.transaction.GenericTransactionException: The
current transaction is marked for rollback, not beginning a new
transaction and aborting current operation; the rollbackOnly was caused
by: Failure in create operation for entity [TestingCrypto]:
java.lang.IllegalStateException: This object has been flagged as
immutable (unchangeable), probably because it came from an Entity Engine
cache. Cannot modify an immutable entity object. Use the clone method
to create a mutable copy of this object.. Rolling back
transaction.java.lang.IllegalStateException: This object has been
flagged as immutable (unchangeable), probably because it came from an
Entity Engine cache. Cannot modify an immutable entity object. Use the
clone method to create a mutable copy of this object. (This object has
been flagged as immutable (unchangeable), probably because it came from
an Entity Engine cache. Cannot modify an immutable entity object. Use
the clone method to create a mutable copy of this object.)
at
org.apache.ofbiz.entity.util.EntitySaxReader.parse(EntitySaxReader.java:299)
at
org.apache.ofbiz.entity.util.EntitySaxReader.parse(EntitySaxReader.java:261)
at
org.apache.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:80)
at
org.apache.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:90)
at
org.apache.ofbiz.base.container.ContainerLoader.startLoadedContainers(ContainerLoader.java:153)
at
org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:77)
at
org.apache.ofbiz.base.start.StartupControlPanel.loadContainers(StartupControlPanel.java:146)
at
org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:70)
at
org.apache.ofbiz.base.start.Start.main(Start.java:89)
Caused by:
org.apache.ofbiz.entity.transaction.GenericTransactionException: The
current transaction is marked for rollback, not beginning a new
transaction and aborting current operation; the rollbackOnly was caused
by: Failure in create operation for entity [TestingCrypto]:
java.lang.IllegalStateException: This object has been flagged as
immutable (unchangeable), probably because it came from an Entity Engine
cache. Cannot modify an immutable entity object. Use the clone method
to create a mutable copy of this object.. Rolling back
transaction.java.lang.IllegalStateException: This object has been
flagged as immutable (unchangeable), probably because it came from an
Entity Engine cache. Cannot modify an immutable entity object. Use the
clone method to create a mutable copy of this object. (This object has
been flagged as immutable (unchangeable), probably because it came from
an Entity Engine cache. Cannot modify an immutable entity object. Use
the clone method to create a mutable copy of this object.)
at
org.apache.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:143)
at
org.apache.ofbiz.entity.util.EntitySaxReader.parse(EntitySaxReader.java:277)
Caused by: java.lang.IllegalStateException: This
object has been flagged as immutable (unchangeable), probably because
it came from an Entity Engine cache. Cannot modify an immutable entity
object. Use the clone method to create a mutable copy of this object.
at
org.apache.ofbiz.entity.GenericEntity.assertIsMutable(GenericEntity.java:165)
at
org.apache.ofbiz.entity.GenericEntity.setDelegator(GenericEntity.java:408)
at
org.apache.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:890)
at
org.apache.ofbiz.entity.GenericDelegator.rollback(GenericDelegator.java:2715)
at