Skip to content

MidiDeviceProvider.isDeviceSupported() throwing a NullPointerException #43

Description

@eclab

I have an Edisyn user who is unable to load CoreMIDI4J with an unusual exception, which I include below. Notice the end, where it appears that CoreMidiDeviceProvider is calling javax.sound.midi.spi.MidiDeviceProvider.isDeviceSupported(), which is in turn generating a NullPointerException. He's running 10.13.6, I'm not sure which version of Java (I'll post it when I find out). Any idea why CoreMIDI4J might be failing? Could it be a device error? I understand this may be a low-level Java issue, not CoreMIDI4J; it's not clear.

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at edisyn.Midi.updateDevices(Midi.java:192) at edisyn.Midi.<clinit>(Midi.java:297) at edisyn.Synth.<init>(Synth.java:1208) at edisyn.synth.tuning.Tuning.<init>(Tuning.java:31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at edisyn.Synth.instantiate(Synth.java:283) at edisyn.Synth.instantiate(Synth.java:263) at edisyn.gui.Favorites.doNewSynthDialog(Favorites.java:187) at edisyn.Synth.doNewSynthPanel(Synth.java:7394) at edisyn.Edisyn.main(Edisyn.java:52) Caused by: java.lang.NullPointerException at javax.sound.midi.spi.MidiDeviceProvider.isDeviceSupported(MidiDeviceProvider.java:52) at javax.sound.midi.MidiSystem.getMidiDevice(MidiSystem.java:221) at uk.co.xfactorylibrarians.coremidi4j.CoreMidiDeviceProvider.getMidiDeviceInfo(CoreMidiDeviceProvider.java:739) ... 18 more

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions