What steps will reproduce the problem?
1. instantiate 4 service replicas
2. send ordered messages
3. call ServiceReplica#leave to teardown my test cases
What is the expected output? What do you see instead?
I would expect the replica to be removed from the test set. My idea is to call
this for each replica so that I can start new replica servers with different
business logic (for other test cases).
What version of the product are you using? On what operating system?
bft-smart 0.8, Ubuntu Desktop 13.04 as well as Ubuntu Server 13.04
Please provide any additional information below.
A short investigation showed that the ServiceProxy within the generated
Reconfiguration Object is never initialed (it was commented out in the
constructor, the new (?) connect method is not called)
java.lang.NullPointerException
at bftsmart.reconfiguration.Reconfiguration.execute(Reconfiguration.java:59)
at bftsmart.tom.ServiceReplica.leave(ServiceReplica.java:376)
at at.ac.ait.archistar.storage.bft.FakeBftRemoteStorageServer.shutdown(FakeBftRemoteStorageServer.java:199)
at at.ac.ait.archistar.bft.BftS3Test.destroyReplicas(BftS3Test.java:45)
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:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
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.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Original issue reported on code.google.com by andreash...@snikt.net on 3 Jul 2013 at 3:36
Original issue reported on code.google.com by
andreash...@snikt.net
on 3 Jul 2013 at 3:36