學習JF框架報錯,求banq老師幫幫忙

shanhestm發表於2013-11-14
做command例子時候報錯例子程式碼

10:50:16.181 [main] INFO  JdonFramework -  is ready.
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	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.AppUtil.getComponentInstance(AppUtil.java:62)
	at org.lovcc.command.TestMain.main(TestMain.java:11)
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)
	... 11 more
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	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.AppUtil.getComponentInstance(AppUtil.java:62)
	at org.lovcc.command.TestMain.main(TestMain.java:11)
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)
	... 11 more
10:50:16.370 [main] INFO  JdonFramework - Jdon Framework started successfully! 
<p class="indent">

相關文章