java.lang.ClassCastException when calling an EO's savechanges() method
java.lang.ClassCastException when calling an EO's savechanges() method
- Subject: java.lang.ClassCastException when calling an EO's savechanges() method
- From: WebObjects <email@hidden>
- Date: Fri, 13 May 2005 00:47:33 -0700
I get no errors in dev mode (running in xcode on dev machine), but when
running the app on deployment (xserve) machine I get the following error...
Application: TaskAlert
Error: java.lang.ClassCastException
Reason:
Stack trace:
File
Line#
Method
Package
NA : Non applicable, JIT activated
...Here is some of the classes code, the error occurs in "updateRecord()",
it works in the IDE, but not on deployment:
public class TestPage extends WOComponent {
public Tbltasks myTask;
public TestPage(WOContext context) {
super(context);
}
public WOComponent updateRecord()
{
myTask.editingContext().saveChanges();
return null;
}
public void GetOneRecord() {
try{
EOEditingContext ec = session().defaultEditingContext();
ec.refreshAllObjects();
myTask = (Tbltasks)EOUtilities.objectMatchingKeyAndValue(ec,
"Tbltasks", "accountnumber", new Integer(10163));
} catch (Exception e) {
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden