Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: java.lang.reflect error

  1. #1

    Default java.lang.reflect error with AWS SDK

    I'm using Wowza Streaming Engine 4.1.0
    Windows 8
    Java SE Runtime Environment (build 1.7.0_67-b01)


    My debug configuration VM argument already has "-Dcom.wowza.wms.native.base="win"" in it.

    But I'm getting this error.

     java.lang.reflect.InvocationTargetException|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)|at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|at java.lang.reflect.Method.invoke(Method.java:606)|at com.wowza.wms.module.ModuleFunction.invoke(ModuleFunction.java:369)|
    All research on this error points to having that argument in your list.
    Last edited by jHouseman; 09-25-2014 at 12:55 PM.

  2. #2

    Default

    It seems that this chunk of code:

    s3 = new AmazonS3Client();
    		s3.setEndpoint(region);
    		s3.putObject(videoBucket,params.getString(4)+".flv",new File(dir+params.getString(4)+".flv"));
    Is causing the problem. If I comment it out, I don't get this error.

  3. #3

    Default

    This seems to be related, but I can find no solutions here:

    http://www.wowza.com/forums/showthre...argetException

    I seem to have the same problem the TC is having here.
    Last edited by jHouseman; 09-25-2014 at 10:39 AM.

  4. #4

    Default

    I initially installed the AWS SDK using the method described in the second post of this thread:

    https://forums.aws.amazon.com/messag...=550016#550016

  5. #5

    Default

    I went and installed the AWS SDK the correct way, but it didn't help.

  6. #6
    Join Date
    May 2013
    Posts
    680

    Default

    Hello

    Try using AWS SDK 1.4.7 (or earlier) in conjunction with the apache commons codec(v1.9). This should resolve the current conflict.

    Thanks,
    Matt

  7. #7

    Default

    This fixed the issue.

    Thanks

  8. #8

    Default

    Now I'm getting this issue again, but this time, on a server environment, not in a development environment

    I'm running the streaming engine with startup.sh and I'm doing this:

    PutObjectRequest p = new PutObjectRequest(videoBucket,flvName, new File(dir+flvName));
    p.setRequestCredentials(getCredentials());
    p.setCannedAcl(CannedAccessControlList.BucketOwnerFullControl);
    			
    getLogger().info("attempting to upload " + flvName + " to " + videoBucket);
    s3.putObject(p);
    It crashes at that last line with a similar error:
    ERROR server comment - invoke(doSave): java.lang.reflect.InvocationTargetException|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)|at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|at java.lang.reflect.Method.invoke(Method.java:606)|at com.wowza.wms.module.ModuleFunction.invoke(ModuleFunction.java:293)|
    This code:
     s3 = new AmazonS3Client()
    runs successfully inside of the onAppStart method, so I can at least initialize the object.

    In case this is an issue with the libraries that I have, here are all of the files in the lib directory. Note that the aws sdk 1.4.7 and the commons codec 1.9 are there.


    aws-java-sdk-1.4.7.jar         wms-drm.jar                              wms-plugin-bwcheck.jar
    bcprov-jdk15on-149.jar         wms-dvr.jar                              wms-plugin-loadbalancer.jar
    commons-codec-1.9.jar          wms-httpstreamer-cupertinostreaming.jar  wms-plugin-streamnamealias.jar
    commons-lang-2.6.jar           wms-httpstreamer-directstreaming.jar     wms-pushpublish.jar
    jackson-annotations-2.1.1.jar  wms-httpstreamer-mpegdashstreaming.jar   wms-release-tools.jar
    jackson-core-2.1.1.jar         wms-httpstreamer-sanjosestreaming.jar    wms-rest.jar
    jackson-databind-2.1.1.jar     wms-httpstreamer-smoothstreaming.jar     wms-restlet-2.1.6.jar
    jid3lib-0.5.4.jar              wms-jax.validation.jar                   wms-restlet-2.1.6.org.restlet.ext.simple.jar
    joda-time-2.3.jar              wms-jlayer.jar                           wms-server.jar
    log4j-1.2.17.jar               wms-license-rest.jar                     wms-stats.jar
    Recorder modules.jar           wms-mediacache.jar                       wms-stream-file.jar
    slf4j-api-1.6.4.jar            wms-mediareader-flv.jar                  wms-stream-live.jar
    slf4j-log4j12-1.6.4.jar        wms-mediareader-h264.jar                 wms-stream-publish.jar
    wms-amazonutil.jar             wms-mediareader-mp3.jar                  wms-stream-record.jar
    wms-ant.jar                    wms-mediareader-smil.jar                 wms-stream-rtp.jar
    wms-bootstrap.jar              wms-mediawriter-flv.jar                  wms-stream-shoutcast.jar
    wms-commons-modeler.jar        wms-mediawriter-h264.jar                 wms-transcoder.jar
    wms-core.jar                   wms-plugin-amazonaws.jar                 wms-xstream-1.4.7.jar
    Last edited by jHouseman; 10-02-2014 at 09:14 AM.

  9. #9
    Join Date
    May 2013
    Posts
    680

    Default

    Please refer to ticket #104379.

    Thanks,

    Matt

  10. #10

    Default

    This topic contains the entire history of ticket #104379 doesn't it?

    Beyond that, I don't have access for your ticketing software, I don't think.

    If you're saying "read this topic again", I've posted my "lib" directory and you can see that I'm using the AWS SDK version and commons-codec that you suggested.
    Last edited by jHouseman; 10-02-2014 at 02:29 PM. Reason: spelling

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 08-28-2014, 01:36 PM
  2. Replies: 5
    Last Post: 01-07-2013, 09:48 AM
  3. Upgrade adventure - "Error starting: java.lang.reflect.InvocationTargetException"
    By catdude in forum Server Administration Discussion
    Replies: 0
    Last Post: 09-25-2012, 03:43 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
  •