nutzam / nutzboot

NutzBoot,简称NB,是可靠的企业级微服务框架,提供自动配置,嵌入式web服务,分布式会话,服务治理,负载均衡,hystrix,RPC等一篮子解决方案
https://nutz.io
Apache License 2.0
501 stars 138 forks source link

java.lang.NoSuchMethodError: org.nutz.boot.AppContext.getServerPort(Ljava/lang/String;)I #93

Closed liubeihb closed 6 years ago

liubeihb commented 6 years ago
[DEBUG] 22:06:43.622 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:220) -     >> Make...'jedisStarter'<class org.nutz.boot.starter.redis.JedisStarter>
[DEBUG] 22:06:43.622 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'jedisStarter' to [app] 
[DEBUG] 22:06:43.622 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.redis.JedisStarter without AOP
[DEBUG] 22:06:43.625 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( org/nutz/integration/jedis/jedis.js ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 22:06:43.625 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [org/nutz/integration/jedis/jedis.js]
[DEBUG] 22:06:43.625 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 9 bean define from path=[org/nutz/integration/jedis/jedis.js] --> [redisService, jedisCluster, jedisClusterNodes, jedisClusterWrapper, pubSubService, jedisPoolConfig, jedisPool, jedisAgent, redis]
[INFO ] 22:06:43.637 org.eclipse.jetty.util.log.Log.initialized(Log.java:192) - Logging initialized @632ms to org.eclipse.jetty.util.log.Slf4jLog
[ERROR] 22:06:43.709 org.nutz.boot.NbApp._run(NbApp.java:208) - something happen!!
java.lang.NoSuchMethodError: org.nutz.boot.AppContext.getServerPort(Ljava/lang/String;)I
    at org.nutz.boot.starter.jetty.JettyStarter.getPort(JettyStarter.java:227)
    at org.nutz.boot.starter.jetty.JettyStarter.init(JettyStarter.java:126)
    at org.nutz.boot.AppContext.init(AppContext.java:274)
    at org.nutz.boot.NbApp._run(NbApp.java:194)
    at org.nutz.boot.NbApp.run(NbApp.java:170)
    at com.weixin.vote.MainLauncher.main(MainLauncher.java:41)
[DEBUG] 22:06:43.729 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:163) - Get 'jettyStarter'<interface org.nutz.boot.starter.ServerFace>
[INFO ] 22:06:43.731 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:284) - org.nutz.ioc.impl.NutIoc@4298289 is closing. startup date [18-01-05 22:06:43.500]
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'jedisStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'druidWebStatServletStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'druidWebStatFilterStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'dataSourceStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'nutDaoStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object '$views_velocity' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'whaleFilterStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'nutFilterStarter' ...
[DEBUG] 22:06:43.732 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) - Depose object 'jettyStarter' ...
liubeihb commented 6 years ago

这个something happen 是什么问题啊?

wendal commented 6 years ago

等5分钟, 正在重新build, CI的原因

wendal commented 6 years ago

https://travis-ci.org/nutzam/nutzboot

wendal commented 6 years ago

原因在于build已经成功,然后deploy的时候, 前几个库成功了, 后面失败了, 出现不一致了

haoqoo commented 6 years ago

今晚能解决吗?正在和@liubeihb
写个项目……

wendal commented 6 years ago

肯定能的, 放心

haoqoo commented 6 years ago

威武

wendal commented 6 years ago

mvn -U package吧, 已经build完deploy完成了

haoqoo commented 6 years ago

ok

wendal commented 6 years ago

ok了的话, 记得回一下话哦

haoqoo commented 6 years ago

不行

haoqoo commented 6 years ago

睡啦

liubeihb commented 6 years ago

老哥. 问题依旧

liubeihb commented 6 years ago

@wendal

wendal commented 6 years ago

命令行下试过了吗?

wendal commented 6 years ago

mvn -U clean package

我刚在服务器测试一下, 没问题的呢

liubeihb commented 6 years ago

我刚才试了. mvn -U package 也看到包的更新了. 还是刚才的问题. 我再来试下mvn -U clean package 命令

wendal commented 6 years ago

pom.xml里面的nutzboot-starter依赖删掉

haoqoo commented 6 years ago

删除后,可以启动。安心睡觉啦

haoqoo commented 6 years ago

能发个固定版本吗?

wendal commented 6 years ago

下周就发