[
https://issues.apache.org/jira/browse/JCLOUDS-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874989#comment-13874989
]
Andrew Phillips commented on JCLOUDS-427:
-----------------------------------------
OK, this is interesting now...here's the error message:
ttrying to bind
'org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.rest.HttpClient,
A>' to 'interface org.jclouds.rest.HttpClient'. Input async class: 'interface
org.jclouds.rest.HttpAsyncClient'
So somehow the {{.where(new TypeParameter<A>() {}, async)}} part in
{code}
new TypeToken<SyncToAsyncHttpApiProvider<S, A>>() {
}.where(new TypeParameter<S>() {
}, sync).where(new TypeParameter<A>() {
}, async);
{code}
(https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/rest/config/BinderUtils.java#L101)
is not getting A bound to HttpAsyncClient..?
> Upgrading JDK from 1.7.0_45 to 1.7.0_51 causes problems when searching for
> interface implementations
> ----------------------------------------------------------------------------------------------------
>
> Key: JCLOUDS-427
> URL: https://issues.apache.org/jira/browse/JCLOUDS-427
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core
> Affects Versions: 1.7.0, 1.6.3
> Reporter: graham o'regan
>
> Upgrading JDK from 1.7.0_45 to 1.7.0_51 causes problems when searching for
> interface implementations
> Running 'mvn test' results in test failures similar to this;
> {code}
> Caused by: com.google.inject.CreationException: Guice creation errors:
> 1)
> org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.rest.HttpClient,
> A> cannot be used as a key; It is not fully specified.
> 2)
> org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.http.IntegrationTestClient,
> A> cannot be used as a key; It is not fully specified.
> 3) org.jclouds.rest.RestContext<org.jclouds.http.IntegrationTestClient, A>
> cannot be used as a key; It is not fully specified.
> 4) No implementation for org.jclouds.rest.HttpClient was bound.
> at
> org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
> 5) No implementation for org.jclouds.http.IntegrationTestClient was bound.
> at
> org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
> {code}
> I've tested using OpenJDK on Centos 6.4 and Oracle JDK on OS X 10.9 with the
> same results.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)