Hi everybody,

I found this error while trying to connect to a remote cloud to retrieve
some info. I made every configuration change I know (rmmci.xml is active,
the host property is set to 127.0.0.1, the RMMCITest class is located in the
same machine and has got mmbase-rmmci.jar in its classpath) but it doesn't
work.

The error message is:

java.lang.RuntimeException: error unmarshalling return; nested exception is:

        java.net.MalformedURLException: no protocol: de
        at org.mmbase.bridge.RemoteContext.getCloudContext
(RemoteContext.java:50)
        at org.mmbase.bridge.ContextProvider.getCloudContext
(ContextProvider.java:49)
        at RMMCITest.main(RMMCITest.java:6)
Exception in thread "main" 

The sample code tested is literally taken from
http://www.mmbase.org/mmdocs/backenddevelopers/rmmci.html (pasted below):

---
import org.mmbase.bridge.*;
import java.util.*;

public class RMMCITest{
   public static void main(String[] argv){
      CloudContext cloudContext = ContextProvider.getCloudContext
("rmi://127.0.0.1:1111/remotecontext");
      HashMap user = new HashMap();
      user.put("username", "admin");
      user.put("password", "admin2k");
      Cloud cloud = cloudContext.getCloud("mmbase","name/password",user);
      NodeManager nodeManager = cloud.getNodeManager("mmservers");
      NodeIterator nodeIterator = nodeManager.getList
(null,null,null).nodeIterator();
      System.out.println("NodeManager " + nodeManager.getName());
      while(nodeIterator.hasNext()){
         Node node = nodeIterator.nextNode();
         FieldIterator fieldIterator = nodeManager.getFields
(NodeManager.ORDER_EDIT).fieldIterator();
         System.out.println("name \t: value");
         while(fieldIterator.hasNext()){
            Field field = fieldIterator.nextField();
            String fieldName = field.getName();
            System.out.println(fieldName +"\t: "+ node.getStringValue
(fieldName));
         }
      }
   }
}
---

Any ideas? The offending line seems to be in java.rmi.Naming

Does the document lack some additional configuration info?


Thanks in advance.


Reply via email to