FAQ
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

Search Discussions

  • Andrus Adamchik at Jun 27, 2007 at 11:43 am
    Sorry for the late reply. So do you have a Gallery entity in your
    mapping?

    Andrus
    On Jun 20, 2007, at 12:05 PM, janesh wrote:

    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

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriescayenne
postedJun 20, '07 at 10:40a
activeJun 27, '07 at 11:43a
posts2
users2
websitecayenne.apache.org

2 users in discussion

Andrus Adamchik: 1 post Janesh: 1 post

People

Translate

site design / logo © 2022 Grokbase