File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark ""javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update" Watch ""javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update" New topic
Author

"javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

Poorav Chaudhari
Ranch Hand

Joined: Sep 17, 2002
Posts: 50
I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.

javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
at myPackage.MyMusicApp.main(MyMusicApp.java:14)

Below is a small program I built that shows the code.



I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?

thanks


Poorav Chaudhari
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: "javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update
 
Similar Threads
MIDI help
Head First Java - MIDI question
MIDI Reference?
Weird @Cache annotation usage error
Write a program that reads and writes from binary or text files