openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee" <allee8...@gmail.com>
Subject Re: [jira] Commented: (OPENJPA-685) Problem enhancing test cases with Maven 2.0.8 and later
Date Mon, 11 Aug 2008 15:36:12 GMT
David,

Kevin S. had set up maven 2.0.9 and ran into this problem. After moving back
to 2.0.8, the problem goes away.

I am running maven 2.0.8 too and have been consistently building openjpa.

You said you ran 2.0.8 in April. Have you tried 2.0.8 recently?

Mike D.'s recommendation is to avoid 2.0.9.

Albert Lee.

On Mon, Aug 11, 2008 at 10:17 AM, David Ezzio (JIRA) <jira@apache.org>wrote:

>
>    [
> https://issues.apache.org/jira/browse/OPENJPA-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621474#action_12621474]
>
> David Ezzio commented on OPENJPA-685:
> -------------------------------------
>
> Hi Albert,
>
> I first saw this problem with Maven 2.0.8 in April.  I tried your
> suggestion with Maven 2.0.9.  Report behavior persists.
>
> My configuration:
>
> C:\code\svn\RW_OpenJPAMainline>mvn -v
> Maven version: 2.0.9
> Java version: 1.5.0_14
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
> C:\code\svn\RW_OpenJPAMainline>java -version
> java version "1.5.0_14"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode)
>
> C:\code\svn\RW_OpenJPAMainline>ver
>
> Microsoft Windows XP [Version 5.1.2600]
>
>
> > Problem enhancing test cases with Maven 2.0.8 and later
> > -------------------------------------------------------
> >
> >                 Key: OPENJPA-685
> >                 URL: https://issues.apache.org/jira/browse/OPENJPA-685
> >             Project: OpenJPA
> >          Issue Type: Bug
> >          Components: build / infrastructure
> >         Environment: Maven 2.0.8, Maven 2.0.9 (latest available) and Sun
> JVM 1.5.0_14.
> >            Reporter: David Ezzio
> >
> > Starting with Maven 2.0.8 there is a problem with the enhancement step
> that leads to numerous (yet apparently non-fatal) exceptions being thrown
> during the enhancement step.  Debugging reveals that the problem occurs when
> the code is trying to unzip pom.xml.  The problem may arise from some
> difference in the Maven Ant plugin.
> > The exception seen looks like the following:
> > java.util.zip.ZipException: error in opening zip file
> >         at java.util.zip.ZipFile.open(Native Method)
> >         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> >         at java.util.zip.ZipFile.<init>(ZipFile.java:234)
> >         at
> org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
> >         at
> org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:832)
> >         at java.lang.ClassLoader.getResource(ClassLoader.java:972)
> >         at
> org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:377)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at
> org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getSourceFile(AnnotationPersistenceMetaDataParser.java:684)
> >         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:474)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:294)
> >         at
> org.apache.openjpa.meta.ValueMetaDataImpl.resolveDeclaredType(ValueMetaDataImpl.java:431)
> >         at
> org.apache.openjpa.meta.ValueMetaDataImpl.resolve(ValueMetaDataImpl.java:410)
> >         at
> org.apache.openjpa.meta.FieldMetaData.resolve(FieldMetaData.java:1676)
> >         at
> org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1690)
> >         at
> org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1625)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:717)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:616)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:541)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:308)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:581)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:541)
> >         at
> org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:308)
> >         at
> org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:248)
> >         at
> org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4492)
> >         at
> org.apache.openjpa.ant.PCEnhancerTask.executeOn(PCEnhancerTask.java:89)
> >         at
> org.apache.openjpa.lib.ant.AbstractTask.execute(AbstractTask.java:172)
> >         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
> >         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> >         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
> >         at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
> >         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> >         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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Albert Lee.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message