crazysacx / node-jdbc Goto Github PK
View Code? Open in Web Editor NEWJDBC Wrapper for node.js
JDBC Wrapper for node.js
Some JDBC drivers are packaged in multiple JAR files or have dependencies in more than one jar file. We need to add support for loading more than one JAR file onto the classpath.
executing the test locally fails.
I'm about to start working on building an API for a DB2-backed system at my organisation and wanted some feedback on some best practices around this module.
My plan is to use node-jdbc
as a bridge between my API node application and the DB2-backed system. This means that I will need to run a certain set of queries against some pre-written DB2 views in the database relatively frequently (every 2 to 5 minutes) all day, every day.
What is the best approach here? Currently I'm thinking of this in two different ways:
Is there anything 'wrong' with going with approach number one? I guess I'm mainly worried about memory usage/general efficiency of the number of connects/disconnects over a day. This kind of work is fairly new to me so maybe I'm overreacting about this and it might just be a non-issue.
Thanks for hearing me out, everyone.
Hey all,
I have problems closing connections. close method does not being invoked :-(
Any idea?
Hi,
i know this is not really a problem coming from node-jdbc, but related to it.
I put node-jdbc calls into a module like described in issue #13. In general this works fine. I required the module once and then make the calls. The problem is, that from time to time, when more frequent db requests are issued or when some db-requests takes longer, i ran into two kinds off errors :connection already closed or resultset closed.
Sometimes it runs like a charme with no errors.
My guess is, due to nodes asynchronous character and that a module is always only one object, that a connection is closed from a previous call, before the current one can finish.
Perhaps you have an idea how to fence a call from others like with threading or so.
This is one of the error stacks:
Error: Error running instance method
java.sql.SQLException: Operation not allowed after ResultSet closed
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1084)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:973)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:918)
at com.mysql.jdbc.ResultSetImpl.checkClosed(ResultSetImpl.java:799)
at com.mysql.jdbc.ResultSetImpl.getMetaData(ResultSetImpl.java:3102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Thorsten
I'm not quite sure how to specify my database name and I was hoping you might take a quick look at my code. When I run reserve(), I don't seem to be getting anything helpful in the callback function. FYI, this is all in a controller of a sails.js project, since I initially tried to use sails to set up a simple API using an existing JDBC connection.
var JDBC = require('jdbc');
var jinst = require('jdbc/lib/jinst');
if (!jinst.isJvmCreated()) {
jinst.addOption("-Xrs");
jinst.setupClasspath(['./drivers/hsqldb.jar',
'./drivers/derby.jar',
'./drivers/derbyclient.jar',
'./drivers/derbytools.jar']);
}
var config = {
url: 'jdbc:sqlserver://mysubdomain.mydomain.net:1433',
user : 'myusername',
password: 'mypassword',
properties: {databaseName: 'frontofficedev'},
minpoolsize: 10,
maxpoolsize: 100
};
var testpool = null;
var testconn = null;
var hsqldb = new JDBC(config);
hsqldb.initialize(function(err) {
if (err) {
console.log(err);
}
});
var asyncjs = require('async');
module.exports = {
hi: function (req, res) {
return res.send("Hi there!");
},
jdbc: function (req, res) {
console.log("hsqldb = ", hsqldb);
hsqldb.reserve(function(err, connObj) {
console.log("connObj = ", connObj);
console.log("err = ", err);
...
The CLI displays these log results when I point my browser to http://localhost:1337/advisor/jdbc
hsqldb = { _url: 'jdbc:sqlserver://mysubdomain.mydomain.net:1433',
_props: {},
_minpoolsize: 10,
_maxpoolsize: 100,
_pool: [ undefined, undefined ],
_reserved: [] }
connObj = undefined
err = null
The log makes me wonder if I'm not specifying the database correctly. Or maybe there's a driver issue? I have successfully connected to and queried the database using SQL Workbench; here's the configuration:
Thanks for any advice you can give me. The examples you've given in readme.md are great, but I can't help but think I'm missing something obvious.
Now ResultSet.toObjArray use recursion for processing result rows which is extremely inefficient and potentially will break the app on large selection.
https://registry.npmjs.org/node-jdbc renders 404.
Got Python 2.7.7
Have a JAVA PATH env variable pointing to java\ which has lib & bin folders.
On Windows 2012R2
D:\AdminExtension\app>npm install jdbc
/
> [email protected] install D:\AdminExtension\app\node_modules\jdbc\node_modules\java
> node-gyp rebuild
D:\AdminExtension\app\node_modules\jdbc\node_modules\java>node "C:\Program Files
\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild
gyp: Call to 'node findJavaHome.js' returned exit status 1. while trying to load
binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\AdminExtension\app\node_modules\jdbc\node_modules\java
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the java package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls java
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "jdbc"
npm ERR! cwd D:\AdminExtension\app
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\AdminExtension\app\npm-debug.log
npm ERR! not ok code 0
There is a pull request for these features that doesn't quite work yet. I'd like to get this in before 1.0.
I need to run two jdbc connections under the same node.js: one for DB2 and the other for Sybase.
This may not be supported ? as it seems that when I have both defineded, then one of the drivers gives java.lang.NoClassDefFoundError.
ie
var sybase = new (require('jdbc');
var sybaseConfig = {
//
};
var db2 = new (require('jdbc'));
var db2Config = {
//
};
// followed by initialize and open of the two
// I have commented out the one and then the other, both work if the other is not present
i am getting an error on
// Get the first row.
var nextrow = self._rs.nextSync();
and the it is crashing my application forcing a restart
i put a try catch around it but it is probably not the best idea
var nextrow;
// Get the first row.
try {
nextrow = self._rs.nextSync();
} catch (e) {
return callback(e);
}
and it works but i wanted to ask if there was a better way to do this..
btw the error we get is.. thanks for your help!
"c:\Project\node_modules\jdbc\lib\resultset.js:69
var nextrow = self._rs.nextSync();
^
Error: Error running instance method
org.apache.phoenix.exception.PhoenixIOException: org.apache.phoenix.exception.PhoenixIOException: org.apache.hadoop.hbase.DoNotRetryIOException: CustomerTypeDataPhoenix,,1441059361676.fd1da05d5359fa5f67d6ac1aeaf892e5.: null
at org.apache.phoenix.util.ServerUtil.createIOException(ServerUtil.java:84)
at org.apache.phoenix.util.ServerUtil.throwIOException(ServerUtil.java:52)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:198)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$52.call(RegionCoprocessorHost.java:1308)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1663)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1738)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1702)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postScannerOpen(RegionCoprocessorHost.java:1303)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2124)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31443)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2035)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
at com.google.common.collect.Lists.computeArrayListCapacity(Lists.java:105)
at com.google.common.collect.Lists.newArrayListWithExpectedSize(Lists.java:195)
at org.apache.phoenix.schema.ValueSchema.readFields(ValueSchema.java:369)
at org.apache.phoenix.execute.TupleProjector.deserializeProjectorFromScan(TupleProjector.java:132)
at org.apache.phoenix.coprocessor.ScanRegionObserver.doPostScannerOpen(ScanRegionObserver.java:207)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:171)
... 12 more
at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:108)
at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:553)
at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)
at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)
at org.apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:773)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
Caused by: java.util.concurrent.ExecutionException: org.apache.phoenix.exception.PhoenixIOException: org.apache.hadoop.hbase.DoNotRetryIOException: CustomerTypeDataPhoenix,,1441059361676.fd1da05d5359fa5f67d6ac1aeaf892e5.: null
at org.apache.phoenix.util.ServerUtil.createIOException(ServerUtil.java:84)
at org.apache.phoenix.util.ServerUtil.throwIOException(ServerUtil.java:52)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:198)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$52.call(RegionCoprocessorHost.java:1308)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1663)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1738)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1702)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postScannerOpen(RegionCoprocessorHost.java:1303)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2124)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31443)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2035)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
at com.google.common.collect.Lists.computeArrayListCapacity(Lists.java:105)
at com.google.common.collect.Lists.newArrayListWithExpectedSize(Lists.java:195)
at org.apache.phoenix.schema.ValueSchema.readFields(ValueSchema.java:369)
at org.apache.phoenix.execute.TupleProjector.deserializeProjectorFromScan(TupleProjector.java:132)
at org.apache.phoenix.coprocessor.ScanRegionObserver.doPostScannerOpen(ScanRegionObserver.java:207)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:171)
... 12 more
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:549)
... 7 more
Caused by: org.apache.phoenix.exception.PhoenixIOException: org.apache.hadoop.hbase.DoNotRetryIOException: CustomerTypeDataPhoenix,,1441059361676.fd1da05d5359fa5f67d6ac1aeaf892e5.: null
at org.apache.phoenix.util.ServerUtil.createIOException(ServerUtil.java:84)
at org.apache.phoenix.util.ServerUtil.throwIOException(ServerUtil.java:52)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:198)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$52.call(RegionCoprocessorHost.java:1308)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1663)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1738)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1702)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postScannerOpen(RegionCoprocessorHost.java:1303)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2124)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31443)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2035)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
at com.google.common.collect.Lists.computeArrayListCapacity(Lists.java:105)
at com.google.common.collect.Lists.newArrayListWithExpectedSize(Lists.java:195)
at org.apache.phoenix.schema.ValueSchema.readFields(ValueSchema.java:369)
at org.apache.phoenix.execute.TupleProjector.deserializeProjectorFromScan(TupleProjector.java:132)
at org.apache.phoenix.coprocessor.ScanRegionObserver.doPostScannerOpen(ScanRegionObserver.java:207)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:171)
... 12 more
at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:108)
at org.apache.phoenix.iterate.TableResultIterator.getDelegate(TableResultIterator.java:70)
at org.apache.phoenix.iterate.TableResultIterator.<init>(TableResultIterator.java:88)
at org.apache.phoenix.iterate.TableResultIterator.<init>(TableResultIterator.java:79)
at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:105)
at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:100)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.phoenix.job.JobManager$InstrumentedJobFutureTask.run(JobManager.java:183)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.hadoop.hbase.DoNotRetryIOException: org.apache.hadoop.hbase.DoNotRetryIOException: CustomerTypeDataPhoenix,,1441059361676.fd1da05d5359fa5f67d6ac1aeaf892e5.: null
at org.apache.phoenix.util.ServerUtil.createIOException(ServerUtil.java:84)
at org.apache.phoenix.util.ServerUtil.throwIOException(ServerUtil.java:52)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:198)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$52.call(RegionCoprocessorHost.java:1308)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1663)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1738)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1702)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postScannerOpen(RegionCoprocessorHost.java:1303)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2124)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31443)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2035)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
at com.google.common.collect.Lists.computeArrayListCapacity(Lists.java:105)
at com.google.common.collect.Lists.newArrayListWithExpectedSize(Lists.java:195)
at org.apache.phoenix.schema.ValueSchema.readFields(ValueSchema.java:369)
at org.apache.phoenix.execute.TupleProjector.deserializeProjectorFromScan(TupleProjector.java:132)
at org.apache.phoenix.coprocessor.ScanRegionObserver.doPostScannerOpen(ScanRegionObserver.java:207)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:171)
... 12 more
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)
at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)
at org.apache.hadoop.hbase.protobuf.ProtobufUtil.getRemoteException(ProtobufUtil.java:326)
at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:357)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:193)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:62)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:332)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:306)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:126)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:64)
... 3 more
Caused by: org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(org.apache.hadoop.hbase.DoNotRetryIOException): org.apache.hadoop.hbase.DoNotRetryIOException: CustomerTypeDataPhoenix,,1441059361676.fd1da05d5359fa5f67d6ac1aeaf892e5.: null
at org.apache.phoenix.util.ServerUtil.createIOException(ServerUtil.java:84)
at org.apache.phoenix.util.ServerUtil.throwIOException(ServerUtil.java:52)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:198)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$52.call(RegionCoprocessorHost.java:1308)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1663)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1738)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1702)
at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postScannerOpen(RegionCoprocessorHost.java:1303)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2124)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31443)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2035)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
at com.google.common.collect.Lists.computeArrayListCapacity(Lists.java:105)
at com.google.common.collect.Lists.newArrayListWithExpectedSize(Lists.java:195)
at org.apache.phoenix.schema.ValueSchema.readFields(ValueSchema.java:369)
at org.apache.phoenix.execute.TupleProjector.deserializeProjectorFromScan(TupleProjector.java:132)
at org.apache.phoenix.coprocessor.ScanRegionObserver.doPostScannerOpen(ScanRegionObserver.java:207)
at org.apache.phoenix.coprocessor.BaseScannerRegionObserver.postScannerOpen(BaseScannerRegionObserver.java:171)
... 12 more
at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1210)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:216)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:300)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:31889)
at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:349)
... 10 more
at Error (native)
at c:\Project\node_modules\jdbc\lib\resultset.js:69:32
at c:\Project\node_modules\jdbc\lib\resultsetmetadata.js:12:14
API services are written using the Nodejs and when i start the server it is working fine for few requests and fails for some. Could you please let me know what went wrong?
Please find the log:
A fatal error has been detected by the Java Runtime Environment:
--------------- T H R E A D ---------------
Current thread (0x000000000204e000): JavaThread "main" [_thread_in_vm, id=14248, stack(0x00007fff32d4c000,0x00007fff32e4c000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000
Registers:
RAX=0x00000000020a1d90, RBX=0x000000000208c840, RCX=0x0000000000000028, RDX=0x00007fdd22103de5
RSP=0x00007fff32e4aa20, RBP=0x00007fff32e4aa70, RSI=0x0000000000000028, RDI=0x00000000020a1d99
R8 =0x0000000000000013, R9 =0x00000000e8cc02b8, R10=0x00007fdd21c91e40, R11=0x0000000000000246
R12=0x00000000020a1d90, R13=0x000000000204e000, R14=0x00007fdd22102f15, R15=0x0000000000000000
RIP=0x00007fdd218d1f6a, EFLAGS=0x0000000000010206, CSGSFS=0x000000000000e033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x00007fff32e4aa20)
0x00007fff32e4aa20: 0000000032e4aac0 00007fff32e4aa3c
0x00007fff32e4aa30: 000000000204e000 daf235d500000000
0x00007fff32e4aa40: 00000000021f0108 000000000204e000
0x00007fff32e4aa50: 0000000000000000 00007fdd22102f15
0x00007fff32e4aa60: 00007fdd22103de6 0000000000000000
0x00007fff32e4aa70: 00007fff32e4aac0 00007fdd218d797a
0x00007fff32e4aa80: 000000000204e000 000000000204ec90
0x00007fff32e4aa90: 00000000000001d1 00007fdd21c91e40
0x00007fff32e4aaa0: 000000000204e1d8 00000000021f0140
0x00007fff32e4aab0: 00007fff32e4ab20 00000000021f0130
0x00007fff32e4aac0: 00007fff32e4ab10 00007fdd220feaa1
0x00007fff32e4aad0: 0000000000000000 00007fdcf8170dd8
0x00007fff32e4aae0: 00000000021f0130 000000000204e1d8
0x00007fff32e4aaf0: 00000000021f0130 0000000001fea438
0x00007fff32e4ab00: 00000000021f0100 00000000021f00e8
0x00007fff32e4ab10: 00007fff32e4ab40 00007fdd220feb8b
0x00007fff32e4ab20: 00000000021f0108 0000000001fea438
0x00007fff32e4ab30: 000000000204e1d8 0000000000000000
0x00007fff32e4ab40: 00007fff32e4abc0 00007fdd220ff6c7
0x00007fff32e4ab50: 000000000204e1d8 00000000021d3ad0
0x00007fff32e4ab60: 0000000000000000 00007fff32e4ad20
0x00007fff32e4ab70: 00007fff32e4abc0 00007fdd220fe9ae
0x00007fff32e4ab80: 0000000000000001 00000000021f00e8
0x00007fff32e4ab90: 00007fff32e4ac80 00007fff32e4ac80
0x00007fff32e4aba0: 00007fff32e4ad20 0000000001e49940
0x00007fff32e4abb0: 000000000204e1d8 00007fff32e4ac60
0x00007fff32e4abc0: 00007fff32e4acd0 00007fdd220f94d6
0x00007fff32e4abd0: 0000000001b6c070 0000000001b9fe70
0x00007fff32e4abe0: 0000000132e4adb8 0000000001b9dee0
0x00007fff32e4abf0: 00000000021f00e8 00007fff32e4ac50
0x00007fff32e4ac00: 00007fff32e4ac40 00007fff32e4ac20
0x00007fff32e4ac10: 0000000000000000 00007fdd23d179ee
Instructions: (pc=0x00007fdd218d1f6a)
0x00007fdd218d1f4a: e7 89 c6 48 89 ca e8 5b c8 2c 00 48 85 db 49 89
0x00007fdd218d1f5a: c4 0f 84 97 02 00 00 48 85 c0 0f 84 f6 02 00 00
0x00007fdd218d1f6a: 49 8b 3f e8 7e 5c ff ff 84 c0 0f 85 16 03 00 00
0x00007fdd218d1f7a: 49 8b 3f e8 ae 5b ff ff 48 85 c0 49 89 c0 0f 84
Register to memory mapping:
RAX=0x00000000020a1d90 is an unknown value
RBX=0x000000000208c840 is an unknown value
RCX=0x0000000000000028 is an unknown value
RDX=0x00007fdd22103de5: <offset 0x21de5> in /home/fbx863/Redshift-Apidoc_updated/node_modules/jdbc/node_modules/java/build/Release/nodejavabridge_bindings.node at 0x00007fdd220e2000
RSP=0x00007fff32e4aa20 is pointing into the stack for thread: 0x000000000204e000
RBP=0x00007fff32e4aa70 is pointing into the stack for thread: 0x000000000204e000
RSI=0x0000000000000028 is an unknown value
RDI=0x00000000020a1d99 is an unknown value
R8 =0x0000000000000013 is an unknown value
R9 =0x00000000e8cc02b8 is an oop
sun.misc.Launcher$AppClassLoader
Stack: [0x00007fff32d4c000,0x00007fff32e4c000], sp=0x00007fff32e4aa20, free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x5f3f6a] get_method_id(JNIEnv__, jclass, char const_, char const_, bool, Thread_) [clone .isra.80]+0x7a
V [libjvm.so+0x5f997a] jni_GetMethodID+0x7a
C [nodejavabridge_bindings.node+0x1caa1] javaExceptionToString(JNIEnv__, jthrowable*)+0xb1
C [nodejavabridge_bindings.node+0x1cb8b] checkJavaException(JNIEnv_)+0x4b
C [nodejavabridge_bindings.node+0x1d6c7] javaFindMethod(JNIEnv__, jclass, std::string&, jobjectArray)+0x197
C [nodejavabridge_bindings.node+0x174d6] JavaObject::methodCallSync(v8::Arguments const&)+0xf6
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00007fdd0c5a3800 JavaThread "Thread-85" daemon [_thread_blocked, id=14346, stack(0x00007fdcf7bfc000,0x00007fdcf7cfd000)]
0x00007fdd0c47f000 JavaThread "Thread-71" daemon [_thread_blocked, id=14332, stack(0x00007fdcf7dfe000,0x00007fdcf7eff000)]
0x00007fdd048ff800 JavaThread "Thread-70" daemon [_thread_blocked, id=14331, stack(0x00007fdcf7eff000,0x00007fdcf8000000)]
0x00007fdcf83e2000 JavaThread "Thread-69" daemon [_thread_blocked, id=14330, stack(0x00007fdd14054000,0x00007fdd14155000)]
0x00007fdd0405a800 JavaThread "Thread-68" daemon [_thread_blocked, id=14329, stack(0x00007fdd14357000,0x00007fdd14458000)]
0x00007fdd0c004800 JavaThread "Thread-67" daemon [_thread_blocked, id=14328, stack(0x00007fdcf7cfd000,0x00007fdcf7dfe000)]
0x00007fdd0c001000 JavaThread "Thread-4" [_thread_in_native, id=14254, stack(0x00007fdd1a1fd000,0x00007fdd1abfe000)]
0x00007fdd04241000 JavaThread "Thread-2" [_thread_in_native, id=14251, stack(0x00007fdd208dd000,0x00007fdd212de000)]
0x00007fdcf816f800 JavaThread "Thread-1" [_thread_in_native, id=14252, stack(0x00007fdd1b5ff000,0x00007fdd1c000000)]
0x00007fdcfc001000 JavaThread "Thread-0" [_thread_in_native, id=14253, stack(0x00007fdd1abfe000,0x00007fdd1b5ff000)]
0x0000000002228800 JavaThread "Service Thread" daemon [_thread_blocked, id=14261, stack(0x00007fdd16007000,0x00007fdd16108000)]
0x0000000002226000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=14260, stack(0x00007fdd16108000,0x00007fdd16209000)]
0x0000000002223800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=14259, stack(0x00007fdd16209000,0x00007fdd1630a000)]
0x0000000002221800 JavaThread "Attach Listener" daemon [_thread_blocked, id=14258, stack(0x00007fdd1630a000,0x00007fdd1640b000)]
0x00000000021f5000 JavaThread "Finalizer" daemon [_thread_blocked, id=14257, stack(0x00007fdd166d4000,0x00007fdd167d5000)]
0x00000000021f3000 JavaThread "Reference Handler" daemon [_thread_blocked, id=14256, stack(0x00007fdd167d5000,0x00007fdd168d6000)]
=>0x000000000204e000 JavaThread "main" [_thread_in_vm, id=14248, stack(0x00007fff32d4c000,0x00007fff32e4c000)]
Other Threads:
0x00000000021ee800 VMThread [stack: 0x00007fdd168d6000,0x00007fdd169d7000] [id=14255]
0x0000000002233800 WatcherThread [stack: 0x00007fdd15f06000,0x00007fdd16007000] [id=14262]
VM state:synchronizing (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x0000000001ce8310] Threads_lock - owner thread: 0x00000000021ee800
[0x0000000001ce8810] Heap_lock - owner thread: 0x00007fdd048ff800
Heap
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ffe8, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
Card table byte_map: [0x00007fdd245cc000,0x00007fdd246ba000] byte_map_base: 0x00007fdd23eb9000
Polling page: 0x00007fdd247a4000
Code Cache [0x00007fdd16bdc000, 0x00007fdd16e4c000, 0x00007fdd19bdc000)
total_blobs=715 nmethods=431 adapters=238 free_code_cache=47752Kb largest_free_block=48872704
Compilation events (10 events):
Event: 940.722 Thread 0x0000000002226000 437 java.nio.DirectByteBuffer::compact (83 bytes)
Event: 940.724 Thread 0x0000000002226000 nmethod 437 0x00007fdd16d257d0 code [0x00007fdd16d25920, 0x00007fdd16d25a38]
Event: 941.233 Thread 0x0000000002226000 438 ! com.amazon.utilities.conversion.TypeConverter::toFloat (241 bytes)
Event: 941.236 Thread 0x0000000002223800 439 com.amazon.utilities.conversion.TypeConverter::canConvertFrom (32 bytes)
Event: 941.245 Thread 0x0000000002223800 nmethod 439 0x00007fdd16d3ded0 code [0x00007fdd16d3e080, 0x00007fdd16d3e4d8]
Event: 941.282 Thread 0x0000000002226000 nmethod 438 0x00007fdd16d36510 code [0x00007fdd16d36840, 0x00007fdd16d36f20]
Event: 941.907 Thread 0x0000000002223800 440 java.util.HashMap$KeyIterator:: (6 bytes)
Event: 941.912 Thread 0x0000000002223800 nmethod 440 0x00007fdd16d25350 code [0x00007fdd16d254a0, 0x00007fdd16d25698]
Event: 941.912 Thread 0x0000000002223800 441 java.util.HashMap$KeyIterator:: (11 bytes)
Event: 942.323 Thread 0x0000000002223800 nmethod 441 0x00007fdd16d360d0 code [0x00007fdd16d36220, 0x00007fdd16d36418]
GC Heap History (10 events):
Event: 976.065 GC heap before
{Heap before GC invocations=792 (full 46):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ff78, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff8, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8731K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6286e98, 0x00000000f6287000, 0x00000000f6ec0000)
No shared spaces configured.
Event: 979.904 GC heap after
Heap after GC invocations=793 (full 47):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ff78, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59fffa0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8731K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6286e98, 0x00000000f6287000, 0x00000000f6ec0000)
No shared spaces configured.
}
Event: 979.905 GC heap before
{Heap before GC invocations=793 (full 47):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825fff8, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
Event: 983.747 GC heap after
Heap after GC invocations=794 (full 48):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ff38, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
}
Event: 983.748 GC heap before
{Heap before GC invocations=794 (full 48):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 100% used [0x00000000e7820000, 0x00000000e8260000, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
Event: 987.574 GC heap after
Heap after GC invocations=795 (full 49):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ffb0, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
}
Event: 987.574 GC heap before
{Heap before GC invocations=795 (full 49):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ffe8, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
Event: 991.405 GC heap after
Heap after GC invocations=796 (full 50):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ffe8, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
}
Event: 991.405 GC heap before
{Heap before GC invocations=796 (full 50):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ffe8, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
Event: 995.107 GC heap after
Heap after GC invocations=797 (full 51):
def new generation total 94592K, used 94591K [0x00000000e2600000, 0x00000000e8ca0000, 0x00000000e8ca0000)
eden space 84096K, 99% used [0x00000000e2600000, 0x00000000e781fff8, 0x00000000e7820000)
from space 10496K, 99% used [0x00000000e7820000, 0x00000000e825ffe8, 0x00000000e8260000)
to space 10496K, 0% used [0x00000000e8260000, 0x00000000e8260000, 0x00000000e8ca0000)
tenured generation total 210304K, used 210303K [0x00000000e8ca0000, 0x00000000f5a00000, 0x00000000f5a00000)
the space 210304K, 99% used [0x00000000e8ca0000, 0x00000000f59ffff0, 0x00000000f5a00000, 0x00000000f5a00000)
compacting perm gen total 21248K, used 8732K [0x00000000f5a00000, 0x00000000f6ec0000, 0x0000000100000000)
the space 21248K, 41% used [0x00000000f5a00000, 0x00000000f6287118, 0x00000000f6287200, 0x00000000f6ec0000)
No shared spaces configured.
}
Deoptimization events (10 events):
Event: 797.159 Thread 0x00007fdd0c004800 Uncommon trap: reason=array_check action=maybe_recompile pc=0x00007fdd16cf4038 method=java.util.Arrays.fill([Ljava/lang/Object;Ljava/lang/Object;)V @ 13
Event: 814.599 Thread 0x00007fdd04241000 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16cf76d8 method=java.nio.channels.spi.AbstractInterruptibleChannel.begin()V @ 4
Event: 817.601 Thread 0x00007fdcf816f800 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16c52464 method=java.lang.ref.SoftReference.get()Ljava/lang/Object; @ 6
Event: 848.342 Thread 0x00007fdd048ff800 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16d2a6f4 method=java.util.HashMap.keySet()Ljava/util/Set; @ 6
Event: 853.625 Thread 0x00007fdd0c511800 Uncommon trap: reason=null_check action=make_not_entrant pc=0x00007fdd16d1c834 method=sun.nio.ch.EPollSelectorImpl.updateSelectedKeys()I @ 41
Event: 871.135 Thread 0x000000000204e000 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16cea024 method=com.amazon.dsi.dataengine.utilities.DataWrapper.isNull()Z @ 5
Event: 871.135 Thread 0x000000000204e000 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16ca3d40 method=com.amazon.dsi.dataengine.utilities.DataWrapper.isNull()Z @ 5
Event: 871.256 Thread 0x000000000204e000 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16ced0fc method=com.amazon.dsi.dataengine.utilities.DataWrapper.isNull()Z @ 5
Event: 916.337 Thread 0x000000000204e000 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16c9a1b0 method=java.lang.ref.SoftReference.get()Ljava/lang/Object; @ 6
Event: 916.337 Thread 0x000000000204e000 Uncommon trap: reason=unreached action=reinterpret pc=0x00007fdd16c887b0 method=java.lang.ref.SoftReference.get()Ljava/lang/Object; @ 6
Internal exceptions (10 events):
Event: 916.580 Thread 0x00007fdd04241000 Threw 0x00000000e5f8d090 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:721
Event: 916.585 Thread 0x00007fdcf816f800 Threw 0x00000000e602fd40 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:721
Event: 916.818 Thread 0x00007fdd04241000 Threw 0x00000000e5f8d7b8 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:721
Event: 918.978 Thread 0x00007fdcfc001000 Threw 0x00000000e78d12a8 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:721
Event: 940.055 Thread 0x00007fdcfc001000 Threw 0x00000000e6071930 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:721
Event: 945.232 Thread 0x00007fdd0c5a3800 Threw 0x00000000f5abced0 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/gc_interface/collectedHeap.inline.hpp:173
Event: 945.965 Thread 0x00007fdd0c5a3800 Threw 0x00000000f5abceb0 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/gc_interface/collectedHeap.inline.hpp:173
Event: 952.224 Thread 0x00007fdd0c5a3800 Threw 0x00000000f5abce90 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/gc_interface/collectedHeap.inline.hpp:173
Event: 979.904 Thread 0x000000000204e000 Threw 0x00000000f5abce70 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/gc_interface/collectedHeap.inline.hpp:173
Event: 995.107 Thread 0x000000000204e000 Threw 0x00000000f5abade0 at /build/openjdk-7-FO0dNI/openjdk-7-7u79-2.5.6/build/openjdk/hotspot/src/share/vm/gc_interface/collectedHeap.inline.hpp:173
Events (10 events):
Event: 979.904 Executing VM operation: GenCollectForAllocation done
Event: 979.904 Thread 0x000000000204e000 DEOPT PACKING pc=0x00007fdd16c7517c sp=0x00007fff32e4a600
Event: 979.905 Thread 0x000000000204e000 DEOPT UNPACKING pc=0x00007fdd16c14e0f sp=0x00007fff32e4a1b0 mode 1
Event: 979.905 Executing VM operation: GenCollectForAllocation
Event: 983.747 Executing VM operation: GenCollectForAllocation done
Event: 983.747 Executing VM operation: GenCollectForAllocation
Event: 987.574 Executing VM operation: GenCollectForAllocation done
Event: 987.574 Executing VM operation: GenCollectForAllocation
Event: 995.107 Executing VM operation: GenCollectForAllocation done
Event: 995.107 Executing VM operation: GenCollectForAllocation
Dynamic libraries:
00400000-00562000 r-xp 00000000 08:01 3202 /usr/bin/nodejs
00761000-00762000 r--p 00161000 08:01 3202 /usr/bin/nodejs
00762000-00765000 rw-p 00162000 08:01 3202 /usr/bin/nodejs
00765000-00766000 rw-p 00000000 00:00 0
01b6c000-0293d000 rw-p 00000000 00:00 0 [heap]
e2600000-e8ca0000 rw-p 00000000 00:00 0
e8ca0000-f5a00000 rw-p 00000000 00:00 0
f5a00000-f6ec0000 rw-p 00000000 00:00 0
f6ec0000-100000000 rw-p 00000000 00:00 0
fe1d900000-fe1da00000 rw-p 00000000 00:00 0
5d64b2a8000-5d64b6a8000 rw-p 00000000 00:00 0
9b07d700000-9b07d800000 rw-p 00000000 00:00 0
c174bc77000-c174bc78000 r-xp 00000000 00:00 0
d3f1d800000-d3f1d825000 rw-p 00000000 00:00 0
e9005500000-e9005600000 rw-p 00000000 00:00 0
ec90c359000-ec90c380000 ---p 00000000 00:00 0
ec90c380000-ec90c3a0000 rw-p 00000000 00:00 0
ec90c3a0000-ec90c3b9000 ---p 00000000 00:00 0
1421b7500000-1421b7600000 rw-p 00000000 00:00 0
176ad4700000-176ad4800000 rw-p 00000000 00:00 0
18aecd2d3000-18aecd2d4000 r-xp 00000000 00:00 0
199e349e3000-199e34a00000 ---p 00000000 00:00 0
199e34a00000-199e34a05000 rw-p 00000000 00:00 0
199e34a05000-199e34a06000 ---p 00000000 00:00 0
199e34a06000-199e34aff000 rwxp 00000000 00:00 0
199e34aff000-199e34b00000 ---p 00000000 00:00 0
199e34b00000-199e34b05000 rw-p 00000000 00:00 0
199e34b05000-199e34b06000 ---p 00000000 00:00 0
199e34b06000-199e34bff000 rwxp 00000000 00:00 0
199e34bff000-199e34e00000 ---p 00000000 00:00 0
199e34e00000-199e34e05000 rw-p 00000000 00:00 0
199e34e05000-199e34e06000 ---p 00000000 00:00 0
199e34e06000-199e34eff000 rwxp 00000000 00:00 0
199e34eff000-199e34f00000 ---p 00000000 00:00 0
199e34f00000-199e34f05000 rw-p 00000000 00:00 0
199e34f05000-199e34f06000 ---p 00000000 00:00 0
199e34f06000-199e34fff000 rwxp 00000000 00:00 0
199e34fff000-199e35000000 ---p 00000000 00:00 0
199e35000000-199e35005000 rw-p 00000000 00:00 0
199e35005000-199e35006000 ---p 00000000 00:00 0
199e35006000-199e350ff000 rwxp 00000000 00:00 0
199e350ff000-199e549e3000 ---p 00000000 00:00 0
1c63d1400000-1c63d1485000 rw-p 00000000 00:00 0
1c88fda00000-1c88fdb00000 rw-p 00000000 00:00 0
1ee8fd300000-1ee8fd400000 rw-p 00000000 00:00 0
1f0e2d700000-1f0e2d800000 rw-p 00000000 00:00 0
2304ade00000-2304adf00000 rw-p 00000000 00:00 0
263f65600000-263f65700000 rw-p 00000000 00:00 0
26e4bc600000-26e4bc625000 rw-p 00000000 00:00 0
2896c4700000-2896c4800000 rw-p 00000000 00:00 0
28fab7300000-28fab7400000 rw-p 00000000 00:00 0
297aaab00000-297aaac00000 rw-p 00000000 00:00 0
2bd001056000-2bd001057000 r-xp 00000000 00:00 0
2e40d3200000-2e40d3300000 rw-p 00000000 00:00 0
311cb1100000-311cb1200000 rw-p 00000000 00:00 0
325c73b2f000-325c73d2f000 rw-p 00000000 00:00 0
3656b7100000-3656b7200000 rw-p 00000000 00:00 0
39bb35c78000-39bb35c79000 r-xp 00000000 00:00 0
3a9782f55000-3a9782f56000 r-xp 00000000 00:00 0
3acc42000000-3acc43800000 rw-p 00000000 00:00 0
3acc43800000-3acc44000000 rw-p 00000000 00:00 0
3c7270100000-3c7270200000 rw-p 00000000 00:00 0
3db815700000-3db815735000 rw-p 00000000 00:00 0
7fdcf7afb000-7fdcf7afe000 ---p 00000000 00:00 0
7fdcf7afe000-7fdcf7bfc000 rw-p 00000000 00:00 0
7fdcf7bfc000-7fdcf7bff000 ---p 00000000 00:00 0
7fdcf7bff000-7fdcf7cfd000 rw-p 00000000 00:00 0
7fdcf7cfd000-7fdcf7d00000 ---p 00000000 00:00 0
7fdcf7d00000-7fdcf7dfe000 rw-p 00000000 00:00 0
7fdcf7dfe000-7fdcf7e01000 ---p 00000000 00:00 0
7fdcf7e01000-7fdcf7eff000 rw-p 00000000 00:00 0
7fdcf7eff000-7fdcf7f02000 ---p 00000000 00:00 0
7fdcf7f02000-7fdcf8000000 rw-p 00000000 00:00 0
7fdcf8000000-7fdcf8a65000 rw-p 00000000 00:00 0
7fdcf8a65000-7fdcfc000000 ---p 00000000 00:00 0
7fdcfc000000-7fdcfc6c8000 rw-p 00000000 00:00 0
7fdcfc6c8000-7fdd00000000 ---p 00000000 00:00 0
7fdd00000000-7fdd00021000 rw-p 00000000 00:00 0
7fdd00021000-7fdd04000000 ---p 00000000 00:00 0
7fdd04000000-7fdd05237000 rw-p 00000000 00:00 0
7fdd05237000-7fdd08000000 ---p 00000000 00:00 0
7fdd08000000-7fdd08021000 rw-p 00000000 00:00 0
7fdd08021000-7fdd0c000000 ---p 00000000 00:00 0
7fdd0c000000-7fdd0ca0b000 rw-p 00000000 00:00 0
7fdd0ca0b000-7fdd10000000 ---p 00000000 00:00 0
7fdd10000000-7fdd10085000 rw-p 00000000 00:00 0
7fdd10085000-7fdd14000000 ---p 00000000 00:00 0
7fdd14054000-7fdd14057000 ---p 00000000 00:00 0
7fdd14057000-7fdd14155000 rw-p 00000000 00:00 0
7fdd14155000-7fdd14158000 ---p 00000000 00:00 0
7fdd14158000-7fdd14256000 rw-p 00000000 00:00 0
7fdd14256000-7fdd14259000 ---p 00000000 00:00 0
7fdd14259000-7fdd14357000 rw-p 00000000 00:00 0
7fdd14357000-7fdd1435a000 ---p 00000000 00:00 0
7fdd1435a000-7fdd14458000 rw-p 00000000 00:00 0
7fdd14458000-7fdd1445b000 ---p 00000000 00:00 0
7fdd1445b000-7fdd14559000 rw-p 00000000 00:00 0
7fdd14559000-7fdd1455e000 r-xp 00000000 08:01 396791 /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7fdd1455e000-7fdd1475d000 ---p 00005000 08:01 396791 /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7fdd1475d000-7fdd1475e000 r--p 00004000 08:01 396791 /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7fdd1475e000-7fdd1475f000 rw-p 00005000 08:01 396791 /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7fdd1475f000-7fdd1476f000 r-xp 00000000 08:01 923251 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7fdd1476f000-7fdd1496f000 ---p 00010000 08:01 923251 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7fdd1496f000-7fdd14970000 r--p 00010000 08:01 923251 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7fdd14970000-7fdd14971000 rw-p 00011000 08:01 923251 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7fdd14971000-7fdd149ae000 r-xp 00000000 08:01 394733 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fdd149ae000-7fdd14bad000 ---p 0003d000 08:01 394733 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fdd14bad000-7fdd14bae000 r--p 0003c000 08:01 394733 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fdd14bae000-7fdd14baf000 rw-p 0003d000 08:01 394733 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fdd14baf000-7fdd14bb6000 r-xp 00000000 08:01 8067 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1
7fdd14bb6000-7fdd14db5000 ---p 00007000 08:01 8067 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1
7fdd14db5000-7fdd14db6000 r--p 00006000 08:01 8067 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1
7fdd14db6000-7fdd14db7000 rw-p 00007000 08:01 8067 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1
7fdd14db7000-7fdd14dce000 r-xp 00000000 08:01 396787 /lib/x86_64-linux-gnu/libresolv-2.19.so
7fdd14dce000-7fdd14fce000 ---p 00017000 08:01 396787 /lib/x86_64-linux-gnu/libresolv-2.19.so
7fdd14fce000-7fdd14fcf000 r--p 00017000 08:01 396787 /lib/x86_64-linux-gnu/libresolv-2.19.so
7fdd14fcf000-7fdd14fd0000 rw-p 00018000 08:01 396787 /lib/x86_64-linux-gnu/libresolv-2.19.so
7fdd14fd0000-7fdd14fd2000 rw-p 00000000 00:00 0
7fdd14fd2000-7fdd14ff2000 r-xp 00000000 08:01 394745 /lib/x86_64-linux-gnu/libselinux.so.1
7fdd14ff2000-7fdd151f1000 ---p 00020000 08:01 394745 /lib/x86_64-linux-gnu/libselinux.so.1
7fdd151f1000-7fdd151f2000 r--p 0001f000 08:01 394745 /lib/x86_64-linux-gnu/libselinux.so.1
7fdd151f2000-7fdd151f3000 rw-p 00020000 08:01 394745 /lib/x86_64-linux-gnu/libselinux.so.1
7fdd151f3000-7fdd151f5000 rw-p 00000000 00:00 0
7fdd151f5000-7fdd151f8000 r-xp 00000000 08:01 8079 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4002.0
7fdd151f8000-7fdd153f7000 ---p 00003000 08:01 8079 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4002.0
7fdd153f7000-7fdd153f8000 r--p 00002000 08:01 8079 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4002.0
7fdd153f8000-7fdd153f9000 rw-p 00003000 08:01 8079 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4002.0
7fdd153f9000-7fdd154ff000 r-xp 00000000 08:01 394704 /lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0
7fdd154ff000-7fdd156fe000 ---p 00106000 08:01 394704 /lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0
7fdd156fe000-7fdd156ff000 r--p 00105000 08:01 394704 /lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0
7fdd156ff000-7fdd15700000 rw-p 00106000 08:01 394704 /lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0
7fdd15700000-7fdd15701000 rw-p 00000000 00:00 0
7fdd15701000-7fdd15750000 r-xp 00000000 08:01 8083 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4002.0
7fdd15750000-7fdd15950000 ---p 0004f000 08:01 8083 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4002.0
7fdd15950000-7fdd15951000 r--p 0004f000 08:01 8083 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4002.0
7fdd15951000-7fdd15952000 rw-p 00050000 08:01 8083 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4002.0
7fdd15952000-7fdd15abe000 r-xp 00000000 08:01 8078 /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4002.0
7fdd15abe000-7fdd15cbd000 ---p 0016c000 08:01 8078 /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4002.0
7fdd15cbd000-7fdd15cc1000 r--p 0016b000 08:01 8078 /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4002.0
7fdd15cc1000-7fdd15cc3000 rw-p 0016f000 08:01 8078 /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4002.0
7fdd15cc3000-7fdd15cc5000 rw-p 00000000 00:00 0
7fdd15cc5000-7fdd15cdc000 r-xp 00000000 08:01 923246 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7fdd15cdc000-7fdd15edb000 ---p 00017000 08:01 923246 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7fdd15edb000-7fdd15edc000 r--p 00016000 08:01 923246 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7fdd15edc000-7fdd15edd000 rw-p 00017000 08:01 923246 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7fdd15edd000-7fdd15f06000 r--s 001c7000 08:01 534499 /home/fbx863/Redshift-Apidoc_updated/RedshiftJDBC41-1.1.6.1006.jar
7fdd15f06000-7fdd15f07000 ---p 00000000 00:00 0
7fdd15f07000-7fdd16007000 rw-p 00000000 00:00 0
7fdd16007000-7fdd1600a000 ---p 00000000 00:00 0
7fdd1600a000-7fdd16108000 rw-p 00000000 00:00 0
7fdd16108000-7fdd1610b000 ---p 00000000 00:00 0
7fdd1610b000-7fdd16209000 rw-p 00000000 00:00 0
7fdd16209000-7fdd1620c000 ---p 00000000 00:00 0
7fdd1620c000-7fdd1630a000 rw-p 00000000 00:00 0
7fdd1630a000-7fdd1630d000 ---p 00000000 00:00 0
7fdd1630d000-7fdd1640b000 rw-p 00000000 00:00 0
7fdd1640b000-7fdd166d4000 r--p 00000000 08:01 1578 /usr/lib/locale/locale-archive
7fdd166d4000-7fdd166d7000 ---p 00000000 00:00 0
7fdd166d7000-7fdd167d5000 rw-p 00000000 00:00 0
7fdd167d5000-7fdd167d8000 ---p 00000000 00:00 0
7fdd167d8000-7fdd168d6000 rw-p 00000000 00:00 0
7fdd168d6000-7fdd168d7000 ---p 00000000 00:00 0
7fdd168d7000-7fdd169d7000 rw-p 00000000 00:00 0
7fdd169d7000-7fdd16b88000 r--s 01d29000 08:01 923182 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar
7fdd16b88000-7fdd16b93000 rw-p 00000000 00:00 0
7fdd16b93000-7fdd16bdc000 rw-p 00000000 00:00 0
7fdd16bdc000-7fdd16e4c000 rwxp 00000000 00:00 0
7fdd16e4c000-7fdd19bdc000 rw-p 00000000 00:00 0
7fdd19bdc000-7fdd19be4000 r-xp 00000000 08:01 923215 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7fdd19be4000-7fdd19de3000 ---p 00008000 08:01 923215 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7fdd19de3000-7fdd19de4000 r--p 00007000 08:01 923215 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7fdd19de4000-7fdd19de5000 rw-p 00008000 08:01 923215 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7fdd19de5000-7fdd19df0000 r-xp 00000000 08:01 396789 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7fdd19df0000-7fdd19fef000 ---p 0000b000 08:01 396789 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7fdd19fef000-7fdd19ff0000 r--p 0000a000 08:01 396789 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7fdd19ff0000-7fdd19ff1000 rw-p 0000b000 08:01 396789 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7fdd19ff1000-7fdd19ffc000 r-xp 00000000 08:01 396809 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7fdd19ffc000-7fdd1a1fb000 ---p 0000b000 08:01 396809 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7fdd1a1fb000-7fdd1a1fc000 r--p 0000a000 08:01 396809 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7fdd1a1fc000-7fdd1a1fd000 rw-p 0000b000 08:01 396809 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7fdd1a1fd000-7fdd1a200000 ---p 00000000 00:00 0
7fdd1a200000-7fdd1abfe000 rw-p 00000000 00:00 0
7fdd1abfe000-7fdd1ac01000 ---p 00000000 00:00 0
7fdd1ac01000-7fdd1b5ff000 rw-p 00000000 00:00 0
7fdd1b5ff000-7fdd1b602000 ---p 00000000 00:00 0
7fdd1b602000-7fdd1c000000 rw-p 00000000 00:00 0
7fdd1c000000-7fdd1c021000 rw-p 00000000 00:00 0
7fdd1c021000-7fdd20000000 ---p 00000000 00:00 0
7fdd20013000-7fdd2007a000 rw-p 00000000 00:00 0
7fdd2007a000-7fdd20091000 r-xp 00000000 08:01 396798 /lib/x86_64-linux-gnu/libnsl-2.19.so
7fdd20091000-7fdd20290000 ---p 00017000 08:01 396798 /lib/x86_64-linux-gnu/libnsl-2.19.so
7fdd20290000-7fdd20291000 r--p 00016000 08:01 396798 /lib/x86_64-linux-gnu/libnsl-2.19.so
7fdd20291000-7fdd20292000 rw-p 00017000 08:01 396798 /lib/x86_64-linux-gnu/libnsl-2.19.so
7fdd20292000-7fdd20294000 rw-p 00000000 00:00 0
7fdd20294000-7fdd2029d000 r-xp 00000000 08:01 396797 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7fdd2029d000-7fdd2049c000 ---p 00009000 08:01 396797 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7fdd2049c000-7fdd2049d000 r--p 00008000 08:01 396797 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7fdd2049d000-7fdd2049e000 rw-p 00009000 08:01 396797 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7fdd2049e000-7fdd204c9000 r-xp 00000000 08:01 923254 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7fdd204c9000-7fdd206c8000 ---p 0002b000 08:01 923254 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7fdd206c8000-7fdd206c9000 r--p 0002a000 08:01 923254 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7fdd206c9000-7fdd206cb000 rw-p 0002b000 08:01 923254 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7fdd206cb000-7fdd206db000 r-xp 00000000 08:01 923233 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7fdd206db000-7fdd208da000 ---p 00010000 08:01 923233 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7fdd208da000-7fdd208dc000 r--p 0000f000 08:01 923233 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7fdd208dc000-7fdd208dd000 rw-p 00011000 08:01 923233 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7fdd208dd000-7fdd208e0000 ---p 00000000 00:00 0
7fdd208e0000-7fdd212de000 rw-p 00000000 00:00 0
7fdd212de000-7fdd21df7000 r-xp 00000000 08:01 923221 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7fdd21df7000-7fdd21ff7000 ---p 00b19000 08:01 923221 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7fdd21ff7000-7fdd22091000 r--p 00b19000 08:01 923221 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7fdd22091000-7fdd220b4000 rw-p 00bb3000 08:01 923221 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7fdd220b4000-7fdd220e2000 rw-p 00000000 00:00 0
7fdd220e2000-7fdd22107000 r-xp 00000000 08:01 930555 /home/fbx863/Redshift-Apidoc_updated/node_modules/jdbc/node_modules/java/build/Release/nodejavabridge_bindings.node
7fdd22107000-7fdd22306000 ---p 00025000 08:01 930555 /home/fbx863/Redshift-Apidoc_updated/node_modules/jdbc/node_modules/java/build/Release/nodejavabridge_bindings.node
7fdd22306000-7fdd22307000 r--p 00024000 08:01 930555 /home/fbx863/Redshift-Apidoc_updated/node_modules/jdbc/node_modules/java/build/Release/nodejavabridge_bindings.node
7fdd22307000-7fdd22308000 rw-p 00025000 08:01 930555 /home/fbx863/Redshift-Apidoc_updated/node_modules/jdbc/node_modules/java/build/Release/nodejavabridge_bindings.node
7fdd22308000-7fdd2231e000 r-xp 00000000 08:01 394702 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdd2231e000-7fdd2251d000 ---p 00016000 08:01 394702 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdd2251d000-7fdd2251e000 rw-p 00015000 08:01 394702 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdd2251e000-7fdd22623000 r-xp 00000000 08:01 396788 /lib/x86_64-linux-gnu/libm-2.19.so
7fdd22623000-7fdd22822000 ---p 00105000 08:01 396788 /lib/x86_64-linux-gnu/libm-2.19.so
7fdd22822000-7fdd22823000 r--p 00104000 08:01 396788 /lib/x86_64-linux-gnu/libm-2.19.so
7fdd22823000-7fdd22824000 rw-p 00105000 08:01 396788 /lib/x86_64-linux-gnu/libm-2.19.so
7fdd22824000-7fdd229df000 r-xp 00000000 08:01 396803 /lib/x86_64-linux-gnu/libc-2.19.so
7fdd229df000-7fdd22bde000 ---p 001bb000 08:01 396803 /lib/x86_64-linux-gnu/libc-2.19.so
7fdd22bde000-7fdd22be2000 r--p 001ba000 08:01 396803 /lib/x86_64-linux-gnu/libc-2.19.so
7fdd22be2000-7fdd22be4000 rw-p 001be000 08:01 396803 /lib/x86_64-linux-gnu/libc-2.19.so
7fdd22be4000-7fdd22be9000 rw-p 00000000 00:00 0
7fdd22be9000-7fdd22c02000 r-xp 00000000 08:01 396804 /lib/x86_64-linux-gnu/libpthread-2.19.so
7fdd22c02000-7fdd22e01000 ---p 00019000 08:01 396804 /lib/x86_64-linux-gnu/libpthread-2.19.so
7fdd22e01000-7fdd22e02000 r--p 00018000 08:01 396804 /lib/x86_64-linux-gnu/libpthread-2.19.so
7fdd22e02000-7fdd22e03000 rw-p 00019000 08:01 396804 /lib/x86_64-linux-gnu/libpthread-2.19.so
7fdd22e03000-7fdd22e07000 rw-p 00000000 00:00 0
7fdd22e07000-7fdd22eed000 r-xp 00000000 08:01 8131 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
7fdd22eed000-7fdd230ec000 ---p 000e6000 08:01 8131 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
7fdd230ec000-7fdd230f4000 r--p 000e5000 08:01 8131 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
7fdd230f4000-7fdd230f6000 rw-p 000ed000 08:01 8131 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
7fdd230f6000-7fdd2310b000 rw-p 00000000 00:00 0
7fdd2310b000-7fdd23112000 r-xp 00000000 08:01 396806 /lib/x86_64-linux-gnu/librt-2.19.so
7fdd23112000-7fdd23311000 ---p 00007000 08:01 396806 /lib/x86_64-linux-gnu/librt-2.19.so
7fdd23311000-7fdd23312000 r--p 00006000 08:01 396806 /lib/x86_64-linux-gnu/librt-2.19.so
7fdd23312000-7fdd23313000 rw-p 00007000 08:01 396806 /lib/x86_64-linux-gnu/librt-2.19.so
7fdd23313000-7fdd23316000 r-xp 00000000 08:01 396792 /lib/x86_64-linux-gnu/libdl-2.19.so
7fdd23316000-7fdd23515000 ---p 00003000 08:01 396792 /lib/x86_64-linux-gnu/libdl-2.19.so
7fdd23515000-7fdd23516000 r--p 00002000 08:01 396792 /lib/x86_64-linux-gnu/libdl-2.19.so
7fdd23516000-7fdd23517000 rw-p 00003000 08:01 396792 /lib/x86_64-linux-gnu/libdl-2.19.so
7fdd23517000-7fdd236c9000 r-xp 00000000 08:01 407035 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fdd236c9000-7fdd238c8000 ---p 001b2000 08:01 407035 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fdd238c8000-7fdd238e3000 r--p 001b1000 08:01 407035 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fdd238e3000-7fdd238ee000 rw-p 001cc000 08:01 407035 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fdd238ee000-7fdd238f2000 rw-p 00000000 00:00 0
7fdd238f2000-7fdd23947000 r-xp 00000000 08:01 407036 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fdd23947000-7fdd23b47000 ---p 00055000 08:01 407036 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fdd23b47000-7fdd23b4a000 r--p 00055000 08:01 407036 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fdd23b4a000-7fdd23b51000 rw-p 00058000 08:01 407036 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fdd23b51000-7fdd23f2f000 r-xp 00000000 08:01 3192 /usr/lib/libv8.so.3.14.5
7fdd23f2f000-7fdd2412e000 ---p 003de000 08:01 3192 /usr/lib/libv8.so.3.14.5
7fdd2412e000-7fdd24152000 r--p 003dd000 08:01 3192 /usr/lib/libv8.so.3.14.5
7fdd24152000-7fdd24157000 rw-p 00401000 08:01 3192 /usr/lib/libv8.so.3.14.5
7fdd24157000-7fdd2415b000 rw-p 00000000 00:00 0
7fdd2415b000-7fdd2416b000 r-xp 00000000 08:01 3181 /usr/lib/x86_64-linux-gnu/libcares.so.2.1.0
7fdd2416b000-7fdd2436a000 ---p 00010000 08:01 3181 /usr/lib/x86_64-linux-gnu/libcares.so.2.1.0
7fdd2436a000-7fdd2436b000 r--p 0000f000 08:01 3181 /usr/lib/x86_64-linux-gnu/libcares.so.2.1.0
7fdd2436b000-7fdd2436c000 rw-p 00010000 08:01 3181 /usr/lib/x86_64-linux-gnu/libcares.so.2.1.0
7fdd2436c000-7fdd24384000 r-xp 00000000 08:01 394761 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fdd24384000-7fdd24583000 ---p 00018000 08:01 394761 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fdd24583000-7fdd24584000 r--p 00017000 08:01 394761 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fdd24584000-7fdd24585000 rw-p 00018000 08:01 394761 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fdd24585000-7fdd245a8000 r-xp 00000000 08:01 396800 /lib/x86_64-linux-gnu/ld-2.19.so
7fdd245af000-7fdd245b0000 rw-p 00000000 00:00 0
7fdd245b0000-7fdd245b3000 r--s 00017000 08:01 923193 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar
7fdd245b3000-7fdd245b8000 r--s 0004d000 08:01 923189 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar
7fdd245b8000-7fdd245bf000 r--s 00063000 08:01 930519 /home/fbx863/Redshift-Apidoc_updated/node_modules/jdbc/node_modules/java/commons-lang3-node-java.jar
7fdd245bf000-7fdd245c2000 r--s 0000f000 08:01 923203 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/icedtea-sound.jar
7fdd245c2000-7fdd245c6000 r--s 00085000 08:01 923199 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/localedata.jar
7fdd245c6000-7fdd245c8000 r--s 00006000 08:01 8171 /usr/share/java/java-atk-wrapper.jar
7fdd245c8000-7fdd245cc000 r--s 0003c000 08:01 923202 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
7fdd245cc000-7fdd245ff000 rw-p 00000000 00:00 0
7fdd245ff000-7fdd24666000 rw-p 00000000 00:00 0
7fdd24666000-7fdd24671000 rw-p 00000000 00:00 0
7fdd24671000-7fdd246b9000 rw-p 00000000 00:00 0
7fdd246b9000-7fdd246c4000 rw-p 00000000 00:00 0
7fdd246c4000-7fdd2477a000 rw-p 00000000 00:00 0
7fdd2477a000-7fdd24782000 rw-s 00000000 08:01 524441 /tmp/hsperfdata_fbx863/14248
7fdd24782000-7fdd24783000 ---p 00000000 00:00 0
7fdd24783000-7fdd2479c000 rw-p 00000000 00:00 0
7fdd2479c000-7fdd2479d000 r--s 00002000 08:01 923200 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/dnsns.jar
7fdd2479d000-7fdd2479f000 r--s 00012000 08:01 923204 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/zipfs.jar
7fdd2479f000-7fdd247a3000 r--s 00034000 08:01 923201 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunjce_provider.jar
7fdd247a3000-7fdd247a4000 rw-p 00000000 00:00 0
7fdd247a4000-7fdd247a5000 ---p 00000000 00:00 0
7fdd247a5000-7fdd247a7000 rw-p 00000000 00:00 0
7fdd247a7000-7fdd247a8000 r--p 00022000 08:01 396800 /lib/x86_64-linux-gnu/ld-2.19.so
7fdd247a8000-7fdd247a9000 rw-p 00023000 08:01 396800 /lib/x86_64-linux-gnu/ld-2.19.so
7fdd247a9000-7fdd247aa000 rw-p 00000000 00:00 0
7fff32d4c000-7fff32d4f000 ---p 00000000 00:00 0
7fff32d50000-7fff32e4c000 rw-p 00000000 00:00 0 [stack]
7fff32f21000-7fff32f22000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
jvm_args: -Xrs
java_command:
Launcher Type: generic
Environment Variables:
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/bin
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-openjdk-amd64/bin:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server
SHELL=/bin/sh
Signal Handlers:
SIGSEGV: [libjvm.so+0x94bab0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x94bab0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x7c38b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x7c38b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x7c38b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x7c38b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: [+0x69460], sa_mask[0]=0x7ffbfeff, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x7c3750], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGINT: [+0x22950], sa_mask[0]=0x7ffbfeff, sa_flags=0x00000000
SIGTERM: [+0x22950], sa_mask[0]=0x7ffbfeff, sa_flags=0x00000000
SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTRAP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
--------------- S Y S T E M ---------------
OS:Ubuntu 14.04 (trusty)
uname:Linux 2.6.32-309-ec2 #18 SMP Mon Oct 18 08:14:59 UTC 2010 x86_64
libc:glibc 2.19 NPTL 2.19
rlimit: STACK 10240k, CORE 0k, NPROC 4704, NOFILE 1024, AS infinity
load average:5.21 3.28 2.34
/proc/meminfo:
MemTotal: 629988 kB
MemFree: 29884 kB
Buffers: 19504 kB
Cached: 72548 kB
SwapCached: 3260 kB
Active: 459320 kB
Inactive: 64008 kB
Active(anon): 423136 kB
Inactive(anon): 19396 kB
Active(file): 36184 kB
Inactive(file): 44612 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 649992 kB
SwapFree: 632440 kB
Dirty: 80 kB
Writeback: 0 kB
AnonPages: 428292 kB
Mapped: 34840 kB
Shmem: 11252 kB
Slab: 27928 kB
SReclaimable: 19176 kB
SUnreclaim: 8752 kB
KernelStack: 864 kB
PageTables: 0 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 964984 kB
Committed_AS: 841600 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 4080 kB
VmallocChunk: 34359734179 kB
DirectMap4k: 629760 kB
DirectMap2M: 0 kB
CPU:total 1 (8 cores per cpu, 2 threads per core) family 6 model 45 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, aes, ht, tsc, tscinvbit, tscinv
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
stepping : 7
cpu MHz : 1795.672
cache size : 20480 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 44
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc up rep_good nonstop_tsc pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm
bogomips : 3596.32
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 629988k(29884k free), swap 649992k(632440k free)
vm_info: OpenJDK 64-Bit Server VM (24.79-b02) for linux-amd64 JRE (1.7.0_79-b14), built on Jul 24 2015 08:15:54 by "buildd" with gcc 4.8.2
time: Tue Sep 22 14:44:01 2015
elapsed time: 995 seconds
I was wondering whether there is a way to time-out or cancel the .initialize
function.
var jdbc = new JDBC(config);
jdbc.initialize(function(err) {
if (err) {
console.log(err);
} else {
console.log("Connected.");
}
});
Currently, I'm trying to connect to Impala. When Impala is responsive, it works fine, but occasionally when it is overloaded, it just lags and does not resolve or return an error.
Hi
When trying the example code (code here: https://gist.github.com/neurotech/383ff54d651168fd25c6) from the README when connecting to a DB2 database, I get the following error:
/Users/neurotech/tmp/refactor-jdbc/default.js:9
jdbc.initialize(config);
^
TypeError: Object function JDBCConn() {
EventEmitter.call(this);
this._config = {};
this._conn = null;
},function JDBCPool(config ){
var props = java.callStaticMethodSync('java.lang.System', 'getProperties');
// props.setPropertySync("java.awt.headless", "true");
_(config.libpath).each(function(p){java.classpath.push(p)});
console.log(java.classpath);
var cpds = java.newInstanceSync('com.mchange.v2.c3p0.ComboPooledDataSource');
cpds.setDriverClassSync(config.drivername);
cpds.setJdbcUrlSync( config.url );
cpds.setMinPoolSizeSync(5);
cpds.setAcquireIncrementSync(5);
cpds.setMaxPoolSizeSync(20);
this.cpds = cpds;
return this;
} has no method 'initialize'
at Object.<anonymous> (/Users/neurotech/tmp/refactor-jdbc/default.js:9:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
How can I get this to work?
Currently only one connection is opened and used. This isn't very efficient or scalable. Implement pooling for more flexibility in this regard.
When I try to install on Ubuntu 12.04 32bit version I get an error when the pre-req java npm tries to recompile
/usr/bin/ld: cannot find -ljvm ....
If I just npm install java it works fine as it's at level 0.9.4
Can you re-look to see if your problem at 0.9.3 on windows has been fixed so you can unpin or move the pin for the version of java npm ?
Hello,
Before we used the 0.0.13 version in order to connect to to impala and hive.
We tried to upgrade to 0.0.15 (no changes needed for the code) but with this version we cannot connect to Impala:
nullPointerException:
java.lang.NullPointerException
at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:133)
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
Thank you!
Hi, I use node-jdbc to access Presto db. So I have to pass username property when create connection for Presto. I think overload static method getConnection of java.sql.DriverManager would be work. Is there any plan to support that?
Thanks!
Hi,
tried your code and works like a charm standing alone. I put in in a module with callback functionality. This works up to the point, when jdbc.close() is called.
It always fails with:
../jdbc.js:56
return callback(null);
^
TypeError: undefined is not a function
at JDBCConn.close (.......\jdbc\lib\jdbc.js:56:16))
I tried to put the close somewhere else in the code, but always with the same result.
Any idea??
Thorsten
I'm using Apache Drill with the jdbc connection. Until the new updates, I got it working fine.
In the previous versions (0.0.12) the config object had drivername as a required field. Since I've updated and refactored the code conforming to the new api, I'm getting this error from the jvm:
java.sql.SQLException: No suitable driver found for jdbc:drill:zk=127.0.0.1:2181/drill/drillbits1
My code looks like this:
config =
url: 'jdbc:drill:zk=127.0.0.1:2181/drill/drillbits1'
drivername: 'org.apache.drill.jdbc.Driver'
minpoolsize: 10
maxpoolsize: 100
properties: {}
...
if not jinst.isJvmCreated()
jarPath = path.resolve __dirname + '/../../server/private/drill-jdbc-all-1.1.0.jar'
jinst.addOption("-Xrs")
jinst.setupClasspath([
jarPath
])
...
@_drillJdbc = new JDBC(config)
How can I pass the drivername option in the latest version?
Looks like its pretty much assuming everything is a string?
In the process of modifying for binary
resultset.getMetaData(function(err,rsmd) {
if (err) {
return callback(err);
} else {
var cc = rsmd.getColumnCountSync();
var columns = [''];
var types = [];
for(var i = 1; i <= cc; i++) {
var colType = rsmd.getColumnTypeNameSync(i);
types.push(colType);
var colname = rsmd.getColumnNameSync(i);
columns.push(colname)
}
var results = [];
var next = resultset.nextSync();
while(next) {
var row = {};
for(var i = 1; i <= cc; i++) {
if (types[i] === 'blob') {
row[columns[i]] = resultset.getBinaryStreamSync(i);
} else {
row[columns[i]] = trim1(resultset.getStringSync(i));
}
}
results.push(row);
next = resultset.nextSync();
}
return callback(null, results);
}
});
This is starting from line 74
I have it now fetching the types from the metadata. That seems to be working great. But now i'm trying to actually get the blob data.
I'm fetching like:
jdbc.executeQuery(queries.Invoices.get_lineItems("invoice_id"), function (err, results) {
if (err) {
console.log(err);
} else {
_.forEach(results, function (invoice) {
var fs = require('fs');
fs.writeFile(invoice.sku+'.png', invoice.file);
});
}
});
I build my queries in another module. But pretty much just SELECT sku, GetAs(file, \'JPEG\') FROM invoices WHERE ID=1
GetAs might be specific to the filemaker jdbc
This could be me missing something obvious? I'll gladly clean this up and contribute it if I can get it working.
I'm new to nodejs,
I tried to use your plugin to connect to 2 different database types respectively(db2 and teradata)
but I'm having trouble with them running at the same time
it only registers the 1st jdbc driver and after that, it would not allow me to register a different one and gives me this error:
Error running static method
java.sql.SQLException: No suitable driver found for jdbc:teradata://........
at java.sql.DriverManager.getConnection(DriverManager.java:689)
Any hints or suggestions?
There is an issue at node-java which wasn't merged yet
joeferner/node-java#169
Do we really need the last version?
Hi ,
I am getting below error when i try to data from redshift with the below mentioned code
Code:
var jdbc = new ( require('jdbc') );
var config = {
libpath: 'C:/Users/ABCD/Desktop/jar/RedshiftJDBC41-1.1.6.1006.jar',
//libs: [__dirname + 'path/to/other/jars.jar'],
drivername: 'com.amazon.redshift.jdbc41.Driver',
url: 'jdbc:redshift://examplecluster.abc123xyz789.us-west-2.redshift.amazonaws.com:5439/dev',
user: 'xxxx',
password: 'xxxxx'
};
jdbc.initialize(config, function(err, res) {
if (err) {
console.log(err);
}
});
var genericQueryHandler = function(err, results) {
if (err) {
console.log(err);
} else if (results) {
console.log(results);
}
jdbc.close(function(err) {
if(err) {
console.log(err);
} else {
console.log("Connection closed successfully!");
}
});
};
jdbc.open(function(err, conn) {
if (conn) {
// SELECT statements are called with executeQuery
jdbc.executeQuery("select * from information_schema.tables", genericQueryHandler);
}
});
Error:
C:\Users\ABCD> node redshift.js
C:\Users\ABCD\node_modules\jdbc\lib\jdbc.js:62
if(this._props.getPropertySync('user') === undefined){
^
TypeError: undefined is not a function
at JDBCConn.initialize (C:\Users\ABCD\node_modules\jdbc\lib\jdbc.js:62:20)
at Object.<anonymous> (C:\Users\ABCD\Desktop\AngularJS\redshift.js:15:6)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Could you please let me know whether there is nay issue with the above mentioned node jdbc usage for redshift?
Thanks
tried with npm install jdbc
tried with npm install jdbc --msvs_version=2012
:
opened same ticket in java
module: joeferner/node-java#274
Hi...
This module has problem executing multiple queries simultaneously.
Reason: It uses the same connection.
In order to solve it:
Fix jdbc.js
Replace this line: module.exports = new JDBCConn();
with: module.exports = JDBCConn;
Fix the example:
var jdbc = new ( require('jdbc') );
var config = {
libpath: __dirname + 'path/to/jdbc.jar',
drivername: 'com.java.driverclass',
url: 'url/to/database'
};
jdbc.initialize(config, function(err, res) {
if (err) {
console.log(err);
}
});
I'm working with h2 database and for this query
select investor.id as id1, investment.id as id2
from investor, investment_investor, investment
where
investor.id = investment_investor.investorid
AND
investment.id = investment_investor.investmentid
limit 1
In returned results the column names are ID and ID
I looked at the
https://github.com/CraZySacX/node-jdbc/blob/master/lib/jdbc.js#L98
where to get column name the getColumnName method is used
var colname = rsmd.getColumnNameSync(i);
For h2 database however the getColumnName gives ID for both columns
If I switch the line to use .getColumnLabel method instead
var colname = rsmd.getColumnLabelSync(i);
it gives the correct names for both columns which are ID1 and ID2
According to javadoc from here
http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSetMetaData.html#getColumnLabel(int)
Gets the designated column's suggested title for use in printouts and displays. The suggested title is usually specified by the SQL AS clause. If a SQL AS is not specified, the value returned from getColumnLabel will be the same as the value returned by the getColumnName method.
So I think it would be better to use getColumnLabel method as it will give more correct column names in case where users use AS in their queries
I'm working with an H2 DB that is using signed BIGINT(19) values that are being manually converted after parsing results. Since the API refactor, using toObjArray is converting internally using Int causing out of range error:
/node_modules/jdbc/lib/resultset.js:100
result[cmd.label] = self._rs'get' + type + 'Sync';
Error: Error running instance method
org.h2.jdbc.JdbcSQLException: Numeric value out of range: "47475721164246888" [22003-176]
I was able to work around the error by changing to the String type for BIGINT in ResultSet():
typeNames[java.getStaticFieldValue("java.sql.Types", "BIGINT")] = "String";
Also did this to support VARBINARY:
typeNames[java.getStaticFieldValue("java.sql.Types", "VARBINARY")] = "String";
Are these features in your road map? If not, would you help me to add theme by myself?
tnx
In the old API it used to be possible to specify a driver name. Is this still possible? I've been digging around but haven't seen the option.
C:\RestAPIs\WebAPI\node_modules\jdbc\node_modules\java>node "C:\Program Files\no
dejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp
.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Command failed:
gyp ERR! stack at ChildProcess.exithandler (child_process.js:647:15)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:755:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:822:
5)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\RestAPIs\WebAPI\node_modules\jdbc\node_modules\java
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the java package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls java
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "jdbc"
npm ERR! cwd C:\RestAPIs\WebAPI
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\RestAPIs\WebAPI\npm-debug.log
npm ERR! not ok code 0
Hi,
I am facing issues while installing the jdbc module. I have pasted the error log.
I tried to resolve by installing nan module. But still the issue was not fixed.
Please help me in resolving this.
Currently using the following node and npm version.
kr@rk:$ node --version$ npm --version
v4.1.0
kr@rk:
2.14.3
Error log:
make: Entering directory /usr/local/lib/node_modules/jdbc/node_modules/java/build' CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o In file included from ../node_modules/nan/nan_new.h:190:0, from ../node_modules/nan/nan.h:80, from ../src/java.h:9, from ../src/java.cpp:1: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Signature>::return_t NanIntern::Factory<v8::Signature>::New(NanIntern::Factory<v8::Signature>::FTH, int, NanIntern::Factory<v8::Signature>::FTH*)’: ../node_modules/nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, NanIntern::Factory<v8::Signature>::FTH&, int&, NanIntern::Factory<v8::Signature>::FTH*&)’ return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv); ^ ../node_modules/nan/nan_implementation_12_inl.h:181:76: note: candidate is: In file included from ../src/java.h:5:0, from ../src/java.cpp:1: /usr/local/lib/node_modules/jdbc/node_modules/java/.node-gyp/4.1.0/include/node/v8.h:4675:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>) static Local<Signature> New( ^ /usr/local/lib/node_modules/jdbc/node_modules/java/.node-gyp/4.1.0/include/node/v8.h:4675:27: note: candidate expects 2 arguments, 4 provided In file included from ../src/java.h:9:0, from ../src/java.cpp:1: ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:171:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’ NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) { ^ ../node_modules/nan/nan.h:166:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) { ^ ../node_modules/nan/nan.h:564:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h:564:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:568:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h:568:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’: ../node_modules/nan/nan.h:575:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ../node_modules/nan/nan.h:575:67: note: candidates are: In file included from ../node_modules/nan/nan.h:25:0, from ../src/java.h:9, from ../src/java.cpp:1: /usr/local/lib/node_modules/jdbc/node_modules/java/.node-gyp/4.1.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match> NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /usr/local/lib/node_modules/jdbc/node_modules/java/.node-gyp/4.1.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ /usr/local/lib/node_modules/jdbc/node_modules/java/.node-gyp/4.1.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match> NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /usr/local/lib/node_modules/jdbc/node_modules/java/.node-gyp/4.1.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’ In file included from ../src/java.h:9:0, from ../src/java.cpp:1: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:579:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’: ../node_modules/nan/nan.h:586:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ make: *** [Release/obj.target/nodejavabridge_bindings/src/java.o] Error 1 make: Leaving directory
/usr/local/lib/node_modules/jdbc/node_modules/java/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/jdbc/node_modules/java
gyp ERR! node -v v4.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "jdbc"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the java package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls java
npm ERR! There is likely additional logging output above.
Now these types processed as type of previous column.
Need to treat them as buffer, string or stream.
Teradata limit the maximum open response to 16 ( see link below ), every 16 queries with the same connection will cause a fatal error, to avoid this error, responses need to be closed once you get all the result,
maybe you need to expose the result-set return from the db so it will be easy to handle it.
currently i am accessing the _rs object from the resultSet returned by executeQuery.
but its not part of the api
http://developer.teradata.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_5.html#CHDGCHBB
The link in README to the install instructions just links to the npm version of the README...
so how do you get it to install ? What are the pre-req libs required for gyp to compile against, etc etc ?
I am trying to use this to connect with HiveServer2 (Cloudera Impala)
I am following the config outlined here
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-JDBCClientSampleCode
and converting as needed to js
var config = {
libpath: '/home/ubuntu/downloads/impala_jdbc/hive-jdbc-0.13.1-cdh5.3.3.jar',
libs:'/home/ubuntu/downloads/impala_jdbc/lib/*.jar',
drivername: 'org.apache.hive.jdbc.HiveDriver',
url: 'jdbc:hive2://localhost:21050/;auth=noSasl' + process.argv[2]
};
but I am getting the following error
/home/ubuntu/PlayArea/ImpalaJDBC/node_modules/jdbc/lib/jdbc.js:22
java.classpath.push.apply(java.classpath, self._config.libs);
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at JDBCConn.initialize (/home/ubuntu/PlayArea/ImpalaJDBC/node_modules/jdbc/lib/jdbc.js:22:24)
at Object. (/home/ubuntu/PlayArea/ImpalaJDBC/server.js:12:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:935:3
node-gyp rebuild
CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o
In file included from ../src/java.cpp:2:
../src/java.h:7:10: fatal error: 'jni.h' file not found
#include <jni.h>
^
1 error generated.
make: *** [Release/obj.target/nodejavabridge_bindings/src/java.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/paulomcnally/Documents/bitbucket/teamSER/ser-web-api/node_modules/jdbc/node_modules/java
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
Process finished with exit code 1 at 21:08:35.
Execution time: 9,998 ms.
Hi,
I am using the node-jdbc package to connect to a hive2 server and was wondering whether it is possible to set the fetch size? I have some queries that are fairly big (500MB+) and would thus like to receive it in chunks.
Many thanks!
Teradata's Type 4 JDBC driver requires multiple jar files for it to work. The config only allows specification of a single jar file in libpath, if an array is specified I get a coredump.
Here is an example of my config:
var config = {
libpath: ['/home/nodedev/tdjdbc/tdgssconfig.jar', '/home/nodedev/tdjdbc/terajdbc4.jar'],
drivername: 'com.teradata.jdbc.TeraDriver',
url: 'jdbc:teradata://tdlocal/user=xyz,password=abc,TMODE=ANSI,CHARSET=UTF8',
};
I got this to work by modifying line 17 of jdbc.js in this fashion so that multiple jar files can be added...
// Customisation - required as TD JDBC Driver requires multiple jar files
if (Array.isArray(self._config.libpath)) {
for (var i = 0; i < self._config.libpath.length; i++) {
java.classpath.push(self._config.libpath[i]);
}
} else {
java.classpath.push(self._config.libpath);
}
I am new at this, so not sure what procedure to use for highlighting/contribute this, or if there is some other more elegant way to address this.
[email protected] install C:\Users\GNTM84\AppData\Roaming\npm\node_modules\jdbc\node_
modules\java
node-gyp rebuild
C:\Users\GNTM84\AppData\Roaming\npm\node_modules\jdbc\node_modules\java>if not d
efined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm
\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else
(node rebuild )
[node-java] Error: Command failed: C:\windows\system32\cmd.exe /s /c "reg query
"hklm\software\javasoft\java development kit""
ERROR: The system was unable to find the specified registry key or value.
Error: Command failed: C:\windows\system32\cmd.exe /s /c "reg query "hklm\softwa
re\wow6432node\javasoft\java development kit""
ERROR: The system was unable to find the specified registry key or value.
gyp: Call to 'node findJavaHome.js' returned exit status 1. while trying to load
binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files (x86)\nodejs\node_
modules\npm\node_modules\node-gyp\lib\configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\GNTM84\AppData\Roaming\npm\node_modules\jdbc\node_modules
java
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (
x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "jdbc"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the java package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls java
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\GNTM84\npm-debug.log
Could you please let me know what can be done to fix this.This is the major part in my project.I am totally stuck now.
I reinstalled every thing but still facing the same issue.Really frustrated
Also please let us know if there are any dependencies for installing jdbc module.
Getting the following error:
> node Connect.js
{ [Error: Could not find class com.sybase.jdbc3.jdbc.SybDriver
java.lang.NoClassDefFoundError: com/sybase/jdbc3/jdbc/SybDriver
Caused by: java.lang.ClassNotFoundException: com.sybase.jdbc3.jdbc.SybDriver
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
] cause: nodeJava_java_lang_NoClassDefFoundError {} }
{ [Error: Error running static method
java.sql.SQLException: No suitable driver found for [omitted]
at java.sql.DriverManager.getConnection(DriverManager.java:689)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
] cause: nodeJava_java_sql_SQLException {} }
I've downloaded jconn3.jar and placed it in the same folder as this script. I've used exact path and './' to connect it but I just get the above error.
This works with the same connection settings in RazorSql.
Hi,
I'm able to connect to IBM's BigSQL using SquirrelSQL, but using node-jdbc throws this error:
java.lang.NoClassDefFoundError: org/apache/hive/service/cli/thrift/TCLIService$Iface
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
Caused by: java.lang.ClassNotFoundException: org.apache.hive.service.cli.thrift.TCLIService$Iface
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 7 more
] cause: {} }
This is the error that jdbc.open returns. I thought this was related to the multiple jars issue referenced elsewhere, but I am adding all .jars to java.classpath like so:
java.classpath.push('./path/to/jar');
Immediately before calling jdbc.initialize.
Is there something else I'm overlooking entirely? IBM's documentation is difficult to parse.
When using the jdbc execute the jdbc driver expect a return resultset but not all databases give a return when executing an update statement so the jdbc crashes because the resultset is empty when getting the metadata data.
statement.executeQuery(sql, function (err, resultset) {
var resultset = resultset; //resultset is empty when database doesn't give a return
if (err) {
self.emit('execute', err, null);
} else {
resultset.getMetaData(function (err, rsmd) { //code crash
if (err) {
Writing this here to bounce debug tips.
First of all, yeahh for the awesome push on node-jdbc.
When setting up a min connection-pool (e.g 10), the event loop seems to be locked for a couple of seconds (~10 to 20s for a min of 10 connections). Time blocked is directly correlated with min connection pool config. After all initial connections open, the event loop unblock and proceeds as normal.
Any idea? JVM kickoff? Teradata Drivers? ... too complex?
Context:
it's not work when connect with SQL Server 2014
var config = {
libpath: './sqljdbc4.jar',
drivername: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
url: 'jdbc:sqlserver://locahost;databaseName=test;',
user: 'sa',
password: 'sa',
};
there‘s no any Response and Error message
When querying a DB2 table that contains a column with the type of TIME
using v0.0.14, an empty object is returned instead of the actual time:
Example table:
APPOINTMENT | START_TIME | END_TIME |
---|---|---|
First meeting | 09:00:00 | 13:30:00 |
Querying this table with v0.0.14 will return this:
[
{
APPOINTMENT: 'First meeting',
START_TIME: {},
END_TIME: {}
}
]
When i was trying getting connection to jdbc with in fibers. It was working in progress but no returning results forever. This was not working in meteor also
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000104310bde, pid=19077, tid=1299
#
# JRE version: Java(TM) SE Runtime Environment (7.0_80-b05) (build 1.7.0_80-ea-b05)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.80-b07 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x310bde]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/vahakn/Sites/gk-follower-backend/hs_err_pid19077.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
This error occasionally comes up when querying Impala using the new jdcb version. The queries I had been using before the patch remain unchanged. Any idea what the issue might be or what the best way to debug would be?
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.