NutzCN Logo
问答 mvn install 错误, java.net.BindException: 地址已在使用
发布于 2380天前 作者 amwamw968 1752 次浏览 复制 上一个帖子 下一个帖子
标签:
[INFO ] 01:27:24.497 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.66-SNAPSHOT 
[INFO ] 01:27:24.498 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ...
[DEBUG] 01:27:24.498 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information:
[DEBUG] 01:27:24.498 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) -  - Default Charset : UTF-8
[DEBUG] 01:27:24.499 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) -  - Current . path  : /root/download/NutzWk/wk-app/wk-nb-web-api/.
[DEBUG] 01:27:24.499 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) -  - Java Version    : 1.8.0_161
[DEBUG] 01:27:24.499 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) -  - File separator  : /
[DEBUG] 01:27:24.503 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) -  - Timezone        : Asia/Shanghai
[DEBUG] 01:27:24.504 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) -  - OS              : Linux amd64
[DEBUG] 01:27:24.504 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) -  - ServerInfo      : jetty/9.4.10.v20180503
[DEBUG] 01:27:24.504 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) -  - Servlet API     : 3.1
[DEBUG] 01:27:24.504 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) -  - ContextPath     : 
[DEBUG] 01:27:24.504 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) -  - context.tempdir : /root/download/NutzWk/wk-app/wk-nb-web-api/temp
[DEBUG] 01:27:24.504 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) -  - MainModule      : cn.wizzer.app.web.commons.core.WebApiMainLauncher
[INFO ] 01:27:24.505 org.nutz.mvc.config.AbstractNutConfig.getAppRoot(AbstractNutConfig.java:81) - /WEB-INF/ not Found?!
[DEBUG] 01:27:24.505 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:239) - >> app.root = 
[INFO ] 01:27:24.505 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[DEBUG] 01:27:24.505 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) - @Views(DefaultViewMaker.class)
[DEBUG] 01:27:24.506 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:267) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[DEBUG] 01:27:24.511 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:185) -  > scan 'cn.wizzer'
[DEBUG] 01:27:24.520 org.nutz.resource.Scans.scan(Scans.java:280) - Found 92 resource by src( cn/wizzer/ ) , regex( ^.+[.]class$ )
[DEBUG] 01:27:24.585 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) -    >> add 'cn.wizzer.app.web.modules.controllers.open.ApiTestSignController'
[DEBUG] 01:27:24.585 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) -    >> add 'cn.wizzer.app.web.modules.controllers.open.ApiTestTokenController'
[DEBUG] 01:27:24.586 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) -    >> add 'cn.wizzer.app.web.modules.controllers.open.ApiTokenController'
[DEBUG] 01:27:24.586 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:155) - module class location 'file:/root/download/NutzWk/wk-app/wk-nb-web-api/target/classes/'
[DEBUG] 01:27:24.586 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:185) -  > scan 'cn.wizzer.app.web.commons.core'
[DEBUG] 01:27:24.588 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( cn/wizzer/app/web/commons/core/ ) , regex( ^.+[.]class$ )
[DEBUG] 01:27:24.588 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:196) - Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
[INFO ] 01:27:24.589 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
[INFO ] 01:27:24.590 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
[DEBUG] 01:27:24.590 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/open/api/test/test2'      >> (ApiTestSignController.java:23).test2 : Object     | @Ok(json ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 01:27:24.591 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/open/api/test/test1'      >> (ApiTestTokenController.java:23).test1 : Object     | @Ok(json ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 01:27:24.591 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/open/api/token/get'       >> (ApiTokenController.java:38).get      : Object     | @Ok(json ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
[INFO ] 01:27:24.592 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:221) - Found 3 module methods
[DEBUG] 01:27:24.592 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:307) - Localization: org.nutz.mvc.impl.NutMessageLoader('locales/')  dft<>
[DEBUG] 01:27:24.593 org.nutz.resource.Scans.scan(Scans.java:280) - Found 0 resource by src( locales/ ) , regex( ^.+[.]properties$ )
[DEBUG] 01:27:24.593 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) - Load Messages in 0 resource : [[]]
[DEBUG] 01:27:24.593 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) - Message Loaded, size = 0
[INFO ] 01:27:24.593 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nutz.Mvc[nutz] is up in 88ms
[INFO ] 01:27:24.594 org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:788) - Started o.e.j.w.WebAppContext@7331196b{/,[],AVAILABLE}
[ERROR] 01:27:24.594 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!!
java.net.BindException: 地址已在使用
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:340)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:308)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:398)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:112)
        at org.nutz.boot.AppContext.startServers(AppContext.java:306)
        at org.nutz.boot.NbApp.execute(NbApp.java:204)
        at org.nutz.boot.test.junit4.NbJUnit4Runner.runChild(NbJUnit4Runner.java:59)
        at org.nutz.boot.test.junit4.NbJUnit4Runner.runChild(NbJUnit4Runner.java:20)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
