[jira] [Comment Edited] (OFBIZ-12726) Running integration tests under Gradle 7.6 and JDK 17 fails

2023-12-05 Thread Ioan Eugen Stan (Jira)


[ 
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 

[jira] [Comment Edited] (OFBIZ-12726) Running integration tests under Gradle 7.6 and JDK 17 fails

2022-12-22 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17650848#comment-17650848
 ] 

Jacques Le Roux edited comment on OFBIZ-12726 at 12/22/22 2:40 PM:
---

I did not have time to work on OFBIZ-12721 .
I hope to get some time next week.

Would love to see OFBiz with jdk17


was (Author: ieugen):
I did not have time to work on 
https://issues.apache.org/jira/browse/OFBIZ-12721 .
I hope to get some time next week.

Would love to see OFBiz with jdk17

> Running integration tests under Gradle 7.6 and JDK 17 fails
> ---
>
> Key: OFBIZ-12726
> URL: https://issues.apache.org/jira/browse/OFBIZ-12726
> Project: OFBiz
>  Issue Type: Sub-task
>  Components: ALL COMPONENTS
>Affects Versions: 22.01.01
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Blocker
> Fix For: Upcoming Branch
>
>
> Following our discussion at 
> https://lists.apache.org/thread/kr4v21lxx493byzgpdrzfbz3whhbm82m I ran the 
> integration tests and found that we currently have 322 errors and 190 
> failures :/ 
> It's a blocker for releasing...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)