New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samples build fails #59

Closed
tleveque opened this Issue Dec 18, 2013 · 7 comments

Comments

Projects
None yet
2 participants
@tleveque

Running environment : Windows 8

Controller injection does not work into tests


Test set: org.wisdom.samples.hello.HelloControllerIT

Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 2.882 sec <<< FAILURE! - in org.wisdom.samples.hello.HelloControllerIT
testHello(org.wisdom.samples.hello.HelloControllerIT) Time elapsed: 0 sec <<< ERROR!
java.lang.IllegalArgumentException: Can not set org.wisdom.samples.hello.HelloController field org.wisdom.samples.hello.HelloControllerIT.controller to org.wisdom.samples.hello.HelloController
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
at java.lang.reflect.Field.set(Field.java:680)
at org.wisdom.test.parents.DependencyInjector.set(DependencyInjector.java:149)
at org.wisdom.test.parents.DependencyInjector.inject(DependencyInjector.java:83)
at org.wisdom.test.parents.DependencyInjector.inject(DependencyInjector.java:35)
at org.wisdom.test.shared.InVivoRunner.createTest(InVivoRunner.java:32)
at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:244)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:241)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.wisdom.test.shared.InVivoRunner.run(InVivoRunner.java:38)
at org.wisdom.test.WisdomRunner.run(WisdomRunner.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Dec 18, 2013

Member

Yes, I'm aware of the issue. The test framework is not yet finalized. I have a new version where the application bundle and the probe bundle are no more one single bundle. I plan to provide a new version of the testing support this weekend.

Member

cescoffier commented Dec 18, 2013

Yes, I'm aware of the issue. The test framework is not yet finalized. I have a new version where the application bundle and the probe bundle are no more one single bundle. I plan to provide a new version of the testing support this weekend.

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Dec 18, 2013

Member

BTW... it's a classloading issue ;-)

Member

cescoffier commented Dec 18, 2013

BTW... it's a classloading issue ;-)

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Dec 22, 2013

Member

Should be fixed by now, could you confirm ?

Member

cescoffier commented Dec 22, 2013

Should be fixed by now, could you confirm ?

@tleveque

This comment has been minimized.

Show comment
Hide comment
@tleveque

tleveque Dec 22, 2013

Works on Mac But fails on Win 8 during ehcache-cache-service tests.


Test set: org.wisdom.cache.ehcache.EhCacheServiceIT

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.764 sec <<< FAILURE! - in org.wisdom.cache.ehcache.EhCacheServiceIT
initializationError(org.wisdom.cache.ehcache.EhCacheServiceIT) Time elapsed: 0.01 sec <<< ERROR!
java.lang.RuntimeException: Cannot install or start the application bundle
at org.wisdom.test.internals.ChameleonExecutor.deployApplication(ChameleonExecutor.java:124)
at org.wisdom.test.WisdomRunner.(WisdomRunner.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.wisdom-framework.ehcache-cache-service:1.0.0.SNAPSHOT
at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
at org.apache.felix.framework.BundleImpl.(BundleImpl.java:96)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)
at org.wisdom.test.internals.ChameleonExecutor.deployApplication(ChameleonExecutor.java:121)
at org.wisdom.test.WisdomRunner.(WisdomRunner.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Works on Mac But fails on Win 8 during ehcache-cache-service tests.


Test set: org.wisdom.cache.ehcache.EhCacheServiceIT

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.764 sec <<< FAILURE! - in org.wisdom.cache.ehcache.EhCacheServiceIT
initializationError(org.wisdom.cache.ehcache.EhCacheServiceIT) Time elapsed: 0.01 sec <<< ERROR!
java.lang.RuntimeException: Cannot install or start the application bundle
at org.wisdom.test.internals.ChameleonExecutor.deployApplication(ChameleonExecutor.java:124)
at org.wisdom.test.WisdomRunner.(WisdomRunner.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.wisdom-framework.ehcache-cache-service:1.0.0.SNAPSHOT
at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
at org.apache.felix.framework.BundleImpl.(BundleImpl.java:96)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)
at org.wisdom.test.internals.ChameleonExecutor.deployApplication(ChameleonExecutor.java:121)
at org.wisdom.test.WisdomRunner.(WisdomRunner.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Dec 22, 2013

Member

Hum, weird, will need a VM to reproduce it. It looks like the classloading is different on win 8.

Member

cescoffier commented Dec 22, 2013

Hum, weird, will need a VM to reproduce it. It looks like the classloading is different on win 8.

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Dec 23, 2013

Member

I've installed windows 8. I also have an issue on ehcache, but the issue is a bit different, as in my case it looks like it can't 'install of start the application bundle'.

Member

cescoffier commented Dec 23, 2013

I've installed windows 8. I also have an issue on ehcache, but the issue is a bit different, as in my case it looks like it can't 'install of start the application bundle'.

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Dec 23, 2013

Member

I've fixed my issue by changing the way I lookup the application bundle. So right now, I've a complete Wisdom build working on Windows 8.

Member

cescoffier commented Dec 23, 2013

I've fixed my issue by changing the way I lookup the application bundle. So right now, I've a complete Wisdom build working on Windows 8.

@cescoffier cescoffier closed this Mar 20, 2014

@cescoffier cescoffier added this to the 0.4.0 milestone Apr 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment