aspose file tools
The moose likes Java in General and the fly likes XMLEncoder exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "XMLEncoder exception" Watch "XMLEncoder exception" New topic
Author

XMLEncoder exception

Ilja Smoli
Ranch Hand

Joined: Dec 02, 2001
Posts: 64
Hi..
Im getting this exception with XMLEncoder ..

Any ideas?
thx in advance..
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I don't know if I'll be able to help. However, if you can show the code where this error occurs, it will definitely be helpful for others to try and find the problem. Be sure to include enough code to give some context. Also mark which line is referenced by the error. It might also be helpful if you paste the complete error message without editing it.

Layne


Java API Documentation
The Java Tutorial
Ilja Smoli
Ranch Hand

Joined: Dec 02, 2001
Posts: 64
Ok, im sorry
Here is actually what im doing:


Object im writing to stream is a MAP, inside this map i have beans which consits other objects, none of these objects have BigDecimal members.. (Or at least I didnt find any)
During encoding i'm getting this log in tomcat console repeating many times...
Thats all I can say...
Andrew Och
Ranch Hand

Joined: Mar 19, 2004
Posts: 32
I get similar problems and found a solution from google search, but don't understand why this is necessary:

 
I agree. Here's the link: jrebel
 
subject: XMLEncoder exception
 
Similar Threads
InstantiationException error I can't get my mind around - First Post
Outputstream string
Java bean Persistence not working
InstantiationException with XMLEncoder
Can I serialize into an XML format?