论坛首页 Java企业应用论坛

阿里巴巴Dubbo分布式服务框架已开源

浏览 266704 次
该帖已经被评为精华帖
作者 正文
   发表时间:2012-02-22  
javatar 写道
Letsgo 写道
请各位帮忙瞧瞧。谢谢
java.lang.NullPointerException
at com.alibaba.dubbo.registry.support.RegistryDirectory.<init>(RegistryDirectory.java:108)

你用的应该是还没有发布的2.1.0-SNAPSHOT版本,确实有一次构建(2月15号)是有空指针BUG,改用最新的2.1.0-SNAPSHOT版本,或用已发布的2.0.12版本。

源于增加分组聚合功能:(SVN Revision: 980, 2月15号)
http://code.alibabatech.com/fisheye/viewrep/dubbo/trunk/dubbo-registry/src/main/java/com/alibaba/dubbo/registry/support/RegistryDirectory.java?r1=955&r2=980

修复于:(SVN Revision: 982,2月17号)
http://code.alibabatech.com/fisheye/changelog/dubbo?cs=982

SNAPSHOT版本为中间版本,不稳定,请只作为试验使用。


嗯,没错,就是这个问题。非常感谢指正。
0 请登录后投票
   发表时间:2012-02-23   最后修改:2012-02-23
大家帮忙看看,我使用2.0.12版本 注册中心zookeeper
但不影响使用,就是老报这个 收集统计信息 错误


ERROR [星期四 二月 23 11:42:37 CST 2012:] [DubboMonitorSendTimer-thread-1] [] com.alibaba.dubbo.rpc.cluster.support.FailsafeClusterInvoker :  [DUBBO] Failsafe ignore exception: Failed to invoke the method count in the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service com.alibaba.dubbo.monitor.MonitorService from registry 192.168.0.92:2181 on the consumer 192.168.15.101 using the dubbo version 2.0.12. Please check if the providers have been started and registered., dubbo version: 2.0.12, current host: 192.168.15.101
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method count in the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service com.alibaba.dubbo.monitor.MonitorService from registry 192.168.0.92:2181 on the consumer 192.168.15.101 using the dubbo version 2.0.12. Please check if the providers have been started and registered.
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:239)
at com.alibaba.dubbo.rpc.cluster.support.FailsafeClusterInvoker.doInvoke(FailsafeClusterInvoker.java:46)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:229)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.count(proxy0.java)
at com.alibaba.dubbo.monitor.dubbo.DubboMonitor.send(DubboMonitor.java:114)
at com.alibaba.dubbo.monitor.dubbo.DubboMonitor$1.run(DubboMonitor.java:71)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
0 请登录后投票
   发表时间:2012-02-23   最后修改:2012-02-23
FQ_kevin 写道
大家帮忙看看,我使用2.0.12版本 注册中心zookeeper
但不影响使用,就是老报这个 收集统计信息 错误


这是因为你没有启动SimpleMonitor,或SimpleMonitor没有连上Zookeeper注册中心,参见:
http://code.alibabatech.com/wiki/display/dubbo/Administrator+Guide#AdministratorGuide-SimpleMonitorInstallation
0 请登录后投票
   发表时间:2012-02-24   最后修改:2012-02-24
在eclipse中引入 dubbo, 有4个module(dubbo-demo-consumer、dubbo-demo-provider、dubbo-monitor-simple、dubbo-registry-simple)一直存在下面的问题,目前没有找到好的解决办法,临时处理了一下。

maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e.


	<id>unpack</id>
	<phase>package</phase>
	<!-- goals>
	   <goal>unpack</goal>
	</goals  -->


谁有好的方法,请分享。谢谢。
0 请登录后投票
   发表时间:2012-02-24  
javatar 写道
FQ_kevin 写道
大家帮忙看看,我使用2.0.12版本 注册中心zookeeper
但不影响使用,就是老报这个 收集统计信息 错误


这是因为你没有启动SimpleMonitor,或SimpleMonitor没有连上Zookeeper注册中心,参见:
http://code.alibabatech.com/wiki/display/dubbo/Administrator+Guide#AdministratorGuide-SimpleMonitorInstallation



已经安装启动了 SimpleMonitor,并且连上了Zookeeper注册中心

还是会出现这个错。

能帮忙看看吗?
0 请登录后投票
   发表时间:2012-02-24  
忘了说了,使用的zookeeper 是3.4.2
0 请登录后投票
   发表时间:2012-02-24  
问题已解决,把SimpleMonitor里面替换为zookeeper-3.4.2.jar,增加slf4j-api-1.6.1.jar和slf4j-log4j12-1.6.1.jar ,解决问题
0 请登录后投票
   发表时间:2012-02-24  
FQ_kevin 写道
大家帮忙看看,我使用2.0.12版本 注册中心zookeeper
但不影响使用,就是老报这个 收集统计信息 错误


ERROR [星期四 二月 23 11:42:37 CST 2012:] [DubboMonitorSendTimer-thread-1] [] com.alibaba.dubbo.rpc.cluster.support.FailsafeClusterInvoker :  [DUBBO] Failsafe ignore exception: Failed to invoke the method count in the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service com.alibaba.dubbo.monitor.MonitorService from registry 192.168.0.92:2181 on the consumer 192.168.15.101 using the dubbo version 2.0.12. Please check if the providers have been started and registered., dubbo version: 2.0.12, current host: 192.168.15.101
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method count in the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service com.alibaba.dubbo.monitor.MonitorService from registry 192.168.0.92:2181 on the consumer 192.168.15.101 using the dubbo version 2.0.12. Please check if the providers have been started and registered.
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:239)
at com.alibaba.dubbo.rpc.cluster.support.FailsafeClusterInvoker.doInvoke(FailsafeClusterInvoker.java:46)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:229)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.count(proxy0.java)
at com.alibaba.dubbo.monitor.dubbo.DubboMonitor.send(DubboMonitor.java:114)
at com.alibaba.dubbo.monitor.dubbo.DubboMonitor$1.run(DubboMonitor.java:71)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)



你的问题估计和我一样,用了新版本的 zookeeper

你把SimpleMonitor里面替换为zookeeper-3.4.2.jar,增加slf4j-api-1.6.1.jar和slf4j-log4j12-1.6.1.jar ,解决问题
0 请登录后投票
   发表时间:2012-02-24  
搞错了

需要增加这个

dubbo.monitor.address=监控IP:7070
0 请登录后投票
   发表时间:2012-02-28   最后修改:2012-02-28

2012-2-28 9:22:08 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [New I/O server boss #1 ([id: 0x003c40f0, /0.0.0.0:20880])] but has failed to stop it. This is very likely to create a memory leak.
2012-2-28 9:22:08 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [DubboRegistryFailedRetryTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak.
2012-2-28 9:22:08 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [main-SendThread(192.168.255.76:2181)] but has failed to stop it. This is very likely to create a memory leak.
2012-2-28 9:22:08 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [main-EventThread] but has failed to stop it. This is very likely to create a memory leak.
2012-2-28 9:22:08 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080



每次在我shutdown tomcat 时都会出这个提示,有人遇到没有?
2 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics