• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HF BeatBoxFinal and MusicServer

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do zero's and 'o' look the same? Anyway figured it out.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic