New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client fails to run on Linux & Windows using JDK 7 #75

Closed
wayoda opened this Issue Sep 9, 2011 · 7 comments

Comments

Projects
None yet
5 participants
@wayoda

wayoda commented Sep 9, 2011

After updating my java installation to JDK7 (provided by Oracle) on Ubuntu 11.04 the Client does not start up any more. There is a long list of errors printed to the console (see end of this posting) an then the process hangs. The application window is never displayed .
Switching back to JDK6 proved that the Client runs on the older Java version.

Here are the first 10% of the errors printed to the console.

wayoda@rebooter:~/lab/ols/downloads/updates/ols-0308/jawis-ols-client$ ./run.sh 
ERROR: Bundle nl.lxtreme.ols.export.image [3] Error starting file:/home/wayoda/lab/ols/downloads/updates/ols-0308/jawis-ols-client/plugins/image-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.image [3]: Unable to resolve 3.0: missing requirement [3.0] package; (package=javax.imageio))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.image [3]: Unable to resolve 3.0: missing requirement [3.0] package; (package=javax.imageio)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:722)
ERROR: Bundle org.rxtx [5] Error starting file:/home/wayoda/lab/ols/downloads/updates/ols-0308/jawis-ols-client/plugins/org.rxtx-2.2.0-9.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.rxtx [5]: Unable to resolve 5.0: missing requirement [5.0] package; (package=nl.lxtreme.ols.util) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (package=javax.accessibility)])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.rxtx [5]: Unable to resolve 5.0: missing requirement [5.0] package; (package=nl.lxtreme.ols.util) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (package=javax.accessibility)]
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:722)
ERROR: Bundle nl.lxtreme.ols.client [6] Error starting file:/home/wayoda/lab/ols/downloads/updates/ols-0308/jawis-ols-client/plugins/client-1.1.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.client [6]: Unable to resolve 6.0: missing requirement [6.0] package; (package=javax.swing.border))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.client [6]: Unable to resolve 6.0: missing requirement [6.0] package; (package=javax.swing.border)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:722)
ERROR: Bundle nl.lxtreme.ols.tool.base [7] Error starting file:/home/wayoda/lab/ols/downloads/updates/ols-0308/jawis-ols-client/plugins/base-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.base [7]: Unable to resolve 7.0: missing requirement [7.0] package; (package=javax.swing.filechooser))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.base [7]: Unable to resolve 7.0: missing requirement [7.0] package; (package=javax.swing.filechooser)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:722)
ERROR: Bundle nl.lxtreme.ols.tool.i2c [9] Error starting file:/home/wayoda/lab/ols/downloads/updates/ols-0308/jawis-ols-client/plugins/i2c-1.0.1.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.i2c [9]: Unable to resolve 9.0: missing requirement [9.0] package; (package=nl.lxtreme.ols.api) [caused by: Unable to resolve 21.0: missing requirement [21.0] package; (package=nl.lxtreme.ols.util) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.i2c [9]: Unable to resolve 9.0: missing requirement [9.0] package; (package=nl.lxtreme.ols.api) [caused by: Unable to resolve 21.0: missing requirement [21.0] package; (package=nl.lxtreme.ols.util) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (package=javax.accessibility)]]
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:722)
ERROR: Bundle nl.lxtreme.ols.tool.uart [10] Error starting file:/home/wayoda/lab/ols/downloads/updates/ols-0308/jawis-ols-client/plugins/uart-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.uart [10]: Unable to resolve 10.0: missing requirement [10.0] package; (package=nl.lxtreme.ols.api) [caused by: Unable to resolve 21.0: missing requirement [21.0] package; (package=nl.lxtreme.ols.util) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.uart [10]: Unable to resolve 10.0: missing requirement [10.0] package; (package=nl.lxtreme.ols.api) [caused by: Unable to resolve 21.0: missing requirement [21.0] package; (package=nl.lxtreme.ols.util) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (package=javax.accessibility)]]
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:722)

Eberhard

@ghost ghost assigned jawi Sep 10, 2011

@wayoda

This comment has been minimized.

wayoda commented Sep 12, 2011

Cloning and rebuilding the project under JDK7 fixed the issue with the GUI that is not starting up. But there seem to be some more problems. Capturing 8 channels works with any combination of speed and memory size.
Trying to capture 16 channels never finishes. Here is an example of a 2k capture with 16 channels. Looks like the program reads the full 2k of data, but then it doesn't stop capturing. With 16 channels I have to stop the capture manually:

