You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Alexander Tzvetanov (Jira)" <ji...@apache.org> on 2021/07/19 10:53:00 UTC

[jira] [Created] (OFBIZ-12286) Changes in dtds or parsers coused ofbiz build to crash

Alexander Tzvetanov created OFBIZ-12286:
-------------------------------------------

             Summary: Changes in dtds or parsers coused ofbiz build to crash
                 Key: OFBIZ-12286
                 URL: https://issues.apache.org/jira/browse/OFBIZ-12286
             Project: OFBiz
          Issue Type: Bug
          Components: base
    Affects Versions: 17.12.04
         Environment: Centos Linux 8
PostgreSQL
openjdk version "11.0.9" 2020-10-20 LTS
            Reporter: Alexander Tzvetanov


Without any changes Ofbiz build became broken.
I suppose something has changed in dtds or sax parser. Tests started failing.

In order to see what is wrong I ran Ofbiz with tests excluded. And I found that XML Sax Parser started crashing:

2021-07-19 13:45:07,904 |kJoinPool-1-worker-3 |EntityEcaUtil |E| null
org.apache.ofbiz.base.config.GenericConfigException: Error reading ComponentResourceHandler from XML file [content] with loaderName [main] and location [entitydef/eecas.xml] (Premature end of file.)
 at org.apache.ofbiz.base.component.ComponentResourceHandler.getDocument(ComponentResourceHandler.java:74) ~[ofbiz.jar:?]
 at org.apache.ofbiz.entityext.eca.EntityEcaUtil.getEcaDefinitions(EntityEcaUtil.java:138) [ofbiz.jar:?]
 at org.apache.ofbiz.entityext.eca.EntityEcaUtil.access$000(EntityEcaUtil.java:48) [ofbiz.jar:?]
 at org.apache.ofbiz.entityext.eca.EntityEcaUtil$1.call(EntityEcaUtil.java:157) [ofbiz.jar:?]
 at org.apache.ofbiz.entityext.eca.EntityEcaUtil$1.call(EntityEcaUtil.java:155) [ofbiz.jar:?]
 at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448) [?:?]
 at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
 at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
 at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
 at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
 at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
Caused by: org.xml.sax.SAXParseException: Premature end of file.
 at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) ~[xercesImpl-2.9.1.jar:?]
 at org.apache.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:581) ~[ofbiz.jar:?]
 at org.apache.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:420) ~[ofbiz.jar:?]
 at org.apache.ofbiz.base.component.ComponentResourceHandler.getDocument(ComponentResourceHandler.java:72) ~[ofbiz.jar:?]
 ... 10 more

The obvious build crash is the following:

> Task :test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/home/midax/.gradle/caches/modules-2/files-2.1/com.thoughtworks.xstream/xstream/1.4.11.1/6c120c45a8c480bb2fea5b56502e3993ddd74fd2/xstream-1.4.11.1.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

org.apache.ofbiz.entity.util.EntitySaxReaderTests > parse FAILED
 java.lang.IllegalStateException at EntitySaxReaderTests.java:82

org.apache.ofbiz.entity.DelegatorUnitTests > delegatorCreationUsingConstructorFailsIfConfigurationIsMissing FAILED
 java.lang.AssertionError

org.apache.ofbiz.entity.DelegatorUnitTests > delegatorCreationUsingFactoryGetDelegator FAILED
 java.lang.AssertionError at DelegatorUnitTests.java:87

org.apache.ofbiz.entity.DelegatorUnitTests > delegatorCreationUsingFactoryGetInstance FAILED
 java.lang.AssertionError at DelegatorUnitTests.java:75

org.apache.ofbiz.entity.DelegatorUnitTests > delegatorCreationUsingConstructor FAILED
 org.apache.ofbiz.entity.GenericEntityConfException at DelegatorUnitTests.java:63

30 tests completed, 5 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

In my environment I use patched gradle version that has been supplied in issue OFBIZ-12100



--
This message was sent by Atlassian Jira
(v8.3.4#803005)