Ok, I've found TONS of references to this problem on the web, but NOBODY
has posted their solution.
I generated my castor classes. When I try to unmarshal a document that
fits the schemas (validates fine according to XMLSpy) I get the
following message:
Exception encountered while trying to unmarshal the mission plan object
'null'. stack trace follows:
unable to find FieldDescriptor for 'goallist' in ClassDescriptor of
Mission{file: [not available]; line: 3; column: 12}
at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:707)
at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:563)
at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:784)
at
com.lmco.atl.guava.generated.goal.Mission.unmarshal(Mission.java:240)
Note: I am not using any sort of mapping file. Do I need to? I'm still
very confused as to what those are and why/under what circumstances I
would need one.
My schemas are set up like the following:
Shared.xsd - contains a lot of shared types, elements, imported by A,B
and C.
A.xsd - contains elements specific to A
B.xsd - contains all the same stuff as A, but some additional stuff for B
C.xsd - contains all the same stuff as B, but some additional stuff for C
I have them generating into:
generated.shared
generated.A
generated.B
generated.C
So there are different packages for the Mission class above, depending
upon which document is used to create it. (A, B or C). (ie, there's a
generated.A.Mission and a generated.B.Mission, etc.)
Any ideas WTF is wrong here? This is holding up multiple parts of my
project and I'm at a stand still until I can get around it.
--Mike
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------