[SRU] jvisualvm won't launch

Bug #1004370 reported by Masanori Matsumoto
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
visualvm (Ubuntu)
Fix Released
Undecided
Aditya V
Precise
Fix Released
Undecided
Unassigned

Bug Description

SRU Request for precise

#### SRU Justification ###

[Impact]
jvisualvm is currently unable to start in Precise.

[Development Fix]
Fixed in lp:~kroq-gar78/ubuntu/precise/visualvm/fix-start revno 16 (http://bazaar.launchpad.net/~kroq-gar78/ubuntu/precise/visualvm/fix-start/revision/16) along with bug 937710 (they are _very_ similar in nature) by adding `dpkg --print-architecture` to the end of the java-6-openjdk path. Because I fixed it in conjunction with bug 937710, I also added a 'java-7-openjdk-$ARCH' path.

[Stable Fix]
To do this after the package has been installed, edit the file /usr/bin/jvisualvm and include the same fix, following this diff:

@@ -8,9 +8,10 @@
 progdir=/usr/bin
 APPNAME=visualvm
 BASEDIR=/usr/lib/visualvm
+ARCH=`dpkg --print-architecture`

 jdkhome=
-for j in /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun; do
+for j in /usr/lib/jvm/java-6-openjdk-$ARCH /usr/lib/jvm/java-6-sun; do
     if [ -x $j/bin/javac ]; then
  jdkhome=$j
  break

Since /usr/bin/jvisualvm is the same file as debian/jvisualvm in the package source, the file can be edited exactly as it was edited in the Bazaar branch above.

[Test Case]
1) Install the package 'visualvm'
2) Run 'jvisualvm' from a terminal

With the version in Precise, it will error out with:
No jdkhome found.

[Regression Potential]
The potential for regression is extremely low because running the program isn't currently possible.

#######

visualvm 1.3.2-0ubuntu2 running on Ubuntu 12.04 LTS.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in visualvm (Ubuntu):
status: New → Confirmed
Revision history for this message
Aditya V (kroq-gar78) wrote :

Possible duplicate of bug 937710

Revision history for this message
Aditya V (kroq-gar78) wrote :

Strange... in the latest commit (April 22, 2012), it had "Handle new multiarch-friendly OpenJDK installation paths." (the change was only in debian/rules")

Changed in visualvm (Ubuntu):
assignee: nobody → kroq-gar78 (kroq-gar78)
status: Confirmed → In Progress
Revision history for this message
Aditya V (kroq-gar78) wrote :

I found the problem. The multiarch-friendly paths weren't updated in the launch script (debian/jvisualvm.sh). Also, it's not the same as bug 937710.

summary: - jvisualvm wont launch
+ [SRU] jvisualvm won't launch
Aditya V (kroq-gar78)
description: updated
Aditya V (kroq-gar78)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package visualvm - 1.3.2-0ubuntu3

---------------
visualvm (1.3.2-0ubuntu3) quantal; urgency=low

  * debian/jvisualvm.sh:
    - look for OpenJDK 7 files also (LP: #937710)
    - use multiarch-friendly paths for OpenJDK (LP: #1004370)
 -- Aditya Vaidya <email address hidden> Sun, 27 May 2012 00:02:57 -0500

Changed in visualvm (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Aditya V (kroq-gar78) wrote :

Agh now it looks like this bug was fixed, but it's not in Precise! Can someone please nominate this bug for Precise? Thanks.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Uploaded to precise-proposed, pending SRU team review

Changed in visualvm (Ubuntu Precise):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Masanori, or anyone else affected,

Accepted visualvm into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Masanori Matsumoto (gatetwom) wrote :

I tested precise-proposed version of visualvm, and it works for me.
Thank you!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Copied to -updates.

Changed in visualvm (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.