Wowza Community

Windows7, JRE1.7 32 bits Error starting: java.lang.reflect.InvocationTargetException

I unistalled all JAVA and installed jre1.7 32 bits.

I have wowza 4 and IDE 2

I stop wowza services.

I have done that on 3 different PC with SAME RESULT: this is HELL !

When I create a new Wowza Media server project from IDE, and run Wowza, I got:

Error starting: java.lang.reflect.InvocationTargetException

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:555)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:67)

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/SystemUtils

at com.wowza.wms.bootstrap.BootstrapSystemTuningInfo.getSystemTuningInfo(BootstrapSystemTuningInfo.java:113)

at com.wowza.wms.server.ServerTuningHandler.(ServerTuningHandler.java:248)

at com.wowza.wms.server.Server.(Server.java:864)

at com.wowza.wms.server.Server.getInstance(Server.java:912)

at com.wowza.wms.server.Server.start(Server.java:961)

… 6 more

Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.SystemUtils

at java.net.URLClassLoader$1.run(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

… 11 more

Can someone help me please ?

Do I need to run wowza from IDE ?

It seems it creates a .JAR : how can I test it ?

Hi there.

To fix this error. In Eclipse, right click on the project in the left menu and choose “properties”

Next, click on the Run/Debug settings on the left, highlight the launch configuration and click Edit

Under the “arguments” tab, add the following line to the output in “VM Arguments”

On Windows:

-Dcom.wowza.wms.native.base="win"

On Mac:

-Dcom.wowza.wms.native.base="osx"

Salvadore

GREAT : That works !!

Why isn’t that parameter included ? I got that error on 3 different PCs !

Thanks for the update and glad I could help!

Salvadore