[jira] [Commented] (JCLOUDS-1529) NullPointerException in org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE
[ https://issues.apache.org/jira/browse/JCLOUDS-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17071445#comment-17071445 ] Mohamed Ikbal Majeri commented on JCLOUDS-1529: --- I am hitting this issue on my end: /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:23: error: package org.jclouds.json.gson.internal.bind does not exist import org.jclouds.json.gson.internal.bind.TypeAdapters; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:26: error: package com.google.gson does not exist import com.google.gson.TypeAdapter; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:27: error: package com.google.gson.stream does not exist import com.google.gson.stream.JsonReader; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:28: error: package com.google.gson.stream does not exist import com.google.gson.stream.JsonWriter; > NullPointerException in > org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE > > > Key: JCLOUDS-1529 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1529 > Project: jclouds > Issue Type: Bug > Components: jclouds-core >Affects Versions: 2.2.0 >Reporter: Markus Kuppe >Priority: Major > Fix For: 2.3.0, 2.2.1 > > Time Spent: 1h > Remaining Estimate: 0h > > Trying to launch a compute instance with jclouds 2.2.0 (client code works > with 2.1.1), BaseComputeServiceContextModule throws a NullPointerException > because org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE is > null. > This happens when com.google.gson 2.8.5 when is deployed next to > jclouds-core. When I try to deploy jclouds-gson, it results in a use > constraint violation for package org.jclouds.json.gson.internal.bind.util > between jclouds-core and jclouds-gson. > > Please advise. > — > > !ENTRY org.eclipse.core.jobs 4 2 2019-11-26 20:03:50.967 > !MESSAGE An internal error occurred during: "PacketNet". > !STACK 0 > com.google.inject.CreationException: Guice creation errors: > 1) Error in custom provider, java.lang.NullPointerException > at > org.jclouds.compute.config.BaseComputeServiceContextModule.provideOsVersionMap(BaseComputeServiceContextModule.java:172) > at > org.jclouds.compute.config.BaseComputeServiceContextModule.provideOsVersionMap(BaseComputeServiceContextModule.java:172) > while locating java.util.Map java.util.Map> > 1 error > at > com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) > at > com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:183) > at > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109) > at com.google.inject.Guice.createInjector(Guice.java:95) > at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:405) > at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:328) > at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:615) > at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:595) > at > org.lamport.tla.toolbox.jcloud.CloudDistributedTLCJob.run(CloudDistributedTLCJob.java:192) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) > Caused by: java.lang.NullPointerException > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:319) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at com.google.gson.Gson.fromJson(Gson.java:927) > at com.google.gson.Gson.fromJson(Gson.java:892) > at com.google.gson.Gson.fromJson(Gson.java:841) > at org.jclouds.json.internal.GsonWrapper.fromJson(GsonWrapper.java:44) > at > org.jclouds.compute.config.BaseComputeServiceContextModule.provideOsVersionMap(BaseComputeServiceContextModule.java:172) > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > at > com.
[jira] [Comment Edited] (JCLOUDS-1529) NullPointerException in org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE
[ https://issues.apache.org/jira/browse/JCLOUDS-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17071445#comment-17071445 ] Mohamed Ikbal Majeri edited comment on JCLOUDS-1529 at 3/31/20, 4:03 AM: - I am hitting this issue on my end when trying to compile using embedded Maven on Eclipse 2020-03 IDE: /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:23: error: package org.jclouds.json.gson.internal.bind does not exist import org.jclouds.json.gson.internal.bind.TypeAdapters; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:26: error: package com.google.gson does not exist import com.google.gson.TypeAdapter; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:27: error: package com.google.gson.stream does not exist import com.google.gson.stream.JsonReader; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:28: error: package com.google.gson.stream does not exist import com.google.gson.stream.JsonWriter; was (Author: ikky888): I am hitting this issue on my end: /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:23: error: package org.jclouds.json.gson.internal.bind does not exist import org.jclouds.json.gson.internal.bind.TypeAdapters; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:26: error: package com.google.gson does not exist import com.google.gson.TypeAdapter; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:27: error: package com.google.gson.stream does not exist import com.google.gson.stream.JsonReader; ^ /Users/ikky/git/jclouds/core/src/main/java/org/jclouds/json/internal/NullHackJsonLiteralAdapter.java:28: error: package com.google.gson.stream does not exist import com.google.gson.stream.JsonWriter; > NullPointerException in > org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE > > > Key: JCLOUDS-1529 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1529 > Project: jclouds > Issue Type: Bug > Components: jclouds-core >Affects Versions: 2.2.0 >Reporter: Markus Kuppe >Priority: Major > Fix For: 2.3.0, 2.2.1 > > Time Spent: 1h > Remaining Estimate: 0h > > Trying to launch a compute instance with jclouds 2.2.0 (client code works > with 2.1.1), BaseComputeServiceContextModule throws a NullPointerException > because org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE is > null. > This happens when com.google.gson 2.8.5 when is deployed next to > jclouds-core. When I try to deploy jclouds-gson, it results in a use > constraint violation for package org.jclouds.json.gson.internal.bind.util > between jclouds-core and jclouds-gson. > > Please advise. > — > > !ENTRY org.eclipse.core.jobs 4 2 2019-11-26 20:03:50.967 > !MESSAGE An internal error occurred during: "PacketNet". > !STACK 0 > com.google.inject.CreationException: Guice creation errors: > 1) Error in custom provider, java.lang.NullPointerException > at > org.jclouds.compute.config.BaseComputeServiceContextModule.provideOsVersionMap(BaseComputeServiceContextModule.java:172) > at > org.jclouds.compute.config.BaseComputeServiceContextModule.provideOsVersionMap(BaseComputeServiceContextModule.java:172) > while locating java.util.Map java.util.Map> > 1 error > at > com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) > at > com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:183) > at > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109) > at com.google.inject.Guice.createInjector(Guice.java:95) > at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:405) > at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:328) > at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:615) > at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:595) > at > org.lamport.tla.toolbox.jcloud.CloudDistributedTLCJob.run(CloudDistributedTLCJob.java:192) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) > Caused by: java.lang.NullPointerException > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:319) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at com.google.gson.Gson.fromJson(Gson
[jira] [Created] (JCLOUDS-1541) Add Middle East (Bahrain) region to the AWS EC2 and S3 providers list
Mohamed Ikbal Majeri created JCLOUDS-1541: - Summary: Add Middle East (Bahrain) region to the AWS EC2 and S3 providers list Key: JCLOUDS-1541 URL: https://issues.apache.org/jira/browse/JCLOUDS-1541 Project: jclouds Issue Type: Bug Reporter: Mohamed Ikbal Majeri As titled Source: [https://docs.aws.amazon.com/general/latest/gr/s3.html] -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (JCLOUDS-1541) Add Middle East (Bahrain) region to the AWS EC2 and S3 providers list
[ https://issues.apache.org/jira/browse/JCLOUDS-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mohamed Ikbal Majeri updated JCLOUDS-1541: -- Issue Type: Improvement (was: Bug) > Add Middle East (Bahrain) region to the AWS EC2 and S3 providers list > - > > Key: JCLOUDS-1541 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1541 > Project: jclouds > Issue Type: Improvement >Reporter: Mohamed Ikbal Majeri >Priority: Major > > As titled > Source: [https://docs.aws.amazon.com/general/latest/gr/s3.html] -- This message was sent by Atlassian Jira (v8.3.4#803005)