Details
Description
Trying to upgrade from JiBX 1.1 to 1.1.5 to see if that will fix some apparent jibx code-gen errors (override final method, dup method name in Munge class)
First I had errors due to change in way 1.1.5 handles abstract classes. After I fixed those the bind compiler now sucks up all CPU time until it exhausts the heap.
With 1.1 I had to tell ANT -Xmx384m, With 1.1.5 even 768m is not enough.
I will shortly attach a trimmed down version of my projects class and binding files including an ANT build script.
-
Hide
- jibx-jira-168.zip
- 21/Oct/07 11:41 AM
- 3.30 MB
- Jon Kosmoski
-
- data/Metadata/infor/GetMetadata.xml 6 kB
- data/Metadata/infor/Metadata.xsd 23 kB
- data/Metadata/infor/SyncMetadata.xml 4 kB
- jibx/binding.xsd 6 kB
- jibx/BOD.jibx.xml 1 kB
- jibx/codelists.jibx.xml 5 kB
- jibx/components.jibx.xml 98 kB
- jibx/copyall.xslt 0.3 kB
- jibx/fields.jibx.xml 26 kB
- jibx/infor/codelists.jibx.xml 2 kB
- jibx/infor/components.jibx.xml 16 kB
- jibx/infor/fields.jibx.xml 3 kB
- jibx/infor/Metadata.jibx.xml 21 kB
- jibx/infor/oagis.jibx.xml 0.4 kB
- jibx/Location.jibx.xml 1 kB
- jibx/Merged.jibx.xml 168 kB
- jibx/meta.jibx.xml 15 kB
- jibx/qualifiedDataTypes.jibx.xml 2 kB
- jibx/unqualifiedDataTypes.jibx.xml 5 kB
- lib/bcel.jar 504 kB
- lib/commons-collections.jar 546 kB
- lib/commons-io.jar 82 kB
- lib/commons-lang.jar 237 kB
- lib/commons-logging.jar 37 kB
- lib/dom4j.jar 307 kB
- lib/infor.core.jar 49 kB
- lib/infor.service-shared.jar 38 kB
- lib/infor.test.core.jar 15 kB
- lib/jibx-bind.jar 324 kB
- lib/jibx-run.jar 103 kB
Activity
Your binding includes a <mapping> which "extends" itself - line 505. This does not make any sense, but does mess up the code generation. I've added a validation check for self-extends, and also for circular reference chains.
Unfortunately there's still an exception thrown when generating code for the constructed binding, even after the extends self-references are removed. I'll investigate this further and try to at least find the cause of the exception.
After removing the extends="..." references which result in error messages from the binding compiler (just PaymentBasisCode) the build now runs through to the tests. The tests fail with an error which doesn't appear to be JiBX related:
<testcase classname="test.openapplications.oagis.MetadataBasicTests" name="testIn4GetMetadataParseRender" time="0.016">
<error message="Searched standard locations, schema not found: C:/Tools/OAGIS/Infor1.0/BODs/Developer/GetMetadata.xsd" type="java.lang.RuntimeException">java.lang.RuntimeException: Searched standard locations, schema not found: C:/Tools/OAGIS/Infor1.0/BODs/Developer/GetMetadata.xsd
at test.openapplications.oagis.BODTestCase.schemaFileSpec(BODTestCase.java:100)
at test.openapplications.oagis.BODTestCase.parseRenderValidate(BODTestCase.java:165)
at test.openapplications.oagis.MetadataBasicTests.testIn4GetMetadataParseRender(MetadataBasicTests.java:59)
Complete project that was working with 1.1 until I tried to add stuff in jibx/infor/Metadata.jibx.xml. This new stuff resulted in class loading errors apparently due to duplicate JiBX-generated method names. Upgrade project to 1.1.5 and now binding compile runs out of memory. Expand into top-level folder and run "ant build.clean"