Hi, hope this is ok for posting to the list...

I'm pretty new to RMI and EJB, and have been going through "Mastering EJB
and J2EE" book by Ed Roman, and am currently working on the final exercise
in Appendix A.  It is a simple MessageQueue Remote Object and client app
that utilizes it. After a couple days, I still can't get the client to run
correctly.  In running the client program, I get:

C:\Code\VisualCafe\rmimessagequeue>java messagequeue.QueueClient
Attempting to contact rmi://10.1.60.7:1000/MessageQueue
Error in lookup() java.rmi.UnmarshalException: error unmarshalling return;
nested exception is:
        java.io.EOFException: Expecting code

I have checked the Sun site and although I have seen this issue alot, I've
yet to find some clear reasons as to why this is happening... alot of it
seems to be with running RMI on or across various platforms... I'm stricly
on Win2000 and am using JDK1.3.0.

My MessageQueue server piece seems to be working fine... since I start the
app up (I've hardcoded the port # to 1000 for now) and get

C:\Code\VisualCafe\rmimessagequeue>java messagequeue.MessageQueue
MessageQueue starting up...
Binding MessageQueue to RMI Registry on port#1000...
Binded Sucessfully
MessageQueue Listening...

If I netstat -a I can see that port 1000 is listening as it should...

Finally, I'm confused also because if I repeatedly try to run the
QueueClient app, I am occasionally getting this error message:

C:\Code\VisualCafe\rmimessagequeue>java messagequeue.QueueClient
Attempting to contact rmi://10.1.60.7:1000/MessageQueue
java.rmi.ServerError: Error occurred in server thread; nested exception is:
        java.lang.NoClassDefFoundError: com/objectspace/jgl/Queue

Although my app compiles fine in Visual Cafe, I'm occasionally getting this
error... not sure why.  I have referenced the jar file in VCafe and it
compiles without issues.

Any help is appreciated, hopefully someone has or is going through the book
like me...

Bests,

Kristofer Goss

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to