I am writing an Apache Thrift-based Java server that will receive data from a Javascript client. I completed the Java server, but the problem is that I can get a working example for the Javascript client (I could not find a good example for it). examples in assembly documentation are not very useful. My current Javascript client is below:
function testServer() { try { var transport = new Thrift.Transport("http://127.0.0.1:9090"); var protocol = new Thrift.Protocol(transport); var client = new JavaEventClient(protocol); var alive = client.isServerAlive(); } catch(e) { } } testServer();
But the code does not work - because the Java server throws a "Out of Memory" error. I do not know if the error was caused by my client code or Apache Thrift.
What am I doing wrong?
John
source share