[
https://issues.jboss.org/browse/JBJCA-1027?page=com.atlassian.jira.plugin...
]
Jesper Pedersen commented on JBJCA-1027:
----------------------------------------
Could you create a forum post, and run
https://github.com/kohsuke/file-leak-detector/commits/master on it
com.github.fungal.impl.KernelImpl.recursiveDelete cannot delete
temporary jar file on Windows
---------------------------------------------------------------------------------------------
Key: JBJCA-1027
URL:
https://issues.jboss.org/browse/JBJCA-1027
Project: IronJacamar
Issue Type: Bug
Components: Fungal
Environment: Windows 7; Windows 2008 Server
Reporter: Gytis Trikleris
Assignee: Jesper Pedersen
{code}
-------------------------------------------------------------------------------
Test set: org.jboss.narayana.quickstart.jca.model.CustomerDAOTest
-------------------------------------------------------------------------------
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.32 sec <<<
FAILURE!
org.jboss.narayana.quickstart.jca.model.CustomerDAOTest Time elapsed: 0.063 sec
<<< ERROR!
java.io.IOException: Could not delete
C:\Users\hudson\AppData\Local\Temp\2\iron.jacamar\tmp\jdbc-xa.rar\ironjacamar-jdbc.jar
at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1520)
at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1515)
at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1515)
at com.github.fungal.impl.KernelImpl.shutdown(KernelImpl.java:850)
at org.jboss.jca.embedded.EmbeddedJCA.shutdown(EmbeddedJCA.java:158)
at
org.jboss.narayana.quickstart.jca.common.AbstractTest.afterClass(AbstractTest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at $Proxy0.invoke(Unknown Source)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
{code}
It works fine on Linux. However, it fails on both Windows 7 and Windows 2008 server.
This simple test class also fails during shutdown with the same error:
{code}
public class SimpleTest {
private static final String JDBC_RAR_FILE_PATH =
"src/main/resources/jdbc-xa.rar";
private static Embedded EMBEDDED;
@Test
public void test() throws Throwable {
EMBEDDED = EmbeddedFactory.create();
EMBEDDED.startup();
EMBEDDED.deploy(getURL(JDBC_RAR_FILE_PATH));
System.out.println("Test...");
EMBEDDED.undeploy(getURL(JDBC_RAR_FILE_PATH));
EMBEDDED.shutdown();
}
private static URL getURL(final String path) throws MalformedURLException {
final File f = new File(path);
return f.toURI().toURL();
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira