This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes HF BeatBoxFinal and MusicServer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HF BeatBoxFinal and MusicServer" Watch "HF BeatBoxFinal and MusicServer" New topic
Author

HF BeatBoxFinal and MusicServer

Tony VanHorn
Ranch Hand

Joined: Dec 13, 2006
Posts: 74
I am having issues with the code for these two programs. I have checked my code against the book and against the downloadable code from wickedlysmart.com. The code that I download runs fine, however mine throws up an error about the object being read in from the server.

This is the code where the object is being read in from the server


This is the code where the server sends the object:


And this is the code were the BeatBox sends the objects to the server to begin with:


Each time I try and send something it throws a ClassCastException. When it does the System.out.println(obj.getClass()); it shows the Object that was recieved has a class of Integer but everything I have sent has been a String. Any help on why this is doing it would be greatly appreciated. Any other code you might need just let me know

Tony
Tony VanHorn
Ranch Hand

Joined: Dec 13, 2006
Posts: 74
Why do zero's and 'o' look the same? Anyway figured it out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HF BeatBoxFinal and MusicServer
 
Similar Threads
Problems with serialization / deserialization.
How to writeObject an array?
MIDI Network Program Error
another head first beatbox question
Using JFileChooser instead of serialization hard coded files