> Hello,
>
I'm trying to compile a binding file that has multiple mappings that set
an enum value. This works with jibx 1.1.6.
When using jibx_1_2_1 ....
>From the output:
[bind] Running binding compiler version jibx_1_2_1
[bind] binding binding:
===> all mappings bind with no errors
----- all mappings in binding.xml --------
During
[bind] After linking view of binding binding:
[bind] binding binding:
===> in here on the last mapping I get error described below..
----- all mappings in binding.xml --------
On the very last mapping I get
[bind] Error running binding compiler
[bind]
[bind] *** Error during code generation for file
'D:\view_working\arguellob_rampart\wint/nm/apps/monitoring/command/web/b
inding.xml' - please enter a bug report for this error in Jira if the
problem is not listed as fixed on the online status page ***
[bind]
[bind] java.lang.IllegalStateException: Internal error - cannot
modify class java.lang.Enum loaded from C:\Program
Files\Java\jdk1.6.0_13\jre\lib\rt.jar
[bind] at
org.jibx.binding.classes.ClassFile.getClassGen(ClassFile.java:1283)
[bind] at
org.jibx.binding.classes.ClassFile.getInstructionBuilder(ClassFile.java:
1308)
Extract of a mapping with Enum...
<mapping abstract="true" type-name="tns4:UnitSO"
class="mil.amy.wint.nm.monitoring.command.types.common.UnitSO">
<namespace
uri="http://common.types.command.monitoring.nm.wint.amy.mil/xsd"
prefix="tns4" />
<value name="entityId" field="entityId" usage="optional" />
<value name="name" field="name" usage="optional" />
<value name="parentName" field="parentName" usage="optional" />
<value name="symbolCode" field="symbolCode" usage="optional" />
<value name="unitIdentification" field="unitIdentification"
usage="optional" />
<value name="urn" field="urn" usage="optional" />
<value name="service" field="service" usage="optional"
set-method="setService" get-method="getService"
deserializer="mil.amy.wint.nm.monitoring.command.types.common.ServiceTyp
e.getEnumType"/>
<structure
map-as="mil.amy.wint.nm.monitoring.command.types.common.LocationSO"
field="location" usage="optional"/>
<structure
map-as="mil.amy.wint.nm.utilities.serviceobjectmanagement.SO" />
</mapping>
Service is of type ServiceType in UnitSO.
> Ant Task
>
> <!-- - - - - - - - - - - - - - - - - -
> target: jibxbind-compile
> - - - - - - - - - - - - - - - - - -->
> <target name="jibxbind-compile">
> <echo message="Running JiBX binding compiler" />
> <bind verbose="true"
> binding="${yyyyWeb.home}/binding.xml">
> <classpath>
> <path refid="jibx-classpath" />
> <path path="${build.home}" />
> </classpath>
> </bind>
> </target>
>
> <path id="jibx-classpath">
> <path refid="classPathExtend" />
> <fileset dir="${jibx.home}"> =======> jibx 1.2.1
> <include name="lib/*.jar" />
> </fileset>
> </path>
>
>
This runs fine with jibx 1.1.6.
> Thank You.
> -Brando
>
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users