cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Error when main class is executed
Date Wed, 27 Jun 2007 11:42:57 GMT
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


Mime
View raw message