Failed to work with jdk7u10. No matching plugin was found

Bug #1096546 reported by Ahmad Aizuddin Aizat
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
java-package (Debian)
Fix Released
Unknown
java-package (Ubuntu)
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned

Bug Description

SRU justification

[Impact]
 * no one can build the latest jdk or jre with make-jpkg
 * package in quantal cannot handle version >= 7u10,
   the latest Oracle Java SE version is 7u17 at this time.

[Test Case]
 1. download the latest jdk or jre from
    http://www.oracle.com/technetwork/java/javase/downloads
 2. execute make-jpkg like `make-jpkg jdk-7u<version>-linux-<arch>.tar.gz`
 3. failed with "No matching plugin was found."
 4. update to -proposed package
 5. execute make-jpkg again
 6. success build and get oracle-j2sdk1.7_<version>_<arch>.deb

[Regression Potential]
 minimal, just adding the case of the version is 7u<2 digits> at the end.

-- original description --

$ fakeroot make-jpkg jdk-7u10-linux-x64.tar.gz
Creating temporary directory: /tmp/make-jpkg.kfrHpfNY5Y
Loading plugins: /usr/share/java-package/common.sh /usr/share/java-package/j2re.sh /usr/share/java-package/j2sdk-doc.sh /usr/share/java-package/j2sdk.sh /usr/share/java-package/j2se.sh /usr/share/java-package/oracle-j2re.sh /usr/share/java-package/oracle-j2sdk-doc.sh /usr/share/java-package/oracle-j2sdk.sh

Detected Debian build architecture: amd64
Detected Debian GNU type: x86_64-linux-gnu

No matching plugin was found.
Removing temporary directory: done

I try to make debian package of jdk7u10 but failed to generate.Package downloaded from Oracle website.

summary: - No matching plugin was found
+ Failed to work with jdk7u10. No matching plugin was found
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in java-package (Ubuntu):
status: New → Confirmed
Revision history for this message
Anton Asche (aasche) wrote :

Version 0.50ubuntu1 in 12.10 doesn't support Oracle Java 7 Updates with two digits (fixed in 13.04?). Bugfix is easy, following files must be changed:

* /usr/share/java-package/oracle-j2re.sh
* /usr/share/java-package/oracle-j2sdk.sh
* /usr/share/java-package/oracle-j2sdk-doc.sh

Replace any occurrence of:

"jdk-7u"[0-9]"-FILENAME") # SUPPORTED
     j2se_version=1.7.0+update${archive_name:6:1}${revision}

with:

"jdk-7u"[0-9][0-9]"-FILENAME") # SUPPORTED
     j2se_version=1.7.0+update${archive_name:6:2${revision}

Please don't change FILENAME - it's only a placeholder here.

Revision history for this message
Ahmad Aizuddin Aizat (kaibathelegacy) wrote :

The Debian package has been created in the current directory. You can
install the package as root (e.g. dpkg -i oracle-j2sdk1.7_1.7.0+update1_amd64.deb).

The bugfix work forme. Thank you aasche.

Revision history for this message
Anton Asche (aasche) wrote :

>The bugfix work forme. Thank you aasche.
No problem :)

Errata: the fix above is for the JDK. If you want to build your own packages of the JRE, change

"jre-7u"[0-9]"-FILENAME") # SUPPORTED
     j2se_version=1.7.0+update${archive_name:6:1}${revision}

to:

"jre-7u"[0-9][0-9]"-FILENAME") # SUPPORTED
     j2se_version=1.7.0+update${archive_name:6:2${revision}

Test successfully with Oracle Java 7 Update 10 and 11 JREs.

Changed in java-package (Debian):
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package java-package - 0.50+nmu2ubuntu1

---------------
java-package (0.50+nmu2ubuntu1) raring; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - Add support for Oracle Java 7 JDK for ARM.
  * Fixes bug with multiple digits in Java 7 updates (LP: #1096546).

java-package (0.50+nmu2) unstable; urgency=high

  * Non-maintainer upload.
  * Allow two digits in Java 7 updates. Closes: #597294, #698108
 -- Logan Rosen <email address hidden> Sat, 16 Feb 2013 18:22:39 -0500

Changed in java-package (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :

Can it be SRUed into quantal? It would be helpful.

Revision history for this message
Nobuto Murata (nobuto) wrote :
description: updated
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for the quantal debdiff. Looks good, ACK. Uploaded to quantal-proposed, and subscribed ubuntu-sru for SRU team processing.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ahmad, or anyone else affected,

Accepted java-package into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/java-package/0.50ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in java-package (Ubuntu Quantal):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Nobuto Murata (nobuto) wrote :

java-package/0.50ubuntu1.1 runs make-jpkg successfully for both jre-7u21-linux-x64.tar.gz and jdk-7u21-linux-x64.tar.gz.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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

This bug was fixed in the package java-package - 0.50ubuntu1.1

---------------
java-package (0.50ubuntu1.1) quantal-proposed; urgency=low

  * Fixes bug with multiple digits in Java 7 updates (LP: #1096546).
 -- Nobuto MURATA <email address hidden> Fri, 08 Mar 2013 10:30:24 +0900

Changed in java-package (Ubuntu Quantal):
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.