Joachim Bauch wrote:
> Dan Rossi wrote:
> [...]
>> in eclipse one of my applications is playing up, if i remove the 
>> persistance dir it will load fine, it then creates the dir and if i 
>> stop and then run red5 in debug mode in eclipse i get this
> [StringIndexOutOfBoundsException]
>> i cant work out whats wrong, i have shareobject setup, none of the 
>> other webapps seem to use shareobjects in the examples so im unsure 
>> if there is a big API change that ive missed to add in.
>
> Please try r1445, that should fix your problem.


im sorry i cant post to track the spam filter doesnt let me add 
anything, its still broken unless my app is setup wrong, if i take out 
shareobjects its ok, if i add it in, launch it via eclipse with 
directory cleaned it loads the first time, when i restart with the 
persistance directory there i get this

[DEBUG] 57705 main:( org.red5.server.adapter.ApplicationAdapter.debug ) 
appStart: [EMAIL PROTECTED] Depth = 1, Path = '/default', Name = 'tutorial']
[WARN] 58629 main:( org.mortbay.log.warn ) failed 
[EMAIL PROTECTED]
[WARN] 58631 main:( org.mortbay.log.warn ) failed [EMAIL PROTECTED]
[INFO] 58635 main:( org.mortbay.log.info ) Started 
SelectChannelConnector @ 0.0.0.0:5080
[WARN] 58641 main:( org.mortbay.log.warn ) failed [EMAIL PROTECTED]
[ERROR] 58642 main:( org.red5.server.JettyLoader.error ) Error loading 
jetty
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'web.scope' defined in ServletContext resource 
[/WEB-INF//red5-web.xml]: Invocation of init method failed; nested 
exception is java.lang.StringIndexOutOfBoundsException: String index out 
of range: -1
Caused by:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1768)
    at 
org.red5.server.persistence.RamPersistence.getObjectPath(RamPersistence.java:73)
    at 
org.red5.server.persistence.FilePersistence.getObjectPath(FilePersistence.java:115)

my app had this

public boolean appStart(IScope app) {
        appScope = app;
        createSharedObject(scope, "broadcaster", true);
        return true;
    }
   

i put it to this and its fine

public boolean appStart(IScope app) {
        appScope = app;
        createSharedObject(scope, "broadcaster", false);
        return true;
    }
   


maybe i can help, what does this method do anyway, what method can i use 
to print name to the console

protected String getObjectPath(String id, String name) {
        // The format of the object id is <type>/<path>/<objectName>
        id = id.substring(id.indexOf('/') + 1);
        if (id.startsWith("/")) {
            id = id.substring(1);
        }
        if (id.lastIndexOf(name) == -1)
            return id;
        return id.substring(0, id.lastIndexOf(name)-1);
    }


my issue about standalone not able to load the config has gone 
mysteriously for now :)

somehow on command line i still get the missing fitc application error, 
is it being loaded from the server config somewhere  ?

     [java] [WARN] 32119 main:( org.mortbay.log.warn ) failed 
[EMAIL PROTECTED]
     [java] [WARN] 32121 main:( org.mortbay.log.warn ) failed 
[EMAIL PROTECTED]
     [java] [INFO] 32129 main:( org.mortbay.log.info ) Started 
SelectChannelConnector @ 0.0.0.0:5080
     [java] [WARN] 32131 main:( org.mortbay.log.warn ) failed [EMAIL PROTECTED]
     [java] [ERROR] 32136 main:( org.red5.server.JettyLoader.error ) 
Error loading jetty
     [java] 
org.springframework.beans.factory.CannotLoadBeanClassException: Error 
loading class [org.red5.demos.fitc.Application] of bean with name 
'web.handler' defined in ServletContext resource 
[/WEB-INF//red5-web.xml]; nested exception is 
java.lang.ClassNotFoundException: org.red5.demos.fitc.Application
     [java] Caused by:
     [java] java.lang.ClassNotFoundException: 
org.red5.demos.fitc.Application
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native 
Method)
     [java]     at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at 
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:335)
     [java]     at 
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:306)
     [java]     at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at 
org.springframework.util.ClassUtils.forName(ClassUtils.java:160)
     [java]     at

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to