weibocom / motan

A cross-language remote procedure call(RPC) framework for rapid development of high performance distributed services.
Other
5.89k stars 1.78k forks source link

com.weibo.api.motan.config.handler.SimpleConfigHandler.register Exception! #57

Closed thisxulz closed 8 years ago

thisxulz commented 8 years ago

Hello, 我在本地Eclipse上运行没有问题,打成架包以后放到linux服务器上运行就报如下错误?是什么问题? Exception in thread "main" java.lang.NullPointerException at com.weibo.api.motan.config.handler.SimpleConfigHandler.register(SimpleConfigHandler.java:102) at com.weibo.api.motan.config.handler.SimpleConfigHandler.export(SimpleConfigHandler.java:77) at com.weibo.api.motan.config.ServiceConfig.doExport(ServiceConfig.java:211) at com.weibo.api.motan.config.ServiceConfig.export(ServiceConfig.java:129) at com.weibo.api.motan.config.springsupport.ServiceConfigBean.onApplicationEvent(ServiceConfigBean.java:90) at com.weibo.api.motan.config.springsupport.ServiceConfigBean.onApplicationEvent(ServiceConfigBean.java:42) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:776) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:485) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)

XuJun0909 commented 8 years ago

jar在windows下运行有问题吗

qdaxb commented 8 years ago

应该是classpath下没有对应registry的jar包。

thisxulz commented 8 years ago

确实是我打包的问题。。已成功