# vods3 setup nullpointerexception

**URL:** https://community.wowza.com/t/vods3-setup-nullpointerexception/36136
**Category:** Wowza Streaming Engine
**Created:** [December 29, 2011, 8:35am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136 "2011-12-29T08:35:36Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [December 29, 2011, 8:35am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/1 "2011-12-29T08:35:36Z")

</div>

Sorry, I know that this must be a silly setup mistake, but I’ve been banging my head on this for most of a day. We are migrating from wowza2 server to wowza 3. Everything (live/vod) is going fine except for vods3 not working

ERROR server comment 2011-12-29 08:26:35 - - - - - 56327.821play: error opening file (/usr/local/WowzaMediaServer/content/amazons3/testbucketdc/sample.mp4): java.lang.NullPointerException

rtmp://[instance]/vods3/_definst_/

or

rtmp://[instance]/vods3/

mp4:amazons3/[bucketname]/sample.mp4

Whether we use _definst_ or not, vods3 seems to not be accessing S3. Instead it appears to be accessing vod via the local wowza content folder.

Server.xml has the S3 license key pair. bucket name has simple alphabet characters w/o any uppercase.

Is there debug that I can turn on or something? NullPointerException is rather generic.

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 29, 2011, 3:31pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/2 "2011-12-29T15:31:05Z")

</div>

Your vods3 app is not configured correctly. You might want to start over with a new instance. Do not use a Startup package, then check the vods3 application that is included.

Richard

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [January 23, 2012, 5:40pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/3 "2012-01-23T17:40:20Z")

</div>

The next version of the amazon ami that is due out in a few days is switching to straight medicache. The tuning will be in the startup packages.

Charlie

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 29, 2011, 5:20pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/4 "2011-12-29T17:20:27Z")

</div>

Make sure you got the right one, it is acting like a regular vod application, appears to be missing the MediaReader property necessary in the Application.xml for vods3.

Or start a new instance without a startup package to get a working copy that you can refer to.

Otherwise, zip up and send conf and logs folders to support@wowza.com. Include a link to this thread for reference. (due to the holidays, it might be a few days to turn-around)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 29, 2011, 6:48pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/5 "2011-12-29T18:48:55Z")

</div>

It is not included in the installer, vods3 is part of pre-built Wowza AMIs. You can use MediaCache instead:

[https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache)

Or you could start a Wowza AMI and get jar file(s) needed for this. You will have to review the difference, I don’t remember which one off the top of my head, but I think it is obvious when you compare.

I would just use one of the pre-built lickey AMIs:

[https://www.wowza.com/docs/pre-built-amis-amazon-machine-images#lickey](https://www.wowza.com/docs/pre-built-amis-amazon-machine-images#lickey)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 11, 2012, 2:58pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/6 "2012-01-11T14:58:18Z")

</div>

It’s not a requirement. You can install Wowza on a EC2 instance using the installer.

Be sure to tune:

[https://www.wowza.com/docs/how-to-do-performance-tuning](https://www.wowza.com/docs/how-to-do-performance-tuning)

The pre-built AMIs are self-tuning.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 17, 2012, 3:57pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/7 "2012-01-17T15:57:35Z")

</div>

Sorry, I’m lost. What is the current issue?

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 19, 2012, 2:32pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/8 "2012-01-19T14:32:16Z")

</div>

I think vods3 is working because “item not in cache” is one of its messages. I don’t understand why you don’t want to use MediaCache. Use vods3 with your pre-built Wowza AMI, use MediaCache otherwise.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 23, 2012, 9:41pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/9 "2012-01-23T21:41:14Z")

</div>

I still suggest you use MediaCache instead of “vods3”, which is just MediaCache that only works with S3 on EC2.

Richard

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [December 29, 2011, 11:50am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/10 "2011-12-29T11:50:11Z")

</div>

by “configure”, I assume that you mean conf/vods3/Application.xml. I freshed copied in Application.xml from the default\_3.0.zip downloaded, unzipped, and copied it in unmodified only yesterday.

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [December 29, 2011, 1:29pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/11 "2011-12-29T13:29:39Z")

</div>

zipped and sent. Okay since I’m stuck I did some more digging.

1. Why are you guys output errors into wowza\_access.log instead of wowza\_error.log? I missed some (what appear to be major) clues because of this.

