hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Cash" <>
Subject Simple example fails to run, Service point X does not exist
Date Sat, 23 Oct 2004 21:14:02 GMT
I have been desparatly trying to get Hivemind working, but for whatever 
reason, it just won't go. I must be doing something incredibly stupid, since 
I can't find any similar posts on this list from other users. In any case, 
here goes:

I am getting this exception:

org.apache.hivemind.ApplicationRuntimeException: Service point messageMover 
does not exist.
	at org.apache.hivemind.impl.RegistryImpl.getService(
	at hivexample.Main.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(
	at com.intellij.rt.execution.application.AppMain.main(
Exception in thread "main"

My Main class looks like this:

public class Main {
    public static void main(String[] args) throws Exception {
        System.err.println("Path: " + new File(".").getAbsolutePath());
        Registry registry = RegistryBuilder.constructDefaultRegistry();
        IMessageMover mover = (IMessageMover) 
registry.getService("messageMover", IMessageMover.class);


And my hivemodule.xml looks like this:

<?xml version="1.0"?>
<module id="hivexample" version="1.0.0">

  <service-point id="messageSource" interface="hivexample.IMessageSource">
    <create-instance class="hivexample.impl.ConsoleSource"/>

  <service-point id="messageWriter" interface="hivexample.IMessageWriter">
    <create-instance class="hivexample.impl.ConsoleWriter"/>

  <service-point id="messageSource" interface="hivexample.IMessageSource">
    <create-instance class="hivexample.impl.ConsoleSource"/>

  <service-point id="messageMover" interface="hivexample.IMessageMover">
    <create-instance class="hivexample.impl.SimpleMessageMover"/>


The structure of the project looks like this:

                     \${all my interfaces}
                            \${all my implemented interfaces}

I am guessing that my code RegistryBuilder.constructDefaultRegistry() isn't 
picking up the config file.

Other Info:
    - Exectuing in IntelliJ 4.5.2
    - Hivemind 1.0
    - JDK 1.4.2 (not that it should matter)
    - Windows XP (again, shouldn't matter)

Any help is appreciated !!!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message