[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pyamf-users
Subject:    Re: [pyamf-users] pyamf NetConnection.call problems in ActionScript
From:       Nick Joyce <nick () boxdesign ! co ! uk>
Date:       2010-06-02 15:55:10
Message-ID: A05D2CAF-43C9-48DE-A418-1E2B0A302850 () boxdesign ! co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey Jeff,

ActionScript errors like that aren't the most helpful :)

One thing that I noticed is that in your code the gateway url is \
'http://localhost:8080/pyamf' which is missing a / when compared to the example [1]. \
Not sure if that is related .. ?

Do you get anything from server logs?

Cheers,

Nick

[1] - http://docs.pyamf.org/tutorials/jython/modjy.html

On 2 Jun 2010, at 11:48, Jeffrey Stroomer wrote:

> PyAMF Folks,
> 
> I am running into a problem when  passing complex parameters from ActionScript to \
> server-side code using PyAMF, Jython, and modjy,  and thought you might be able to \
> help. 
> I worked through the PyAMF/modjy tutorial and was able to bring up the server-side \
> Python example without any problems.  I also am able to run client-side Python and \
> ActionScript to talk to the server, provided the parameter I pass from the client \
> to the server is simple, e.g., an int or a string.  When I pass something more \
> complicated (e.g., an array or a dict) from  client-side Python, it works as well.  \
> But when I try to pass an array or an object from client-side ActionScript to the \
> server, it errors out with the following message: 
> [trace] Error #2044: Unhandled NetStatusEvent:. level=error, \
> code=NetConnection.Call.Failed [trace]     at \
> HelloWorld()[/Users/jeff/pyamf_new/HelloWorld.as:17] 
> Can you give me any advice what I'm doing wrong?  My client-side ActionScript is \
> attached. 
> Thanks in advance for the help,
> 
> Jeff Stroomer 
> The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. \
> Get busy. <HelloWorld.as>_______________________________________________ PyAMF \
> users mailing list - users@pyamf.org http://lists.pyamf.org/mailman/listinfo/users


[Attachment #5 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; ">Hey Jeff,<div><br></div><div>ActionScript \
errors like that aren't the most helpful :)</div><div><br></div><div>One thing that I \
noticed is that in your code the gateway url is 'http://localhost:8080/pyamf' which \
is missing a / when compared to the example [1]. Not sure if that is related .. \
?</div><div><br></div><div>Do you get anything from server \
logs?</div><div><br></div><div>Cheers,</div><div><br></div><div>Nick</div><div><br></div><div>[1] \
-&nbsp;<a href="http://docs.pyamf.org/tutorials/jython/modjy.html">http://docs.pyamf.org/tutorials/jython/modjy.html</a></div><div><br><div><div>On \
2 Jun 2010, at 11:48, Jeffrey Stroomer wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><span \
class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; \
font-family: Verdana; ">PyAMF Folks,<br><br>I am running into a problem when&nbsp; \
passing complex parameters from ActionScript to server-side code using PyAMF, Jython, \
and modjy,&nbsp; and thought you might be able to help.<br><br>I worked through the \
PyAMF/modjy tutorial and was able to bring up the server-side Python example without \
any problems.&nbsp; I also am able to run client-side Python and ActionScript to talk \
to the server, provided the parameter I pass from the client to the server is simple, \
e.g., an int or a string.&nbsp; When I pass something more complicated (e.g., an \
array or a dict) from&nbsp; client-side Python, it works as well.&nbsp; But when I \
try to pass an array or an object from client-side ActionScript to the server, it \
errors out with the following message:<br><br>&nbsp;&nbsp;&nbsp; [trace] Error #2044: \
Unhandled NetStatusEvent:. level=error, \
code=NetConnection.Call.Failed<br>&nbsp;&nbsp;&nbsp; [trace]&nbsp;&nbsp;&nbsp;&nbsp; \
at HelloWorld()[/Users/jeff/pyamf_new/HelloWorld.as:17]<br><br>Can you give me any \
advice what I'm doing wrong?&nbsp; My client-side ActionScript is \
attached.<br><br>Thanks in advance for the help,<br><br>Jeff Stroomer<span \
class="Apple-converted-space">&nbsp;</span><br><hr>The New Busy is not the too busy. \
Combine all your e-mail accounts with Hotmail.<span \
class="Apple-converted-space">&nbsp;</span><a \
href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&amp;ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4" \
target="_new">Get busy.</a><span \
class="Apple-converted-space">&nbsp;</span><span>&lt;HelloWorld.as&gt;</span>_______________________________________________<br>PyAMF \
users mailing list -<span class="Apple-converted-space">&nbsp;</span><a \
href="mailto:users@pyamf.org">users@pyamf.org</a><br><a \
href="http://lists.pyamf.org/mailman/listinfo/users">http://lists.pyamf.org/mailman/listinfo/users</a><br></div></span></blockquote></div><br></div></body></html>




_______________________________________________
PyAMF users mailing list - users@pyamf.org
http://lists.pyamf.org/mailman/listinfo/users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic