I'm having the following problem and I wonder if anyone has seen this type
of behavior before or knows the cause.
I have a Java method which I'm calling from Objective-C like this:
// remoteServerAccount is an EO
mailMessages = [javaMailWrapper fetchMessages:@"INBOX"
:remoteServerAccount];
The Java method begins like this:
public NSArray fetchMessages(String folderName, EOEnterpriseObject
remoteServerAccount)
throws Exception {
EOEnterpriseObject owner =
(EOEnterpriseObject)remoteServerAccount.valueForKey("owner");
(etc . . .)
However, when I run the program I get this:
Mar 08 16:42:25 FetchMail[434] *** Uncaught exception:
<java/lang/IncompatibleClassChangeError> class
com.apple.yellow.foundation.NSObject does not implement interface
com.apple.yellow.eocontrol.EOKeyValueCoding
Stack Trace:
java.lang.IncompatibleClassChangeError: class
com.apple.yellow.foundation.NSObject does not implement interface
com.apple.yellow.eocontrol.EOKeyValueCoding
at JavaMailWrapper.fetchMessages(JavaMailWrapper.java:96)
stack: 0x32040b0e 0x320411eb 0x69a93ae9 0x69a9a95e 0x69a95e18 0x69a92021
0x401141 0x40161c 0x77f1b304
remoteServerAccount is in fact an EO, and is declared as EO, so I'm not sure
why this is happening. Any ideas?
Thanks