apache jackrabbit与mongodb和jboss问题

时间:2018-07-07 04:08:50

标签: java rmi jackrabbit

我的代码是

Repository repository = new URLRemoteRepository("http://localhost:8088/rmi");
    //  Repository repository = JcrUtils.getRepository();
    Session session = repository.login(new SimpleCredentials("admin", "admin".toCharArray()));
        Node root = session.getRootNode(); 
        System.out.println("get root node..");
        // Store content 
        Node hello = root.addNode("hello55555555555"); 
        Node world = hello.addNode("world"); 
        world.setProperty("message", "Hello, World!"); 
        session.save(); 
        System.out.println("repository accessed successfully......");

我遇到以下错误

获取根节点。 org.apache.jackrabbit.rmi.client.RemoteRepositoryException:java.rmi.ServerException:服务器线程中发生RemoteException。嵌套的异常是:     java.rmi.UnmarshalException:错误解组参数;嵌套的异常是:     java.io.InvalidClassException:org.apache.jackrabbit.rmi.value.StringValue;本地类不兼容:流classdesc serialVersionUID = -6456025645604163205,本地类serialVersionUID = 220963478492833703

0 个答案:

没有答案