做onecase例子报错

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

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

报出的错误如下:

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! 
<p>

banq
2013-11-13 11:46
Ljava/lang/Object;Ljava/lang/Object;

估计包冲突,重复了,版本不对等等。

猜你喜欢