OLS was working but now gives me a java error

Support and development for logic analyzer client software used with the Logic Sniffer.

Re: OLS was working but now gives me a java error

Postby jdd » Wed Jan 16, 2013 7:16 am

I got another error too.

Code: Select all
java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform
   at java.awt.Desktop.getDesktop(Desktop.java:144)
   at nl.lxtreme.ols.util.swing.component.JErrorDialog$IncidentMailReporter.reportIncident(JErrorDialog.java:242)
   at nl.lxtreme.ols.util.swing.component.JErrorDialog.reportIncident(JErrorDialog.java:524)
   at nl.lxtreme.ols.util.swing.component.JErrorDialog$1.actionPerformed(JErrorDialog.java:620)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
   at java.awt.Component.processMouseEvent(Component.java:6505)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
   at java.awt.Component.processEvent(Component.java:6270)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4861)
   at java.awt.Container.dispatchEventImpl(Container.java:2287)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
   at java.awt.Container.dispatchEventImpl(Container.java:2273)
   at java.awt.Window.dispatchEventImpl(Window.java:2719)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:682)
   at java.awt.EventQueue$3.run(EventQueue.java:680)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
   at java.awt.EventQueue$4.run(EventQueue.java:696)
   at java.awt.EventQueue$4.run(EventQueue.java:694)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
   at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
   at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
   at java.awt.Dialog.show(Dialog.java:1077)
   at java.awt.Component.show(Component.java:1651)
   at java.awt.Component.setVisible(Component.java:1603)
   at java.awt.Window.setVisible(Window.java:1014)
   at java.awt.Dialog.setVisible(Dialog.java:1003)
   at nl.lxtreme.ols.util.swing.component.JErrorDialog.showDialog(JErrorDialog.java:456)
   at nl.lxtreme.ols.util.swing.component.JErrorDialog$SwingUncaughtExceptionHandler$1.run(JErrorDialog.java:334)
   at nl.lxtreme.ols.util.swing.component.JErrorDialog$SwingUncaughtExceptionHandler.uncaughtException(JErrorDialog.java:340)
   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
   at java.awt.EventDispatchThread.processException(EventDispatchThread.java:264)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:256)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
jdd
Newbie
Newbie
 
Posts: 12
Joined: Sat Jan 12, 2013 2:12 pm

Re: OLS was working but now gives me a java error

Postby jawi » Wed Jan 16, 2013 7:30 am

What values are you entering in the client regarding the analyzer port and speed?
User avatar
jawi
Developer
Developer
 
Posts: 570
Joined: Thu May 27, 2010 2:54 am
Location: The Netherlands

Re: OLS was working but now gives me a java error

Postby wayoda » Wed Jan 16, 2013 8:16 am

Hi, that
Code: Select all
java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform
   at java.awt.Desktop.getDesktop(Desktop.java:144)

was also new to me.

http://stackoverflow.com/questions/102325/not-supported-platforms-for-java-awt-desktop-getdesktop

But I never used the java.awt.Destktop.class anyway.

Eberhard
wayoda
Jr. Member
Jr. Member
 
Posts: 78
Joined: Thu May 06, 2010 5:59 am

Re: OLS was working but now gives me a java error

Postby jdd » Wed Jan 16, 2013 7:36 pm

I tried changing it to different ports and got the a URI error. Then I changed it back to /dev/ttyACM0 and it works just fine now. Thanks for the help!
jdd
Newbie
Newbie
 
Posts: 12
Joined: Sat Jan 12, 2013 2:12 pm

Re: OLS was working but now gives me a java error

Postby jawi » Thu Jan 17, 2013 3:48 am

wayoda wrote:Hi, that
Code: Select all
java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform
   at java.awt.Desktop.getDesktop(Desktop.java:144)

was also new to me.

http://stackoverflow.com/questions/102325/not-supported-platforms-for-java-awt-desktop-getdesktop

But I never used the java.awt.Destktop.class anyway.


Hmm, overlooked that issue. After some quick tests, it appears that the mail support on various Linux distributions does not work reliably (maybe due to the lack of a configured mail client?).

I've created another issue for this, so it can be solved...
User avatar
jawi
Developer
Developer
 
Posts: 570
Joined: Thu May 27, 2010 2:54 am
Location: The Netherlands

