[jbosstools-issues] [JBoss JIRA] (JBIDE-21983) RuntimeException when trying to see Docker containers/images

Xavier Coulon (JIRA) issues at jboss.org
Tue Mar 29 05:27:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-21983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183031#comment-13183031 ] 

Xavier Coulon commented on JBIDE-21983:
---------------------------------------

[~akazakov] I could not reproduce the issue but after looking for some information, I found this:
http://stackoverflow.com/questions/25740556/error-while-using-jersey-client-in-osgi-no-generator-was-provided

In the OSGi console, I could verify that all the bundles referenced in the SO response were actually {{RESOLVED}} or {{STARTED}} in my case:

{code}
osgi> ss | grep hk
1074	ACTIVE      org.glassfish.hk2.api_2.3.0.b10_v201508191500
1075	ACTIVE      org.glassfish.hk2.locator_2.3.0.b10_v201508191500
1076	ACTIVE      org.glassfish.hk2.osgi-resource-locator_2.3.0.b10_v201508191500
1077	ACTIVE      org.glassfish.hk2.utils_2.3.0.b10_v201508191500
true
{code}
{code}
osgi> ss | grep javax.inject
41	RESOLVED    javax.inject_1.0.0.v20091030
true
{code}
{code}
osgi> ss | grep guava
16	RESOLVED    com.fasterxml.jackson.datatype.jackson-datatype-guava_2.5.0.v201504151636
20	RESOLVED    com.google.guava_15.0.0.v201403281430
21	RESOLVED    com.google.guava_13.0.0
1079	RESOLVED    org.glassfish.jersey.bundles.repackaged.jersey-guava_2.14.0.v201504151636
true
{code}

Could you please let me know if your runtime has these bundles, too ?

Also, this has been reported in JBDS-3688, too

> RuntimeException when trying to see Docker containers/images
> ------------------------------------------------------------
>
>                 Key: JBIDE-21983
>                 URL: https://issues.jboss.org/browse/JBIDE-21983
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: docker
>    Affects Versions: 4.3.1.CR1
>            Reporter: Alexey Kazakov
>            Assignee: Xavier Coulon
>            Priority: Critical
>
> 1. CDK sever adapter -> Show In -> Docker Explorer
> 2. Unfold Containers or Images of the rhel-ose CDK Server:
> {code}
> java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
> 	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:152)
> 	at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
> 	at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:95)
> 	at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:106)
> 	at org.glassfish.jersey.client.JerseyWebTarget.<init>(JerseyWebTarget.java:82)
> 	at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:192)
> 	at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:70)
> 	at com.spotify.docker.client.DefaultDockerClient.resource(DefaultDockerClient.java:1051)
> 	at com.spotify.docker.client.DefaultDockerClient.listImages(DefaultDockerClient.java:320)
> 	at org.eclipse.linuxtools.internal.docker.core.DockerConnection.listImages(DockerConnection.java:787)
> 	at org.eclipse.linuxtools.internal.docker.core.DockerConnection.getImages(DockerConnection.java:750)
> 	at org.eclipse.linuxtools.internal.docker.ui.views.DockerExplorerContentProvider$5.run(DockerExplorerContentProvider.java:241)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
> 	at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:122)
> 	at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:225)
> 	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)
> 	... 12 more
> Caused by: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
> 	at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:266)
> 	at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:247)
> 	at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)
> 	at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:109)
> 	at org.glassfish.jersey.internal.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:61)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 	at java.lang.Class.newInstance(Class.java:442)
> 	at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:118)
> 	... 14 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list