Yes, it's possible- I will look in that! cheers adam -- Adam Feuer <[EMAIL PROTECTED]> Amazon.com Enterprise Solutions
> -----Original Message----- > From: Achim Hügen [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 14, 2006 11:37 PM > To: user@hivemind.apache.org > Subject: Re: org.apache.hivemind.ApplicationRuntimeException: > Unable to create class $Runnable_10dadee6479 > > 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.cr > eateSingletonProxy(SingletonServiceModel.java:130) > > at > > > org.apache.hivemind.impl.servicemodel.SingletonServiceModel.ge > tService(SingletonServiceModel.java:57) > > at > > > org.apache.hivemind.impl.ServicePointImpl.getService(ServicePo > intImpl.java:210) > > at > > > org.apache.hivemind.impl.ServicePointImpl.getService(ServicePo > intImpl.java:223) > > at > > > org.apache.hivemind.impl.RegistryInfrastructureImpl.getService > (RegistryInfrastructureImpl.java:207) > > at > > > org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(Re > gistryInfrastructureImpl.java:434) > > at > > > org.apache.hivemind.impl.RegistryBuilder.constructRegistry(Reg > istryBuilder.java:154) > > at > > > org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegis > try(RegistryBuilder.java:196) > > at > > > amazon.jaws.spike.configuration.hivemind.FooWorkerTest.setUp(F > ooWorkerTest.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.JUnit3TestReferen > ce.run(JUnit3TestReference.java:128) > > at > > > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestEx > ecution.java:38) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest > s(RemoteTestRunner.java:460) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest > s(RemoteTestRunner.java:673) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(Rem > oteTestRunner.java:386) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest > > Runner.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(CtC > lassSource.java:88) > > at > > > org.apache.hivemind.service.impl.AbstractFab.createClass(Abstr > actFab.java:92) > > at > > > org.apache.hivemind.impl.servicemodel.SingletonServiceModel.cr > eateSingletonProxyClass(SingletonServiceModel.java:185) > > at > > > org.apache.hivemind.impl.servicemodel.SingletonServiceModel.cr > eateSingletonProxy(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(Hiv > eMindClassPool.java:75) > > at > > > org.apache.hivemind.service.impl.CtClassSource.createClass(CtC > lassSource.java:84) > > ... 24 more > > > > > >