欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql-Mysql做了主从配置之后,启动项目就出现异常了。提示Hibernate什么的,不知道这么回事

程序员文章站 2022-05-26 22:01:21
...
mysqlhibernate运营

2016-02-25 13:38:51,353 [localhost-startStop-1] [test.ResourceBuilder] [INFO] - Hibernate operation: could not insert: [accessResources.BtnAndMenu]; uncategorized SQLException for SQL [insert into btn_and_menu (version, action, click, code, controller, icon, is_menu, label, link, parent_id, show_order, sys_type, title) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; SQL state [HY000]; error code [1665]; Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.; nested exception is java.sql.SQLException: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
2016-02-25 13:38:51,435 [localhost-startStop-1] [test.ResourceBuilder] [INFO] - [controller:orderSub, action:index, label:运营日志, dir:/images/icons/blueberry, img:logMgr.png, plugin:scaffolding]资源项初始化失败
2016-02-25 13:38:51,537 [localhost-startStop-1] [test.ResourceBuilder] [INFO] - [controller:orderSub, action:index, label:客户反馈, dir:/images/icons/blueberry, img:comment.png, plugin:scaffolding]资源项初始化失败
2016-02-25 13:38:51,636 [localhost-startStop-1] [test.ResourceBuilder] [INFO] - [controller:driverSignLog, action:index, label:车主签到, dir:/images/icons/blueberry, img:logMgr.png, plugin:scaffolding]资源项初始化失败
2016-02-25 13:38:51,707 [localhost-startStop-1] [org.hibernate.AssertionFailure] [ERROR] - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in accessResources.BtnAndMenu entry (don't flush the Session after an exception occurs)
at org.grails.datastore.gorm.GormStaticApi$_methodMissing_closure2.doCall(GormStaticApi.groovy:101)
at test.ResourceBuilder$_btnConfigAnalyer_closure1.doCall(ResourceBuilder.groovy:21)
at test.ResourceBuilder.btnConfigAnalyer(ResourceBuilder.groovy:20)
at accessResources.BtnAndMenuService$_$tt__initFromController_closure5.doCall(BtnAndMenuService.groovy:87)
at accessResources.BtnAndMenuService.$tt__initFromController(BtnAndMenuService.groovy:83)
at RbacBootStrap$_closure1.doCall(RbacBootStrap.groovy:13)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2016-02-25 13:38:51,713 [localhost-startStop-1] [test.ResourceBuilder] [INFO] - null id in accessResources.BtnAndMenu entry (don't flush the Session after an exception occurs)
2016-02-25 13:38:51,717 [localhost-startStop-1] [org.hibernate.AssertionFailure] [ERROR] - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in accessResources.BtnAndMenu entry (don't flush the Session after an exception occurs)
at org.grails.datastore.gorm.GormStaticApi$_methodMissing_closure2.doCall(GormStaticApi.groovy:101)
at test.ResourceBuilder$_btnConfigAnalyer_closure1.doCall(ResourceBuilder.groovy:21)
at test.ResourceBuilder.btnConfigAnalyer(ResourceBuilder.groovy:20)
at accessResources.BtnAndMenuService$_$tt__initFromController_closure5.doCall(BtnAndMenuService.groovy:87)
at accessResources.BtnAndMenuService.$tt__initFromController(BtnAndMenuService.groovy:83)
at RbacBootStrap$_closure1.doCall(RbacBootStrap.groovy:13)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2016-02-25 13:38:51,719 [localhost-startStop-1] [test.ResourceBuilder] [INFO] - null id in accessResources.BtnAndMenu entry (don't flush the Session after an exception occurs)
2016-02-25 13:38:51,722 [localhost-startStop-1] [org.hibernate.AssertionFailure] [ERROR] - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in accessResources.BtnAndMenu entry (don't flush the Session after an exception occurs)
at org.grails.datastore.gorm.GormStaticApi$_methodMissing_closure2.doCall(GormStaticApi.groovy:101)
at test.ResourceBuilder$_btnConfigAnalyer_closure1.doCall(ResourceBuilder.groovy:21)
at test.ResourceBuilder.btnConfigAnalyer(ResourceBuilder.groovy:20)
at accessResources.BtnAndMenuService$_$tt__initFromController_closure5.doCall(BtnAndMenuService.groovy:87)
at accessResources.BtnAndMenuService.$tt__initFromController(BtnAndMenuService.groovy:83)
at RbacBootStrap$_closure1.doCall(RbacBootStrap.groovy:13)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)