Hello There,
I am trying to write a Java Ape Client that communicates via
WebSockets with the ApeServer.
So far opening a connection does work, and promoting the LOGIN command
does work aswell.
Though when I try to keep to connection ALIVE by Sending any future
Command, I always recieve a BAD_JSON error.
Maybe anyone can have a look over the Debug MSGs here and see what is
maybe wrong?
Did I miss something?
DEBUG - --open
DEBUG - Sending Msg: [{"cmd":"CONNECT","chl":1,"params":
{"name":"metadata"}}]
DEBUG - scheduling timer to add
DEBUG - --received message: [{"time":"1309808308","raw":"LOGIN","data":
{"sessid":"5aa5b68ac703331cce1c1082f695e1c9"}},
{"time":"1309808308","raw":"IDENT","data":{"user":
{"casttype":"uni","pubid":"1c53934c1a5a4dd724a9b82051c99e81","properties":
{"name":"metadata"}}}}]
DEBUG - {"raw":"LOGIN","time":"1309808308","data":
{"sessid":"5aa5b68ac703331cce1c1082f695e1c9"}}
DEBUG - LOGIN
DEBUG - data {"sessid":"5aa5b68ac703331cce1c1082f695e1c9"}
DEBUG - Session 5aa5b68ac703331cce1c1082f695e1c9
DEBUG - {"raw":"IDENT","time":"1309808308","data":{"user":
{"casttype":"uni","properties":
{"name":"metadata"},"pubid":"1c53934c1a5a4dd724a9b82051c99e81"}}}
DEBUG - IDENT
DEBUG - {"user":{"casttype":"uni","properties":
{"name":"metadata"},"pubid":"1c53934c1a5a4dd724a9b82051c99e81"}}
DEBUG - Sending Msg:
[{"cmd":"CHECK","sessid":"5aa5b68ac703331cce1c1082f695e1c9","chl":2}]
DEBUG - --received message: [{"time":"1309808313","raw":"ERR","data":
{"code":"005","value":"BAD_JSON"}}]
DEBUG - {"raw":"ERR","time":"1309808313","data":
{"value":"BAD_JSON","code":"005"}}
DEBUG - ERR
ERROR - {"value":"BAD_JSON","code":"005"}
DEBUG - Sending Msg:
[{"cmd":"CHECK","sessid":"5aa5b68ac703331cce1c1082f695e1c9","chl":3}]
DEBUG - --received message: [{"time":"1309808318","raw":"ERR","data":
{"code":"005","value":"BAD_JSON"}}]
DEBUG - {"raw":"ERR","time":"1309808318","data":
{"value":"BAD_JSON","code":"005"}}
DEBUG - ERR
ERROR - {"value":"BAD_JSON","code":"005"}
Any help would be highly appreciated! Thanks
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/