2011-12-29 13:00:24 EST comment server ERROR 500 - RandomAccessReaderFactory: createRandomAccessReader: java.lang.ClassNotFoundException: com.wowza.wms.plugin.amazonaws.ec2.mediacache.MediaCacheRandomAccessReaderAmazonEC2 - - - 31.398 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-12-29 13:00:24 EST comment server ERROR 500 - play: error opening file (/usr/local/WowzaMediaServer/content/amazons3/testbucketdc/sample.mp4): java.lang.NullPointerException -

1. Looks like I’m missing MediaCachRandomAccessReaderAmazonEC2 class file.

2. Downloaded fresh Linux install from the store.

3. Examined every jar file in lib and none of them contain this Class file.

4. Looked at the fresh new install and there isn’t a vods3 conf folder. So I’m guessing that I did the correct thing in downloading the default\_3.0.zip to get vods3 conf/Application.xml

That Application.xml from default\_3.0.zip contains a MediaReader (as you note above) which references this class file. Where can I get this class from since it does not seem to come from the installer in the store?

randomAccessReaderClass

com.wowza.wms.plugin.amazonaws.ec2.mediacache.MediaCacheRandomAccessReaderAmazonEC2

bufferSeekIO

true

Boolean

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [December 31, 2011, 2:49pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/12 "2011-12-31T14:49:45Z")

</div>

Sorry for the delay, but we lost our instance and had to restore it. After restoring, I pushed the aws-plugin-xxx.jar files over to it that I downloaded from the post link that you put above.

Things look improved, but still no joy. I tried with and without _definst_ w/o difference. We’re now getting a “item not in cache” error.

