× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What node4 path would that be?

-----Original Message-----
From: OpenSource [mailto:opensource-bounces@xxxxxxxxxxxx] On Behalf Of Aaron Bartell
Sent: 14 July 2016 15:18
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] Xstoolkit no longer works with node 4.4.3

Change the require(...) to use the Node4 path instead.
On Jul 14, 2016 9:15 AM, "Kevin Turner" <kevin.turner@xxxxxxxxxxxxxxx>
wrote:


The latest group PTF from IBM to upgrade node.js takes you to version
4.4.3

However, the xstoolkit that provides you with modules to access native
objects no longer works. Has anyone else experienced this?

Take this very simple example to access a data queue. It works with
node 0.12.13, but not with node 4.4.3 :

var dq =
require('/QOpenSys/QIBM/ProdData/Node/os400/xstoolkit/lib/idataq');
var xt =
require('/QOpenSys/QIBM/ProdData/Node/os400/xstoolkit/lib/itoolkit');

var conn = new xt.iConn("FOO");
var dtaq = new dq.iDataQueue(conn);

dtaq.sendToDataQueue("BAR", "BAZ", "HELLO",function(res){
console.log(res);
})

console.log("finished");


Run tis and it crashes spectacularly

module.js:434
return process.dlopen(module, path._makeLong(filename));
^

Error: 0509-130 Symbol resolution failed for
/QOpenSys/QIBM/ProdData/Node/os400/db2i/bin/db2i.node because:
0509-136 Symbol
_ZN2v816FunctionTemplate12SetClassNameENS_6HandleINS_6StringEEE
(number
121) is not exported from
dependent module node.
0509-136 Symbol
_ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackIn
foINS_5ValueEEEENS_6HandleIS4_EE SA_INS_9SignatureEEEi (number 124) is
not exported from
dependent module node.
0509-136 Symbol _ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_
(number 136) is not exported from

dependent module node.
0509-136 Symbol _ZN2v86Object3SetEjNS_6HandleINS_5ValueEEE (number
137) is not exported from
dependent module node.
0509-136 Symbol _ZN2v86String9Utf8ValueC1ENS_6HandleINS_5ValueEEE
(number 139) is not exported from
dependent module node.
0509-136 Symbol _ZN2v88Function4CallENS_6HandleINS_5ValueEEEiPS3_
(number 145) is not exported from
dependent module node.
0509-021 Additional errors occurred but are not reported.
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
at Error (native)
at Object.Module._extensions..node (module.js:434:18) at Module.load
(module.js:343:32) at Function.Module._load (module.js:300:12) at
Module.require (module.js:353:17) at require
(internal/module.js:12:17) at Object.<anonymous>
(/QOpenSys/QIBM/ProdData/Node/os400/db2i/lib/db2.js:19:13)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10) at Module.load
(module.js:343:32)




________________________________

NOTICE: The information in this electronic mail transmission is
intended by CoralTree Systems Ltd for the use of the named individuals
or entity to which it is directed and may contain information that is
privileged or otherwise confidential. If you have received this
electronic mail transmission in error, please delete it from your
system without copying or forwarding it, and notify the sender of the
error by reply email or by telephone, so that the sender's address records can be corrected.




----------------------------------------------------------------------
----------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To
post a message email: OpenSource@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/opensource.

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To post a message email: OpenSource@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/opensource.

___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.