繁体   English   中英

WSO2 GREG:MySQL SQLException错误的字符串值:'\\ xE2 \\ x80 \\ x91200…'

[英]WSO2 GREG : MySQL SQLException Incorrect string value: '\xE2\x80\x91200…'

运行wso2server.bat -Dsetup后出现以下错误

使用mysql_connector_java_5.1.38_bin_1.0.0.jar. Registry 5.1 Win 7 mysql_connector_java_5.1.38_bin_1.0.0.jar. Registry 5.1 Win 7

以前是否运行dbscripts\\mysql.sql并不重要。 该数据库肯定是使用create database regdb character set latin1

Caused by: java.sql.SQLException: Incorrect string value: '\xE2\x80\x91200...' for column 'UM_DESCRIPTION' at row 1
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
    at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
    at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
    at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
    at org.wso2.carbon.user.core.claim.dao.ClaimDAO.addClaimMapping(ClaimDAO.java:228)

我有同样的问题,我从拉丁文-1从表um_claim转换列UM_DESCRIPTION为UTF-8解决了这个。

在此处查看更多信息: 不正确的字符串值:'\\ xE2 \\ x80 \\ x91200 ..在Windows中使用Latin1启动时

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM