Comments (7)
Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).
@dmabupt
We were able to reinstall all the tools on another partition running AIX 7.1 and that is working.
#!bash
$ node test
Execute A.
Execute A Done. Row Count: 12
Execute B.
Execute B Done. Row Count: 12
Test Async in callback.
Execute A.
Execute A Done. Row Count: 12
Execute B.
Execute B Done. Row Count: 12
Test Async concurrently.
Execute A.
Execute B.
Execute A Done. Row Count: 12
Execute B Done. Row Count: 12
from nodejs-idb-connector.
Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).
@dmabupt Below I have run the same commands (added npm -v too):
#!bash
-bash-4.3$ node -v
v6.12.2
-bash-4.3$ npm -v
3.10.10
-bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
-rw-r--r-- 1 qsys 0 65557 Dec 12 00:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
-bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
-rwxr-xr-x 1 qsys 0 4588457 Dec 12 00:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
-bash-4.3$ echo $PATH
/QOpenSys/QIBM/ProdData/OPS/Node6/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
-bash-4.3$ node /QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js
/QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js:4
var dbconns = new dba.dbconn();
^
TypeError: dba.dbconn is not a constructor
at Object.<anonymous> (/QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js:4:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:496:3
-bash-4.3$
from nodejs-idb-connector.
Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).
@brianmjerome Would you check your effective node version (node -v) and below files' status please?
#!shell
bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
-rw-r--r-- 1 qsys 0 65557 Dec 12 13:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a.js
bash-4.3$ ls -l /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
-rwxr-xr-x 1 qsys 0 4588457 Dec 12 13:06 /QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/bin/db2ia.node
bash-4.3$ node /QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules/idb-connector/test/test.js
Execute A.
Execute A Done. Row Count: 12
from nodejs-idb-connector.
Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).
@dmabupt The open source tools (up to Group PTF SF99123 - Level 5) were reinstalled (as well as PTF SI66497 applied). I was now able to install the idb-connector package to /QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules. I tried running the test.js but I am still getting the same issue.
from nodejs-idb-connector.
Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).
I think there was a larger issue here with our OPS.
from nodejs-idb-connector.
Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).
Hello Brian,
You may try to reinstall PTF SI66497 to see if it works.
And you can also try to download the pre-compiled addon using --
#!shell
npm -g i idb-connector
and replace require('/QOpenSys/.../db2a') with require('idb-connector') in your code.
If node reports cannot find module 'idb-connector', you can set the searching path by --
#!shell
NODE_PATH=/QOpenSys/QIBM/ProdData/OPS/Node6/lib/node_modules
export NODE_PATH
from nodejs-idb-connector.
Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).
Attempting to reinstall Node6 and all the open source tools to see if something was corrupted.
from nodejs-idb-connector.
Related Issues (20)
- Error SQLSTATE=02000 SQLCODE=100 HOT 4
- Error SQLSTATE=38501 SQLCODE=-443 does not return the true message HOT 1
- idb-connector not compatible with Node.js v16.x HOT 30
- Error SQLSTATE=02000 SQLCODE=100 HOT 1
- Error SQLSTATE=22504 SQLCODE=-191 Mixed data or UTF-8 data not properly formed. HOT 22
- Use of BINARY Parameter w/Stored Procedure Call Corrupts the Node Process HOT 3
- Handling permanent JOB... HOT 1
- Some issues when calling SP with dbstmt.bindParameters() HOT 1
- Error: SQLSTATE=22504 SQLCODE=-191 Mixed data or UTF-8 data not properly formed. HOT 1
- Not receiving output from Stored Procedure and no clear example..
- temporary memory of job increases massive when using CLOB/JSON field in SQL-request HOT 3
- Connection Pool HOT 3
- Add package-lock.json? HOT 1
- the sql state error seems to be fixed, but we have a different issue HOT 4
- idb-connector *SP calls returns invalid numeric data -- Node 18, IDB-Connector 1.2.18 HOT 21
- test: cleanup test infrastructure HOT 1
- CLOB: truncation of the last char ! HOT 6
- Fix license headers on source files
- Reference idb-pconnector for promise / connection pooling support
- Build from source is failing since release 1.2.19 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-idb-connector.