ec2-api-tools with java-6-openjdk fail with

Bug #542395 reported by Scott Moser on 2010-03-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Debian)
Fix Released
openjdk-6 (Ubuntu)
Nominated for Lucid by Scott Moser

Bug Description

Binary package hint: ec2-api-tools

+ ec2-describe-images --private-key pk.pem --cert cert.pem ami-8924cbe0
Unexpected error: Invalid argument or cannot assign requested address
        at Method)
       at org.codehaus.xfire.client.XFireProxy.invoke(
        at $Proxy12.describeImages(Unknown Source)

Other info about java:
$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 40 2010-03-15 13:16 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk/jre/bin/java
$ dpkg -S /usr/lib/jvm/java-6-openjdk/jre/bin/java
openjdk-6-jre-headless: /usr/lib/jvm/java-6-openjdk/jre/bin/java
$ dpkg-query --show openjdk-6-jre-headless
openjdk-6-jre-headless 6b18~pre2-1ubuntu1

ProblemType: Bug
Architecture: amd64
Date: Fri Mar 19 22:46:27 2010

DistroRelease: Ubuntu 10.04
Package: ec2-api-tools 1.3.46266-0ubuntu1
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.32-16.25-server
SourcePackage: ec2-api-tools
Uname: Linux 2.6.32-16-server x86_64

Scott Moser (smoser) wrote :
Scott Moser (smoser) wrote :

I just verified that the following "fixes" the problem:
 - enable partner repo
 - apt-get install sun-java6-jdk
 - update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

So, the problem is with ec2-api-tools on top of openjdk

summary: - ec2-api-tools fail with
+ ec2-api-tools with java-6-openjdk fail with
+ using
Chuck Short (zulcss) on 2010-03-22
Changed in ec2-api-tools (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium

Also verified that this works around the problem while still using openjdk:
$ ec2-describe-images

Note, ec2-describe-images calls ec2-cmd, and ec2-cmd has:
 exec java $EC2_JVM_ARGS $cygprop -classpath "$CP"$CMD "$@"

so the EC2_JVM_ARGS is passed through.

summary: ec2-api-tools with java-6-openjdk fail with
- using
affects: ec2-api-tools (Ubuntu) → openjdk-6 (Ubuntu)
Matthias Klose (doko) wrote :

please could you recheck with 6b18~pre3-0ubuntu1 ?

Scott Moser (smoser) wrote :

$ dpkg-query --show openjdk-6-jre-headless
openjdk-6-jre-headless 6b18~pre3-0ubuntu1
$ unset EC2_JVM_ARGS
$ ec2-describe-images --private-key pk.pem --cert cert.pem ami-a108e7c8
IMAGE ami-a108e7c8 099720109477/ebs/ubuntu-images-milestone/ubuntu-lucid-10.04-beta1-amd64-server-20100317 099720109477 available public x86_64 machine aki-9309e6fa ebs
BLOCKDEVICEMAPPING /dev/sda1 snap-977763fe 15

Changed in openjdk-6 (Ubuntu):
status: Confirmed → Fix Released
Matthias Klose (doko) wrote :

fixed in 6b18~pre3-0ubuntu1

Changed in openjdk-6 (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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