From: Peter G. <pet...@gm...> - 2009-08-26 10:39:45
|
Ok, now it works again. I removed the folder /home/peter/.java/deployment and all its subdirectories, and also the folder created by running JSynthLib: /home/peter/.java/.userPrefs and all its subdirectories. Now I can open the preferences window again, and JSynthLib version 0.20.0 doesn't give an error dialog anymore, also not on the first time I loaded it. It just creates the .userPrefs folder with the *.user.lock.peter* and *.userRootModFile.peter files* and org folder containing a prefs.xml file and hte rest of subdirectories and prefs.xml files. In case it's of any use, I think the file /home/peter/.java/deployment/deployment.properties was responsible: #deployment.properties #Sat Aug 22 16:04:09 GMT 2009 deployment.javaws.splash.index=/home/peter/.java/deployment/cache/6.0/splash/splash.xml deployment.trace=true deployment.log=true deployment.javapi.lifecycle.exception=true deployment.version=6.0 deployment.browser.path=/usr/bin/mozilla #Java Deployment jre's #Sat Aug 22 16:04:09 GMT 2009 deployment.javaws.jre.1.registered=false deployment.javaws.jre.1.osname=Linux deployment.javaws.jre.0.registered=true deployment.javaws.jre.0.platform=1.6 deployment.javaws.jre.1.enabled=true deployment.javaws.jre.1.location=http\://java.sun.com/products/autodl/j2se deployment.javaws.jre.0.osname=Linux deployment.javaws.jre.0.path=/usr/lib/jvm/java-6-sun-1.6.0.15/jre/bin/java deployment.javaws.jre.0.product=1.6.0_15 deployment.javaws.jre.1.osarch=i386 deployment.javaws.jre.1.path=/usr/lib/jvm/java-6-openjdk/jre/bin/java deployment.javaws.jre.1.platform=1.6 deployment.javaws.jre.0.osarch=i386 deployment.javaws.jre.1.product=1.6.0_0 deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se deployment.javaws.jre.0.enabled=true deployment.javaws.jre.0.args= I guess I've messed up that file by installing too many different java versions: sun-java, openjdk, and different versions ... Finally I can go back to writing my driver :-) Happy summertime ;-) Peter On Tue, Aug 25, 2009 at 11:27 AM, Peter Geirnaert <pet...@gm... > wrote: > Hi again :) > > Maybe this is information I should also give ... > > When I start JSynthLib, it creates two empty files in > /home/peter/.java/.userPrefs/ : > *.user.lock.peter* and *.userRootModFile.peter* > > Questions I have here: > 1. Why are they empty? > 2. What are they for? > 3. Are they created by JSynthLib, or by the Java JRE? > > Thanks for any enlightenment ;) > > Peter > > > On Tue, Aug 25, 2009 at 8:37 AM, Peter Geirnaert < > pet...@gm...> wrote: > >> Hi, >> For some reason, i can't open the JSynthLib "preferences" window on my >> Debian squeeze/sid installation. It happens with the JSL-0.20.0 version and >> the JSL-0.21.0-alpha version, though the 0.20.0 version gives me an error >> dialog "Unable to load user preferences. Defaults loaded instead." and the >> 0.21.0-alpha version doesn't do anything. >> >> Also , I can't just copy a line of java code from inside Netbeans into my >> mail or wiki that I'm writing with firefox, it makes firefox crash >> immediately. I first have to paste the code in a texteditor, then copy it >> again, and then paste it in firefox. (This makes me think it's Debian or >> Java problem). But because it's also troubles with core.PatchEdit.java, I >> thought I'd better post it here too. >> >> peter@avlinux:~$ java -version >> java version "1.6.0_0" >> OpenJDK Runtime Environment (IcedTea6 1.5) (6b16-4) >> OpenJDK Server VM (build 14.0-b15, mixed mode) >> >> On ubuntustudio, it works: >> >> peter@ubustu:~$ java -version >> java version "1.6.0_0" >> OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11) >> OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode) >> >> The debug-preferences-window.txt below is saved from running JSynthLib >> inside Netbeans and describes these exceptions thrown: >> java.lang.ArrayIndexOutOfBoundsException: 3 >> Exception in thread "main" java.lang.NullPointerException >> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException >> >> Any ideas of where/what to look for, or hints about some debugging >> techniques are most welcome. >> >> Thanks in advance. >> Peter >> * >> debug-preferences-window.txt* >> init: >> deps-jar: >> Compiling 5 source files to >> /home/peter/NetBeansProjects/JSynthLib/build/classes >> Copying 10 files to /home/peter/NetBeansProjects/JSynthLib/build/classes >> compile: >> java.lang.ArrayIndexOutOfBoundsException: 3 >> at core.MidiUtil.setSysexInputQueue(MidiUtil.java:367) >> at core.Device.setInPort(Device.java:326) >> at core.Device.setup(Device.java:117) >> at core.AppConfig.addDevice(AppConfig.java:351) >> at core.AppConfig.loadPrefs(AppConfig.java:49) >> at core.PatchEdit.<init>(PatchEdit.java:40) >> at JSynthLib.main(JSynthLib.java:33) >> Exception in thread "main" java.lang.NullPointerException >> at >> core.JSLDesktop$JSLFakeDesktop.getSelectedWindow(JSLDesktop.java:386) >> at core.JSLDesktop.getSelectedWindow(JSLDesktop.java:147) >> at core.PatchEdit.getInstance(PatchEdit.java:125) >> at core.ErrorMsg.reportError(ErrorMsg.java:59) >> at core.PatchEdit.<init>(PatchEdit.java:74) >> at JSynthLib.main(JSynthLib.java:33) >> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException >> at core.PatchEdit.showPrefsDialog(PatchEdit.java:114) >> at core.Actions$PrefsAction.actionPerformed(Actions.java:1340) >> at >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) >> at >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) >> at >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) >> at >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) >> at javax.swing.AbstractButton.doClick(AbstractButton.java:374) >> at >> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688) >> at >> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732) >> at java.awt.Component.processMouseEvent(Component.java:6108) >> at javax.swing.JComponent.processMouseEvent(JComponent.java:3276) >> at java.awt.Component.processEvent(Component.java:5873) >> at java.awt.Container.processEvent(Container.java:2105) >> at java.awt.Component.dispatchEventImpl(Component.java:4469) >> at java.awt.Container.dispatchEventImpl(Container.java:2163) >> at java.awt.Component.dispatchEvent(Component.java:4295) >> at >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461) >> at >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125) >> at >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055) >> at java.awt.Container.dispatchEventImpl(Container.java:2149) >> at java.awt.Window.dispatchEventImpl(Window.java:2478) >> at java.awt.Component.dispatchEvent(Component.java:4295) >> at java.awt.EventQueue.dispatchEvent(EventQueue.java:604) >> at >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) >> at >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) >> at >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) >> at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) >> > > |