java stack trace using commands

Bug #1193041 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iamcli (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ iam-userlistbypath --aws-credential-file creds.txt
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/Consts
 at org.apache.http.client.utils.URIBuilder.digestURI(URIBuilder.java:162)
 at org.apache.http.client.utils.URIBuilder.<init>(URIBuilder.java:89)
 at org.apache.http.client.utils.URIUtils.rewriteURI(URIUtils.java:134)
 at org.apache.http.impl.client.DefaultRequestDirector.rewriteRequestURI(DefaultRequestDirector.java:389)
 at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:510)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
 at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:264)
 at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:170)
 at com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient.invoke(AmazonIdentityManagementClient.java:2993)
 at com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient.listUsers(AmazonIdentityManagementClient.java:660)
 at com.amazonaws.services.auth.identity.cli.controller.IAMUserListByPathDriver.invokeRequestImpl(IAMUserListByPathDriver.java:33)
 at com.amazonaws.services.auth.identity.cli.controller.IAMDriver.invokeRequest(IAMDriver.java:99)
 at com.amazonaws.services.auth.identity.cli.view.CLIView.makeRequest(CLIView.java:26)
 at com.amazonaws.services.auth.identity.cli.view.CLIView.<init>(CLIView.java:19)
 at com.amazonaws.services.auth.identity.cli.view.UserListByPathView.<init>(UserListByPathView.java:12)
 at com.amazonaws.services.auth.identity.cli.view.UserListByPathView.main(UserListByPathView.java:26)
Caused by: java.lang.ClassNotFoundException: org.apache.http.Consts
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 ... 18 more
$ which java
/usr/bin/java
$ dpkg -S `which java`
dpkg-query: no path found matching pattern /usr/bin/java
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Nov 9 2011 /usr/bin/java -> /etc/alternatives/java
smoser@brickies:~/src/tildabin/tildabin$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Sep 7 2012 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
$ dpkg -S /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
openjdk-7-jre-headless:amd64: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
$ dpkg-query --show openjdk-7-jre-headless:amd64
openjdk-7-jre-headless:amd64 7u21-2.3.9-1ubuntu1

I know this works on precise. Not sure where the regression came in.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: iamcli 1.5.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-21.32-generic 3.8.8
Uname: Linux 3.8.0-21-generic x86_64
ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Thu Jun 20 12:25:45 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (610 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: iamcli
UpgradeStatus: Upgraded to saucy on 2013-05-20 (31 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Seems like this is likely a fallout of httpcomponents-core being at version 4.2.4 and not 4.1.4. 4.2.4 came in saucy.

http://stackoverflow.com/questions/13495389/class-not-found-exception-when-using-aws-sdk-to-download-file-from-s3

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

This bug was fixed in the package iamcli - 1.5.0-0ubuntu3

---------------
iamcli (1.5.0-0ubuntu3) saucy; urgency=low

  * depend on libhttpcore-java to provide version consistent with
    libhttpclient-java. (LP: #1193041)
 -- Scott Moser <email address hidden> Thu, 20 Jun 2013 12:57:01 -0400

Changed in iamcli (Ubuntu):
status: New → 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.