jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakub Bartecek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-900) Creating container in Docker fails because of serialization
Date Thu, 04 Jun 2015 14:16:38 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572835#comment-14572835
] 

Jakub Bartecek commented on JCLOUDS-900:
----------------------------------------

 Hi [~andreaturli], 
what's the state of this issue, please?

Thanks.


> Creating container in Docker fails because of serialization
> -----------------------------------------------------------
>
>                 Key: JCLOUDS-900
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-900
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-labs
>    Affects Versions: 1.9.0
>            Reporter: Jakub Bartecek
>            Assignee: Andrea Turli
>
> I'm not able to create an docker container, because of an issue with serialization of
request.
> Using:
> Docker 1.6.0
> OpenJDK 8u25
> Code:
>             Config config = Config.builder()
>                     .image(dockerImageId)
>                     .env(envVariables)
>                     .build();
>             Container createdContainer = dockerContainerApi.createContainer(containerId,
config);
> Exception:
> java.lang.IllegalStateException: Incorrect number of names on @org.jclouds.json.SerializedNames(value=[Hostname,
Domainname, User, Memory, MemorySwap, CpuShares, AttachStdin, AttachStdout, AttachStderr,
Tty, OpenStdin, StdinOnce, Env, Cmd, Entrypoint, Image, Volumes, WorkingDir, NetworkDisabled,
ExposedPorts, SecurityOpts, HostConfig, Binds, Links, LxcConf, PortBindings, PublishAllPorts,
Privileged, Dns, DnsSearch, VolumesFrom, CapAdd, CapDrop, RestartPolicy, NetworkMode, Devices])
> Stacktrace:
> com.google.common.base.Preconditions.checkState(Preconditions.java:176)
> 	at org.jclouds.json.internal.NamingStrategies$AnnotationFieldNamingStrategy.translateName(NamingStrategies.java:183)
> 	at org.jclouds.json.internal.NamingStrategies$AnnotationOrNameFieldNamingStrategy.translateName(NamingStrategies.java:212)
> 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getFieldName(ReflectiveTypeAdapterFactory.java:64)
> 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:129)
> 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:75)
> 	at com.google.gson.Gson.getAdapter(Gson.java:358)
> 	at com.google.gson.Gson.toJson(Gson.java:587)
> 	at com.google.gson.Gson.toJson(Gson.java:574)
> 	at com.google.gson.Gson.toJson(Gson.java:529)
> 	at com.google.gson.Gson.toJson(Gson.java:509)
> 	at org.jclouds.json.internal.GsonWrapper.toJson(GsonWrapper.java:52)
> 	at org.jclouds.rest.binders.BindToJsonPayload.bindToRequest(BindToJsonPayload.java:48)
> 	at org.jclouds.rest.internal.RestAnnotationProcessor.decorateRequest(RestAnnotationProcessor.java:627)
> 	at org.jclouds.rest.internal.RestAnnotationProcessor.apply(RestAnnotationProcessor.java:326)
> 	at org.jclouds.rest.internal.RestAnnotationProcessor.apply(RestAnnotationProcessor.java:129)
> 	at org.jclouds.rest.internal.InvokeHttpMethod.toCommand(InvokeHttpMethod.java:188)
> 	at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:84)
> 	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
> 	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
> 	at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
> 	at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
> 	at com.sun.proxy.$Proxy86.createContainer(Unknown Source)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message