# Updating my module from WMS 3.6 to Wowza Streaming Engine

**URL:** https://community.wowza.com/t/updating-my-module-from-wms-3-6-to-wowza-streaming-engine/40583
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [February 26, 2014, 11:49am UTC](https://community.wowza.com/t/updating-my-module-from-wms-3-6-to-wowza-streaming-engine/40583 "2014-02-26T11:49:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![theo\_d](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@theo\_d](https://community.wowza.com/u/theo_d)
#### Post date: [February 26, 2014, 11:49am UTC](https://community.wowza.com/t/updating-my-module-from-wms-3-6-to-wowza-streaming-engine/40583/1 "2014-02-26T11:49:35Z")

</div>

Hi everyone,

I am trying to update my custom module (that worked well with Wowza Media Server 3.x) to Wowza Streaming Engine.

Most of my code still works with Wowza Streaming Engine except the thumbnail generator ☹

```auto
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(new File(filePath), false));
FLVUtils.writeHeader(out, 0, null);
AMFPacket codecConfig = thestream.getVideoCodecConfigPacket(packet.getAbsTimecode());
if (codecConfig != null)
        FLVUtils.writeChunk(out, codecConfig.getDataBuffer(), codecConfig.getSize(), 0, (byte)codecConfig.getType());
...

```

Related error with Wowza Streaming Engine log :

```auto
java.lang.NoSuchMethodError: com.wowza.util.FLVUtils.writeChunk(Ljava/io/OutputStream;Ljava/nio/ByteBuffer;IJB)V

```

So I checked the difference between the API :

```auto
// From Wowza Media Server 3 API : 
static void writeChunk(java.io.OutputStream ds, java.nio.ByteBuffer data, int size, long timecode, byte type)

```

```auto
// From Wowza Streaming Engine API
public static com.wowza.wms.mediawriter.MediaWriterStatus writeChunk(java.io.OutputStream ds,java.nio.ByteBuffer data,int size, long timecode,byte type)

```

So from what I can see, the only difference is this return type “com.wowza.wms.mediawriter.MediaWriterStatus” that my IDE doesn’t want to import. I feel I need some library upgrade or something but I can’t find any documentation about it - I Have an 1 year old version of Wowza IDE 2.

Any help would be appreciated,

Best regards,

Hane

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [February 26, 2014, 6:24am UTC](https://community.wowza.com/t/updating-my-module-from-wms-3-6-to-wowza-streaming-engine/40583/2 "2014-02-26T06:24:37Z")

</div>

Is your project in eclipse referencing the Wowza 3 libraries at compile time? If so, you can import the new Wowza 4 jar files into to your java build path-\>libraries.

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [February 27, 2014, 8:25am UTC](https://community.wowza.com/t/updating-my-module-from-wms-3-6-to-wowza-streaming-engine/40583/3 "2014-02-27T08:25:43Z")

</div>

Great, glad you got it working. Thanks for the update.

---

<div class="post-metadata">

### Author: ![theo\_d](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@theo\_d](https://community.wowza.com/u/theo_d)
#### Post date: [February 26, 2014, 1:55pm UTC](https://community.wowza.com/t/updating-my-module-from-wms-3-6-to-wowza-streaming-engine/40583/4 "2014-02-26T13:55:37Z")

</div>

Uhh forgot that these .jar were under the WowzaStreamingEngine/lib directory (i’m not very good with eclipse&java). I removed these old .jar and added the new one and now it works like a charm !

Thank you !!
