Hi Mike,
I would have suggested you to try marshalling as well after your first
post but now I think it would be best if you could open a new issue in
jira, comment how you generated to source and attach small tests that
show case the problem so one can play with it and reproduce the problem
himself. Having said that I do not have any glue what could go wrong
with your marshalling/unmarshalling at the moment.
According to your question about mapping in the earlier post. You don't
need it if you use sourcegen. The mapping is intended to map available
classes to a predefined XML structure.
Regards
Ralf
Mike Kopack schrieb:
Ok, I took my generated Castor classes (1.0M4 build). I built a small
test program that would build up a VERY simple document using the
classes, and then try to write out the XML for it.
When I run I get the following error:
Exception in thread "main" java.lang.NoSuchMethodError:
generated.goal.Mission.setStatus(Lgenerated/shared/types/Statustypes;)V
at WriterTester.<init>(WriterTester.java:30)
at WriterTester.main(WriterTester.java:73)
Java Result: 1
Here's my line of code:
Mission missiondoc = new Mission();
missiondoc.setId("mymission");
missiondoc.setStatus(Statustypes.valueOf("planned"));
(Note, I get the same error even if I use the following line instead of
the last one:)
missiondoc.setStatus(Statustypes.PLANNED);
When I look in the generated java code for Mission I see:
/**
* Sets the value of field 'status'.
*
* @param status the value of field 'status'.
*/
public void setStatus(generated.shared.types.Statustypes status)
{
this._status = status;
} //-- void setStatus(generated.shared.types.Statustypes)
Why can't it find it?!??! Both classes are in the classpath. I'm getting
pretty annoyed and frustrated here!
HELP!
--Mike
-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message
to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------