[Json-rpc-java] JSONRpcClient handle problem (only works onlocalhost)

Hyam Singer hyam.singer at impact-computing.com
Mon Mar 19 05:37:54 SGT 2007


OK, I figured out the problem:  I was in a .html instead of .jsp page
(doh!); simply changing the extension made everything work fine.  Stupid
mistake on my part, but this sure was a bizarre and perplexing symptom that
I was experiencing.

Thanks anyway.

> -----Original Message-----
> From: json-rpc-java-bounces at oss.metaparadigm.com [mailto:json-rpc-java-
> bounces at oss.metaparadigm.com] On Behalf Of Hyam Singer
> Sent: Sunday, March 18, 2007 4:48 PM
> To: json-rpc-java at oss.metaparadigm.com
> Subject: [Json-rpc-java] JSONRpcClient handle problem (only works
> onlocalhost)
> 
> I am encountering a perplexing problem with JSON-RPC-Java.  Any
> suggestions
> or advice for resolving this would be greatly appreciated (I am preparing
> for a customer demo in a week so this is fairly time critical).
> 
> 
> 
> The problem I'm having is with being able to use my JSONRpcClient
> connection
> when accessing my server via anything other than localhost.  Specifically,
> the following simple test works fine at http://localhost:8080/testapp, but
> does not work via my local IP (i.e., http://192.168.1.101:8080/testapp) or
> my real IP (e.g., http://72.66.98.31:8080/testapp):
> 
> 
> 
> jsonrpc = new JSONRpcClient("/smart/JSON-RPC");
> 
> alert(jsonrpc.test.testMethod());  // <-- **** THIS FAILS (object error)
> IF
> NOT ACCESSED VIA LOCALHOST
> 
> 
> 
> I have installed and am using JSON-RPC-Java with Tomcat.  (Also, in case
> it's of any relevance, remote access to my machine is via port forwarding
> of
> port 8080 through my router.)
> 
> 
> 
> I'm assuming I'm missing something really obvious here, but it alludes me.
> Again, any advice would be greatly appreciated.
> 
> 
> 
> Thanks in advance.
> 
> 
> 
> --Hyam
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Json-rpc-java mailing list
> Json-rpc-java at oss.metaparadigm.com
> http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java





More information about the Json-rpc-java mailing list