Fail to dispatch
When I tryed to send an aglet from a server to anther server,
I get a RequestRefusedException with a code of 400. Could explain
the details about this message? Here's a
screen dump:
----START
|
code = 400
message :
Dispatch : Fail to dispatch XXXXX to
atp://host.domain:9000/
com.ibm.aglet.RequestRefusedException: ERROR
at com.ibm.aglets.LocalAgletRef.dispatch(LocalAgletRef.java:1227)
at com.ibm.aglets.SystemMessage.handle(SystemMessage.java:131)
at com.ibm.aglets.AgletThread.run(AgletThread.java:91)
----END
This is caused by a "class not found error" at the destination
host. The situation was a little bit confusing.
- Your aglet brought some objects which classes were defined by yourself,
not system classes. (call one of that "MyClass")
- At the source host, the CLASSPATH of agletsd contained a path to "MyClass".
- But "MyClass" was not placed at the destination host.
In this situation, aglets runtime does not send the class "MyClass"
along with the marshalled aglet object. Aglets does not send classes loaded
from the system classpath (CLASSPATH). During the unmarshalling at the
destination host, a "class MyClass was not found exception" will
be thrown, and that error will be reported to the sender as you received.
To avoid this error,
- Place the class "MyClass" on the CLASSPATH or the
ALGET_EXPORT_PATH of all aglets hosts.
- Or, Remove the path to "MyClass" from the CLASSPATH.
And add the path to AGLET_EXPORT_PATH.
|