我到了别人的项目,改了架包,然后报错,这个是哪里的错?架包问题?
Load map files in : null
Failed to reload all maps: null
java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at com.baidu.fis.util.MapCache.loadAllMap(MapCache.java:61)
at com.baidu.fis.util.MapCache.reloadMap(MapCache.java:23)
at com.baidu.fis.util.MapCache.init(MapCache.java:173)
at com.baidu.fis.servlet.MapListener.initMapCache(MapListener.java:65)
at com.baidu.fis.servlet.MapListener.contextInitialized(MapListener.java:40)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:843)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:533)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:816)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:458)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:329)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Start to listen directory : null
2017-01-12 13:58:30.568:WARN:oejw.WebAppContext:Scanner-1: Failed startup of context o.e.j.w.WebAppContext@53f628ba{/,[file:///E:/mavenWorkspace/labsforce/BackEnd/main20170112/certificate-main/certificate-main-web/target/certificate-main-web/, jar:file:///E:/mavenWorkspace/labsforce/BackEnd/main20170112/certificate-main/certificate-main-web/target/certificate-main-web/WEB-INF/lib/springfox-swagger-ui-2.5.0.jar!/META-INF/resources],UNAVAILABLE}
java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at com.baidu.fis.servlet.ListenerTask.<init>(ListenerTask.java:34)
at com.baidu.fis.servlet.MapListener.contextInitialized(MapListener.java:43)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:843)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:533)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:816)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:458)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:329)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
[2017-01-12 01:58:30,922] Artifact certificate-main-web:war exploded: Artifact is deployed successfully
[2017-01-12 01:58:30,922] Artifact certificate-main-web:war exploded: Deploy took 17,269 milliseconds
2017-01-12 14:06:09.501 [DubboClientHandler-192.168.0.124:18130-thread-3] INFO [Slf4jLogger.java] - [DUBBO] disconected from /192.168.0.124:18130,url:dubbo://192.168.0.124:18130/com.labeden.provider.resource.projectCenter.IAnalysisProvider?anyhost=true&application=certificate-main-web&check=false&codec=dubbo&default.loadbalance=leastactive&default.timeout=50000&dubbo=2.5.3&heartbeat=60000&interface=com.labeden.provider.resource.projectCenter.IAnalysisProvider&logger=slf4j&methods=postAnalysis,updateSelective,selectPage,selectOne,selectList,testByAnalysis,updateDelSelective,updateAnalysis,insert,insertBatch,selectCount&pid=7188&revision=1.0-SNAPSHOT&side=consumer×tamp=1484200700191, dubbo version: 2.5.3, current host: 192.168.0.77
2017-01-12 14:06:12.203 [DubboClientReconnectTimer-thread-2] WARN [Slf4jLogger.java] - [DUBBO] client reconnect to 192.168.0.124:18130 find error . url: dubbo://192.168.0.124:18130/com.labeden.provider.resource.projectCenter.IAnalysisProvider?anyhost=true&application=certificate-main-web&check=false&codec=dubbo&default.loadbalance=leastactive&default.timeout=50000&dubbo=2.5.3&heartbeat=60000&interface=com.labeden.provider.resource.projectCenter.IAnalysisProvider&logger=slf4j&methods=postAnalysis,updateSelective,selectPage,selectOne,selectList,testByAnalysis,updateDelSelective,updateAnalysis,insert,insertBatch,selectCount&pid=7188&revision=1.0-SNAPSHOT&side=consumer×tamp=1484200700191, dubbo version: 2.5.3, current host: 192.168.0.77
com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://192.168.0.124:18130/com.labeden.provider.resource.projectCenter.IAnalysisProvider?anyhost=true&application=certificate-main-web&check=false&codec=dubbo&default.loadbalance=leastactive&default.timeout=50000&dubbo=2.5.3&heartbeat=60000&interface=com.labeden.provider.resource.projectCenter.IAnalysisProvider&logger=slf4j&methods=postAnalysis,updateSelective,selectPage,selectOne,selectList,testByAnalysis,updateDelSelective,updateAnalysis,insert,insertBatch,selectCount&pid=7188&revision=1.0-SNAPSHOT&side=consumer×tamp=1484200700191) failed to connect to server /192.168.0.124:18130, error message is:Connection refused: no further information: /192.168.0.124:18130
at com.alibaba.dubbo.remoting.transport.netty.NettyClient.doConnect(NettyClient.java:124) ~[dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:280) ~[dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.remoting.transport.AbstractClient$1.run(AbstractClient.java:145) ~[dubbo-2.5.3.jar:2.5.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_102]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[?:1.8.0_102]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_102]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
Caused by: java.net.ConnectException: Connection refused: no further information: /192.168.0.124:18130
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.8.0_102]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:1.8.0_102]
at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150) ~[netty-3.7.0.Final.jar:?]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) ~[netty-3.7.0.Final.jar:?]
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) ~[netty-3.7.0.Final.jar:?]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) ~[netty-3.7.0.Final.jar:?]
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) ~[netty-3.7.0.Final.jar:?]
... 3 more
PS.这个项目是web项目,webapp存放着页面
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
空指针啊,从上往下一个个方法看看
估计是缺少jar包,或者相关jar包没有全部放到
webapp/WEB-INF/lib
从这个下手Caused by 网络问题 可能是连接拒绝了没有权限访问 这个解决了再看 Start to listen directory : null 你的web.xml文件中的监听器的配置(重要的jar包配置在web.xml文件中)有可能是那把这个jar包删除了 但是它在web.xml文件中配置的