tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng" <enjoyj...@gmail.com>
Subject Re: [2.x] NPE in node-launcher-equinox
Date Thu, 06 Aug 2009 16:32:47 GMT
It turned out that the thread context class loader is polluted by another 
test case in the same build as the JVM is forked once and the TCCL is a 
staled OSGi class loader.

I fixed the root cause in JAXBContextCache to make sure the TCCL is 
restored. After that, the test case is passing and I added it back now.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <ant.elder@gmail.com>
Sent: Thursday, August 06, 2009 6:40 AM
To: <dev@tuscany.apache.org>
Subject: Re: [2.x] NPE in node-launcher-equinox

> I get the same. I've taken out the testcase with @Ignore in r801643
> for now (and yes if its not fixed soon i'll raise a jira for that)
>
>   ...ant
>
> On Thu, Aug 6, 2009 at 10:22 AM, Simon Laws<simonslaws@googlemail.com> 
> wrote:
>> With an svn up this morning I'm getting the following. Anyone else seeing 
>> this?
>>
>>
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.766 sec
>> Running 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxOSGiHostTestCase
>> 06-Aug-2009 10:20:17 
>> org.apache.tuscany.sca.node.equinox.launcher.FrameworkLaunc
>> her loadFrameworkFactory
>> SEVERE: null
>> java.lang.NullPointerException
>>        at 
>> org.eclipse.osgi.internal.loader.BundleLoader.findDynamicSource(Bundl
>> eLoader.java:1051)
>>        at 
>> org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoad
>> er.java:616)
>>        at 
>> org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoad
>> er.java:564)
>>        at 
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.getResource(
>> DefaultClassLoader.java:141)
>>        at 
>> java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.FrameworkLauncher.loadFr
>> ameworkFactory(FrameworkLauncher.java:53)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.FrameworkLauncher.newFra
>> mework(FrameworkLauncher.java:100)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxHost.startFramewo
>> rk(EquinoxHost.java:630)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxHost.start(Equino
>> xHost.java:254)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxOSGiHostTestCase.
>> testStartThenStop(EquinoxOSGiHostTestCase.java:39)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
>> Method.java:44)
>>        at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
>> lable.java:15)
>>        at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
>> thod.java:41)
>>        at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet
>> hod.java:20)
>>        at 
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
>> java:28)
>>        at 
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
>> va:31)
>>        at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
>> ner.java:73)
>>        at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
>> ner.java:46)
>>        at 
>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>>        at 
>> org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>>        at 
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
>> java:28)
>>        at 
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
>> va:31)
>>        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
>>        at 
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
>> java:62)
>>        at 
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
>> tSet(AbstractDirectoryTestSuite.java:140)
>>        at 
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
>> stractDirectoryTestSuite.java:127)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at 
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
>> refireBooter.java:345)
>>        at 
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
>> ava:1009)
>> 06-Aug-2009 10:20:17 
>> org.apache.tuscany.sca.node.equinox.launcher.FrameworkLaunc
>> her loadFrameworkFactory
>> SEVERE: null
>> java.lang.NullPointerException
>>        at 
>> org.eclipse.osgi.internal.loader.BundleLoader.findDynamicSource(Bundl
>> eLoader.java:1051)
>>        at 
>> org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoad
>> er.java:616)
>>        at 
>> org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoad
>> er.java:564)
>>        at 
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.getResource(
>> DefaultClassLoader.java:141)
>>        at 
>> java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.FrameworkLauncher.loadFr
>> ameworkFactory(FrameworkLauncher.java:53)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.FrameworkLauncher.newFra
>> mework(FrameworkLauncher.java:100)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxHost.startFramewo
>> rk(EquinoxHost.java:630)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxHost.start(Equino
>> xHost.java:254)
>>        at 
>> org.apache.tuscany.sca.node.equinox.launcher.EquinoxOSGiHostTestCase.
>> testStartThenStopTwice(EquinoxOSGiHostTestCase.java:50)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
>> Method.java:44)
>>        at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
>> lable.java:15)
>>        at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
>> thod.java:41)
>>        at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet
>> hod.java:20)
>>        at 
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
>> java:28)
>>        at 
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
>> va:31)
>>        at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
>> ner.java:73)
>>        at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
>> ner.java:46)
>>        at 
>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>>        at 
>> org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>>        at 
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
>> java:28)
>>        at 
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
>> va:31)
>>        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
>>        at 
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
>> java:62)
>>        at 
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
>> tSet(AbstractDirectoryTestSuite.java:140)
>>        at 
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
>> stractDirectoryTestSuite.java:127)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at 
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
>> refireBooter.java:345)
>>        at 
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
>> ava:1009)
>>
>> Simon
>>
> 

Mime
View raw message