I assume that another javassist version is in your classpath.
The method javassist.CtClass.toClass(Ljava/lang/ClassLoader;)
has been introduced in javassist 3.0.
Any chance that a 2.6 is around and picked up by hivemind?
Achim
Am Thu, 14 Sep 2006 22:15:57 +0200 schrieb Feuer, Adam <[EMAIL PROTECTED]>:
Folks,
I'm trying to get a simple HiveMind application going to demonstrate its
capabilities to my team. I couldn't get the examples to run, so I am
trying to create a simple example. It's enclosed. I seem to be able to
build the registry ok, but then when I do this line, I get an exception:
Worker fooWorker = (Worker)
this.registry.getService(FooWorkerImpl.class);
The exception follows. Any ideas about what is happening?
cheers
adam
--
Adam Feuer <[EMAIL PROTECTED]>
Amazon.com Enterprise Solutions
org.apache.hivemind.ApplicationRuntimeException: Unable to create class
$Runnable_10dadee6479:
javassist.CtClass.toClass(Ljava/lang/ClassLoader;)Ljava/lang/Class;
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:434)
at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:154)
at
org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(RegistryBuilder.java:196)
at
amazon.jaws.spike.configuration.hivemind.FooWorkerTest.setUp(FooWorkerTest.java:14)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to
create class $Runnable_10dadee6479:
javassist.CtClass.toClass(Ljava/lang/ClassLoader;)Ljava/lang/Class;
at
org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:88)
at
org.apache.hivemind.service.impl.AbstractFab.createClass(AbstractFab.java:92)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:185)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:102)
... 21 more
Caused by: java.lang.NoSuchMethodError:
javassist.CtClass.toClass(Ljava/lang/ClassLoader;)Ljava/lang/Class;
at
org.apache.hivemind.service.impl.HiveMindClassPool.toClass(HiveMindClassPool.java:75)
at
org.apache.hivemind.service.impl.CtClassSource.createClass(CtClassSource.java:84)
... 24 more