org.hibernate.QueryTimeoutException: Could not execute JDBC batch update problem solving

com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update

When doing Hibernate bulk insert, I get this error org.hibernate.QueryTimeoutException:

 

The reason for the error is that the capacity of the table space is insufficient, and the space capacity needs to be increased; the first thing that comes to mind is that its capacity should be queried, so it should find a way to query its capacity and increase its capacity.

 

Possible cause: The data length is too long, exceeding the length limit of the field

 

Solution: Increase the length limit of the field

 

例:alter table table_name modify  column_name varchar(50);

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643848&siteId=291194637