node-jdbc icon indicating copy to clipboard operation
node-jdbc copied to clipboard

Program Does not end

Open enniogonzalez opened this issue 3 years ago • 1 comments

Hello,

I have created a small .js file with this lines of code

// test.js
const JDBC = require('jdbc');

console.log('should end')

If i execute this code, the execution of this program will last forever

Platform: Windows 11 node version: v14.19.1

enniogonzalez avatar Sep 07 '22 08:09 enniogonzalez

The issue is with node-java: https://github.com/joeferner/node-java/issues/539

For a workaround - change node-java to fork/branch from linked PR and then you can issue jinst.getInstance().stop() to gracefully terminate.

akorov avatar Sep 16 '22 10:09 akorov