Wowza Community

java.lang.reflect error

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.

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.

Using AWS SDK 1.4.7 jar and the apache commons codec v1.9 fixed the problem for me

I had this error again when I installed Wowza on the server available here. I replaced the v1.9 commons codec with the 1.3 commons codec, and it fixed it.

Windows 8 needs AWS SDK 1.4.7 and commons codec 1.9

Amazon Linux 2013.09.2 needs AWS SDK 1.4.7 and commons codec 1.3

For Web Apps in different platforms visit http://www.ati-erp.com

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

Please refer to ticket #104379.

Thanks,

Matt

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

I seem to have the same problem the TC is having here.

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

https://forums.aws.amazon.com/message.jspa?messageID=550016#550016

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

This fixed the issue.

Thanks

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

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.

I fixed this by replacing “commons-codec-1.9.jar” with “commons-codec-1.3.jar”

I’m having the same problem, the only difference is that I’m calling my own web-service, and the app get’s stuck and doing nothing once reaches the line I’m instantiating the class

Please help!

I’m having the same problem, the only difference is that I’m calling my own web-service, and the app get’s stuck and doing nothing once reaches the line I’m instantiating the class

Please help!

Did you ever find and issue to this problem. I am running into the same issue as you.