# Starting/Stopping a stream over jmx console is not working in wowza 4.0

**URL:** <https://community.wowza.com/t/starting-stopping-a-stream-over-jmx-console-is-not-working-in-wowza-4-0/42012>\
**Category:** Wowza Streaming Engine\
**Created:** [February 13, 2014, 11:35am UTC](https://community.wowza.com/t/starting-stopping-a-stream-over-jmx-console-is-not-working-in-wowza-4-0/42012 "2014-02-13T11:35:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineesh\_K\_Dasan](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Nineesh\_K\_Dasan](https://community.wowza.com/u/Nineesh_K_Dasan)\
**Post date:** [February 13, 2014, 11:35am UTC](https://community.wowza.com/t/starting-stopping-a-stream-over-jmx-console-is-not-working-in-wowza-4-0/42012/1 "2014-02-13T11:35:28Z")

</div>

```auto
Start appInstance
java -cp . JMXCommandLine -jmx service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -user admin -pass admin touchAppInstance live

```

```auto
Start MediaCaster stream
java -cp . JMXCommandLine -jmx service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -user admin -pass admin startMediaCasterStream live abc.stream rtp

```

When I try to start a stream using these above commands giving me the following errors.

```auto
startMediaCasterStream live 127.stream rtp
ERROR: doInvoke: javax.management.InstanceNotFoundException: WowzaMediaServerPro:vHosts=VHosts,vHostName=_defaultVHost_,applications=Applications,applicationName=live,applicationInstances=ApplicationInstances,applicationInstanceName=_definst_,name=ApplicationInstance

```

The above code was working fine in wowza 3.6.4.

Can anybody help me to sort out the issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [February 13, 2014, 2:54am UTC](https://community.wowza.com/t/starting-stopping-a-stream-over-jmx-console-is-not-working-in-wowza-4-0/42012/2 "2014-02-13T02:54:31Z")

</div>

Hi,

The issue is the JMX string no longer begins with WowzaMediaServerPro, it is now WowzaStreamingEngine, so something like

WowzaStreamingEngine:vHosts=VHosts,vHostName=_defaultVHost_,applications=Applications,applicationName=live,name=Application

If you make the change it should then work, but you may need to check the JMX tree for any other changes, but they do all look to remain the same.

Andrew.

---

<div class="post-metadata">

**Author:** ![Nineesh\_K\_Dasan](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Nineesh\_K\_Dasan](https://community.wowza.com/u/Nineesh_K_Dasan)\
**Post date:** [February 13, 2014, 5:18pm UTC](https://community.wowza.com/t/starting-stopping-a-stream-over-jmx-console-is-not-working-in-wowza-4-0/42012/3 "2014-02-13T17:18:52Z")

</div>

Hi Andrew,

Thank you for the support. Its working again.

In the “JMXCommandLine.java” file I reset the variable to

```auto
public static final String MBEANNAME = "WowzaStreamingEngine";

```

compiled again.

Now its working. Great

Cheers,

Nin
