« Preventing remote attacks on your serverCreate a new mailing list in Horde webmail »

3 comments

Comment from: Vrunda Bapat [Visitor]
Vrunda BapatI saw your post regarding Marshalling -Unmarshalling via JibX.
I am having a similar error and wanted to clarify something.
I am having a collection of Objects which I want to marshall/unmarshall.
I am getting the context for class :TimeRecord.class and marshalling that same Object and not the collection but it still gives me the same error :Supplied root object of class cannot be marshalled without top-level mapping.

My code:
IBindingFactory bfact =
BindingDirectory.getFactory(gov.irs.aec.bus.time_entry.entity.Time3081Record);

IMarshallingContext mctx = bfact.createMarshallingContext();
mctx.marshalDocument(time3081Rec, "UTF-8", null, new FileOutputStream(FILE_NAME));

Can you help me with this error?
If you give me your contact mail - I can send you my binding.xmls as well..
Please help!I didn't see ANY OTHER post than yours.
23/04/09 @ 11:03
Comment from: David Newcomb [Member] Email
David NewcombYou are asking for a Time3081Record marshaller so you must send in a Time3081Record class. Are you sending in a TimeRecord class instead?

Do you have a test case of it not working?
23/04/09 @ 11:15
Comment from: vibhu [Visitor]
vibhuThanx... I was stuck at the same problem and this nailed it
18/06/09 @ 13:15

Leave a comment


Your email address will not be revealed on this site.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)