[jira] [Reopened] (JCLOUDS-1583) java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
[ https://issues.apache.org/jira/browse/JCLOUDS-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Gaul reopened JCLOUDS-1583: -- > java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY > -- > > Key: JCLOUDS-1583 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1583 > Project: jclouds > Issue Type: Bug > Components: jclouds-compute >Affects Versions: 2.2.1 >Reporter: Anand >Priority: Major > Fix For: 2.4.0 > > Attachments: template.json > > > I was trying to create VM using DeploymentApi.create but throws exception as > below. The template.json has type = Array for few parameters. > com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: > Expected a string but was BEGIN_ARRAY at line 1 column 472 path > $.properties.parameters..value > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:193) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:321) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at com.google.gson.Gson.fromJson(Gson.java:927) > at com.google.gson.Gson.fromJson(Gson.java:892) -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Resolved] (JCLOUDS-1583) java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
[ https://issues.apache.org/jira/browse/JCLOUDS-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Gaul resolved JCLOUDS-1583. -- Resolution: Duplicate > java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY > -- > > Key: JCLOUDS-1583 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1583 > Project: jclouds > Issue Type: Bug > Components: jclouds-compute >Affects Versions: 2.2.1 >Reporter: Anand >Priority: Major > Fix For: 2.4.0 > > Attachments: template.json > > > I was trying to create VM using DeploymentApi.create but throws exception as > below. The template.json has type = Array for few parameters. > com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: > Expected a string but was BEGIN_ARRAY at line 1 column 472 path > $.properties.parameters..value > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:193) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:321) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at com.google.gson.Gson.fromJson(Gson.java:927) > at com.google.gson.Gson.fromJson(Gson.java:892) -- This message was sent by Atlassian Jira (v8.20.1#820001)
[GitHub] [jclouds] gaul commented on a change in pull request #128: Update ClientCredentialsClaims.java
gaul commented on a change in pull request #128: URL: https://github.com/apache/jclouds/pull/128#discussion_r775010584 ## File path: apis/oauth/src/main/java/org/jclouds/oauth/v2/domain/ClientCredentialsClaims.java ## @@ -49,6 +50,7 @@ public abstract long nbf(); /** "JWT ID", a unique identifier for the JWT. */ +@Nullable Review comment: Should this also annotate the `create` method with `@Nullable` as the [AutoValue documentation suggests](https://github.com/google/auto/blob/master/value/userguide/howto.md#nullable)? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@jclouds.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[jira] [Closed] (JCLOUDS-1583) java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
[ https://issues.apache.org/jira/browse/JCLOUDS-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anand closed JCLOUDS-1583. -- > java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY > -- > > Key: JCLOUDS-1583 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1583 > Project: jclouds > Issue Type: Bug > Components: jclouds-compute >Affects Versions: 2.2.1 >Reporter: Anand >Priority: Major > Fix For: 2.4.0 > > Attachments: template.json > > > I was trying to create VM using DeploymentApi.create but throws exception as > below. The template.json has type = Array for few parameters. > com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: > Expected a string but was BEGIN_ARRAY at line 1 column 472 path > $.properties.parameters..value > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:193) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:321) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at com.google.gson.Gson.fromJson(Gson.java:927) > at com.google.gson.Gson.fromJson(Gson.java:892) -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Resolved] (JCLOUDS-1583) java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
[ https://issues.apache.org/jira/browse/JCLOUDS-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anand resolved JCLOUDS-1583. Fix Version/s: 2.4.0 Resolution: Fixed JCLOUD-1584 > java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY > -- > > Key: JCLOUDS-1583 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1583 > Project: jclouds > Issue Type: Bug > Components: jclouds-compute >Affects Versions: 2.2.1 >Reporter: Anand >Priority: Major > Fix For: 2.4.0 > > Attachments: template.json > > > I was trying to create VM using DeploymentApi.create but throws exception as > below. The template.json has type = Array for few parameters. > com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: > Expected a string but was BEGIN_ARRAY at line 1 column 472 path > $.properties.parameters..value > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:193) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:321) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at com.google.gson.Gson.fromJson(Gson.java:927) > at com.google.gson.Gson.fromJson(Gson.java:892) -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Comment Edited] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17465008#comment-17465008 ] Anand edited comment on JCLOUDS-1591 at 12/24/21, 12:59 PM: Below piece of code from jcloud-src. NULL is passed explicitly which is breaking our expected functionality. ClientCredentialsClaims claims = ClientCredentialsClaims.create( // credentialsSupplier.get().identity, // iss credentialsSupplier.get().identity, // sub oauthConfig.audience(), // aud -1, // placeholder exp for the cache -1, // placeholder nbf for the cache null // placeholder jti for the cache ); = Submitted a PR to fix the issue. Let me know if any concerns https://github.com/apache/jclouds/pull/128 was (Author: satyanan): Submitted a PR. Let me know if any concerns https://github.com/apache/jclouds/pull/128 > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17465008#comment-17465008 ] Anand commented on JCLOUDS-1591: Submitted a PR. Let me know if any concerns https://github.com/apache/jclouds/pull/128 > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[GitHub] [jclouds] SATYANAN-ANAND opened a new pull request #128: Update ClientCredentialsClaims.java
SATYANAN-ANAND opened a new pull request #128: URL: https://github.com/apache/jclouds/pull/128 JCLOUDS-1591: OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@jclouds.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[jira] [Updated] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Gaul updated JCLOUDS-1591: - Labels: oauth (was: helpwa oauth) > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Gaul updated JCLOUDS-1591: - Labels: helpwa oauth (was: oauth) > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: helpwa, oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17464937#comment-17464937 ] Andrew Gaul commented on JCLOUDS-1591: -- I don't have any experience with oauth and cannot help you with this. But it seems that you are initializing a {{ClientCredentialsClaims}} with null jti. Did you intend this? The code may be wrong since [https://tools.ietf.org/id/draft-ietf-oauth-jwt-bearer-03.html#JWT_reqs] claims that jti may be specified. You might try annotating both the factory method and getter with {{{}@Nullable{}}}. > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17464927#comment-17464927 ] Anand commented on JCLOUDS-1591: [~gaul] Please find the stack trace Exception in thread "main" org.jclouds.http.HttpResponseException: Null jti connecting to GET https://management.azure.com/subscriptions/SUBSCRIPTIONID/resourceGroups/RESOUCEGROUPS/providers/Microsoft.Compute/virtualMachines/VIRTUALMACHINES HTTP/1.1 at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:120) at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:91) at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:74) at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:45) at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:86) at com.sun.proxy.$Proxy60.get(Unknown Source) Caused by: java.lang.NullPointerException: Null jti at org.jclouds.oauth.v2.domain.AutoValue_ClientCredentialsClaims.(AutoValue_ClientCredentialsClaims.java:38) at org.jclouds.oauth.v2.domain.ClientCredentialsClaims.create(ClientCredentialsClaims.java:56) at org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow.filter(ClientCredentialsJWTBearerTokenFlow.java:101) at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:90) ... 7 more > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (JCLOUDS-1591) OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception
[ https://issues.apache.org/jira/browse/JCLOUDS-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anand updated JCLOUDS-1591: --- Attachment: log.txt > OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer > Exception > -- > > Key: JCLOUDS-1591 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1591 > Project: jclouds > Issue Type: Bug >Affects Versions: 2.4.0 >Reporter: Anand >Priority: Major > Labels: oauth > Attachments: log.txt > > > Null pointer exception is thrown when > ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims > using "null" in jti placeholder > Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow > Method: filter > Lines#: > ClientCredentialsClaims claims = ClientCredentialsClaims.create( // > credentialsSupplier.get().identity, // iss > credentialsSupplier.get().identity, // sub > oauthConfig.audience(), // aud > -1, // placeholder exp for the cache > -1, // placeholder nbf for the cache > null // placeholder jti for the cache > ); > Ran into this exception during OAuth using > org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE. -- This message was sent by Atlassian Jira (v8.20.1#820001)