You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Kevin Sutter <kw...@gmail.com> on 2010/09/17 21:42:07 UTC
Problem with 1.2.x testcase?
Hi,
I just hit this problem while running the 1.2.x test bucket... Is anybody
else experiencing this or is it something in my environment?
testEnhancementOfAllPUsWithinAResource(org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs)
Time elapsed: 7.859 sec <<< ERROR!
<openjpa-1.2.3-SNAPSHOT-r422266:998216M nonfatal user error>
org.apache.openjpa.util.UserException: Type
"org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess"
attempts to use both field and property access. Only one access
method is permitted. Field access is used on the following fields: [private
int org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.id].
Property access is used on the following methods: [public java.lang.String
org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.getStringField()].
at
org.apache.openjpa.meta.AbstractMetaDataDefaults.populate(AbstractMetaDataDefaults.java:161)
at
org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate(PersistenceMetaDataDefaults.java:227)
at
org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:905)
at
org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:891)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:660)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:480)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:352)
at
org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:229)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:569)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:379)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(MetaDataRepository.java:366)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:360)
at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:253)
at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4568)
at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4515)
at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4485)
at
org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:708)
at
org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:698)
at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4480)
at
org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs.testEnhancementOfAllPUsWithinAResource(TestEnhancementWithMultiplePUs.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
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
org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
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:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Re: Problem with 1.2.x testcase?
Posted by Kevin Sutter <kw...@gmail.com>.
Just to close off this thread... I just had bad timing. I synched up with
1.2.x in between a couple of Donald's updates. Once I re-synched after
Donald was done, then all of the tests ran without a hitch.
Kevin
On Mon, Sep 20, 2010 at 7:38 AM, Donald Woods <dw...@apache.org> wrote:
> Yep, r998283 included an update to that testcase to fix the failure.
>
> The 1.2.x branch now uses the Nexus repo and automated builds have been
> setup on Hudson.apache.org.
>
>
> -Donald
>
>
> On 9/18/10 11:12 AM, Kevin Sutter wrote:
> > Thanks, Mike. It looks like I just synched up with the wrong version. I
> > noticed that Donald committed some more pom and testcase changes right
> after
> > I posted my message. I'll re-synch and I'll probably be just fine.
> >
> > Thanks,
> > Kevin
> >
> > On Fri, Sep 17, 2010 at 9:37 PM, Michael Dick <michael.d.dick@gmail.com
> >wrote:
> >
> >> FWIW revision 998283 worked for me. I remember seeing a problem with
> 998216
> >> but I thought it was some pom.xml noise. Donald just started updating
> the
> >> build files to use Nexus - you might have just caught a bad timing
> window.
> >>
> >> Looks like there are local changes too - the line number for
> >> TestEnhancementWithMultiplePUs doesn't match mine (could just be debug
> on
> >> your end though).
> >>
> >> If you still see the problem on 998283 reply and I can take another
> look.
> >>
> >> -mike
> >>
> >> On Fri, Sep 17, 2010 at 2:42 PM, Kevin Sutter <kw...@gmail.com>
> wrote:
> >>
> >>> Hi,
> >>> I just hit this problem while running the 1.2.x test bucket... Is
> >> anybody
> >>> else experiencing this or is it something in my environment?
> >>>
> >>>
> >>>
> >>
> testEnhancementOfAllPUsWithinAResource(org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs)
> >>> Time elapsed: 7.859 sec <<< ERROR!
> >>> <openjpa-1.2.3-SNAPSHOT-r422266:998216M nonfatal user error>
> >>> org.apache.openjpa.util.UserException: Type
> >>> "org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess"
> >>> attempts to use both field and property access. Only one access
> >>> method is permitted. Field access is used on the following fields:
> >>> [private
> >>> int
> >>>
> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.id
> >> ].
> >>> Property access is used on the following methods: [public
> >> java.lang.String
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.getStringField()].
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.AbstractMetaDataDefaults.populate(AbstractMetaDataDefaults.java:161)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate(PersistenceMetaDataDefaults.java:227)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:905)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:891)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:660)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:480)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:352)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:229)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:569)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:379)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(MetaDataRepository.java:366)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:360)
> >>> at
> >> org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:253)
> >>> at
> org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4568)
> >>> at
> org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4515)
> >>> at
> >> org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4485)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:708)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:698)
> >>> at
> org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4480)
> >>> at
> >>>
> >>>
> >>
> org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs.testEnhancementOfAllPUsWithinAResource(TestEnhancementWithMultiplePUs.java:143)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> at
> >>>
> >>>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> >>> at
> >>>
> >>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:618)
> >>> 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
> >>>
> >>>
> >>
> org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
> >>> 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:79)
> >>> at
> >>>
> >>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:618)
> >>> at
> >>>
> >>
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> >>> at
> >>>
> >>>
> >>
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> >>> at
> >>>
> >>>
> >>
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> >>> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> at
> >>>
> >>>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> >>> at
> >>>
> >>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:618)
> >>> at
> >>>
> >>>
> >>
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> >>> at
> >>>
> >>>
> >>
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
> >>>
> >>
> >
>
Re: Problem with 1.2.x testcase?
Posted by Donald Woods <dw...@apache.org>.
Yep, r998283 included an update to that testcase to fix the failure.
The 1.2.x branch now uses the Nexus repo and automated builds have been
setup on Hudson.apache.org.
-Donald
On 9/18/10 11:12 AM, Kevin Sutter wrote:
> Thanks, Mike. It looks like I just synched up with the wrong version. I
> noticed that Donald committed some more pom and testcase changes right after
> I posted my message. I'll re-synch and I'll probably be just fine.
>
> Thanks,
> Kevin
>
> On Fri, Sep 17, 2010 at 9:37 PM, Michael Dick <mi...@gmail.com>wrote:
>
>> FWIW revision 998283 worked for me. I remember seeing a problem with 998216
>> but I thought it was some pom.xml noise. Donald just started updating the
>> build files to use Nexus - you might have just caught a bad timing window.
>>
>> Looks like there are local changes too - the line number for
>> TestEnhancementWithMultiplePUs doesn't match mine (could just be debug on
>> your end though).
>>
>> If you still see the problem on 998283 reply and I can take another look.
>>
>> -mike
>>
>> On Fri, Sep 17, 2010 at 2:42 PM, Kevin Sutter <kw...@gmail.com> wrote:
>>
>>> Hi,
>>> I just hit this problem while running the 1.2.x test bucket... Is
>> anybody
>>> else experiencing this or is it something in my environment?
>>>
>>>
>>>
>> testEnhancementOfAllPUsWithinAResource(org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs)
>>> Time elapsed: 7.859 sec <<< ERROR!
>>> <openjpa-1.2.3-SNAPSHOT-r422266:998216M nonfatal user error>
>>> org.apache.openjpa.util.UserException: Type
>>> "org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess"
>>> attempts to use both field and property access. Only one access
>>> method is permitted. Field access is used on the following fields:
>>> [private
>>> int
>>> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.id
>> ].
>>> Property access is used on the following methods: [public
>> java.lang.String
>>>
>>>
>> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.getStringField()].
>>> at
>>>
>>>
>> org.apache.openjpa.meta.AbstractMetaDataDefaults.populate(AbstractMetaDataDefaults.java:161)
>>> at
>>>
>>>
>> org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate(PersistenceMetaDataDefaults.java:227)
>>> at
>>>
>>>
>> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:905)
>>> at
>>>
>>>
>> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:891)
>>> at
>>>
>>>
>> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:660)
>>> at
>>>
>>>
>> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:480)
>>> at
>>>
>>>
>> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:352)
>>> at
>>>
>>>
>> org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:229)
>>> at
>>>
>>>
>> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:569)
>>> at
>>>
>>>
>> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:379)
>>> at
>>>
>>>
>> org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(MetaDataRepository.java:366)
>>> at
>>>
>>>
>> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:360)
>>> at
>> org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:253)
>>> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4568)
>>> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4515)
>>> at
>> org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4485)
>>> at
>>>
>>>
>> org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:708)
>>> at
>>>
>>>
>> org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:698)
>>> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4480)
>>> at
>>>
>>>
>> org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs.testEnhancementOfAllPUsWithinAResource(TestEnhancementWithMultiplePUs.java:143)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>>
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>>> at
>>>
>>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:618)
>>> 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
>>>
>>>
>> org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
>>> 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:79)
>>> at
>>>
>>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:618)
>>> at
>>>
>> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>>> at
>>>
>>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
>>> at
>>>
>>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
>>> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>>
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>>> at
>>>
>>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:618)
>>> at
>>>
>>>
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
>>> at
>>>
>>>
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
>>>
>>
>
Re: Problem with 1.2.x testcase?
Posted by Kevin Sutter <kw...@gmail.com>.
Thanks, Mike. It looks like I just synched up with the wrong version. I
noticed that Donald committed some more pom and testcase changes right after
I posted my message. I'll re-synch and I'll probably be just fine.
Thanks,
Kevin
On Fri, Sep 17, 2010 at 9:37 PM, Michael Dick <mi...@gmail.com>wrote:
> FWIW revision 998283 worked for me. I remember seeing a problem with 998216
> but I thought it was some pom.xml noise. Donald just started updating the
> build files to use Nexus - you might have just caught a bad timing window.
>
> Looks like there are local changes too - the line number for
> TestEnhancementWithMultiplePUs doesn't match mine (could just be debug on
> your end though).
>
> If you still see the problem on 998283 reply and I can take another look.
>
> -mike
>
> On Fri, Sep 17, 2010 at 2:42 PM, Kevin Sutter <kw...@gmail.com> wrote:
>
> > Hi,
> > I just hit this problem while running the 1.2.x test bucket... Is
> anybody
> > else experiencing this or is it something in my environment?
> >
> >
> >
> testEnhancementOfAllPUsWithinAResource(org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs)
> > Time elapsed: 7.859 sec <<< ERROR!
> > <openjpa-1.2.3-SNAPSHOT-r422266:998216M nonfatal user error>
> > org.apache.openjpa.util.UserException: Type
> > "org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess"
> > attempts to use both field and property access. Only one access
> > method is permitted. Field access is used on the following fields:
> > [private
> > int
> > org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.id
> ].
> > Property access is used on the following methods: [public
> java.lang.String
> >
> >
> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.getStringField()].
> > at
> >
> >
> org.apache.openjpa.meta.AbstractMetaDataDefaults.populate(AbstractMetaDataDefaults.java:161)
> > at
> >
> >
> org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate(PersistenceMetaDataDefaults.java:227)
> > at
> >
> >
> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:905)
> > at
> >
> >
> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:891)
> > at
> >
> >
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:660)
> > at
> >
> >
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:480)
> > at
> >
> >
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:352)
> > at
> >
> >
> org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:229)
> > at
> >
> >
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:569)
> > at
> >
> >
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:379)
> > at
> >
> >
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(MetaDataRepository.java:366)
> > at
> >
> >
> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:360)
> > at
> org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:253)
> > at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4568)
> > at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4515)
> > at
> org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4485)
> > at
> >
> >
> org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:708)
> > at
> >
> >
> org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:698)
> > at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4480)
> > at
> >
> >
> org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs.testEnhancementOfAllPUsWithinAResource(TestEnhancementWithMultiplePUs.java:143)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:618)
> > 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
> >
> >
> org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
> > 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:79)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:618)
> > at
> >
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> > at
> >
> >
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> > at
> >
> >
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> > at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:618)
> > at
> >
> >
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> > at
> >
> >
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
> >
>
Re: Problem with 1.2.x testcase?
Posted by Michael Dick <mi...@gmail.com>.
FWIW revision 998283 worked for me. I remember seeing a problem with 998216
but I thought it was some pom.xml noise. Donald just started updating the
build files to use Nexus - you might have just caught a bad timing window.
Looks like there are local changes too - the line number for
TestEnhancementWithMultiplePUs doesn't match mine (could just be debug on
your end though).
If you still see the problem on 998283 reply and I can take another look.
-mike
On Fri, Sep 17, 2010 at 2:42 PM, Kevin Sutter <kw...@gmail.com> wrote:
> Hi,
> I just hit this problem while running the 1.2.x test bucket... Is anybody
> else experiencing this or is it something in my environment?
>
>
> testEnhancementOfAllPUsWithinAResource(org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs)
> Time elapsed: 7.859 sec <<< ERROR!
> <openjpa-1.2.3-SNAPSHOT-r422266:998216M nonfatal user error>
> org.apache.openjpa.util.UserException: Type
> "org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess"
> attempts to use both field and property access. Only one access
> method is permitted. Field access is used on the following fields:
> [private
> int
> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.id].
> Property access is used on the following methods: [public java.lang.String
>
> org.apache.openjpa.persistence.jdbc.annotations.UnenhancedMixedAccess.getStringField()].
> at
>
> org.apache.openjpa.meta.AbstractMetaDataDefaults.populate(AbstractMetaDataDefaults.java:161)
> at
>
> org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate(PersistenceMetaDataDefaults.java:227)
> at
>
> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:905)
> at
>
> org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepository.java:891)
> at
>
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:660)
> at
>
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:480)
> at
>
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:352)
> at
>
> org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:229)
> at
>
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:569)
> at
>
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:379)
> at
>
> org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(MetaDataRepository.java:366)
> at
>
> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:360)
> at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:253)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4568)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4515)
> at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4485)
> at
>
> org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:708)
> at
>
> org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:698)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4480)
> at
>
> org.apache.openjpa.enhance.TestEnhancementWithMultiplePUs.testEnhancementOfAllPUsWithinAResource(TestEnhancementWithMultiplePUs.java:143)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:618)
> 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
>
> org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
> 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:79)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:618)
> at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> at
>
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> at
>
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:618)
> at
>
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> at
>
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
>