Re: ClassCastException after retrieving an Entry
"Santoshi, Vishal" <[email protected]> Wed, 3 Jan 2007 13:21:42 -0600
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Is TaskEntry implementing Entry? Can we see the code of your worker? -----Original Message----- From: Christian Hager [mailto:[email protected]] Sent: Wednesday, January 03, 2007 11:16 AM To: [email protected] Subject: ClassCastException after retrieving an Entry Hello, I'm trying to build a simple compute server for distributing some Tasks over the network. Currently I am experiencing some problems ans I was hoping someone here can maybe help. On the Worker side I take the Entry from the JavaSpace. Then I try to cast it from Entry to my custom class TaskEntry and I get the following exception. java.lang.ClassCastException: org.ac.computegrid.jobs.fibfact.FactorialTask at org.ac.computegrid.worker.GenericWorker.loop(GenericWorker.java:117) at org.ac.mvc.ExtThread.run(ExtThread.java:399) at java.lang.Thread.run(Unknown Source) The FactorialTask which I get from the Space is extends TaskEntry and therefore should be possible to be casted to TaskEntry. I was hoping anyone could point me to what the problem might be. Thanks in advance. Christian Hager ======================================================================== === To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html