Not sure what the problem is, all my queries are failing with this
message:

Illegal argument
javax.jdo.JDOFatalUserException: Illegal argument at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:
344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:252) at

Environment: SDK 1.3.4
JUnit = 4

Is there a code sample we can use as reference?, with all of the
required JAR files?. I haven't been able to run a single test that
requires accessing datastore.



On Jun 30, 5:58 pm, luijar <[email protected]> wrote:
> I am seeing this however,
>
> Executing a simple query:
>
> Illegal argument
> javax.jdo.JDOFatalUserException: Illegal argument at
> org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:
> 344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:252) at
>
> This query works when the actual application is running, and it works
> in the Local testing Helper, but not with the
> CloudCoverLocalServiceTestHelper. Is there a specific version of App
> Engine I should be using? I am using 1.3.2.
>
> On Jun 12, 11:57 pm, "Max Ross (Google)" <[email protected]>
> wrote:
>
> > This most likely means that your tests aren't available as part of your
> > application.  Are you certain you uploaded them?
>
> > On Fri, Jun 11, 2010 at 11:31 PM, Art <[email protected]> wrote:
> > > Dear group,
>
> > > I would like to know how to make CloudCover (http://code.google.com/p/
> > > cloudcover/) work.
>
> > > At cloudcover.html, even I clicked on the "Start New Run" button, the
> > > (default) test won't be executed.
> > > The cloudcover.html showed like:
> > > Run 1001: NOT_STARTED, Completed 0/0 (0%)
> > > Passed: 0 Too Slow: 0 Failed: 0 In Progress: 0 Not Started: 0
> > > com.google.appengine.testing.cloudcover.harness.junit3.JUnit3TestHarness
> > > (0)
>
> > > I found the following logs in the GAE/J logs:
> > > W 06-11 10:45PM 49.387
> > > com.google.appengine.testing.cloudcover.harness.junitx.JUnitTestRun
> > > getTestIds: 1001: Cannot schedule instance of class
> > > com.appspot.waversbeach.server.MemcacheTest for execution because its
> > > String represenation,
> > > testInsert1(com.appspot.waversbeach.server.MemcacheTest), is not an
> > > available class.
>
> > > W 06-11 10:45PM 49.395
> > > com.google.appengine.testing.cloudcover.harness.junitx.JUnitTestRun
> > > getTestIds: 1001: Cannot schedule instance of class
> > > com.appspot.waversbeach.server.MemcacheTest for execution because its
> > > String represenation,
> > > testInsert2(com.appspot.waversbeach.server.MemcacheTest), is not an
> > > available class.
>
> > > MemcacheTest class is a really simple test class just for the trial
> > > purpose with CloudCover:
> > > public class MemcacheTest extends TestCase {
> > >        public MemcacheTest( String name) {
> > >                super( name);
> > >        }
>
> > >        protected static Cache cache = null;
>
> > >       �...@override
> > >        protected void setUp() throws Exception {
> > >                if ( cache == null) {
> > >                        CacheFactory cacheFactory =
> > > CacheManager.getInstance().getCacheFactory();
> > >                        cache = cacheFactory.createCache(
> > > Collections.emptyMap());
> > >                }
> > >        }
>
> > >       �...@override
> > >        protected void tearDown() throws Exception {
> > >                cache.clear();
> > >        }
>
> > >        private void doTest() {
> > >                assertFalse( cache.containsKey( "yar"));
> > >                cache.put( "yar", "foo");
> > >                assertTrue( cache.containsKey( "yar"));
> > >        }
>
> > >        public void testInsert1() {
> > >                doTest();
> > >        }
>
> > >        public void testInsert2() {
> > >                doTest();
> > >        }
>
> > > }
>
> > > My JUnit3Config class is like:
> > > public class CloudCoverRunnerConfig extends JUnit3Config {
>
> > >       �...@override
> > >        public TestRun newTestRun( String arg0) {
> > >                TestSuite suite = new TestSuite();
> > >                suite.addTest( new MemcacheTest( "testInsert1"));
> > >                suite.addTest( new MemcacheTest( "testInsert2"));
> > >                return new JUnit3TestRun( suite);
> > >        }
> > > }
>
> > > I'm thinking of giving the CloudCover a shot for Wave robot testing if
> > > it's possible, since I have read in one of Wave docs that there is no
> > > existing mechanism currently to test Wave robot on local machine.
>
> > > Thank you
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-appengine-java%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to