nutz build:failed
https://travis-ci.org/github/nutzam/nutz/builds
https://api.travis-ci.org/v3/job/721281008/log.txt
org.nutz.dao.DaoException: !Nutz SQL Error: 'UPDATE t_pet SET name='A',alias='PdFKLDxKt9',age=4,mas=0,birthday='2020-08-26 17:36:05',price=0.0 WHERE id=2'
PreparedStatement:
'UPDATE t_pet SET name=?,alias=?,age=?,mas=?,birthday=?,price=? WHERE id=?'
CaseMessage=ERROR: duplicate key value violates unique constraint "t_pet_name_key"
Detail: Key (name)=(A) already exists.
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:110)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:65)
at org.nutz.dao.impl.interceptor.SayHiDaoInterceptor.filter(SayHiDaoInterceptor.java:16)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:63)
at org.nutz.dao.impl.interceptor.DaoTimeInterceptor.filter(DaoTimeInterceptor.java:23)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:63)
at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:63)
at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:138)
at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:163)
at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithTransaction(NutDaoRunner.java:109)
at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:93)
at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:79)
at org.nutz.trans.Trans.exec(Trans.java:174)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:77)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:242)
at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:254)
at org.nutz.dao.impl.EntityOperator.exec(EntityOperator.java:67)
at org.nutz.dao.impl.NutDao.update(NutDao.java:320)
at org.nutz.trans.SimpleTransTest$1.run(SimpleTransTest.java:44)
at org.nutz.trans.Trans.exec(Trans.java:174)
at org.nutz.trans.Trans.exec(Trans.java:132)
at org.nutz.trans.SimpleTransTest.test_update_rollback(SimpleTransTest.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "t_pet_name_key"
Detail: Key (name)=(A) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:645)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:495)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:488)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:494)
at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:311)
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:96)
... 49 more
XiaoBai
java.lang.RuntimeException: Quite!!!
at org.nutz.lang.Lang.makeThrow(Lang.java:138)
at org.nutz.trans.SimpleTransTest$2.run(SimpleTransTest.java:74)
at org.nutz.trans.Trans.exec(Trans.java:174)
at org.nutz.trans.Trans.exec(Trans.java:132)
at org.nutz.trans.SimpleTransTest.test_batch_update_rollback(SimpleTransTest.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.11 s - in org.nutz.trans.SimpleTransTest
[INFO] Running org.nutz.trans.TransactionTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.nutz.trans.TransactionTest
[INFO] Running org.nutz.trans.TransLevelTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.nutz.trans.TransLevelTest
[INFO] Running org.nutz.http.HttpTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.507 s - in org.nutz.http.HttpTest
[INFO] Running org.nutz.log.SystemLogAdapterTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.nutz.log.SystemLogAdapterTest
[INFO] Running org.nutz.log.Log4jTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.nutz.log.Log4jTest
[INFO] Running org.nutz.json.generic.GenericTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s - in org.nutz.json.generic.GenericTest
[INFO] Running org.nutz.json.JsonCommentTest
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.nutz.json.JsonCommentTest
[INFO] Running org.nutz.json.JsonTest
{
"\u4E2D\u6587": "\u5730\u7403",
"\t": "\t"
}
{ä¸æ–‡=地çƒ, = }
{"now":"2020-08-26 17:36:09"}
{"now":"2020-08-26 17:36:09 131"}
{"now":"2020-08-26 17:36:09"}
{"now":"2020-08-26"}
[{dongdong={age=80}}]
[{dongdong=null}]
{
"code": "200",
"describe": "ok"
}
{
"code": "200",
"describe": "ok"
}
{
"num1": "01.00",
"num2": "02.00"
}
{"date":"20200805"}
{
"abc": {
"map": null
}
}
{"date":"1970-01-01 08:00:00"}
{"date":"1969-12-31 16:00:00"}
{"xx":""}
{"name":""}
org.nutz.json.generic.IntKeyMap@3c8a7e38
{
"abc": {
"code": "1600",
"description": "待推å•"
}
}
{
"name": "t",
"index": 1
}
{
"date": "2020-08-26 17:36:09.144"
}
2018-02-20T21:53:39
2018-02-20T21:53:39
"2018-02-20 21:53:39"
{"localdt":"2018-02-20 21:53:39"}
2018-02-20T21:53:39
org.nutz.json.JsonException: this is my message
at org.nutz.json.entity.JsonEntity$1.toJson(JsonEntity.java:113)
at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:51)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.Json.toJson(Json.java:254)
at org.nutz.json.Json.toJson(Json.java:216)
at org.nutz.json.Json.toJson(Json.java:202)
at org.nutz.json.JsonTest.test_json_lost_exception_message(JsonTest.java:1203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
Caused by: java.lang.RuntimeException: this is my message
at org.nutz.json.JsonTest$PojoABC.toJson(JsonTest.java:1218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.nutz.json.entity.JsonEntity$1.toJson(JsonEntity.java:105)
... 31 more
{
"abc": 10012319000008971306
}
{
"abc": 12345678990012
}
{
"abc": "12345678990012"
}
[WARNING] Tests run: 99, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.055 s - in org.nutz.json.JsonTest
[INFO] Running org.nutz.json.JsonEntityTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in org.nutz.json.JsonEntityTest
[INFO] Running org.nutz.json.GenericTypeTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 s - in org.nutz.json.GenericTypeTest
[INFO] Running org.nutz.json.JsonRecursiveTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s - in org.nutz.json.JsonRecursiveTest
[INFO] Running org.nutz.json.CustomizedJsonTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.nutz.json.CustomizedJsonTest
[INFO] Running org.nutz.json.JsonCharsetTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.nutz.json.JsonCharsetTest
[INFO] Running org.nutz.resource.ScansTest
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 s - in org.nutz.resource.ScansTest
[INFO] Running org.nutz.resource.NutConfigTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s - in org.nutz.resource.NutConfigTest
[INFO] Running org.nutz.plugin.PlugsTest
2020-08-26 17:36:09,338 [main] INFO org.nutz.ioc.impl.NutIoc - ... NutIoc init complete
2020-08-26 17:36:09,340 [main] INFO org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@2085713965 is closing. startup date [20-08-26 17:36:09.338]
2020-08-26 17:36:09,340 [main] INFO org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@2085713965 is deposed. startup date [20-08-26 17:36:09.338]
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s - in org.nutz.plugin.PlugsTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] org.nutz.dao.test.mapping.RecordDaoTest.test_insert_with_autoinc_id(org.nutz.dao.test.mapping.RecordDaoTest)
[ERROR] Run 1: RecordDaoTest.test_insert_with_autoinc_id:24
[ERROR] Run 2: RecordDaoTest.test_insert_with_autoinc_id:24
[INFO]
[ERROR] org.nutz.dao.test.normal.SimpleDaoTest.test_coldefine_len(org.nutz.dao.test.normal.SimpleDaoTest)
[ERROR] Run 1: SimpleDaoTest.test_coldefine_len:884
[ERROR] Run 2: SimpleDaoTest.test_coldefine_len:884
[INFO]
[ERROR] Errors:
[ERROR] org.nutz.dao.test.mapping.DynamicManyManyTest.clear_links(org.nutz.dao.test.mapping.DynamicManyManyTest)
[ERROR] Run 1: DynamicManyManyTest>DaoCase.setUp:24->before:22 » Dao !Nutz SQL Error: 'INSERT...
[INFO] Run 2: PASS
[INFO]
[ERROR] org.nutz.dao.test.normal.SimpleDaoTest.test_integer_object_column(org.nutz.dao.test.normal.SimpleDaoTest)
[INFO] Run 1: PASS
[ERROR] Run 2: SimpleDaoTest.test_integer_object_column:280 » Dao !Nutz SQL Error: 'INSERT IN...
[INFO]
[ERROR] org.nutz.dao.test.normal.SimpleDaoTest.test_issue_1425(org.nutz.dao.test.normal.SimpleDaoTest)
[INFO] Run 1: PASS
[ERROR] Run 2: SimpleDaoTest.test_issue_1425:1344 » Dao !Nutz SQL Error: 'INSERT INTO t_pet(n...
[INFO]
[INFO]
[ERROR] Tests run: 2497, Failures: 2, Errors: 3, Skipped: 5
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:16 min
[INFO] Finished at: 2020-08-26T17:36:09+08:00
[INFO] Final Memory: 43M/661M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project nutz: There are test failures.
[ERROR]
[ERROR] Please refer to /home/travis/build/nutzam/nutz/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
travis_time:end:17d00e18:start=1598434371673587479,finish=1598434570086477414,duration=198412889935,event=script
[0K[31;1mThe command "mvn clean source:jar cobertura:cobertura package" exited with 1.[0m
Done. Your build exited with 1.