This can occur when you are streaming objects from a client to a server (or to a file and then reading them in again) or in reverse. This can be due to a mismatch in versions of dom4j or dependancies like different xerces or jaxen versions.

When the javac compiles java to bytecode (.class) it gives each class a unique ID that is used during serialization. What you are seeing is a mismatch. So there is something different in you classpath between when the stream was sent and when the stream was received.

If you have code that performs it's own Serializable reads and writes, there may be order changes that has left the stream out of sync.

Hope that helps.

Later,
Dave

ian tabangay wrote:
im a newbe in dom4j and i encountered this error in my
program. i dont know what to do about it. can anyone
assist me? thanks.

- ian

java.io.InvalidClassException:
org.dom4j.tree.DefaultElement; Local class not
compatible: stream classdesc
serialVersionUID=6300785959318005406 local class serialVersionUID=1768304464062007700

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev


--

+------------------------------------------------------------+
| David Lucas mailto:[EMAIL PROTECTED] |
| Lucas Software Engineering, Inc. (740) 964-6248 Voice |
| Unix,Java,C++,CORBA,XML,EJB (614) 668-4020 Mobile |
| Middleware,Frameworks (888) 866-4728 Fax/Msg |
+------------------------------------------------------------+
| GPS Location: 40.0150 deg Lat, -82.6378 deg Long |
| IMHC: "Jesus Christ is the way, the truth, and the life." |
| IMHC: "I know where I am; I know where I'm going." <>< |
+------------------------------------------------------------+

Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt
IMHO="in my humble opinion" IMHC="in my humble conviction"
All trademarks above are those of their respective owners.




-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to