Fantasia: IllegalStateException, NullPointerException

You're new to the LinuxSampler world? You don't know where to start and nothing works? Here's the place to ask for help.
Post Reply
grebneke
Newbie
Posts: 4
Joined: Thu Dec 31, 2009 1:54 am

Fantasia: IllegalStateException, NullPointerException

Post by grebneke » Fri Jan 01, 2010 4:24 pm

I'm trying to use Fantasia from the latest cvs. Jsampler works, but trying to start Fantasia results in:

Code: Select all

duo:~/src/jsampler$ java -jar dist/Fantasia-0.9.jar                                                                                                                                   
java.lang.IllegalStateException: This method must be called on the Event Dispatch Thread
        at org.jvnet.substance.SubstanceLookAndFeel.setSkin(SubstanceLookAndFeel.java:1954) 
        at org.jvnet.substance.SubstanceLookAndFeel.initialize(SubstanceLookAndFeel.java:1601)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:540)
        at org.jsampler.view.fantasia.ViewConfig.<init>(ViewConfig.java:66)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308) 
        at org.jsampler.view.JSViews.setView(JSViews.java:112)
        at org.jsampler.JSampler.initGUI(JSampler.java:88)
        at org.jsampler.JSampler.main(JSampler.java:55)
Jan 1, 2010 4:19:49 PM org.jsampler.view.JSViews setView0
INFO: Unknown error 
java.lang.NullPointerException 
        at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133)
        at javax.swing.UIDefaults.getUI(UIDefaults.java:741) 
        at javax.swing.UIManager.getUI(UIManager.java:1016)  
        at javax.swing.JPanel.updateUI(JPanel.java:109)
        at javax.swing.JPanel.<init>(JPanel.java:69)
        at javax.swing.JPanel.<init>(JPanel.java:92)
        at javax.swing.JPanel.<init>(JPanel.java:100)
        at javax.swing.JRootPane.createGlassPane(JRootPane.java:527)
        at javax.swing.JRootPane.<init>(JRootPane.java:347)
        at javax.swing.JFrame.createRootPane(JFrame.java:260)
        at javax.swing.JFrame.frameInit(JFrame.java:241)
        at javax.swing.JFrame.<init>(JFrame.java:208)
        at org.jsampler.view.JSMainFrame.<init>(JSMainFrame.java:67)
        at org.jsampler.view.std.StdMainFrame.<init>(StdMainFrame.java:44)
        at org.jsampler.view.fantasia.MainFrame.<init>(MainFrame.java:145)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.jsampler.view.JSViews.setView0(JSViews.java:130)
        at org.jsampler.view.JSViews.access$000(JSViews.java:45)
        at org.jsampler.view.JSViews$2.run(JSViews.java:123)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Jan 1, 2010 4:19:49 PM org.jsampler.CC loadOrchestras
INFO: /home/johan/.jsampler/orchestras.xml (No such file or directory)
java.io.FileNotFoundException: /home/johan/.jsampler/orchestras.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at org.jsampler.CC.loadOrchestras(CC.java:399)
        at org.jsampler.JSampler.initGUI0(JSampler.java:103)
        at org.jsampler.JSampler.access$100(JSampler.java:36)
        at org.jsampler.JSampler$1.run(JSampler.java:92)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.jsampler.CC.initSamplerModel(CC.java:666)
        at org.jsampler.CC.connect(CC.java:625)
        at org.jsampler.JSampler.initGUI0(JSampler.java:105)
        at org.jsampler.JSampler.access$100(JSampler.java:36)
        at org.jsampler.JSampler$1.run(JSampler.java:92)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Nothing more happens, no GUI is started.

Alex
Moderator
Posts: 316
Joined: Wed Jan 23, 2008 9:08 pm

Re: Fantasia: IllegalStateException, NullPointerException

Post by Alex » Fri Jan 15, 2010 5:14 pm

I'm no coder, but i used to get these, and had to update my java build. Maybe there's a clue there for you.

Sorry i can't be more help.

Alex.

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Fantasia: IllegalStateException, NullPointerException

Post by cuse » Sat Jan 16, 2010 3:34 pm

You need Java Runtime Environment 6, do you have that?

Post Reply