2011-12-31 14:41:14 EST connect session INFO 200 71.58.43.38 - _defaultVHost_ vods3 _definst_ 0.036 [any] 1935 rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/_definst_/ 71.58.43.38 rtmp [http://ec2-107-22-140-189.compute-1.amazonaws.com/wowza/examples/SimpleVideoStreaming/client/simplevideostreaming.swf](http://ec2-107-22-140-189.compute-1.amazonaws.com/wowza/examples/SimpleVideoStreaming/client/simplevideostreaming.swf) MAC 11,1,102,55 334465385 3622 3073 - - - - - - - rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/_definst_/ -

2011-12-31 14:41:14 EST create stream INFO 200 - _defaultVHost_ vods3 _definst_ 0.001 [any] 1935 rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/_definst_/ 71.58.43.38 rtmp [http://ec2-107-22-140-189.compute-1.amazonaws.com/wowza/examples/SimpleVideoStreaming/client/simplevideostreaming.swf](http://ec2-107-22-140-189.compute-1.amazonaws.com/wowza/examples/SimpleVideoStreaming/client/simplevideostreaming.swf) MAC 11,1,102,55 334465385 3694 3413 1 - 0 0 - - - - 0 0.0 rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/_definst_/ rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/_definst_/ - rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/_definst_/ -

2011-12-31 14:41:15 EST comment server INFO 200 - ModuleStreamNameAlias.nameToAlias[play]: streamName:mp4:amazons3/testbucketdc/sample.mp4 alias:{pattern: “\*” alias:"${Stream.Name}" wildcardMatches:{[0]: “mp4:amazons3/testbucketdc/sample.mp4”}} result:mp4:amazons3/testbucketdc/sample.mp4 1174.452 - - - - - - - - - -

2011-12-31 14:41:15 EST comment server WARN 404 amazons3/testbucketdc/sample.mp4 MediaReaderH264.open[1]: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: amazons3/testbucketdc/sample.mp4 - - - 1174.457

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [January 11, 2012, 5:00am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/13 "2012-01-11T05:00:50Z")

</div>

It’s pretty disappointing that you guys don’t support the installer on EC2 and require us to take one of the images instead.

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [January 17, 2012, 10:46am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/14 "2012-01-17T10:46:45Z")

</div>

Okay well if you do support it, can you answer my question from: 12-31-2011, 12:49 PM posted above?

I gave up on you guys responding especially after the sales guy told me that we need to use the AMI to get vods3 working. After giving up, I installed and got running mediacache module, but I’d really prefer to use the standard vods3. Even though mediacache works, I fear that there is something still wrong with my install that I’d like to get to the bottom of.

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [January 18, 2012, 4:15pm UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/15 "2012-01-18T16:15:27Z")

</div>

The last thing that you said on December 29 was:

_“Or you could start a Wowza AMI and get jar file(s) needed for this. You will have to review the difference, I don’t remember which one off the top of my head, but I think it is obvious when you compare.”_

So I followed your advice and compared my install to a large AMI. There were some jars missing (all of which looked like: aws-plugin-xxx.jar) on my install. I then added those plugin jars to my install and responded on December 31 2011:

_Things look improved, but still no joy getting vods3 to work. We’re now getting a “item not in cache” error._

_2011-12-31 14:41:14 EST connect session INFO 200 71.58.43.38 - defaultVHost vods3 definst 0.036 [any] 1935 rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/definst/ 71.58.43.38 rtmp [http://ec2-107-22-140-189.compute-1…ostreaming.swf](http://ec2-107-22-140-189.compute-1....ostreaming.swf) MAC 11,1,102,55 334465385 3622 3073 - - - - - - - rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/definst/ -_

_2011-12-31 14:41:14 EST create stream INFO 200 - defaultVHost vods3 definst 0.001 [any] 1935 rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/definst/ 71.58.43.38 rtmp [http://ec2-107-22-140-189.compute-1…ostreaming.swf](http://ec2-107-22-140-189.compute-1....ostreaming.swf) MAC 11,1,102,55 334465385 3694 3413 1 - 0 0 - - - - 0 0.0 rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/definst/ rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/definst/ - rtmp://ec2-107-22-140-189.compute-1.amazonaws.com/vods3/definst/ -_

_2011-12-31 14:41:15 EST comment server INFO 200 - ModuleStreamNameAlias.nameToAlias[play]: streamName:mp4:amazons3/testbucketdc/sample.mp4 alias:{pattern: “\*” alias:"${Stream.Name}" wildcardMatches:{[0]: “mp4:amazons3/testbucketdc/sample.mp4”}} result:mp4:amazons3/testbucketdc/sample.mp4 1174.452 - - - - - - - - - -_

_2011-12-31 14:41:15 EST comment server WARN 404 amazons3/testbucketdc/sample.mp4 MediaReaderH264.open[1]: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: amazons3/testbucketdc/sample.mp4 - - - 1174.457_

_So I’m looking for a response to the above error message so that I can get out of the box vods3 application working. I’d rather not (even though I did so) use mediacache because there is manually tuning that would be required (as you noted. The documentation also says that vods3 is a customized medicacache module). I’d rather leverage the Wowza team work on customizing vods3 than try to bumble my way through duplicating that work on my own._

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [January 23, 2012, 9:50am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/16 "2012-01-23T09:50:31Z")

</div>

okay so if “item not in cache” is one of it’s messages. How do I get vods3 to initialize its cache? This was all so easy in Wowza 2. Wowza 3 is a nightmare.

The reason that I don’t want to use Mediacache is because I’ve read that “vods3” is a custom built/tuned version of MediaCache. I would assume that you Wowza guys custom tuned vods3. Why do I have to custom tune another mediacache on my own? Why can I not leverage the work that you guys have done? Why do I only have a choice of using a prebuilt AMI or building my own media-cache? This goes back to my original question. Do you or do you not support the installer? Or is it that you support everything under the installer EXCEPT vods3??

If you indeed support the installer, then please support vods3 under the installer and help me figure out why vods3 is not working when I installed Wowza 3 from the wowza 3 installer.

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [January 23, 2012, 11:38am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/17 "2012-01-23T11:38:40Z")

</div>

Do you think that I should just wipe my install and re-install? Perhaps the installer that I used 2 months ago had a bug in it and I should try again???

---

<div class="post-metadata">

### Author: ![David\_Peterson](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@David\_Peterson](https://community.wowza.com/u/David_Peterson)
#### Post date: [January 24, 2012, 10:30am UTC](https://community.wowza.com/t/vods3-setup-nullpointerexception/36136/18 "2012-01-24T10:30:40Z")

</div>

okay guys, thanks for the clarifications. I’ll stick with media-cache then. Sorry to be such a pain, but just wanted to make sure that we took the correct path.
