【问题标题】:org.apache.jackrabbit.rmi.value.StringValue; local class incompatibleorg.apache.jackrabbit.rmi.value.StringValue;本地类不兼容
【发布时间】:2018-07-07 11:14:15
【问题描述】:

我的代码是

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......");

我收到以下错误

get root node..
org.apache.jackrabbit.rmi.client.RemoteRepositoryException:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: org.apache.jackrabbit.rmi.value.StringValue; local class incompatible: stream classdesc serialVersionUID = -6456025645604163205, local class serialVersionUID = 220963478492833703

【问题讨论】:

  • 需要更多信息。软件版本.... 究竟是什么服务于该 URI?

标签: java jackrabbit


【解决方案1】:

该消息是不言自明的。你在服务器和客户端有不同版本的软件,而 Jackrabbit 的人没有用他们的serialVersionUIDs 做正确的事情。

【讨论】:

    猜你喜欢
    • 2018-07-20
    • 2020-01-06
    • 1970-01-01
    • 2022-08-10
    • 1970-01-01
    • 2012-01-28
    • 2015-02-07
    • 1970-01-01
    相关资源
    最近更新 更多