|
Hi,
Actually its a repost ....I think earlier it got
missed ...
I am using both Castor XML (Generating Java Objects
from XML Schema) and Castor JDO.
Castor XML has produced Java Objects some of
which are type safe enums and have private constructors.(in types
folder)
I am trying to use the same Objects with Castor JDO
, for the complex types CustomFieldHandler are being used , The problem is
that these CustomField Handlers are not being invoked while the results
from the database tries to populate the object.
Thanks in advance ,
Regards,
Shirish
Attached is the exception being thrown
.
Exception in thread "main"
org.exolab.castor.jdo.DataObjectAccessException: Type conversion
error:
could not set value of FieldMolder of emf.config.castor.Token.setmode(string mode) with value of type java.lang.String at org.exolab.castor.persist.FieldMolder.setValue(FieldMolder.java:330) at org.exolab.castor.persist.ClassMolder.load(ClassMolder.java:720) at org.exolab.castor.persist.LockEngine.load(LockEngine.java:356) at org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:649) at org.exolab.castor.persist.QueryResults.fetch(QueryResults.java:229) at org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:627) at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:610)
at
test.TestJDO.runShow(TestJDO.java:36)
at test.TestJDO.main(TestJDO.java:9) |
- Re: [castor-dev] Fw: Problem using custom Field Handler!! Shirish Goel
- Re: [castor-dev] Fw: Problem using custom Field Hand... Jeffrey Bonevich
