Bug 1024408

Summary: [abrt] thermostat-0.9.2-6.fc20: Uncaught exception in method start
Product: [Fedora] Fedora Reporter: fred <fredoche>
Component: thermostatAssignee: Severin Gehwolf <sgehwolf>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: fredoche, jerboaa, jon.vanalten, omajid, sgehwolf
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2a7ec8d8364156567509189824e35aca6103e87a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-07 18:06:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ
none
File: jvm_environment none

Description fred 2013-10-29 15:33:49 UTC
Description of problem:
just started the program from the notification area

Version-Release number of selected component:
thermostat-0.9.2-6.fc20

Additional info:
reporter:       libreport-2.1.8
cmdline:        java -agentpath:/usr/lib64/libabrt-java-connector.so=abrt=on -cp /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25-2.3.12.4.fc20.x86_64/jre/../lib/tools.jar:/home/fred/.thermostat/libs/* com.redhat.thermostat.main.Thermostat gui
executable:     /usr/share/thermostat/libs/thermostat-main-0.9.2.jar
java_executable: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre-abrt/bin/java
kernel:         3.11.6-301.fc20.x86_64
pid:            12321
runlevel:       N 5
uid:            1000

Truncated backtrace:
#1 java.io.FileNotFoundException: /home/fred/.thermostat/libs/jansi.jar (Aucun fichier ou dossier de ce type)
#2 	at java.io.FileInputStream.open(Native Method) [file:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre/lib/rt.jar]
#3 	at java.io.FileInputStream.<init>(FileInputStream.java:146) [file:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre/lib/rt.jar]
#4 	at java.io.FileInputStream.<init>(FileInputStream.java:101) [file:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre/lib/rt.jar]
#5 	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) [file:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre/lib/rt.jar]
#6 	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) [file:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre/lib/rt.jar]
#7 	at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524) [file:/usr/share/java/felix/org.apache.felix.framework.jar]
#8 	at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165) [file:/usr/share/java/felix/org.apache.felix.framework.jar]
#9 	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77) [file:/usr/share/java/felix/org.apache.felix.framework.jar]
#10 	at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878) [file:/usr/share/java/felix/org.apache.felix.framework.jar]

Comment 1 fred 2013-10-29 15:33:53 UTC
Created attachment 817115 [details]
File: backtrace

Comment 2 fred 2013-10-29 15:33:57 UTC
Created attachment 817116 [details]
File: environ

Comment 3 fred 2013-10-29 15:34:00 UTC
Created attachment 817117 [details]
File: jvm_environment

Comment 4 fred 2013-10-29 15:44:52 UTC
Seems like a broken symbolic link in the package.

[~] file /usr/share/thermostat/libs/jansi.jar
/usr/share/thermostat/libs/jansi.jar: broken symbolic link to `/usr/share/java/jansi.jar'
[~] ll /usr/share/thermostat/libs/jansi.jar                                                                  
lrwxrwxrwx 1 root root 25 29 oct.  16:32 /usr/share/thermostat/libs/jansi.jar -> /usr/share/java/jansi.jar

Comment 5 fred 2013-10-29 15:46:31 UTC
fixed by  sudo ln -s /usr/share/java/jansi-native/jansi-native.jar /usr/share/java/jansi.jar

Comment 6 fred 2013-10-29 15:48:40 UTC
however 

[~] thermostat shell
Thermostat version 0.9.2

Caught NoClassDefFoundError! Check pom for the missing class: "org/fusesource/jansi/AnsiOutputStream".  Its package may not be listed.

Comment 7 Severin Gehwolf 2013-10-29 20:33:41 UTC
Thanks for the bug-report. I'm about to update thermostat to latest upstream v0.15.0. The missing symlink was already known. The NoClassDeFoundError suggests osgi problems. I'll take a closer look once I have newer thermostat ready. I would appreciate testing once I've built newer thermostat in koji, though. For the time being F19's thermostat should work.

Comment 8 Severin Gehwolf 2013-11-05 18:26:43 UTC
Fred, there's a new build available for F20 with latest thermostat: http://koji.fedoraproject.org/koji/buildinfo?buildID=476340

While testing it I didn't run into issues you are describing here. I'd appreciate you testing this build as well if you feel like it :) Any feedback is very welcome. Thanks!

In any case, please let me know if you can still reproduce with the updated package.

Comment 9 fred 2013-11-07 16:23:29 UTC
thermostat shell doesnt crash anymore with the version downloaded from koji.
thx for looking into the issue!

Comment 10 Severin Gehwolf 2013-11-07 18:06:37 UTC
(In reply to fred from comment #9)
> thermostat shell doesnt crash anymore with the version downloaded from koji.
> thx for looking into the issue!

OK, cool. Thanks! Closing.