[DEBUG] 01:27:24.595 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'apiTest'<class cn.wizzer.test.ApiTest>
[DEBUG] 01:27:24.595 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) -     >> Load definition name=apiTest
[DEBUG] 01:27:24.595 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(apiTest) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 01:27:24.595 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) -     >> Make...'apiTest'<class cn.wizzer.test.ApiTest>
[DEBUG] 01:27:24.595 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'apiTest' to [app] 
[DEBUG] 01:27:24.595 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.wizzer.test.ApiTest without AOP
[DEBUG] 01:27:24.596 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 01:27:24.596 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'redisService'<class org.nutz.integration.jedis.RedisService>
[DEBUG] 01:27:24.596 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) -     >> Load definition name=redisService
[DEBUG] 01:27:24.596 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(redisService) in JsonLoader(paths=[org/nutz/integration/jedis/jedis.js])
[DEBUG] 01:27:24.596 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) -     >> Make...'redisService'<class org.nutz.integration.jedis.RedisService>
[DEBUG] 01:27:24.596 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'redisService' to [app] 
[DEBUG] 01:27:24.596 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.integration.jedis.RedisService without AOP
[DEBUG] 01:27:24.597 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'jedisAgent'<>
[DEBUG] 01:27:24.597 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) -     >> Load definition name=jedisAgent
[DEBUG] 01:27:24.597 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(jedisAgent) in JsonLoader(paths=[org/nutz/integration/jedis/jedis.js])
[DEBUG] 01:27:24.597 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) -     >> Make...'jedisAgent'<>
[DEBUG] 01:27:24.597 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'jedisAgent' to [app] 
[DEBUG] 01:27:24.597 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.integration.jedis.JedisAgent without AOP
[DEBUG] 01:27:24.597 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<>
appid:::wizzer
appkey:::257221db3f2741e598b6e1262f3ec882
params::::{
   "appid": "wizzer",
   "sign": "ce6d8299450e1ca48a1fd7e8748090f0",
   "nonce": "s5b0a9t72qhvfq865ab2ud28p1",
   "timestamp": "1525973244"
}
[DEBUG] 01:27:24.600 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [POST] path=/open/api/token/get : ApiTokenController.get(ApiTokenController.java:38)
[DEBUG] 01:27:24.600 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'apiTokenController'<class cn.wizzer.app.web.modules.controllers.open.ApiTokenController>
[DEBUG] 01:27:24.600 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) -     >> Load definition name=apiTokenController
[DEBUG] 01:27:24.600 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(apiTokenController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 01:27:24.600 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) -     >> Make...'apiTokenController'<class cn.wizzer.app.web.modules.controllers.open.ApiTokenController>
[DEBUG] 01:27:24.600 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'apiTokenController' to [app] 
[DEBUG] 01:27:24.601 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.wizzer.app.web.modules.controllers.open.ApiTokenController without AOP
[DEBUG] 01:27:24.602 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 01:27:24.602 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'tokenUtil'<class cn.wizzer.app.web.commons.utils.TokenUtil>
[DEBUG] 01:27:24.603 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) -     >> Load definition name=tokenUtil
[DEBUG] 01:27:24.603 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(tokenUtil) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 01:27:24.603 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) -     >> Make...'tokenUtil'<class cn.wizzer.app.web.commons.utils.TokenUtil>
[DEBUG] 01:27:24.603 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'tokenUtil' to [app] 
[DEBUG] 01:27:24.603 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.wizzer.app.web.commons.utils.TokenUtil without AOP
[DEBUG] 01:27:24.604 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'redisService'<class org.nutz.integration.jedis.RedisService>
[DEBUG] 01:27:24.605 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'redisService'<class org.nutz.integration.jedis.RedisService>
[DEBUG] 01:27:24.605 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 01:27:24.605 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'redisService'<class org.nutz.integration.jedis.RedisService>
[ERROR] 01:27:24.607 cn.wizzer.app.web.commons.filter.ApiSignFilter.match(ApiSignFilter.java:61) - Could not get a resource from the pool
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
        at redis.clients.util.Pool.getResource(Pool.java:53)
        at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)
        at redis.clients.jedis.JedisPool.getResource(JedisPool.java:16)
        at org.nutz.integration.jedis.JedisAgent.jedis(JedisAgent.java:49)
        at org.nutz.integration.jedis.JedisAgent.getResource(JedisAgent.java:54)
        at org.nutz.integration.jedis.RedisService.getJedis(RedisService.java:33)
        at org.nutz.integration.jedis.RedisService.get(RedisService.java:82)
        at cn.wizzer.app.web.commons.filter.ApiSignFilter.match(ApiSignFilter.java:48)
        at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:50)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
        at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:171)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
        at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:215)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.Server.handle(Server.java:531)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:132)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
        at java.lang.Thread.run(Thread.java:748)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 拒绝连接 (Connection refused)
        at redis.clients.jedis.Connection.connect(Connection.java:207)
        at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93)
        at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1767)
        at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:106)
        at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
        at redis.clients.util.Pool.getResource(Pool.java:49)
        ... 51 more
