发帖    主题    评论    推荐    标签    作者    订阅    查搜    注册   登陆   关注
 
面向对象 设计模式 领域驱动设计 企业架构 框架 开发教程 微服务 CQRS 扩展性 并发编程 事件溯源 分布式 SOA

做onecase例子报错

2013-11-13 09:30
赞助商链接

在做onecase(domainEvent)例子是报错,请老师帮忙看看,指导一下。组件代码和老师中给的例子一样,调用代码如下:

AppUtil appUtil = new AppUtil();
IServiceSample serviceSample = (IServiceSample) appUtil.getService("serviceSample");
Assert.assertEquals(
"hello", serviceSample.eventPointEntry("hello"));

报出的错误如下:

09:25:58.328 [main] INFO JdonFramework - is ready.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.jdon.container.builder.StartablecomponentsRegistry.startStartableComponents(StartablecomponentsRegistry.java:54)
at com.jdon.container.builder.DefaultContainerBuilder.startApp(DefaultContainerBuilder.java:171)
at com.jdon.container.builder.ContainerDirector.startup(ContainerDirector.java:74)
at com.jdon.container.startup.ContainerSetupScript.startup(ContainerSetupScript.java:103)
at com.jdon.container.finder.ContainerFinderImp.findContainer(ContainerFinderImp.java:55)
at com.jdon.controller.service.ServiceFacade.getServiceFactory(ServiceFacade.java:57)
at com.jdon.controller.AppUtil.getService(AppUtil.java:53)
at com.lovcc.domainevent.Client.main(Client.java:12)
Caused by: java.lang.NoSuchMethodError: com.google.common.base.Objects.firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
at com.google.common.cache.CacheBuilder.getKeyStrength(CacheBuilder.java:529)
at com.google.common.cache.LocalCache.<init>(LocalCache.java:239)
at com.google.common.cache.LocalCache$LocalManualCache.<init>(LocalCache.java:4771)
at com.google.common.cache.CacheBuilder.build(CacheBuilder.java:803)
at com.jdon.components.guavacache.GuavaCacheProvider.start(GuavaCacheProvider.java:36)
... 12 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.jdon.container.builder.StartablecomponentsRegistry.startStartableComponents(StartablecomponentsRegistry.java:54)
at com.jdon.container.builder.DefaultContainerBuilder.startApp(DefaultContainerBuilder.java:171)
at com.jdon.container.builder.ContainerDirector.startup(ContainerDirector.java:74)
at com.jdon.container.startup.ContainerSetupScript.startup(ContainerSetupScript.java:103)
at com.jdon.container.finder.ContainerFinderImp.findContainer(ContainerFinderImp.java:55)
at com.jdon.controller.service.ServiceFacade.getServiceFactory(ServiceFacade.java:57)
at com.jdon.controller.AppUtil.getService(AppUtil.java:53)
at com.lovcc.domainevent.Client.main(Client.java:12)
Caused by: java.lang.NullPointerException
at com.jdon.components.guavacache.GuavaCacheProvider.clear(GuavaCacheProvider.java:69)
at com.jdon.controller.cache.CacheManager.clear(CacheManager.java:53)
at com.jdon.controller.cache.CacheManager.start(CacheManager.java:43)
... 12 more
09:25:58.551 [main] INFO JdonFramework - Jdon Framework started successfully!

2013-11-13 11:46

Ljava/lang/Object;Ljava/lang/Object;
估计包冲突,重复了,版本不对等等。

赞助商链接

赞助商链接

返回顶部

移动版 关于本站 使用帮助 联系反馈 最佳分辨率1366x768
OpenSource JIVEJDON Powered by JdonFramework Code © 2002-20 jdon.com