my dog learned polymorphism*
The moose likes Beginning Java and the fly likes cannot play MIDI file 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 "cannot play MIDI file" Watch "cannot play MIDI file" New topic
Author

cannot play MIDI file

S. Shree
Greenhorn

Joined: Jun 25, 2008
Posts: 16
The function I have created plays some midi files perfectly well while it cannot play others. The error I get is:



Can someone please help me with this...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38087
    
  22
Go through the stack trace (that appears not to be the complete stack trace) and work out what could be null. Look at the highest line in the stack trace in the code you wrote, and check every object reference in that for a null.
Check you have initialised every object reference in your constructor or elsewhere. Check you aren't assigning anything to null mistakenly, or passing anything as an argument which could be null.
Check you really have those .mdi files and they are complete.

If you don't find anything hopeful, please come back with more details.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot play MIDI file
 
Similar Threads
MIDI
midi sounds creation tool?
MiniMiniMusicApp? anyone else having issues with it?
Is it possible to play a midi file
MP3 on J2ME??