Is that still happening ? I thought i heard it was fixed, if you delete
the persistance dir and start it up again it wont give you that error :)
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm faily new to Red5, but have several simple apps running
> under v0.5,
> however, there appears to be a problem with server created
> persistent shared objects in 0.6 RC1.
>
> My application works fine in v 0.5 but fails in 0.6 RC1
>
>
>
> My Application code is
>
> _____________________ code __________________
>
> package SOSample2;
>
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> import org.red5.server.adapter.ApplicationAdapter ;
> import org.red5.server.api.IScope;
> import org.red5.server.api.so.*;
>
>
> public class Application extends ApplicationAdapter
> {
> private static final Log log =
> LogFactory.getLog(Application.class);
>
> @Override
> public boolean appStart(IScope scope)
> {
> // initiating the handler here
> boolean b;
> ISharedObject userlistSO=null;
>
> b=createSharedObject(scope, "mySO", true);
>
> _____________ etc etc etc ---- end of code
> ________________
>
>
>
> However if I start the server when there is some persistent
> data saved to disk, I get this error.
> I don't get the error is I delete the persistent data, or
> create a different SO.
>
>
> ______________ output when server starts up (using ant
> server > log.txt ) ___
>
> [java] [INFO] 12669 main:(
> org.springframework.beans.factory.support.DefaultListableBeanFactory.info
> ) Destroying singletons in
> {org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans
> [placeholderConfig,web.context,web.scope,web.handler];
> parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans
> [global.clientRegistry,global.serviceInvoker,global.mappingStrategy
> ,global.context,global.handler,global.scope,red5.scopeResolver];
> parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans
> [red5.server,serializer,deserializer,statusObjectService,rtmpCodecFactory
> ,remotingCodecFactory,videoCodecFactory,streamableFileFactory
> ,sharedObjectService,streamService,providerService,consumerService
> ,FlowControlService,schedulingService,threadFactory,remotingPool
> ,object.cache,flv.impl]; root of BeanFactory hierarchy}
> [java] [ERROR] 12669 main:(
> org.springframework.web.context.ContextLoader.error )
> Context initialization failed
> [java]
> 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
> [java] Caused by:
> [java] java.lang.StringIndexOutOfBoundsException:
> String index out of range: -1
> [java] at java.lang.String.substring(String.java:1768)
> [java] at
> org.red5.server.persistence.RamPersistence.getObjectPath(RamPersistence.java:75)
> [java] at
> org.red5.server.persistence.FilePersistence.getObjectPath(FilePersistence.java:117)
> [java] at
> org.red5.server.persistence.FilePersistence.doLoad(FilePersistence.java:217)
> [java] at
> org.red5.server.persistence.FilePersistence.doLoad(FilePersistence.java:130)
> [java] at
> org.red5.server.persistence.FilePersistence.load(FilePersistence.java:254)
> [java] at
> org.red5.server.so.SharedObjectScope.<init>(SharedObjectScope.java:67)
> [java] at
> org.red5.server.so.SharedObjectService.createSharedObject(SharedObjectService.java:96)
> [java] at
> org.red5.server.adapter.ApplicationAdapter.createSharedObject(ApplicationAdapter.java:578)
> [java] at
> SOSample2.Application.appStart(Application.java:21)
>
> ___________________ end of log section _____________________
>
> Please help.
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org