NutzCN Logo
问答 maven打包提示test in error
发布于 2686天前 作者 wx_nuamhkfo9e4l9ket7krl 4583 次浏览 复制 上一个帖子 下一个帖子
标签: nutzcn

使用maven package打包时提示如下错误,我是把2.x分支代码导入eclipse然后打包

Tests in error: 
  test_delete_list(net.wendal.nutzbook.SimpleTest): org.nutz.el.ElException: no such key=ig
  test_pojo_sql(net.wendal.nutzbook.SimpleTest): !Nutz SQL Error: 'INSERT INTO t_pojo_sql(name,nickname,age,ct,createTime) VALUES('44o5i888moh1pr1pahvkpgl5m8','6rkfd191ecjudr6tgsojthbm1u',0,1502784373955,'NULL') '
  test_complex_prefix(net.wendal.nutzbook.SimpleTest)
  test_left_join(net.wendal.nutzbook.SimpleTest): !Nutz SQL Error: 'select u.* , p.* from t_user u left join t_user_profile p on u.id = p.u_id where u.name='wendal''
  test_query(net.wendal.nutzbook.SimpleTest): !Nutz SQL Error: 'INSERT INTO t_pojo_sql(name,nickname,age,ct,createTime) VALUES('6e68vumeokjn0r49gnmub08dfe','NULL',0,1502784399855,'NULL') '
  testMap(org.nutz.dao.mapper.SimpleMapperTest): sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class

12 回复

把test跳过吧

谢谢 打包成功了 但是启动tomcat后 默认访问哪个网址呀
另外 tomcat里面也报一些org.nutz.dao.DaoException:!Nutz SQL Error

贴报错信息

15-Aug-2017 17:07:45.612 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Shiro environment
15-Aug-2017 17:07:50.529 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.dao.DaoException: !Nutz SQL Error: 'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(3,'admin','76232a66bf86a59d7d55920e69308b657984a83cc5b771da126624669e79f6b4','c14149a93c2b4481aaedce18b38f8e5f',false,'2017-08-15 17:07:50','2017-08-15 17:07:50') '
PreparedStatement:
'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(?,?,?,?,?,?,?) '
CaseMessage=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.
at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(LoadingException.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:990)
at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.dao.DaoException: !Nutz SQL Error: 'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(3,'admin','76232a66bf86a59d7d55920e69308b657984a83cc5b771da126624669e79f6b4','c14149a93c2b4481aaedce18b38f8e5f',false,'2017-08-15 17:07:50','2017-08-15 17:07:50') '
PreparedStatement:
'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(?,?,?,?,?,?,?) '
CaseMessage=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.
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:104)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
at org.nutz.dao.impl.interceptor.DaoTimeInterceptor.filter(DaoTimeInterceptor.java:23)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.plugins.cache.dao.DaoCacheInterceptor._exec(DaoCacheInterceptor.java:28)
at org.nutz.plugins.cache.dao.CachedNutDaoExecutor.exec(CachedNutDaoExecutor.java:187)
at org.nutz.plugins.cache.dao.DaoCacheInterceptor.filter(DaoCacheInterceptor.java:18)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:158)
at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithTransaction(NutDaoRunner.java:104)
at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:88)
at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:74)
at org.nutz.trans.Trans.exec(Trans.java:174)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:72)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:245)
at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:257)
at org.nutz.dao.impl.EntityOperator.exec(EntityOperator.java:55)
at org.nutz.dao.impl.NutDao.insert(NutDao.java:105)
at net.wendal.nutzbook.service.UserService.add(UserService.java:35)
at net.wendal.nutzbook.service.UserService$$NUTZAOP._aop_invoke(UserService.java:1)
at org.nutz.aop.InterceptorChain.invoke(InterceptorChain.java:77)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:57)
at org.nutz.plugins.slog.aop.SlogAopInterceptor.filter(SlogAopInterceptor.java:68)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at net.wendal.nutzbook.plugin.DynamicInterceptor.filter(DynamicInterceptor.java:36)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at net.wendal.nutzbook.service.UserService$$NUTZAOP.add(UserService.java:1)
at net.wendal.nutzbook.MainSetup.init(MainSetup.java:104)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
... 19 more
Caused by: 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.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3970)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3906)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2677)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2549)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1192)
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:2931)
at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:2929)
at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:131)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:493)
at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:308)
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:90)
... 51 more

