测试问题
来源:4-5 店铺注册之Service层的实现
皆逆旅者也
2021-03-19
10:27:39,290 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
10:27:39,290 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
10:27:39,290 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/D:/eclipse-workspace/o2o/target/classes/logback.xml]
10:27:39,313 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:27:39,315 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:27:39,316 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [consoleAppender]
10:27:39,319 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:27:39,346 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:27:39,346 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [debugAppender]
10:27:39,347 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@21:10 - no applicable action for [file], current ElementPath is [[configuration][appender][file]]
10:27:39,347 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@22:78 - no applicable action for [rollingPolicy], current ElementPath is [[configuration][appender][rollingPolicy]]
10:27:39,347 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@24:22 - no applicable action for [fileNamePattern], current ElementPath is [[configuration][appender][rollingPolicy][fileNamePattern]]
10:27:39,347 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@26:17 - no applicable action for [maxHistory], current ElementPath is [[configuration][appender][rollingPolicy][maxHistory]]
10:27:39,347 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@31:60 - no applicable action for [file], current ElementPath is [[configuration][appender][file]]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@32:12 - no applicable action for [level], current ElementPath is [[configuration][appender][file][level]]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@33:14 - no applicable action for [onMatch], current ElementPath is [[configuration][appender][file][onMatch]]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@34:17 - no applicable action for [onMismatch], current ElementPath is [[configuration][appender][file][onMismatch]]
10:27:39,348 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:27:39,348 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [infoAppender]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@41:10 - no applicable action for [file], current ElementPath is [[configuration][appender][file]]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@42:78 - no applicable action for [rollingPolicy], current ElementPath is [[configuration][appender][rollingPolicy]]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@44:22 - no applicable action for [fileNamePattern], current ElementPath is [[configuration][appender][rollingPolicy][fileNamePattern]]
10:27:39,348 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@46:17 - no applicable action for [maxHistory], current ElementPath is [[configuration][appender][rollingPolicy][maxHistory]]
10:27:39,348 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@51:60 - no applicable action for [file], current ElementPath is [[configuration][appender][file]]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@52:12 - no applicable action for [level], current ElementPath is [[configuration][appender][file][level]]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@53:14 - no applicable action for [onMatch], current ElementPath is [[configuration][appender][file][onMatch]]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@54:17 - no applicable action for [onMismatch], current ElementPath is [[configuration][appender][file][onMismatch]]
10:27:39,349 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:27:39,349 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [errorAppender]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@61:10 - no applicable action for [file], current ElementPath is [[configuration][appender][file]]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@62:78 - no applicable action for [rollingPolicy], current ElementPath is [[configuration][appender][rollingPolicy]]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@64:22 - no applicable action for [fileNamePattern], current ElementPath is [[configuration][appender][rollingPolicy][fileNamePattern]]
10:27:39,349 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@66:17 - no applicable action for [maxHistory], current ElementPath is [[configuration][appender][rollingPolicy][maxHistory]]
10:27:39,349 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:27:39,350 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@71:60 - no applicable action for [file], current ElementPath is [[configuration][appender][file]]
10:27:39,350 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@72:12 - no applicable action for [level], current ElementPath is [[configuration][appender][file][level]]
10:27:39,350 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@73:14 - no applicable action for [onMatch], current ElementPath is [[configuration][appender][file][onMatch]]
10:27:39,350 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@74:17 - no applicable action for [onMismatch], current ElementPath is [[configuration][appender][file][onMismatch]]
10:27:39,350 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.imooc.o2o] to DEBUG
10:27:39,350 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.imooc.o2o] to true
10:27:39,350 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [debugAppender] to Logger[com.imooc.o2o]
10:27:39,351 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [infoAppender] to Logger[com.imooc.o2o]
10:27:39,351 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [errorAppender] to Logger[com.imooc.o2o]
10:27:39,351 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
10:27:39,351 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [consoleAppender] to Logger[ROOT]
10:27:39,351 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:27:39,351 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@3f0846c6 - Registering current configuration as safe fallback point
2021-03-19 10:27:39.426[MLog-Init-Reporter]INFO com.mchange.v2.log.MLog-MLog clients using slf4j logging.
2021-03-19 10:27:39.539[main]INFO com.mchange.v2.c3p0.C3P0Registry-Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2021-03-19 10:27:39.841[main]INFO c.m.v2.c3p0.impl.AbstractPoolBackedDataSource-Initializing c3p0 pool… com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 2, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 10000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hge0w8agk2a5af1e3hv4j|5118388b, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.cj.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1hge0w8agk2a5af1e3hv4j|5118388b, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/o2o?userUnicode=true&characterEncoding=utf8&serviceTimezone=GMT%2B8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {password=******, user=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
2021-03-19 10:27:39.853[main]WARN com.mchange.v2.resourcepool.BasicResourcePool-Bad pool size config, start 3 < min 10. Using 10 as start.
2021-03-19 10:27:40.260[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Preparing: INSERT INTO tb_shop(owner_id,area_id,shop_category_id,shop_name, shop_desc,shop_addr,phone,shop_img,priority,create_time, last_edit_time,enable_status,advice) VALUES (?,?,?,?, ?,?,?,?,?,?, ?,?,?)
2021-03-19 10:27:40.260[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Preparing: INSERT INTO tb_shop(owner_id,area_id,shop_category_id,shop_name, shop_desc,shop_addr,phone,shop_img,priority,create_time, last_edit_time,enable_status,advice) VALUES (?,?,?,?, ?,?,?,?,?,?, ?,?,?)
2021-03-19 10:27:40.260[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Preparing: INSERT INTO tb_shop(owner_id,area_id,shop_category_id,shop_name, shop_desc,shop_addr,phone,shop_img,priority,create_time, last_edit_time,enable_status,advice) VALUES (?,?,?,?, ?,?,?,?,?,?, ?,?,?)
2021-03-19 10:27:40.260[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Preparing: INSERT INTO tb_shop(owner_id,area_id,shop_category_id,shop_name, shop_desc,shop_addr,phone,shop_img,priority,create_time, last_edit_time,enable_status,advice) VALUES (?,?,?,?, ?,?,?,?,?,?, ?,?,?)
2021-03-19 10:27:40.319[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Parameters: 1(Long), 1(Integer), 1(Long), 测试的店铺1(String), test1(String), test1(String), test1(String), null, null, 2021-03-19 10:27:40.234(Timestamp), 2021-03-19 10:27:40.234(Timestamp), 0(Integer), 审核中(String)
2021-03-19 10:27:40.319[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Parameters: 1(Long), 1(Integer), 1(Long), 测试的店铺1(String), test1(String), test1(String), test1(String), null, null, 2021-03-19 10:27:40.234(Timestamp), 2021-03-19 10:27:40.234(Timestamp), 0(Integer), 审核中(String)
2021-03-19 10:27:40.319[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Parameters: 1(Long), 1(Integer), 1(Long), 测试的店铺1(String), test1(String), test1(String), test1(String), null, null, 2021-03-19 10:27:40.234(Timestamp), 2021-03-19 10:27:40.234(Timestamp), 0(Integer), 审核中(String)
2021-03-19 10:27:40.319[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-> Parameters: 1(Long), 1(Integer), 1(Long), 测试的店铺1(String), test1(String), test1(String), test1(String), null, null, 2021-03-19 10:27:40.234(Timestamp), 2021-03-19 10:27:40.234(Timestamp), 0(Integer), 审核中(String)
2021-03-19 10:27:40.325[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-<== Updates: 1
2021-03-19 10:27:40.325[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-<== Updates: 1
2021-03-19 10:27:40.325[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-<== Updates: 1
2021-03-19 10:27:40.325[main]DEBUGcom.imooc.o2o.dao.ShopDao.insertShop-<== Updates: 1
1回答
-
翔仔
2021-03-19
同学调试一下,看看这个异常是具体在执行addShop里面的哪个方法,是insertshop还是updateshop表的时候报的,然后对比一下shopDAo.xml
00
相似问题