Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes UnsupportedOperationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
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
 
 
subject: UnsupportedOperationException