ClassCastException after retrieving an Entry
Christian Hager <[email protected]> Wed, 3 Jan 2007 20:15:36 +0100
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Organization | Analytic Company GmbH |
| Message-ID | <001c01c72f6b$a3ea5cc0$0b00a8c0@acwschristian> |
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