[Red5] NetConnection.Connect.InvalidApp

Leandro Casadei mateamargo at gmail.com
Mon Dec 3 12:55:33 PST 2007


I'm using 0.63

I've found that method on the ISharedObject interface. Navigating through
the Javadoc I've found an implementation called SharedObjectScope.

The flash client is connecting fine, but after getting the shared objects
tries to read a variable like this:

so.data.counter

But the client shows an undefined error. This attributes mapping should work
for this?

Thanks.

On 12/3/07, Mamontov Sergey V. <moonlight at ua.elro.com> wrote:
>
> Strange, actually this maybe my fault, try this:
>
>
>    SharedObject test = new SharedObject();
>    test.setName("test");
>    test.setPersistent(true);
>    Map<String, Object> properties = new HashMap<String, Object>();
>    properties.put ("counter", 0);
>    test.setAttributes(properties);
>
> My test SharedObject have setAttributes method...
> If you still don't have it, tell your Red5 version please :)
>
> Regards,
>
> Sergey
>
> > I don't have the setAttributes method on my test object. I've got
> > an error saying that setAttributes is not visible.
>
> > On 12/3/07, Mamontov Sergey V. <moonlight at ua.elro.com> wrote:
> >  Try something like this:
>
> >   test = new SharedObject();
> >   test.setName("test");
> >   test.setPersistent(true);
> >   Map<String, Object> properties = new HashMap<String, Object>();
> >   properties.put ("counter", 0);
> >   test.setAttributes(properties);
>
> > Regards,
>
> > Sergey
>
> >> Hi Sergey.
>
> >> Thanks for your quick answer.
>
> >> Well, I have setted a RollingFileAppender and watching the Red5
> >> logs I could see a java.lang.UnsupportedOperationException on my class.
>
> >> I was trying to do something like this on my appConnect method:
>
> >> test = new SharedObject();
> >> test.setName("test");
> >>  test.getAttributes().put("counter", 0); // <-- Here is the Exception
> >> test.setPersistent(true);
> >> return true;
>
> >> Do you think this is the right way to create a shared object?
> >
> >> Thanks.
>
>
>
> > --
> > ? ?????????,
> >  Mamontov                          mailto:moonlight at ua.elro.com
>
>
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
>
> >
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
Leandro Casadei RANLOGIC
+ (5411) 4855-9371/7086
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071203/a9d94d5c/attachment.html 


More information about the Red5 mailing list