[I fixed this by updating the MMJ installation to 0.93 and removing the Digidesign Core Audio Plugin]
I am getting a ClassCastException when I try to run any of the MIDI libraries in Processing. I have tried with both TheMIDIBus and ProMIDI. These are in sketches that have worked perfectly in the past. Anyone have any thoughts?
System:
Mac OS X 10.5.8
Java2SE build 1.5.0_24
Processing 1.2.1
2010-08-31 13:44:47.627 java[374:18d03] Error loading /Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: dlopen(/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: mach-o, but wrong architecture
2010-08-31 13:44:47.628 java[374:18d03] Cannot find function pointer NewDigiCoreAudioPlugIn for factory B8A063B5-2F3D-444A-88CB-D0B8F1B22042 in CFBundle/CFPlugIn 0x1aa440 </Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin> (bundle, not loaded)
processing.app.debug.RunnerException: ClassCastException: com.sun.media.sound.MidiInDeviceProvider$MidiInDeviceInfo
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:583)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.ClassCastException: com.sun.media.sound.MidiInDeviceProvider$MidiInDeviceInfo
at de.humatic.mmj.spi.CoreMidiProvider.getDevice(CoreMidiProvider.java:122)
at javax.sound.midi.MidiSystem.getMidiDevice(MidiSystem.java:200)
at promidi.MidiIO.getAvailablePorts(MidiIO.java:182)
at promidi.MidiIO.<init>(MidiIO.java:122)
at promidi.MidiIO.getInstance(MidiIO.java:143)
at promidi.setup(promidi.java:32)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:613)