Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
I am trying to connect to a NetBeans based application from Visual Studio - aka Electron - aka node. Somehow the node mangles network setup and the InetAddress.getHostAddress() isn't the same. To reproduce create following structure of files:
$ ls -l | cut -c50- dump.hprof nb.js nb.sh netbeans -> /home/devel/bin/netbeans/bin/netbeans $ cat nb.sh ./netbeans 'dump.hprof' $ cat nb.js var exec = require("child_process").execFile; let path = './netbeans';let vvm = exec(path, [ 'dump.hprof' ])
Then start ./netbeans on background and wait for the GUI to launch. Then do following from command line:
./jvm.sh
The dump.hprof file opens in the the GUI. Close it and try the same via node.js:
node ./jvm.js
The heap dump isn't shown (on my computer), rather a warning dialog appears. Result of node and shell script disagreeing on what is local host address. One is using IPv6 and one IPv4.