tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laird Nelson <ljnel...@gmail.com>
Subject Unable to clear Sun JarFileFactory cache?
Date Fri, 09 Apr 2010 20:19:44 GMT
I have a project that I put together a while back, stuck under Hudson, and
it's been building fine ever since.  It uses OpenEJB 3.1.3-SNAPSHOT.

I just noticed that its builds have begun to fail during testing.  OpenEJB
is now spitting out:

INFO - Undeploying app: classpath.ear
DEBUG - Destroying classLoaders for application classpath.ear
DEBUG - Destroying classLoader URLClassLoader@14460880
DEBUG - Releasing URLs for application classpath.ear
DEBUG - Clearing Sun JarFileFactory cache for directory classpath.ear
ERROR - Unable to clear Sun JarFileFactory cache
java.lang.IllegalArgumentException: bad url file:/E:/Documents and
Settings/Laird
Nelson/.m2/repository/org/apache/openejb/openejb-core/3.1.3-SNAPSHOT/openejb-core-3.1.3-SNAPSHOT.jar
    at org.apache.openejb.util.URLs.toFile(URLs.java:48)
    at
org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:182)
    at
org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
    at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:925)
    at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:792)
    at
org.apache.openejb.assembler.classic.Assembler.destroy(Assembler.java:753)
    at org.apache.openejb.OpenEJB.destroy(OpenEJB.java:240)
    at
org.apache.openejb.client.LocalInitialContext.tearDownOpenEJB(LocalInitialContext.java:105)
    at
org.apache.openejb.client.LocalInitialContext.destroy(LocalInitialContext.java:97)
    at
org.apache.openejb.client.LocalInitialContext.close(LocalInitialContext.java:87)
    at javax.naming.InitialContext.close(InitialContext.java:531)
    at
com.jenzabar.drools.jca.TestCaseDeployment.closeContext(TestCaseDeployment.java:99)
    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:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
    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:597)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
Caused by: java.net.URISyntaxException: Illegal character in path at index
18: file:/E:/Documents and Settings/Laird
Nelson/.m2/repository/org/apache/openejb/openejb-core/3.1.3-SNAPSHOT/openejb-core-3.1.3-SNAPSHOT.jar
    at java.net.URI$Parser.fail(URI.java:2809)
    at java.net.URI$Parser.checkChars(URI.java:2982)
    at java.net.URI$Parser.parseHierarchical(URI.java:3066)
    at java.net.URI$Parser.parse(URI.java:3014)
    at java.net.URI.<init>(URI.java:578)
    at java.net.URL.toURI(URL.java:918)
    at org.apache.openejb.util.URLs.toFile(URLs.java:46)

I don't remember seeing this error before (although anything is possible).
Is it possible that the latest snapshot changed the way it handles URLs?

Thanks,
Laird

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