Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AWTEvent class



I am trying to send an object of type AWTEvent from a OSX running
Apple's Jre 1.4.2 to 
Windows running Sun's Jre 1.4.2 using RMI, but am getting the following
error :
 
    java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:       
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:     
    java.io.InvalidClassException: java.awt.AWTEvent; incompatible types
for field bdata
 
On futher investigation I found that the "bdata" in AWTEvent class if of
type "long" in 
OSX version of Jre1.4.2 while is of type "byte[]" in Sun's version of
Jre 1.4.2. 
Sun had changed it from "long" to "byte[]" while moving from 1.3 to 1.4.


Any comments ?
Any workarounds ?
 
Thanks,
-Ashok
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.