Results 1 to 4 of 4

Thread: AWS SDK S3 client InvocationTargetException

  1. #1
    Join Date
    May 2014

    Default AWS SDK S3 client InvocationTargetException

    I have a plugin which is being activated correctly, but I'm having issues implementing the AWS SDK to upload the file to S3, I'm pretty new to Java so I'm not really sure what this error could be an indication of, as far as I can tell my code is all correct...

    The exact error
    java.lang.reflect.InvocationTargetException|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|at sun.reflect.NativeMethodAccessorImpl.invoke(|at sun.reflect.DelegatingMethodAccessorImpl.invoke(|at java.lang.reflect.Method.invoke(|at com.wowza.wms.module.ModuleFunction.invoke(
    My code...
    String bucketName     = "m***";
    String myAccessKeyID  = "AKI*******";
    String mySecretKey    = "K6n****";
    String keyName        = "recorded/"+fileName;
    BasicAWSCredentials myCredentials = new BasicAWSCredentials(myAccessKeyID, mySecretKey);
    getLogger().info("Passed credentials"); // Logs ok
    //  This line is where it breaks
    AmazonS3 s3client = new AmazonS3Client(myCredentials);
    getLogger().info("Passed client"); // Never reaches here
    s3client.putObject(new PutObjectRequest(bucketName, keyName, file));

  2. #2
    Join Date
    Dec 2007


    I think this is basically a duplicate

  3. #3
    Join Date
    Jul 2010


    Quote Originally Posted by rrlanham View Post
    I think this is basically a duplicate

    I've run into the same thing myself. The same code works on the AWS Java SDK 1.5.8, but doesn't ( however should ) with 1.6.12 and 1.7.12 ( the latest ). I've also tested using the 1.3.x SDK, and works fine.

    This is all with Wowza Streaming Engine and, and connecting to DynamoDB rather than S3, and on Sun Java 1.8.0_05.

    We noticed this when we ported custom modules to Wowza 4 (and they worked) and upgraded the AWS SDK which then caused all kind of problems.

    Hope this helps.

    #Edit: Referring to the post you mention above, my testing is on a local development machine rather than on the EC2 instance itself, using fixed user credentials.
    Last edited by chris_w; 06-11-2014 at 09:09 AM.

  4. #4
    Join Date
    Dec 2007


    Thanks. Interesting. I am working with that SDK myself, just getting started. I have the S3Sample integrated into a Wowza module with latest SDK, no build errors so far. Working local too.

    Thanks for the info,

Similar Threads

  1. GoCoder SDK available?
    By barrena in forum Wowza GoCoder SDK
    Replies: 35
    Last Post: 05-02-2016, 07:29 AM
  2. Looking for GoCoder iOS Client SDK
    By nitin.gupta in forum Wowza GoCoder SDK
    Replies: 3
    Last Post: 02-16-2016, 10:28 AM
  3. Store live streaming content in AWS S3 and stream with AWS Cloudfront
    By droidlabour in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 1
    Last Post: 08-21-2013, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts