rodhoward / node-sybase

23 stars 55 forks source link

throw er; // Unhandled 'error' event #10

Closed rfiedler closed 7 years ago

rfiedler commented 7 years ago

Hi , Sybase Version : 11.92 jTDS Type 4 JDBC Driver (Using DBVisualizer) My NODEJS Version: 0.10.25

fiedler@huhomolog:/home/node/api$ nodejs server.js
NodeJs Started... listen

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:988:11)
    at Process.ChildProcess._handle.onexit (child_process.js:779:34)

This error raise while excute db.connect. (same parameters for DBVisualizer Works ! )

DBVisualizer Works with connection parameters dbvisualizer works with conecction parameters

NODE ERROR nodejs console error

MY CODE node code

What Happen's ? I need Help !

Tks !

rfiedler commented 7 years ago

Solved !

In Linux enviroment , JAVA_HOME required to application work !

arjunrao87 commented 6 years ago

Your solution gave me the hint I was looking for! Did not have java installed in my container. Wayyy too many hours spent on this :-)