ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r1311527 - /ant/core/trunk/src/tests/antunit/taskdefs/import-url-test.xml
Date Tue, 10 Apr 2012 00:14:32 GMT
Author: jglick
Date: Tue Apr 10 00:14:31 2012
New Revision: 1311527

URL: http://svn.apache.org/viewvc?rev=1311527&view=rev
Log:
https://builds.apache.org/pview/job/Ant-Build-Matrix/475/jdk=JDK%201.5%20(latest),label=Ubuntu/testReport/junit/(root)/%3Cinit%3E/src_tests_antunit_taskdefs_import_url_test_xml/
.../src/tests/antunit/taskdefs/import-url-test.xml:74: The following error occurred while
executing this line:
.../src/tests/antunit/taskdefs/import-url-test.xml:48: java.lang.IllegalStateException: zip
file closed
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:395)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.Target.performTasks(Target.java:413)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.ant.antunit.AntUnitScriptRunner.runTarget(AntUnitScriptRunner.java:237)
	at org.apache.ant.antunit.AntUnitScriptRunner.runSuite(AntUnitScriptRunner.java:303)
	at org.apache.ant.antunit.AntUnit.doFile(AntUnit.java:268)
	at org.apache.ant.antunit.AntUnit.doResourceCollection(AntUnit.java:247)
	at org.apache.ant.antunit.AntUnit.execute(AntUnit.java:218)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.Target.performTasks(Target.java:413)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.Main.runBuild(Main.java:811)
	at org.apache.tools.ant.Main.startAnt(Main.java:217)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: .../src/tests/antunit/taskdefs/import-url-test.xml:48: java.lang.IllegalStateException:
zip file closed
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
	at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:393)
	... 32 more
Caused by: java.lang.IllegalStateException: zip file closed
	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:518)
	at java.util.zip.ZipFile.getEntry(ZipFile.java:251)
	at java.util.jar.JarFile.getEntry(JarFile.java:204)
	at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:90)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:112)
	at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:124)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
	at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
	at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:307)
	at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:168)
	at org.apache.tools.ant.taskdefs.ImportTask.importResource(ImportTask.java:229)
	at org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:163)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 37 more

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/import-url-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/import-url-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/import-url-test.xml?rev=1311527&r1=1311526&r2=1311527&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/import-url-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/import-url-test.xml Tue Apr 10 00:14:31 2012
@@ -71,6 +71,7 @@ foo=bar
       </javaresource>
     </close>
     <delete file="${test.jar}" quiet="true" deleteonexit="true"/>
-    <antcall target="antunit-base.tearDown"/>
+    <!-- Calling antunit-base.tearDown sometimes causes ISEs in <import> in Ant-Build-Matrix:
-->
+    <delete dir="${input}"/>
   </target>
 </project>



Mime
View raw message