node-sybase
node-sybase copied to clipboard
Getting NPE after putting ENCRYPT_PASSWORD=true in sybaseConfig.properties
It seems like the package might be more suitable for linux machines as I am running into issue while doing a development using it on Windows machine.
Error: java.lang.NullPointerException
at Socket.
Also, it would be helpful if we could enhance a bit of logging as the above err message does not tell much about where the error came in the JavaSybaseLink.jar
Hi Gulats,
I think this is because jconnect.jar its looking for another library to handle the encryption. I haven't packaged that library and I'm not 100% sure how to get this working. I have basically wrapped the jconnect lib and allow you to pass in parameters etc. I recommend that you open up the java source and test it independently of java script until you get it connected correctly to your database. If you do get this working please post back here with what you needed to do.
Cheers Rod
To anyone still having issues with this i fixed it by doing the following
- Add jconn4.jar to JavaSybaseLink/externalJars
- Update project.properties and replace
file.reference.jconn3.jar=externalJars/jconn3.jar
tofile.reference.jconn4.jar=externalJars/jconn4.jar
- Update JavaSybaseLink/src/SybaseDB.java and replace references to
com.sybase.jdbc3.jdbc.SybDriver;
to jdbc4com.sybase.jdbc4.jdbc.SybDriver;
- Rebuild the jar using apache ant via ant -buildfile build.xml