[Red5] NetConnection.Connect.InvalidApp
Leandro Casadei
mateamargo at gmail.com
Mon Dec 3 13:17:55 PST 2007
I haven't received any Exception. I'll talk to the flash developer and ask
him how is he getting the shared object.
Thanks.
On 12/3/07, Mamontov Sergey V. <moonlight at ua.elro.com> wrote:
>
> OK, so you don't receive exception from now on?
>
> Do you make get though SharedObject.getRemote method?
> You can check is your application shared object works or not by checking
> your application directory on server (not WEB-INF), if where "persistence"
> folder exist, look inside and edit file to see sharedobject values.
>
> Regards,
>
>
> Sergey
>
>
>
> > 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
>
>
>
>
>
>
>
> --
> ? ?????????,
> Mamontov mailto:moonlight at ua.elro.com
>
>
> _______________________________________________
> 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/b4de09a1/attachment.html
More information about the Red5
mailing list