I have Java 8 update 101 and I'm using the jTDS 1.2.5
I received the following error:
org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property.
So I've a question: How can I know the compatibility of Java and jTDS?
I've checked on their site: http://jtds.sourceforge.net/
But I cannot find the java compatibility in the release note. The 1.2.5 jTDS works with java 7 but not 8 and it's written JDBC 3 in the release note
I may do not understand the error too.
I was using a 32 bit for Java and my application was install on 64 bit. That cannot work !
Thanks for your help #a_horse_with_no_name
Related
While trying to connect Dbeaver to Vertica, I keep getting the below error:
//
Can't create driver instance
Error creating driver 'Vertica' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can't load driver class 'com.vertica.jdbc.Driver'
Error creating driver 'Vertica' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can't load driver class 'com.vertica.jdbc.Driver'
ExceptionInInitializerError
java.lang.ExceptionInInitializerError
Index 1 out of bounds for length 1
Index 1 out of bounds for length 1
//
I tried using different JDBC drivers versions but the error remains the same.
I am using MacBookPro with M1 Pro.
I would appreciate any pointers to solve this issue.
I work on the Client Drivers team at Vertica. The problem most likely has to do with the JVM on your M1 macbook. If you try java -version do you get a number like 1.7.0_261 or 17? An M1 macbook will have the open JDK and you will have the simpler version numbering scheme. The Vertica JDBC driver has a bug and does not work with the newer style of version numbers used by JVMs like the one for the open JDK.
As a work around, if you can get a JVM that uses the 1.7 style versioning, that should prevent this from happening. It may be that the Open JDK is the only JVM you can use.
We have also fixed the issue in our latest driver code and plan to release it in our next release, which is due out in a few months. Our drivers are backwards compatible with older versions of Vertica, so you will be able to use the new driver without updating the Vertica server. See Vertica Client Drivers
Lastly, if your organization has a Vertica support plan, you can submit a support request on this issue. You will get notified when there is a driver you can download that resolves the issue.
Derby error on Windows 7
I have installed both 64 bit and 32 bit JDK's. Can't able to start the derby DB.
Derby 10.15 is for use with Java 9 and higher.
You are using Java 8.
You have two choices:
Upgrade your Java to Java 9
Get Derby 10.14, which supports Java 8
Note that on the Derby downloads page, the available releases are grouped by Java version.
I'm trying to connect to a remote server websphere server from my mac. I am using the websphere traditional v8.5 stub. I am able to connect to the server (my remote server is using java 8) but I am having some issues when compiling and running my code. I am getting an error saying project facet java 1.8 is not supported by WAS 8.5. I can see when I set my project facets to java 1.8 no runtimes are available. I attached the image of my project facets. I know where it says runtime compositions I need to get that up to java 1.8 instead of 1.7. I know how to do this on windows but I cannot find any info on how to do it using mac with the remote server stubs. Thanks in advance for any helpenter link description here
enter image description here
You might need to update your IDE. Java 8 wasn't supported until 8.5.5.9.
I have a 32 bit Oracle DB (version 9i - 9.2.0.7.0), a 64 bit Mac and am trying to connect to it using go-oci8 with Go Lang (version go1.11.1 darwin/amd64).
I used SQL-Developer 4.0.2 to successfully connect to the DB and then enabled InstantClient connection through it using this tutorial. So I've got things running from the Oracle Client's side.
I'm using InstantClient Version 11.2.0.4.0 (32-bit) for MacOS (basic and SDK), I've used mainly this tutorial almost successfully. After everything, the error I'm getting is:
github.com/mattn/go-oci8 ld: warning: ignoring file /Users/myusername/Downloads/instantclient_11_2/libclntsh.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Users/myusername/Downloads/instantclient_11_2/libclntsh.dylib Undefined symbols for architecture x86_64:
And then a long stack of symbols. Basically the Go oci8 library is trying to use C (which is 64 bit) and tries to build 64 bit files, which will then be used by Go. If I try with the 64 bit version of InstantClient, I have no problems, but I get a "driver: bad connection" error which is because 64bit won't work to connect some reason.
I have no idea what to do to resole this issue - can I somehow force the build of 32 bit files while using go get -u -v github.com/mattn/go-oci8? Or somehow make the 64 bit InstantClient version connect to the old 32 bit Oracle DB?
Any kind of help on how to get this running would be much appreciated.
Edit: I've tried 10.2 Oracle Client, but I can't connect it with go-oci8 (I'm assuming it doesn't support it). The error I get is ../github.com/mattn/go-oci8/oci8.go:113:25: could not determine kind of name for C.OCI_SYSASM
Final edit for people who have the same problem (coming on to a very old Oracle Database) - you can't interface with the readily provided solutions using Go. The libraries listed to work with Oracle operate with Client versions 11.2 and up.
The architecture of the Oracle Client have to match so architecture of your application. I.e. if your Go Lang is 64-bit then the Oracle Client have to be also 64-bit. It does not matter whether the database is 32 or 64-bit.
I think the main problem is, you cannot connect with an Oracle 11.2 Client to a (20 years old!) Oracle 9i database.
Check Client / Server Interoperability Support Matrix for Different Oracle Versions (Doc ID 207303.1) for details.
It says:
For connections between 10.2 (or higher) and 9.2 the 9.2 end MUST be
at 9.2.0.4 or higher. Connections between 10.2 (or higher) and
9.2.0.1, 9.2.0.2 or 9.2.0.3 have never been supported.
You did not tell us which version of "Oracle 9i" your ar using.
I have installed IBM JDK 7 with release 1 and i am try to run Hello world program with -Xmt option on Ubuntu 14(OS installed in Virtual Box), but runtime i got Command-line option not recognized: -Xmt.
[In IBM documentation they said to create tenant use -Xmt with java command.]
These features are no longer available in their latest release thats why.
Check the links: here and here
They say that the had some issues but the thing is they also removed it from the developers preview page so there is no way to actually test it.