Caused by: java.net.ConnectException: 拒绝连接 (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at redis.clients.jedis.Connection.connect(Connection.java:184)
        ... 58 more
result::::{
   "code": -1,
   "msg": "系统异常"
}
[INFO ] 01:27:24.613 org.nutz.boot.NbApp.shutdown(NbApp.java:234) - ok, shutting down ...
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.473 sec <<< FAILURE!
test_water_test1(cn.wizzer.test.ApiTest)  Time elapsed: 0.012 sec  <<< ERROR!
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
        at redis.clients.util.Pool.getResource(Pool.java:53)
        at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)
        at redis.clients.jedis.JedisPool.getResource(JedisPool.java:16)
        at org.nutz.integration.jedis.JedisAgent.jedis(JedisAgent.java:49)
        at org.nutz.integration.jedis.JedisAgent.getResource(JedisAgent.java:54)
        at org.nutz.integration.jedis.RedisService.getJedis(RedisService.java:33)
        at org.nutz.integration.jedis.RedisService.get(RedisService.java:82)
        at cn.wizzer.test.ApiTest.test_water_test1(ApiTest.java:82)
        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:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at org.nutz.boot.test.junit4.NbJUnit4Runner.runChild(NbJUnit4Runner.java:60)
        at org.nutz.boot.test.junit4.NbJUnit4Runner.runChild(NbJUnit4Runner.java:20)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 拒绝连接 (Connection refused)
        at redis.clients.jedis.Connection.connect(Connection.java:207)
        at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93)
        at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1767)
        at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:106)
        at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
        at redis.clients.util.Pool.getResource(Pool.java:49)
        ... 37 more
Caused by: java.net.ConnectException: 拒绝连接 (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at redis.clients.jedis.Connection.connect(Connection.java:184)
        ... 44 more

[INFO ] 01:27:24.634 com.alibaba.dubbo.config.AbstractConfig$1.run(AbstractConfig.java:80) -  [DUBBO] Run shutdown hook now., dubbo version: 2.6.1, current host: 172.17.41.228
[INFO ] 01:27:24.635 com.alibaba.dubbo.registry.support.AbstractRegistryFactory.destroyAll(AbstractRegistryFactory.java:64) -  [DUBBO] Close all registries [], dubbo version: 2.6.1, current host: 172.17.41.228
[INFO ] 01:27:24.639 org.eclipse.jetty.server.AbstractConnector.doStop(AbstractConnector.java:332) - Stopped ServerConnector@9573584{HTTP/1.1,[http/1.1]}{0.0.0.0:9001}
[INFO ] 01:27:24.639 org.eclipse.jetty.server.session.HouseKeeper.stopScavenging(HouseKeeper.java:167) - node0 Stopped scavenging
[INFO ] 01:27:24.640 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoading.java:54) - Nutz.Mvc[nutz] is deposing ...
[INFO ] 01:27:24.641 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoading.java:70) - Nutz.Mvc[nutz] is down in 0ms
[INFO ] 01:27:24.643 org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:957) - Stopped o.e.j.w.WebAppContext@5026735c{/,[],UNAVAILABLE}

Results :

Tests in error: 
  test_water_test1(cn.wizzer.test.ApiTest): Could not get a resource from the pool

Tests run: 3, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Wk-Nb-Dubbo 5.0.1-SNAPSHOT ......................... SUCCESS [  0.219 s]
[INFO] wk-framework ....................................... SUCCESS [  0.953 s]
[INFO] wk-app ............................................. SUCCESS [  0.006 s]
[INFO] wk-model ........................................... SUCCESS [  0.450 s]
[INFO] wk-common .......................................... SUCCESS [  0.189 s]
[INFO] wk-nb-service-sys .................................. SUCCESS [  0.265 s]
[INFO] wk-nb-service-cms .................................. SUCCESS [  0.068 s]
[INFO] wk-nb-service-wx ................................... SUCCESS [  0.059 s]
[INFO] wk-nb-web-platform ................................. SUCCESS [  0.656 s]
[INFO] wk-nb-web-api ...................................... FAILURE [ 13.025 s]
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-wiki 5.0.1-SNAPSHOT ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.788 s
[INFO] Finished at: 2018-05-11T01:27:34+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project wk-nb-web-api: There are test failures.
[ERROR] 
[ERROR] Please refer to /root/download/NutzWk/wk-app/wk-nb-web-api/target/surefire-reports for the individual test results.
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
2 回复

把测试跳过嘛

mvn -Dmaven.test.skip=true install
添加回复
请先登陆
回到顶部