openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #03164
[Bug 542395] Re: ec2-api-tools with java-6-openjdk fail with java.net.SocketException using
Also verified that this works around the problem while still using openjdk:
$ EC2_JVM_ARGS=-Djava.net.preferIPv4Stack=true ec2-describe-images
Note, ec2-describe-images calls ec2-cmd, and ec2-cmd has:
exec java $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.aes.webservices.client.cmd.$CMD "$@"
so the EC2_JVM_ARGS is passed through.
** Summary changed:
- ec2-api-tools with java-6-openjdk fail with java.net.SocketException using
+ ec2-api-tools with java-6-openjdk fail with java.net.SocketException
** Package changed: ec2-api-tools (Ubuntu) => openjdk-6 (Ubuntu)
** Bug watch added: Debian Bug tracker #573742
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573742
** Also affects: openjdk-6 (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573742
Importance: Unknown
Status: Unknown
--
ec2-api-tools with java-6-openjdk fail with java.net.SocketException
https://bugs.launchpad.net/bugs/542395
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” package in Ubuntu: Confirmed
Status in “openjdk-6” package in Debian: Unknown
Bug description:
Binary package hint: ec2-api-tools
+ ec2-describe-images --private-key pk.pem --cert cert.pem ami-8924cbe0
Unexpected error:
java.net.SocketException: Invalid argument or cannot assign requested address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:542)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:570)
...
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy12.describeImages(Unknown Source)
at com.amazon.aes.webservices.client.Jec2.describeImages(Jec2.java:485)
at com.amazon.aes.webservices.client.cmd.DescribeImages.invokeOnline(DescribeImages.java:160)
at com.amazon.aes.webservices.client.cmd.BaseCmd.invoke(BaseCmd.java:742)
at com.amazon.aes.webservices.client.cmd.DescribeImages.main(DescribeImages.java:171)
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
Dependencies:
DistroRelease: Ubuntu 10.04
Package: ec2-api-tools 1.3.46266-0ubuntu1
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-server
SourcePackage: ec2-api-tools
Uname: Linux 2.6.32-16-server x86_64