michele-loreti / jresp Goto Github PK
View Code? Open in Web Editor NEWJava Runtime Environment for Distributed Programming
License: Eclipse Public License 1.0
Java Runtime Environment for Distributed Programming
License: Eclipse Public License 1.0
In Node.java, the Executor executor providing threads to a NodeThread is not being shutdown properly, which can cause several issues:
This already gives a slugish or non-existent performance when doing around 1 node and a 1000 agents.
A way to solve this is to:
This should stop the leakage, help on jResp performance, and reduce the dependency on garbage collector doing the magic.
Hello!
It seems that a bug can be provoked by the following behavior.
If a PointToPoint object is initialized with a name of a Node that does not exist, the program will not compile and return a NullPointerException, instead of a relaying a more useful message to the user :)
I have a sample program that will provoke the bug:
PointToPointConstructorExample.zip
In line 43 and 45, the PointToPoint object is initialized with wrong Node names, thus provoking the bug. Changing the names to Node1 and Node2 respectively, the exception will not be raised.
Regarding the jResp code, I have only taken a brief look at it and have not found the correct explanation or solution, but it seems that in the method sendPutRequest in Node.java, the call:
return pending.get();
returns a null value for some reason.
Thanks :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.