• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
java.lang.ClassCastException when calling an EO's savechanges() method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: java.lang.ClassCastException when calling an EO's savechanges() method
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Fetch Specs and Limits
  • Next by Date: Re: Help with Search, may require outer joins??
  • Previous by thread: RE: DisplayGroup setMasterObject() and queryMatch (Solved)
  • Next by thread: Re: java.lang.ClassCastException when calling an EO's savechanges() method
  • Index(es):
    • Date
    • Thread