[ https://issues.apache.org/jira/browse/SCB-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated SCB-741: ----------------------------- Affects Version/s: (was: saga-0.3.0) > Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long > for column 'payloads' at row 1 > ------------------------------------------------------------------------------------------------------------ > > Key: SCB-741 > URL: https://issues.apache.org/jira/browse/SCB-741 > Project: Apache ServiceComb > Issue Type: Bug > Components: Saga > Environment: Mac,Intellij Idea > Reporter: justdebugit > Assignee: Gao Xin > Priority: Major > Fix For: saga-0.3.0 > > > I encounter an Exception at Alpha Server > {code:java} > Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long > for column 'payloads' at row 1 > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3974) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3912) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2683) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2486) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2079) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2013) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5104) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1998) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_102] > at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102] > at > org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) > ~[tomcat-jdbc-8.5.31.jar:na] > at com.sun.proxy.$Proxy106.executeUpdate(Unknown Source) ~[na:na] > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:895) > ~[org.eclipse.persistence.core-2.7.1.jar:na] > ... 60 common frames omitted > {code} > I find it's because payload bytes is more than 10240 > {code:java} > public class TxAbortedEvent extends TxEvent { > public TxAbortedEvent(String globalTxId, String localTxId, String > parentTxId, String compensationMethod, Throwable throwable) { > super(EventType.TxAbortedEvent, globalTxId, localTxId, parentTxId, > compensationMethod, 0, "", 0, > stackTrace(throwable)); > } > private static String stackTrace(Throwable e) { > StringWriter writer = new StringWriter(); > e.printStackTrace(new PrintWriter(writer)); > return writer.toString(); > } > } > {code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)