Hello all, I looked around to see if I could find a solution to this, but
nothing came up, so sorry if this is clearly stated somewhere. Also I'm
running JiBX 1.2.2.
I have a bean (that I have control over) that uses some beans that I don't
have control over (Apache Commons Math Vector3D). When I run the compiler
for the binding.xml I've created I'm getting an
"java.lang.IllegalStateException: Internal error - cannot modify class
org.apache.commons.math.geometry.Vector3D loaded from
..\..\lib\commons-math-2.1.jar" - which makes sense.
Is there a way around this?
Thanks,
Matthew
P.S. Here's what I'm using:
<binding>
<mapping name="Wrapper3D" class="test.Wrapper3D">
<structure name="Vector3D" field="v"/>
</mapping>
<mapping abstract="true" class="org.apache.commons.math.geometry.Vector3D"
factory="com.issinc.jibx.JiBXFactory.vector3DFactory">
<value name="X" field="x"/>
<value name="Y" field="y"/>
<value name="Z" field="z"/>
</mapping>
</binding>
package test;
import org.apache.commons.math.geometry.Vector3D;
public class Wrapper3D {
private Vector3D v;
private Wrapper3D() {}
public Wrapper3D(Vector3D v) {
this.v = v;
}
}
package com.issinc.jibx;
import org.apache.commons.math.geometry.Vector3D;
public class JiBXFactory {
static Vector3D vector3DFactory() {
return new Vector3D(0,0,0);
}
}
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users