You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by Andrew Williams <an...@handyande.co.uk> on 2007/03/07 02:20:28 UTC

Problems with the int / long conversion?

Digging in to continuum I get these errors in continuum-store, is it  
related to the recent int -> long updates?

Andy

javax.jdo.JDOFatalInternalException: The key value passed to  
construct a SingleFieldIdentity of type  
"javax.jdo.identity.IntIdentity" for class  
"org.apache.maven.continuum.model.project.ProjectGroup" is of an  
incorrect type ("java.lang.Long") - should be "Integer".
         at org.jpox.util.AIDUtils.getNewSingleFieldIdentity 
(AIDUtils.java:154)
         at org.jpox.AbstractPersistenceManager.newObjectIdInstance 
(AbstractPersistenceManager.java:2397)
         at org.codehaus.plexus.jdo.PlexusJdoUtils.getObjectById 
(PlexusJdoUtils.java:336)
         at org.codehaus.plexus.jdo.PlexusJdoUtils.getObjectById 
(PlexusJdoUtils.java:304)
         at  
org.apache.maven.continuum.store.JdoContinuumStore.getObjectById 
(JdoContinuumStore.java:765)
         at  
org.apache.maven.continuum.store.JdoContinuumStore.getProjectGroupWithBu 
ildDetailsByProjectGroupId(JdoContinuumStore.java:1239)
         at  
org.apache.maven.continuum.store.ContinuumStoreTest.testDeleteGroupBuild 
Definition(ContinuumStoreTest.java:884)
         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 junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         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 org.apache.maven.surefire.junit.JUnitTestSet.execute 
(JUnitTestSet.java:213)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe 
t(AbstractDirectoryTestSuite.java:138)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
(AbstractDirectoryTestSuite.java:163)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
         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  
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
(SurefireBooter.java:244)
         at org.apache.maven.surefire.booter.SurefireBooter.main 
(SurefireBooter.java:814)
	

Re: Problems with the int / long conversion?

Posted by Jesse McConnell <je...@gmail.com>.
ya, I didn't think any of that came over from that branch...which
we'll get rid of once rahul is back from his vacation

jesse

On 3/7/07, Andrew Williams <an...@handyande.co.uk> wrote:
> Hm, it is an error with the jdo2 snapshot release I was using, so a
> false alarm for now ;)
>
> On 7 Mar 2007, at 01:20, Andrew Williams wrote:
>
> > Digging in to continuum I get these errors in continuum-store, is
> > it related to the recent int -> long updates?
> >
> > Andy
> >
> > javax.jdo.JDOFatalInternalException: The key value passed to
> > construct a SingleFieldIdentity of type
> > "javax.jdo.identity.IntIdentity" for class
> > "org.apache.maven.continuum.model.project.ProjectGroup" is of an
> > incorrect type ("java.lang.Long") - should be "Integer".
> >         at org.jpox.util.AIDUtils.getNewSingleFieldIdentity
> > (AIDUtils.java:154)
> >         at org.jpox.AbstractPersistenceManager.newObjectIdInstance
> > (AbstractPersistenceManager.java:2397)
> >         at org.codehaus.plexus.jdo.PlexusJdoUtils.getObjectById
> > (PlexusJdoUtils.java:336)
> >         at org.codehaus.plexus.jdo.PlexusJdoUtils.getObjectById
> > (PlexusJdoUtils.java:304)
> >         at
> > org.apache.maven.continuum.store.JdoContinuumStore.getObjectById
> > (JdoContinuumStore.java:765)
> >         at
> > org.apache.maven.continuum.store.JdoContinuumStore.getProjectGroupWith
> > BuildDetailsByProjectGroupId(JdoContinuumStore.java:1239)
> >         at
> > org.apache.maven.continuum.store.ContinuumStoreTest.testDeleteGroupBui
> > ldDefinition(ContinuumStoreTest.java:884)
> >         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 junit.framework.TestCase.runTest(TestCase.java:154)
> >         at junit.framework.TestCase.runBare(TestCase.java:127)
> >         at junit.framework.TestResult$1.protect(TestResult.java:106)
> >         at junit.framework.TestResult.runProtected(TestResult.java:
> > 124)
> >         at junit.framework.TestResult.run(TestResult.java:109)
> >         at junit.framework.TestCase.run(TestCase.java:118)
> >         at junit.framework.TestSuite.runTest(TestSuite.java:208)
> >         at junit.framework.TestSuite.run(TestSuite.java:203)
> >         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 org.apache.maven.surefire.junit.JUnitTestSet.execute
> > (JUnitTestSet.java:213)
> >         at
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest
> > Set(AbstractDirectoryTestSuite.java:138)
> >         at
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
> > (AbstractDirectoryTestSuite.java:163)
> >         at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
> >         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
> > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
> > (SurefireBooter.java:244)
> >         at org.apache.maven.surefire.booter.SurefireBooter.main
> > (SurefireBooter.java:814)
> >
> >
>
>


-- 
jesse mcconnell
jesse.mcconnell@gmail.com

Re: Problems with the int / long conversion?

Posted by Andrew Williams <an...@handyande.co.uk>.
Hm, it is an error with the jdo2 snapshot release I was using, so a  
false alarm for now ;)

On 7 Mar 2007, at 01:20, Andrew Williams wrote:

> Digging in to continuum I get these errors in continuum-store, is  
> it related to the recent int -> long updates?
>
> Andy
>
> javax.jdo.JDOFatalInternalException: The key value passed to  
> construct a SingleFieldIdentity of type  
> "javax.jdo.identity.IntIdentity" for class  
> "org.apache.maven.continuum.model.project.ProjectGroup" is of an  
> incorrect type ("java.lang.Long") - should be "Integer".
>         at org.jpox.util.AIDUtils.getNewSingleFieldIdentity 
> (AIDUtils.java:154)
>         at org.jpox.AbstractPersistenceManager.newObjectIdInstance 
> (AbstractPersistenceManager.java:2397)
>         at org.codehaus.plexus.jdo.PlexusJdoUtils.getObjectById 
> (PlexusJdoUtils.java:336)
>         at org.codehaus.plexus.jdo.PlexusJdoUtils.getObjectById 
> (PlexusJdoUtils.java:304)
>         at  
> org.apache.maven.continuum.store.JdoContinuumStore.getObjectById 
> (JdoContinuumStore.java:765)
>         at  
> org.apache.maven.continuum.store.JdoContinuumStore.getProjectGroupWith 
> BuildDetailsByProjectGroupId(JdoContinuumStore.java:1239)
>         at  
> org.apache.maven.continuum.store.ContinuumStoreTest.testDeleteGroupBui 
> ldDefinition(ContinuumStoreTest.java:884)
>         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 junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java: 
> 124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         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 org.apache.maven.surefire.junit.JUnitTestSet.execute 
> (JUnitTestSet.java:213)
>         at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest 
> Set(AbstractDirectoryTestSuite.java:138)
>         at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
> (AbstractDirectoryTestSuite.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
>         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  
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
> (SurefireBooter.java:244)
>         at org.apache.maven.surefire.booter.SurefireBooter.main 
> (SurefireBooter.java:814)
> 	
>