You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Erik Rasmussen <i_...@yahoo.com> on 2004/07/06 23:34:50 UTC

Can't get most simple example to work

First of all, I can't see anywhere to actually obtain
the calculator example, so I've constructed what I
think to be the simplest example based on what I
understand from the online tutorials.

I'm getting:

Exception in thread "main"
org.apache.hivemind.ApplicationRuntimeException:
Unable to create class $SingletonProxy_fd964a7359_0:
javassist.ClassPool.write(Ljava/lang/String;)[B
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(Unknown
Source)
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(Unknown
Source)
	at
org.apache.hivemind.impl.ServicePointImpl.getService(Unknown
Source)
	at
org.apache.hivemind.impl.ServicePointImpl.getService(Unknown
Source)
	at
org.apache.hivemind.impl.RegistryImpl.getService(Unknown
Source)
	at
org.apache.hivemind.impl.RegistryImpl.startup(Unknown
Source)
	at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(Unknown
Source)
	at
org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(Unknown
Source)

The example I've created is here:
http://www.erik-rasmussen.com/hivemind/simple-hivemind-example.tar.gz
(602K)

Either I'm missing something, or I'm not using
compatible jars (maybe I need an older version of
javassist.jar?).

Thanks for any help you can provide,
Erik


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Can't get most simple example to work

Posted by Howard Lewis Ship <hl...@gmail.com>.
It looks like it should work; perhaps there's an issue because you are
using the default package?  I would suggest moving your Java files
into a package and see if that makes a difference.

On Tue, 6 Jul 2004 14:34:50 -0700 (PDT), Erik Rasmussen
<i_...@yahoo.com> wrote:
> First of all, I can't see anywhere to actually obtain
> the calculator example, so I've constructed what I
> think to be the simplest example based on what I
> understand from the online tutorials.
> 
> I'm getting:
> 
> Exception in thread "main"
> org.apache.hivemind.ApplicationRuntimeException:
> Unable to create class $SingletonProxy_fd964a7359_0:
> javassist.ClassPool.write(Ljava/lang/String;)[B
>         at
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(Unknown
> Source)
>         at
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(Unknown
> Source)
>         at
> org.apache.hivemind.impl.ServicePointImpl.getService(Unknown
> Source)
>         at
> org.apache.hivemind.impl.ServicePointImpl.getService(Unknown
> Source)
>         at
> org.apache.hivemind.impl.RegistryImpl.getService(Unknown
> Source)
>         at
> org.apache.hivemind.impl.RegistryImpl.startup(Unknown
> Source)
>         at
> org.apache.hivemind.impl.RegistryBuilder.constructRegistry(Unknown
> Source)
>         at
> org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(Unknown
> Source)
> 
> The example I've created is here:
> http://www.erik-rasmussen.com/hivemind/simple-hivemind-example.tar.gz
> (602K)
> 
> Either I'm missing something, or I'm not using
> compatible jars (maybe I need an older version of
> javassist.jar?).
> 
> Thanks for any help you can provide,
> Erik
> 
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org