strange ClassNotFoundException

sorry i had to crosspost this, but i think it's a more general issue what im getting

i have an RMI client/server app.

whenever my client tries to send data to the RMI server of a Serializable type

but i'm getting a ClassNotFoundException

java.lang.ClassNotFoundException: [[Lapp.brk.report.ReportField;

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java

at sun.rmi.transport.Transport$1.run(Transport.java:148)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTr

at java.lang.Thread.run(Thread.java:534)

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCal

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

the ReportField is a class i use to wrap up an object to send to the server

publicclass ReportFieldimplements Serializable{

private String fieldName;

private String javaType;

public QueryField(){

}

public QueryField(String fieldName,String javaType)

{

this.fieldName = fieldName;

this.javaType = javaType;

}

public String getJavaType(){

return javaType;

}

public String getFieldName(){

return fieldName;

}

i noticed there's a[[L but i dunno where is it coming from

i dunno know where to look.

thanks for any help

[2269 byte] By [_stevea] at [2007-11-27 8:07:39]
# 1
And you have the same version of the classfile with both the client and the server, right?
-Kayaman-a at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...
# 2
> i noticed there's a [[L but i dunno> where is it coming fromThat's not the problem. The problem is that the receiving end doesn't have the class on the classpath.Kaj
kajbja at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...
# 3
> i noticed there's a [[L but i dunno> where is it coming from([ means that it is an array, and L means ObjectType, so you have a 2D array of ReportField references)Kaj
kajbja at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...
# 4

>([ means that it is an array, and L means ObjectType, so you have a 2D array of ReportField references)

yeah that's right im sending a 2D array to the server !

>That's not the problem. The problem is that the receiving end doesn't have the class on the classpath

do i need to have it ? ive used this way with another class ( sending just an Object not an array though ), and i did not have to put it on the classpath.is it only an Array specific thing?

thanks

_stevea at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...
# 5
> do i need to have it ?You either need to have ReportField on the classpath or make sure that the client can load the class dynamically from the server.Kaj
kajbja at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...
# 6
i know this sounds stupid not to know about but can you please explain me whyor at least point me some where that talks about thismany thanks
_stevea at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...
# 7

> i know this sounds stupid not to know about but can

> you please explain me why

> or at least point me some where that talks about

> this

>

> many thanks

A google on rmi java class loading gives e.g.:

http://java.sun.com/j2se/1.5.0/docs/guide/rmi/codebase.html

kajbja at 2007-7-12 19:50:23 > top of Java-index,Java Essentials,Java Programming...