You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Yaqeen Hussam <ya...@gmail.com> on 2007/01/03 15:22:51 UTC

Urgent : RMI problem

Hello All

I was able to successfully use the jackrabbit-rmi library to get a session ,
and to get and add nodes.
but when I try to set a property of any type using : node.setProperty() ...
it throws the following exceptioin


            Node root = session.getRootNode();
            Node node = root.addNode("testOne");
            node.setProperty("aProp","testing ") ;   /// throws exception
here



undeclared checked exception; nested exception is:
        java.io.InvalidClassException: invalid field type for value in class
org.apache.jackrabbit.rmi.value.SerialValue


and printstack is :

org.apache.jackrabbit.rmi.client.RemoteRepositoryException: undeclared
checked exception; nested exception is:
        java.io.InvalidClassException: invalid field type for value in class
org.apache.jackrabbit.rmi.value.SerialValue: undeclared checked exception;
nested exception is:
        java.io.InvalidClassException: invalid field type for value in class
org.apache.jackrabbit.rmi.value.SerialValue
        at org.apache.jackrabbit.rmi.client.ClientNode.setProperty(
ClientNode.java:132)
        at org.apache.jackrabbit.rmi.client.ClientNode.setProperty(
ClientNode.java:183)
        at net.eformations.addrepfiles.RepositoryAccessImpl.addQFile(
RepositoryAccessImpl.java:163)
        at net.eformations.addrepfiles.Main.main(Main.java:58)
Caused by: java.rmi.UnexpectedException: undeclared checked exception;
nested exception is:
        java.io.InvalidClassException: invalid field type for value in class
org.apache.jackrabbit.rmi.value.SerialValue
        at org.apache.jackrabbit.rmi.server.ServerNode_Stub.setProperty(Unknown
Source)
        at org.apache.jackrabbit.rmi.client.ClientNode.setProperty(
ClientNode.java:127)
        ... 3 more
Caused by: java.io.InvalidClassException: invalid field type for value in
class org.apache.jackrabbit.rmi.value.SerialValue
        at java.io.ObjectInputStream.readClassDescriptor(libgcj.so.7)
        at java.io.ObjectInputStream.readObject(libgcj.so.7)
        at java.io.ObjectInputStream.readObject(libgcj.so.7)
        at gnu.java.rmi.server.RMIObjectInputStream.readValue(libgcj.so.7)
        at gnu.java.rmi.server.UnicastServerRef.incomingMessageCall(
libgcj.so.7)
        at gnu.java.rmi.server.UnicastServer.incomingMessageCall(libgcj.so.7
)
        at gnu.java.rmi.server.UnicastServer.dispatch(libgcj.so.7)
        at gnu.java.rmi.server.UnicastConnection.run(libgcj.so.7)
        at java.lang.Thread.run(libgcj.so.7)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(
StreamRemoteCall.java:247)
        at sun.rmi.transport.StreamRemoteCall.executeCall(
StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
        ... 5 more
java.rmi.UnexpectedException: undeclared checked exception; nested exception
is:
        java.io.InvalidClassException: invalid field type for value in class
org.apache.jackrabbit.rmi.value.SerialValue
        at org.apache.jackrabbit.rmi.server.ServerNode_Stub.setProperty(Unknown
Source)
        at org.apache.jackrabbit.rmi.client.ClientNode.setProperty(
ClientNode.java:127)
        at org.apache.jackrabbit.rmi.client.ClientNode.setProperty(
ClientNode.java:183)
        at net.eformations.addrepfiles.RepositoryAccessImpl.addQFile(
RepositoryAccessImpl.java:163)
        at net.eformations.addrepfiles.Main.main(Main.java:58)
Caused by: java.io.InvalidClassException: invalid field type for value in
class org.apache.jackrabbit.rmi.value.SerialValue
        at java.io.ObjectInputStream.readClassDescriptor(libgcj.so.7)
        at java.io.ObjectInputStream.readObject(libgcj.so.7)
        at java.io.ObjectInputStream.readObject(libgcj.so.7)
        at gnu.java.rmi.server.RMIObjectInputStream.readValue(libgcj.so.7)
        at gnu.java.rmi.server.UnicastServerRef.incomingMessageCall(
libgcj.so.7)
        at gnu.java.rmi.server.UnicastServer.incomingMessageCall(libgcj.so.7
)
        at gnu.java.rmi.server.UnicastServer.dispatch(libgcj.so.7)
        at gnu.java.rmi.server.UnicastConnection.run(libgcj.so.7)
        at java.lang.Thread.run(libgcj.so.7)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(
StreamRemoteCall.java:247)
        at sun.rmi.transport.StreamRemoteCall.executeCall(
StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
        ... 5 more






I tried all the setPropertiy() signatures , and they didnt succeed ..... any
help ?

-- 
-------------------------------------------------------------------------------------
My Regards...
Yaqeen Hussam

Re: Urgent : RMI problem

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 1/3/07, Yaqeen Hussam <ya...@gmail.com> wrote:
> I am using jacrabbit-jcr-rmi-1.1.1.jar
> and using SUN JRE 1.4.2 on both server and client

The stack trace you posted indicates that at either the server or the
client is not running the Sun JRE:

> at gnu.java.rmi.server.RMIObjectInputStream.readValue(libgcj.so.7)

Check your PATH and JAVA_HOME settings, many Linux distributions use
GCJ and GNU Classpath by default.

BR,

Jukka Zitting

Re: Urgent : RMI problem

Posted by Yaqeen Hussam <ya...@gmail.com>.
Hi

I am using jacrabbit-jcr-rmi-1.1.1.jar
and using SUN JRE 1.4.2 on both server and client

Thanks
On 03/01/07, Jukka Zitting <ju...@gmail.com> wrote:
>
> Hi,
>
> On 1/3/07, Yaqeen Hussam <ya...@gmail.com> wrote:
> > I was able to successfully use the jackrabbit-rmi library to get a
> session ,
> > and to get and add nodes.
> > but when I try to set a property of any type using : node.setProperty()
> ...
> > it throws the following exceptioin
> > [...]
> > undeclared checked exception; nested exception is:
> >         java.io.InvalidClassException: invalid field type for value in
> class
> > org.apache.jackrabbit.rmi.value.SerialValue
>
> Seems like there is some problem with the serialized value instance.
>
> > at gnu.java.rmi.server.RMIObjectInputStream.readValue(libgcj.so.7)
>
> Could the problem be related to the RMI implementation you are using?
> Do you use different JREs for the server and the client? Does the
> problem appear with the Sun JRE?
>
> BR,
>
> Jukka Zitting
>



-- 
-------------------------------------------------------------------------------------
My Regards...
Yaqeen Hussam

Re: Urgent : RMI problem

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 1/3/07, Yaqeen Hussam <ya...@gmail.com> wrote:
> I was able to successfully use the jackrabbit-rmi library to get a session ,
> and to get and add nodes.
> but when I try to set a property of any type using : node.setProperty() ...
> it throws the following exceptioin
> [...]
> undeclared checked exception; nested exception is:
>         java.io.InvalidClassException: invalid field type for value in class
> org.apache.jackrabbit.rmi.value.SerialValue

Seems like there is some problem with the serialized value instance.

> at gnu.java.rmi.server.RMIObjectInputStream.readValue(libgcj.so.7)

Could the problem be related to the RMI implementation you are using?
Do you use different JREs for the server and the client? Does the
problem appear with the Sun JRE?

BR,

Jukka Zitting