15-Aug-2017 17:07:50.543 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Cleaning up Shiro Environment
15-Aug-2017 17:14:14.381 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Shiro environment
15-Aug-2017 17:14:19.314 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.dao.DaoException: !Nutz SQL Error: 'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(4,'admin','e7dd4fa2b6537b8c8bce8a23a2f7c351eea071c8691c6e719f05a9f05c4258ae','5d2a0cc5fe6248e9802e26e5de8f6ece',false,'2017-08-15 17:14:19','2017-08-15 17:14:19') '
PreparedStatement:
'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(?,?,?,?,?,?,?) '
CaseMessage=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.
at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(LoadingException.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:990)
at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.dao.DaoException: !Nutz SQL Error: 'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(4,'admin','e7dd4fa2b6537b8c8bce8a23a2f7c351eea071c8691c6e719f05a9f05c4258ae','5d2a0cc5fe6248e9802e26e5de8f6ece',false,'2017-08-15 17:14:19','2017-08-15 17:14:19') '
PreparedStatement:
'INSERT INTO t_user(id,name,passwd,salt,locked,ct,ut) VALUES(?,?,?,?,?,?,?) '
CaseMessage=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.
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:104)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
at org.nutz.dao.impl.interceptor.DaoTimeInterceptor.filter(DaoTimeInterceptor.java:23)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.plugins.cache.dao.DaoCacheInterceptor._exec(DaoCacheInterceptor.java:28)
at org.nutz.plugins.cache.dao.CachedNutDaoExecutor.exec(CachedNutDaoExecutor.java:187)
at org.nutz.plugins.cache.dao.DaoCacheInterceptor.filter(DaoCacheInterceptor.java:18)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:158)
at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithTransaction(NutDaoRunner.java:104)
at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:88)
at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:74)
at org.nutz.trans.Trans.exec(Trans.java:174)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:72)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:245)
at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:257)
at org.nutz.dao.impl.EntityOperator.exec(EntityOperator.java:55)
at org.nutz.dao.impl.NutDao.insert(NutDao.java:105)
at net.wendal.nutzbook.service.UserService.add(UserService.java:35)
at net.wendal.nutzbook.service.UserService$$NUTZAOP._aop_invoke(UserService.java:1)
at org.nutz.aop.InterceptorChain.invoke(InterceptorChain.java:77)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:57)
at org.nutz.plugins.slog.aop.SlogAopInterceptor.filter(SlogAopInterceptor.java:68)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at net.wendal.nutzbook.plugin.DynamicInterceptor.filter(DynamicInterceptor.java:36)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at net.wendal.nutzbook.service.UserService$$NUTZAOP.add(UserService.java:1)
at net.wendal.nutzbook.MainSetup.init(MainSetup.java:104)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
... 19 more
Caused by: 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.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3970)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3906)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2677)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2549)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1192)
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:2931)
at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:2929)
at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:131)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:493)
at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:308)
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:90)
... 51 more

15-Aug-2017 17:14:19.323 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Cleaning up Shiro Environment

发代码或日志用按钮啊!!

又是mysql的binlog-format的问题, 改一下my.ini/my.conf里面的binlog-format设置就好了

https://nutz.cn/yvr/search?q=mysql+binlog+format

我是部署在windows服务下的 改了binlog-format=row 然后重启mysql
重启tomcat服务后 访问
http://localhost:8080/nutz报404

webapps下的文件名是什么

谢谢 现在都好了 但是页面打开有乱码 右侧栏 显示 涓嬭浇Android/ios瀹㈡埛绔�
另外我在eclipse打开源码后设置了utf-8 但是还是有一些配置文件中文是乱码
还有些js文件报错 是什么原因

tomcat改了 没看到效果 我查看页面源码 是侧边栏sidebar那一块有乱码问题。

<div id='sidebar'>
  <div class='panel'>
    <div class='inner'>
      <p>Nutz社区</p>

      <div>
        <a href="/nutzbook-2.9.5/yvr/u/oauth/github" data-intro="浣跨敤Github鐧婚檰鏄帹鑽愭柟寮�" data-position="bottom">
          <span class="span-info">
            鎺ㄨ崘GitHub涓�閿櫥褰�
          </span>
        </a>
        
      	<a href='/nutzbook-2.9.5/oauth/qq' id='qq_btn' data-intro="QQ鐧婚檰,鎴戜笉鎯宠В閲婁簡">
      		<img src="/nutzbook-2.9.5/rs/images/qq_connect.png"/>
      	</a>
      </div>
    </div>
  </div>
  

  <!-- 绂佺敤 鏃犱汉鍥炲鐨勮瘽棰�-->
  
  <div class='panel'>
    <div class='header'>
      <span class='col_fade'>瀛愯鍧�</span>
    </div>

那就是没改对

问题解决了 原因是
nutz-book-project-master\src\main\webapp\WEB-INF\templates\beetl\yvr下 sidebar.html里面中文乱码

添加回复
请先登陆
回到顶部