Closed ggvw closed 10 years ago
Updating all felix library dependencies to the latest versions in the maven pom.xml files helped me to get rid of above errors. However, the client still won't show. Instead, I get this output:
c:\Users\GGVW\Desktop\ols-0.9.8-SNAPSHOT>java -Xmx1024m -Djna.nosys=true -Dnl.lxtreme.ols.bundle.dir="C:\Users\GGVW\Desktop\ols-0.9.8-SNAPSHOT\\plugins" -DPlastic.defaultTheme=SkyBluer -Dnl.lxtreme.ols.client.debug=true -Djava.util.logging.config.file="logging.properties" -cp ".;C:\Users\GGVW\Deskt
op\ols-0.9.8-SNAPSHOT\\bin\*" nl.lxtreme.ols.runner.Runner
Watched path C:\Users\GGVW\Desktop\ols-0.9.8-SNAPSHOT\plugins key sun.nio.fs.WindowsWatchService$WindowsWatchKey@7c9c0a77
Starting initial scan
Creating configuration from ols.ui.colorscheme-obls.cfg
Installing bundle org.apache.felix.prefs / 1.0.6
Creating configuration from ols.ui.colorscheme-sump.cfg
Installing bundle nl.lxtreme.ols.tool.jtag / 1.0.0
Installing bundle org.apache.felix.log / 1.0.1
Creating configuration from ols.profile-shrimp.cfg
Creating configuration from ols.ui.colorscheme-default.cfg
Installing bundle nl.lxtreme.ols.tool.1wire / 1.0.0
Installing bundle org.rxtx / 2.2.0.10
Installing bundle nl.lxtreme.ols.export.image / 1.0.0
Installing bundle nl.lxtreme.ols.device.test / 1.0.0
Installing bundle nl.lxtreme.ols.export.vcd / 1.0.0
Installing bundle nl.lxtreme.ols.export.csv / 1.0.0
Creating configuration from ols.profile-ols.cfg
Installing bundle nl.lxtreme.ols.tool.i2c / 1.0.1
Installing bundle nl.lxtreme.ols.tool.serialconsole / 1.0.0
Creating configuration from ols.profile-aglam.cfg
Installing bundle nl.lxtreme.ols.tool.state / 1.0.0
Installing bundle nl.lxtreme.ols.client / 1.2.0
Installing bundle nl.lxtreme.ols.tool.linedecoder / 1.0.0
Creating configuration from ols.ui.colorscheme-shrimp.cfg
Installing bundle nl.lxtreme.ols.client.project / 1.0.0
Creating configuration from ols.profile-logicpirate-40.cfg
Installing bundle org.apache.felix.dependencymanager / 3.2.0
Creating configuration from ols.ui.colorscheme-monochrome.cfg
Installing bundle nl.lxtreme.ols.service.io / 1.0.1
Creating configuration from ols.profile-buspirate.cfg
Installing bundle nl.lxtreme.ols.tool.base / 1.0.0
Installing bundle nl.lxtreme.ols.lib.mydoggy / 1.5.0.SNAPSHOT
Installing bundle nl.lxtreme.ols.device.logicsniffer / 1.1.0
Installing bundle nl.lxtreme.ols.service.acquisition / 1.0.0
Installing bundle nl.lxtreme.ols.tool.dmx512 / 1.0.0
Installing bundle nl.lxtreme.ols.util / 1.1.0
Creating configuration from ols.profile-irtoy.cfg
Installing bundle nl.lxtreme.ols.tool.uart / 1.0.0
Creating configuration from ols.ui.defaults.cfg
Creating configuration from ols.profile-agla.cfg
Installing bundle nl.lxtreme.ols.service.taskexecution / 1.0.0
Installing bundle nl.lxtreme.ols.tool.spi / 1.0.0
Installing bundle nl.lxtreme.ols.tool.asm45 / 1.0.0
Installing bundle nl.lxtreme.ols.logging / 1.0.0
Creating configuration from ols.profile-logicpirate-60.cfg
Creating configuration from ols.profile-sump.cfg
Creating configuration from ols.ui.colorscheme-rainbow.cfg
Installing bundle nl.lxtreme.ols.api / 1.0.5
Installing bundle osgi.cmpn / 4.2.0.200908310645
Installing bundle nl.lxtreme.ols.device.generic / 1.0.0
I'll try to investigate further.
I've created a hot-fix branch (ols_v0_9_7_1) to resolve this issue. Currently works on OSX, need to check it on both Linux and Windows prior to cutting a new release.
I tested the ols_v0_9_7_1 branch on windows 7 (x64) with JDK1.8.0.20 today.
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at nl.lxtreme.ols.runner.Runner.main(Runner.java:165)
This is because manifest.getMainAttributes() returns no entry for X-AppName.
The main method continues executing code when I prevent the nullpointer, but hangs again after runner.waitForStop(). No client window is shown. Same result when running with JDK 1.6.0_45 and JDK 1.7.0_67 (both x64). This is my stacktrace when this happens:
2014-09-09 19:38:00
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode):
"FelixFrameworkWiring" #19 daemon prio=5 os_prio=0 tid=0x0000000017704000 nid=0x1460 in Object.wait() [0x000000001acdf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecc6f4f0> (a java.util.ArrayList)
at java.lang.Object.wait(Unknown Source)
at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:162)
- locked <0x00000000ecc6f4f0> (a java.util.ArrayList)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"AWT-Windows" #15 daemon prio=6 os_prio=0 tid=0x000000001733d800 nid=0xde4 runnable [0x00000000182ff000]
java.lang.Thread.State: RUNNABLE
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Java2D Disposer" #13 daemon prio=10 os_prio=2 tid=0x0000000017337800 nid=0x1158 in Object.wait() [0x00000000180df000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecb88a10> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
- locked <0x00000000ecb88a10> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at sun.java2d.Disposer.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"FelixStartLevel" #11 daemon prio=5 os_prio=0 tid=0x00000000172e8800 nid=0x1624 in Object.wait() [0x0000000017e4f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecb81210> (a java.util.ArrayList)
at java.lang.Object.wait(Unknown Source)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:279)
- locked <0x00000000ecb81210> (a java.util.ArrayList)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"FelixDispatchQueue" #10 prio=5 os_prio=0 tid=0x0000000016c25000 nid=0x604 in Object.wait() [0x0000000017a0f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecb80868> (a java.util.ArrayList)
at java.lang.Object.wait(Unknown Source)
at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1074)
- locked <0x00000000ecb80868> (a java.util.ArrayList)
at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)
at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:102)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Service Thread" #9 daemon prio=9 os_prio=0 tid=0x00000000168f6000 nid=0x1508 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x0000000016883000 nid=0x14dc waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x0000000014eef000 nid=0x7ec waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000014eea000 nid=0xe24 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000014ee8800 nid=0x1628 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000014ee7800 nid=0x107c runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" #3 daemon prio=8 os_prio=1 tid=0x0000000014e84800 nid=0xbf8 in Object.wait() [0x000000001645e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecb81010> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
- locked <0x00000000ecb81010> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x0000000014e7c000 nid=0xe60 in Object.wait() [0x000000001632f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecb811c8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Unknown Source)
at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
- locked <0x00000000ecb811c8> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
"main" #1 prio=5 os_prio=0 tid=0x000000000014f000 nid=0x6e0 in Object.wait() [0x00000000024cf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ecdd11f8> (a org.apache.felix.framework.util.ThreadGate)
at org.apache.felix.framework.util.ThreadGate.await(ThreadGate.java:79)
- locked <0x00000000ecdd11f8> (a org.apache.felix.framework.util.ThreadGate)
at org.apache.felix.framework.Felix.waitForStop(Felix.java:1006)
at nl.lxtreme.ols.runner.Runner.waitForStop(Runner.java:251)
at nl.lxtreme.ols.runner.Runner.main(Runner.java:169)
Locked ownable synchronizers:
- None
"VM Thread" os_prio=2 tid=0x0000000014e78800 nid=0x50c runnable
"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00000000020ed800 nid=0x153c runnable
"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00000000020ef000 nid=0x74c runnable
"GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00000000020f0800 nid=0x1664 runnable
"GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00000000020f4000 nid=0x179c runnable
"VM Periodic Task Thread" os_prio=2 tid=0x00000000168ff800 nid=0xa60 waiting on condition
JNI global references: 321
These are JVM arguments:
-Xmx1024m
-Djna.nosys=true
-Dnl.lxtreme.ols.bundle.dir=c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\plugins
-DPlastic.defaultTheme=SkyBluer
-Dnl.lxtreme.ols.client.debug=true
These are my System properties:
Plastic.defaultTheme=SkyBluer
awt.toolkit=sun.awt.windows.WToolkit
com.apple.mrj.application.apple.menu.about.name=Runner
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=.;c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\bin\looks-2.2.2.jar;c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\bin\org.apache.felix.configadmin-1.8.0.jar;c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\bin\org.apache.felix.fileinstall-3.2.4.jar;c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\bin\org.apache.felix.main-4.4.1.jar;c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\bin\runner-1.1.1.jar
java.class.version=52.0
java.endorsed.dirs=D:\dev\lib\jre1.8.0_20\lib\endorsed
java.ext.dirs=D:\dev\lib\jre1.8.0_20\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home=D:\dev\lib\jre1.8.0_20
java.io.tmpdir=C:\Users\GGVW\AppData\Local\Temp\
java.library.path=C:\Windows\system32;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;E:\Program Files\wamp\bin\php\php5.4.12;C:\ProgramData\ComposerSetup\bin;E:\Program Files\TortoiseGit\bin;E:\Program Files (x86)\Git\cmd;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;E:\Program Files\wamp\bin\php\php5.4.12;C:\ProgramData\ComposerSetup\bin;E:\Program Files\TortoiseGit\bin;E:\Program Files (x86)\Git\cmd;d:\dev\lib\apache-maven-3.2.1\bin;d:\dev\lib\jdk1.8.0_20;d:\dev\lib\jdk1.8.0_20\bin;E:\Program Files (x86)\Atmel\Flip 3.4.7\bin;E:\Program Files\SDCC\bin;e:\Program Files (x86)\Git\\bin;.
java.rmi.server.randomIDs=true
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_20-b26
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=1.8
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
java.version=1.8.0_20
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.8
java.vm.vendor=Oracle Corporation
java.vm.version=25.20-b23
jna.nosys=true
line.separator=\r\n
nl.lxtreme.ols.bundle.dir=c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT\\plugins
nl.lxtreme.ols.client.debug=true
os.arch=amd64
os.name=Windows 7
os.version=6.1
path.separator=;
sun.arch.data.model=64
sun.awt.enableExtraMouseButtons=true
sun.boot.class.path=D:\dev\lib\jre1.8.0_20\lib\resources.jar;D:\dev\lib\jre1.8.0_20\lib\rt.jar;D:\dev\lib\jre1.8.0_20\lib\sunrsasign.jar;D:\dev\lib\jre1.8.0_20\lib\jsse.jar;D:\dev\lib\jre1.8.0_20\lib\jce.jar;D:\dev\lib\jre1.8.0_20\lib\charsets.jar;D:\dev\lib\jre1.8.0_20\lib\jfr.jar;D:\dev\lib\jre1.8.0_20\classes
sun.boot.library.path=D:\dev\lib\jre1.8.0_20\bin
sun.cpu.endian=little
sun.cpu.isalist=amd64
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.java.command=nl.lxtreme.ols.runner.Runner
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=Service Pack 1
sun.stderr.encoding=cp850
sun.stdout.encoding=cp850
user.country=US
user.country.format=NL
user.dir=c:\Users\GGVW\Desktop\ols-0.9.7.1-SNAPSHOT
user.home=C:\Users\GGVW
user.language=en
user.language.format=nl
user.name=GGVW
user.script=
user.timezone=Europe/Berlin
user.variant=
The latest version I can run is ols-0.9.6.1 with JDK 1.7 or lower.
Sorry about this, could not entirely finish a complete test round. Have pushed some more fixes in order to resolve this and a couple of other things I spotted. @ggvw are you able to give it another test?
I tested with JDK1.6, 1.7 and 1.8 versions. They all work. Client starts up again! Works beautifully, thank you very much!
When using run.bat, OLS outputs the following and then hangs. No window is shown. This is the output from run.bat:
I tried to fix the problem myself without luck still. I recompiled the project using 1.8_20 (x64) compiler with 1.6 source and target version. Still gave me the same error. I now suspect it is a maven configuration issue. Perhaps the maven-bundle configuration?
Windows 7 x64 Java JDK 1.8_20