openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-685) Problem enhancing test cases with Maven 2.0.9
Date Mon, 22 Sep 2008 14:06:44 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Dick updated OPENJPA-685:
---------------------------------

    Attachment: OPENJPA_685.patch.txt

I have not been able to reproduce the issue on Linux. From the documentation on the antrun
plugin page it looks like maven.dependency.classpath is (or will be) deprecated). The maven.compile.classpath
is a subset of maven.test.classpath and can also be removed. 

I took both references out of the build files and produced the attached patch. If one of the
people who can reproduce the problem could verify that the patch works I'll go ahead and commit
the changes. Otherwise I'll try to scrounge up a Windows box.

> Problem enhancing test cases with Maven 2.0.9 
> ----------------------------------------------
>
>                 Key: OPENJPA-685
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-685
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: build / infrastructure
>         Environment: Maven 2.0.9 (latest available) and Sun JVM 1.5.0_14.
>            Reporter: David Ezzio
>            Assignee: Michael Dick
>         Attachments: OPENJPA_685.patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Starting with Maven 2.0.8 (later corrected to 2.0.9) 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.


Mime
View raw message