This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes UnsupportedOperationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "UnsupportedOperationException" Watch "UnsupportedOperationException" New topic
Author

UnsupportedOperationException

Ravikanth thota
Greenhorn

Joined: Apr 09, 2012
Posts: 24
Hi ,
I am using SQLServer database and Jboss server. While accessing the database iam getting the following error. I tried with both sqljdbc.jar and sqljdbc4.jar still iam getting the same error. can any one help me regarding this.

java.lang.UnsupportedOperationException: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
00:13:40,069 ERROR [STDERR] at com.microsoft.sqlserver.jdbc.SQLServerConnection.<init>(SQLServerConnection.java:223)
00:13:40,069 ERROR [STDERR] at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:840)


Ashwini Kashyap
Ranch Hand

Joined: Aug 30, 2012
Posts: 90
Hi,

This is mostly due to JDK version issue.
Which version of JDK are you using?

Make use JDK 1.6 version or above and sqljdbc4.jar.

Hope this helps.

Thanks and Regards,
Ashwini Kashyap | akashyap@infocepts.com | www.infocepts.com
Ravikanth thota
Greenhorn

Joined: Apr 09, 2012
Posts: 24
Ashwini Kashyap wrote:Hi,

This is mostly due to JDK version issue.
Which version of JDK are you using?

Make use JDK 1.6 version or above and sqljdbc4.jar.

Hope this helps.

Thanks and Regards,
Ashwini Kashyap | akashyap@infocepts.com | www.infocepts.com



I am using jdk1.6.0_30 and sqljdbc4.jar .. still iam getting the same problem
Ashwini Kashyap
Ranch Hand

Joined: Aug 30, 2012
Posts: 90
Try deleting work folder within the server and restart it.

Thanks and Regards,
Ashwini Kashyap | akashyap@infocepts.com | www.infocepts.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UnsupportedOperationException