Skip to content
Paul Gregoire edited this page Feb 9, 2015 · 7 revisions

Invocation failed

You may see this error if a library or class are compiled with JDK8 and you are running an older JDK, such as 7 or 6.

Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.red5.server.scope.Scope$ConcurrentScopeSet.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView

Red5 won't start

If you get this error message when attempting to start Red5:

Red5 server jar was found
URL list: [file:/opt/red5/red5-server.jar]
Bootstrap exception: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1875)
	at org.red5.classloading.ClassLoaderBuilder.scrubURLList(ClassLoaderBuilder.java:448)
	at org.red5.classloading.ClassLoaderBuilder.build(ClassLoaderBuilder.java:181)
	at org.red5.classloading.ClassLoaderBuilder.build(ClassLoaderBuilder.java:96)
	at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:117)
	at org.red5.server.Bootstrap.main(Bootstrap.java:48)
Bootstrap exit

Replace your red5-service.jar with the latest build matching your red5-server.jar version.

UnknownHostException

This may appear in your log if EhCache cannot determine that your server is "localhost" based on its query of the operating system. This happens on linux sometimes and looks like this:

2015-01-14 15:22:06,652 [main] ERROR net.sf.ehcache.Cache - Unable to set localhost. This prevents creation of a GUID. Cause was: myred5-testbox: myred5-testbox

To resolve this, edit your /etc/hosts and add this entry:

127.0.0.1 myred5-testbox localhost
Clone this wiki locally