java.sql.SQLException

Unknown Types value

Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1655

  • via Google Groups by acdhirr, 1 week ago
    Unknown Types value
  • via Stack Overflow by AK.Sharma
    , 9 months ago
    Unknown Types value
  • via objectmix.com by Unknown author, 1 year ago
    ORA-12705: invalid or unknown NLS parameter value sp= ecified
  • Stack trace

    • java.sql.SQLException: Unknown Types value at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919) at com.mysql.jdbc.PreparedStatement.setObject(PreparedStatement.java:4314) at com.sun.rowset.JdbcRowSetImpl.decodeParams(JdbcRowSetImpl.java:766) at com.sun.rowset.JdbcRowSetImpl.execute(JdbcRowSetImpl.java:563) at com.advjdbc.database.chapter.StoreAndRetrieveImage.storeDataToTable(StoreAndRetrieveImage.java:108) at com.advjdbc.database.chapter.StoreAndRetrieveImage.start(StoreAndRetrieveImage.java:43) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(LauncherImpl.java:863)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    761 times, 7 hours ago
    154 times, 10 hours ago
    4 times, 2 days ago
    3 times, 2 days ago
    6 times, 4 days ago
    149 more bugmates