[12.09.11 09:35:03 - INFO  - logicsniffer.LogicSnifferDevice]: Starting capture ...
[12.09.11 09:35:03 - INFO  - logicsniffer.LogicSnifferDevice]: Attaching to /dev/OpenLogicSniffer @ 115.200bps (DTR = low) ...
[12.09.11 09:35:03 - DEBUG -   rxtx.SerialConnectionFactory]: No such port!
org.apache.felix.log.LogException: gnu.io.NoSuchPortException: null
        at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:269)
        at nl.lxtreme.rxtx.SerialConnectionFactory.getSerialPort(SerialConnectionFactory.java:159)
        at nl.lxtreme.rxtx.SerialConnectionFactory.obtainSerialPort(SerialConnectionFactory.java:201)
        at nl.lxtreme.rxtx.SerialConnectionFactory.createConnection(SerialConnectionFactory.java:114)
        at nl.lxtreme.ols.io.ConnectorServiceImpl.open(ConnectorServiceImpl.java:152)
        at org.sump.device.logicsniffer.LogicSnifferDeviceController$2.getConnection(LogicSnifferDeviceController.java:222)
        at org.sump.device.logicsniffer.LogicSnifferDevice.attach(LogicSnifferDevice.java:533)
        at org.sump.device.logicsniffer.LogicSnifferDevice.doInBackground(LogicSnifferDevice.java:940)
        at org.sump.device.logicsniffer.LogicSnifferDevice.doInBackground(LogicSnifferDevice.java:44)
        at javax.swing.SwingWorker$1.call(SwingWorker.java:296)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at javax.swing.SwingWorker.run(SwingWorker.java:335)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
[12.09.11 09:35:03 - INFO  - logicsniffer.LogicSnifferDevice]: Found Sump Logic Analyzer/LogicSniffer compatible device ...
[12.09.11 09:35:03 - INFO  - logicsniffer.LogicSnifferDevice]: Detected device type: Open Logic Sniffer v1.01
[12.09.11 09:35:03 - INFO  - logicsniffer.LogicSnifferDevice]: Using device profile: Open Bench Logic Sniffer
[12.09.11 09:35:03 - DEBUG -   LogicSnifferDeviceController]: Progress 9%
[12.09.11 09:35:03 - DEBUG -   LogicSnifferDeviceController]: Progress 32%
[12.09.11 09:35:03 - DEBUG -   LogicSnifferDeviceController]: Progress 94%
[12.09.11 09:35:03 - DEBUG -   LogicSnifferDeviceController]: Progress 100%
[12.09.11 09:35:10 - INFO  - logicsniffer.LogicSnifferDevice]: Prematurely finishing normal capture ...
[12.09.11 09:36:48 - INFO  -   LogicSnifferDeviceController]: Capture cancelled by user...
[12.09.11 09:36:48 - WARN  - logicsniffer.LogicSnifferDevice]: Capture interrupted! Only 2.048 samples read ...
[12.09.11 09:36:48 - INFO  - logicsniffer.LogicSnifferDevice]: Decoding unencoded data, sample count: 2.048

There is no update of the data in the GUI after that last line..

@jawi

This comment has been minimized.

Owner

jawi commented Sep 13, 2011

Thanks for the update; I'll try to look into this issue soon. Will get back to you soon...

@jawi

This comment has been minimized.

Owner

jawi commented Oct 15, 2011

Just verified that the current version of the OLS client (0.9.4) does not work without any modifications on JDK7 on Windows.

jawi added a commit that referenced this issue Oct 17, 2011

@jawi

This comment has been minimized.

Owner

jawi commented Oct 17, 2011

Found out that upgrading to the latest Felix libraries fixes the problem for at least Windows 7, presumably also for Linux (not verified yet).

@jawi jawi closed this Jan 8, 2012

@ericwilk

This comment has been minimized.

ericwilk commented Apr 5, 2015

This is still a problem for me on Linux mypcname-C55D-A 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

... when /usr/bin/java is pointed to jdk 7. I had to download 6 and change run.sh to point to that java to get it to run. Also, it seems like there are some problems with the OLS updater script (backslashes in the cp won't work for Linux I don't think and it isn't going to escape the colon).

Regardless, I can get it to work by hacking the script files but wanted to open this since it was marked as 'resolved' so long ago.

@DGxInfinitY

This comment has been minimized.

DGxInfinitY commented May 13, 2017

Same problem still with Oracle Java 8.

@martinayotte

This comment has been minimized.

martinayotte commented May 31, 2017

Right ! I'm facing the same issue !
I would like to avoid getting to install an old java-1.6 ...
Ok ! I've installed 1.6 inside OLS folder ...

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