Re: OLS was working but now gives me a java error

Postby jawi » Thu Jan 17, 2013 4:03 am

jdd wrote:I tried changing it to different ports and got the a URI error. Then I changed it back to /dev/ttyACM0 and it works just fine now. Thanks for the help!


Ok, good to hear. In summary: the issue was that the analyzer port was incorrect, and that after resetting it to the expected value, it worked?
User avatar
jawi
Developer
Developer
 
Posts: 570
Joined: Thu May 27, 2010 2:54 am
Location: The Netherlands

Re: OLS was working but now gives me a java error

Postby jdd » Sat Jan 19, 2013 9:08 am

jawi wrote:
jdd wrote:I tried changing it to different ports and got the a URI error. Then I changed it back to /dev/ttyACM0 and it works just fine now. Thanks for the help!


Ok, good to hear. In summary: the issue was that the analyzer port was incorrect, and that after resetting it to the expected value, it worked?


It looks that way. I'm not sure how the port got changed though.
jdd
Newbie
Newbie
 
Posts: 12
Joined: Sat Jan 12, 2013 2:12 pm

Re: OLS was working but now gives me a java error

Postby Fettlaus » Thu Mar 07, 2013 9:01 am

I have exactly the same error. I tried deleting the settings, changing rights of /dev/ttyACM0 to 777, using ttyACM0 as well as OpenLogicSniffer as "Analyzer port" (speed always at 115200).

I even tried using different, totally unrelated, ports. (As a previous poster jdd suggested)

OLS version 0.9.6.1

% uname -a
Linux Nemesis 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 18:26:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

% java -version
java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

% cat /etc/udev/rules.d/ols.r ules (No, spam-filter, this is not some russian spam domain!)
#File /etc/udev/rules.d/ols.r ules
#Rules for Openbench Logix Snifferslogic. Creates a nice link to the ols
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fc92", MODE="0666", SYMLINK+="OpenLogicSniffer", ENV{ID_MM_DEVICE_IGNORE}="1"
Attachments
ols.log
(6.92 KiB) Downloaded 122 times
Fettlaus
Newbie
Newbie
 
Posts: 3
Joined: Thu Mar 07, 2013 8:25 am

Re: OLS was working but now gives me a java error

Postby jawi » Thu Mar 07, 2013 9:56 am

You're probably suffering from issue #133. You can try whether the latest snapshot of the 0.9.7 works for you...
User avatar
jawi
Developer
Developer
 
Posts: 570
Joined: Thu May 27, 2010 2:54 am
Location: The Netherlands

Re: OLS was working but now gives me a java error

Postby Fettlaus » Thu Mar 07, 2013 11:12 am

I'm sorry, but that didn't help. I still get the same error. (showing different line numbers though)
I also deleted the old settings file.

I have to add, that I just received my Logic Sniffer. So I can't say that it was working at some point in time.

But I was able to do an update of the FPGA and PIC so it should theoratically be working.
Attachments
ols2.log
(6.92 KiB) Downloaded 120 times
Fettlaus
Newbie
Newbie
 
Posts: 3
Joined: Thu Mar 07, 2013 8:25 am

Re: OLS was working but now gives me a java error

Postby Fettlaus » Thu Mar 07, 2013 11:31 am

Seems to be my fault. Running as root works.
Not the best possible solution but a solution nonetheless.
Fettlaus
Newbie
Newbie
 
Posts: 3
Joined: Thu Mar 07, 2013 8:25 am

Re: OLS was working but now gives me a java error

Postby mwilson » Thu Mar 07, 2013 12:17 pm

I wonder if this isn't a more pervasive problem. I have similar issues trying to run the `screen` program to communicate with the Bus Pirate under Ubuntu 10.04. It seems as though comm. software wants to create pseudo-TTYs in a directory called /dev/pts , and permissions there are set to rwxr-xr-x i.e. writable only by root. It sometimes seems as though setting group permissions to rwx, and putting my user in the appropriate group, makes things go smoothly.

If that truly is the case then it's not Jawi's problem at all, but I haven't been able to chase down the software that sets the default permissions on /dev/pts .
mwilson
Newbie
Newbie
 
Posts: 22
Joined: Thu Jun 16, 2011 9:31 am
Location: Toronto, Canada

Previous

Return to Client software