# Wowza Amazon S3 media cache add on not working

**URL:** <https://community.wowza.com/t/wowza-amazon-s3-media-cache-add-on-not-working/51071>\
**Category:** Wowza Streaming Engine\
**Created:** [April 4, 2018, 7:49pm UTC](https://community.wowza.com/t/wowza-amazon-s3-media-cache-add-on-not-working/51071 "2018-04-04T19:49:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Gupta1](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Sachin\_Gupta1](https://community.wowza.com/u/Sachin_Gupta1)\
**Post date:** [April 4, 2018, 7:49pm UTC](https://community.wowza.com/t/wowza-amazon-s3-media-cache-add-on-not-working/51071/1 "2018-04-04T19:49:00Z")

</div>

Hello,

I have followed following article to use mediaCahce with amazon S3:

[https://www.wowza.com/docs/how-to-use-amazon-s3-with-a-standalone-wowza-media-server-and-the-mediacache-addon](https://www.wowza.com/docs/how-to-use-amazon-s3-with-a-standalone-wowza-media-server-and-the-mediacache-addon)

During startup it doesn’t shoe any error, and it displays following entry:

MediaCache[MediaCache]: Add source[amazons3]: prefix:amazons3/ basePath:[http://s3.amazonaws.com/](http://s3.amazonaws.com/) - - - 3.4

which means connnection was sucees. But while playing a file,it throws following exception:

I am not able to play any file on S3 bucket:

play: error opening file (/usr/local/WowzaStreamingEngine/content/amazons3/sample-folder/sample/small.mp4) : java.lang.NullPointerException|at com.wowza.wms.mediareader.h264.MediaReaderH264.open(MediaReaderH264.java:262)|at com.wowza.wms.stream.file.PlaylistPlayer.play(PlaylistPlayer.java:790)|at com.wowza.wms.stream.file.MediaStreamFilePlay.play(MediaStreamFilePlay.java:111)|at com.wowza.wms.response.ResponseStreams.output(ResponseStreams.java:51)|at com.wowza.wms.request.RTMPRequestAdapter.service(RTMPRequestAdapter.java:671)|

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [April 10, 2018, 10:57am UTC](https://community.wowza.com/t/wowza-amazon-s3-media-cache-add-on-not-working/51071/2 "2018-04-10T10:57:15Z")

</div>

Hi,

This was answered in ticket 279041.  
Now that MediaCache is built-in rather than a separate addon, the BaseClass has changed.

Currently, the article references this:

```auto
<BaseClass>com.wowza.wms.plugin.mediacache.impl.MediaCacheItemHTTPImpl</BaseClass> 

```

It should be should be:

```auto
<BaseClass>com.wowza.wms.mediacache.impl.MediaCacheItemHTTPImpl</BaseClass>

```

Configuring MediaCache using Wowza Streaming Engine Manager does not result in the same problem and this is the recommended way to make all configuration adjustments when possible.

Regards,  
Jason
