Error when main class is executed

From: janesh (janes..eyondm.net)
Date: Wed Jun 20 2007 - 05:05:01 EDT

  • Next message: Kevin Menard: "RE: Duplicates in to-many relationships"

    Hi
    I followed the tutorial to understand the tool.
    It went fine till main class is executed after adding artists etc.

    Following error message appears and looks like a basic configuration
    issue that I missed.

    Please find the error message.

    Exception in thread "main" java.lang.IllegalArgumentException: Class is
    not mapped with Cayenne: cayenne.tutorial.Gallery
        at
    org.apache.cayenne.access.DataContext.createAndRegisterNewObject(DataContext.java:842)
        at org.apache.cayenne.access.DataContext.newObject(DataContext.java:826)
        at cayenne.tutorial.Main.main(Main.java:27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)

    Appreciate if you could help me.

    Thanking you.

    Best Regards

    -- 
    /Janesh Kodikara, /*/Team Lead-QA/*
    *BeyondM (Pvt) Ltd.**
    **(a hSenid Company)**
    *Phone: +94-11-2446623/4
    Fax: +94-11-2307579
    Web: http://www.hSenidMobile.com <http://www.hsenid.com/>
    

    /Mobilizing your enterprises /*//* Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. The content and opinions contained in this email are not necessarily those of hSenid Software International. If you have received this email in error please contact the sender



    This archive was generated by hypermail 2.0.0 : Wed Jun 20 2007 - 06:40:09 EDT