Results 1 to 3 of 3
  1. #1
    Jack_Tauson_Sr is offline Senior Member
    Join Date
    Nov 2011
    Posts
    114
    Rep Power
    0

    Default Exception in thread "main" java.sql.SQLFeatureNotSupportedException

    I am getting following exception while using setArray while using preparedstatement

    Java Code:
    Exception in thread "main" java.sql.SQLFeatureNotSupportedException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at java.lang.Class.newInstance0(Class.java:372)
    at java.lang.Class.newInstance(Class.java:325)
    at com.mysql.jdbc.SQLError.notImplemented(SQLError.java:1329)
    at com.mysql.jdbc.JDBC4Connection.createArrayOf(JDBC4Connection.java:56)
    at project.Project.main(Project.java:295)
    I am pretty much sure it is because my JDBC doesn't support that operation.

    Since, I am using NetBeans, how can I determine or upgrade my driver so that I don't get that exception? Please advise

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: Exception in thread "main" java.sql.SQLFeatureNotSupportedException

    As far as I'm aware MySQL doesn't currently have an ARRAY type for a column, which is why you get the error.
    It's not the driver, it's the database.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Jack_Tauson_Sr is offline Senior Member
    Join Date
    Nov 2011
    Posts
    114
    Rep Power
    0

    Default Re: Exception in thread "main" java.sql.SQLFeatureNotSupportedException

    Okay, Thanks !

Similar Threads

  1. Replies: 1
    Last Post: 11-02-2012, 11:38 PM
  2. Replies: 2
    Last Post: 06-20-2012, 12:18 AM
  3. Replies: 5
    Last Post: 12-21-2011, 06:44 PM
  4. Replies: 14
    Last Post: 04-08-2011, 06:01 PM
  5. Replies: 5
    Last Post: 06-22-2010, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •