2014年8月19日星期二

jclouds Guice creation error

用jclouds舊lib會有Error,如果java version 大過1.7.0_45,用java 1.8一樣會有

解決方法:一係downgrade java, 一係upgrade jcloud,但jclouds搬左去apache,同埋個interface 唔同晒…

com.google.inject.CreationException: Guice creation errors:

1) org.jclouds.rest.RestContext cannot be used as a key; It is not fully specified.

1 error
    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
    at com.google.inject.Guice.createInjector(Guice.java:95)
    at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:401)





ref: http://stackoverflow.com/questions/21536498/error-creating-blobcontext-using-jclouds-in-a-spring-mvc-application

沒有留言: