Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Scala and JDO annotations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bryanjswift  
View profile  
 More options Apr 25, 7:39 pm
From: bryanjswift <bryan.j.sw...@gmail.com>
Date: Sat, 25 Apr 2009 16:39:49 -0700 (PDT)
Local: Sat, Apr 25 2009 7:39 pm
Subject: Scala and JDO annotations
I've been spending some time lately trying to get JDO annotations to
play nicely with Scala and the AppEngine but I have had no real
success because I continue to get a VerifyError when running the
application using dev_appserver or when using it on appspot if the
annotations are on the Scala class and the enhancement has been
executed. Even if I try to run the enhancement a second time without
deleting the .class files I get an error.

However, if I create  Java class with the same annotations everything
will run fine (data is stored).

I've put the stack trace I'm getting up on pastie at http://pastie.org/458308

Any help or insight about what causes the error or how to resolve it
would be greatly appreciated.

Cheers.
Bryan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Atsuhiko Yamanaka  
View profile  
(1 user)  More options Apr 25, 8:23 pm
From: Atsuhiko Yamanaka <atsuhiko.yaman...@gmail.com>
Date: Sun, 26 Apr 2009 09:23:24 +0900
Local: Sat, Apr 25 2009 8:23 pm
Subject: Re: [appengine-java] Scala and JDO annotations
Hi,

On Sun, Apr 26, 2009 at 8:39 AM, bryanjswift <bryan.j.sw...@gmail.com> wrote:

> I've been spending some time lately trying to get JDO annotations to
> play nicely with Scala and the AppEngine but I have had no real
> success because I continue to get a VerifyError when running the
> application using dev_appserver or when using it on appspot if the
> annotations are on the Scala class and the enhancement has been
> executed.

It is a known problem[1], and it has been fixed in
datanucleus-enhancer-1.1.2.jar[2].
In fact, I have successed to use JPA on Scala/Lift.

Download that jar file and locate it under
  appengine-java-sdk-1.2.0/lib/tools/orm/
It seems we need to rename(or delte) older version;
datanucleus-enhancer-1.1.0.jar .

[1] http://www.datanucleus.org/servlet/jira/browse/NUCENHANCER-34
[2] http://sourceforge.net/project/showfiles.php?group_id=222750&package_...

Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Coonay  
View profile  
 More options Apr 27, 11:49 pm
From: Coonay <fla...@gmail.com>
Date: Mon, 27 Apr 2009 20:49:56 -0700 (PDT)
Local: Mon, Apr 27 2009 11:49 pm
Subject: Re: Scala and JDO annotations
i downloaded
datanucleus-jpa-1.1.2.jar,datanucleus-core-1.1.2.jar,datanucleus-
enhancer-1.1.2.jar ,put them into  appengine-java-sdk-1.2.0 and remove
the old 3 lib version 1.0.0,there is an error:
java.lang.NoClassDefFoundError: Could not initialize class
org.datanucleus.store.appengine.query.DatastoreQuery
        at org.datanucleus.store.appengine.query.JPQLQuery.<init>
(JPQLQuery.java:66)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at
org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension
(NonManagedPluginRegistry.java:576)
        at org.datanucleus.plugin.PluginManager.createExecutableExtension
(PluginManager.java:324)
        at org.datanucleus.store.query.QueryManager.newQuery
(QueryManager.java:132)
        at org.datanucleus.jpa.EntityManagerImpl.createQuery
(EntityManagerImpl.java:721)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.orm.jpa.ExtendedEntityManagerCreator
$ExtendedEntityManagerInvocationHandler.invoke
(ExtendedEntityManagerCreator.java:358)
        at $Proxy9.createQuery(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.orm.jpa.JpaTemplate
$CloseSuppressingInvocationHandler.invoke(JpaTemplate.java:404)
        at $Proxy10.createQuery(Unknown Source)
        at jpa.E1Dao$1.doInJpa(E1Dao.java:37)
        at org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:
184)
        at org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:
147)
        at jpa.E1Dao.loadAll(E1Dao.java:32)
        at jpa.E1Dao$$FastClassByCGLIB$$34789f93.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
        at org.springframework.aop.framework.Cglib2AopProxy
$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:149)
        at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke
(TransactionInterceptor.java:106)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke
(ExposeInvocationInterceptor.java:89)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.Cglib2AopProxy
$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
        at jpa.E1Dao$$EnhancerByCGLIB$$98519cba.loadAll(<generated>)
        at Env.LocalDatastoreTestCase.testE1Jpa(LocalDatastoreTestCase.java:
50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.OldTestClassRunner.run
(OldTestClassRunner.java:76)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:45)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run
(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)

On Apr 26, 8:23 am, Atsuhiko Yamanaka <atsuhiko.yaman...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 28, 12:00 am
From: Max Ross <maxr+appeng...@google.com>
Date: Mon, 27 Apr 2009 21:00:55 -0700
Local: Tues, Apr 28 2009 12:00 am
Subject: Re: [appengine-java] Re: Scala and JDO annotations

I haven't tried this myself, but I suspect you only want to replace the
enhancer jar and leave the others alone.

Max


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google