[ 
https://issues.apache.org/jira/browse/JCLOUDS-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ignasi Barrera resolved JCLOUDS-1190.
-------------------------------------
    Resolution: Fixed

> NumberFormatException if the size of docker image is bigger than int
> --------------------------------------------------------------------
>
>                 Key: JCLOUDS-1190
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1190
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 1.9.2
>            Reporter: Erich Duda
>              Labels: docker
>             Fix For: 2.0.0
>
>
> If the size of docker image is bigger than int, the following 
> NumberFormatException arises.
> {code}
> java.lang.NumberFormatException: Expected an int but was 3022081596 at line 1 
> column 251 path $[0].Size
>       at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1179)
>       at 
> com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:247)
>       at 
> com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:239)
>       at 
> org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272)
>       at 
> org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:184)
>       at 
> org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.readAndBuild(NullFilteringTypeAdapterFactories.java:95)
>       at 
> org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.read(NullFilteringTypeAdapterFactories.java:83)
>       at 
> org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.read(NullFilteringTypeAdapterFactories.java:62)
>       at com.google.gson.Gson.fromJson(Gson.java:861)
>       at com.google.gson.Gson.fromJson(Gson.java:826)
>       at org.jclouds.json.internal.GsonWrapper.fromJson(GsonWrapper.java:55)
>       at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:82)
>       at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:76)
>       at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:61)
>       at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:41)
>       at 
> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
>       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.$Proxy60.listImages(Unknown Source)
>       at 
> org.jclouds.docker.compute.strategy.DockerComputeServiceAdapter.listImages(DockerComputeServiceAdapter.java:256)
>       at 
> org.jclouds.docker.compute.strategy.DockerComputeServiceAdapter.listImages(DockerComputeServiceAdapter.java:72)
>       at 
> org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:121)
>       at 
> org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:118)
>       at 
> org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:75)
>       at 
> org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:57)
>       at 
> com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542)
>       at 
> com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323)
>       at 
> com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286)
>       at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
>       at com.google.common.cache.LocalCache.get(LocalCache.java:3953)
>       at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3957)
>       at 
> com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4875)
>       at 
> org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.get(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:150)
>       at 
> org.jclouds.compute.suppliers.ImageCacheSupplier.get(ImageCacheSupplier.java:106)
>       at 
> org.jclouds.compute.domain.internal.TemplateBuilderImpl.getImages(TemplateBuilderImpl.java:854)
>       at 
> org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:666)
>       at 
> org.wildfly.extras.sunstone.api.impl.docker.DockerNode.<init>(DockerNode.java:124)
>       at 
> org.wildfly.extras.sunstone.api.impl.docker.DockerCloudProvider.createNodeInternal(DockerCloudProvider.java:68)
>       at 
> org.wildfly.extras.sunstone.api.impl.AbstractJCloudsCloudProvider.lambda$createNode$0(AbstractJCloudsCloudProvider.java:100)
>       at 
> java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
>       at 
> org.wildfly.extras.sunstone.api.impl.AbstractJCloudsCloudProvider.createNode(AbstractJCloudsCloudProvider.java:95)
>       at 
> org.wildfly.extras.sunstone.api.impl.AbstractJCloudsCloudProvider.lambda$createNodeAsync$3(AbstractJCloudsCloudProvider.java:172)
>       at 
> java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
>       at 
> java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)
>       at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
>       at 
> java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
>       at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
>       at 
> java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
> {code}



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

Reply via email to