Marcus-Rosti opened a new issue, #2640:
URL: https://github.com/apache/polaris/issues/2640

   ### Describe the bug
   
   I think polaris was under heavy load and the client threw this message:
   ```
   java.lang.IllegalArgumentException: Cannot parse to a string value: error: 
{"message":"Cannot invoke 
\"org.apache.polaris.core.context.CallContext.getPolarisCallContext()\" because 
the return value of 
\"org.apache.polaris.core.context.CallContext.getCurrentContext()\" is 
null","type":"NullPointerException","code":500}
        at 
org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkArgument(Preconditions.java:445)
        at org.apache.iceberg.util.JsonUtil.getString(JsonUtil.java:173)
        at 
org.apache.iceberg.rest.responses.OAuthErrorResponseParser.fromJson(OAuthErrorResponseParser.java:47)
        at 
org.apache.iceberg.rest.responses.OAuthErrorResponseParser.lambda$fromJson$0(OAuthErrorResponseParser.java:39)
        at org.apache.iceberg.util.JsonUtil.parse(JsonUtil.java:104)
        at 
org.apache.iceberg.rest.responses.OAuthErrorResponseParser.fromJson(OAuthErrorResponseParser.java:39)
        at 
org.apache.iceberg.rest.ErrorHandlers$OAuthErrorHandler.parseResponse(ErrorHandlers.java:260)
        at org.apache.iceberg.rest.HTTPClient.throwFailure(HTTPClient.java:210)
        at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:336)
        at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:297)
        at 
org.apache.iceberg.rest.BaseHTTPClient.postForm(BaseHTTPClient.java:136)
        at 
org.apache.iceberg.rest.auth.OAuth2Util.refreshToken(OAuth2Util.java:174)
        at 
org.apache.iceberg.rest.auth.OAuth2Util$AuthSession.refreshCurrentToken(OAuth2Util.java:626)
        at 
org.apache.iceberg.rest.auth.OAuth2Util$AuthSession.lambda$refresh$1(OAuth2Util.java:596)
        at 
org.apache.iceberg.util.Tasks$Builder.runTaskWithRetry(Tasks.java:413)
        at 
org.apache.iceberg.util.Tasks$Builder.runSingleThreaded(Tasks.java:219)
        at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:203)
        at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:196)
        at 
org.apache.iceberg.rest.auth.OAuth2Util$AuthSession.refresh(OAuth2Util.java:596)
        at 
org.apache.iceberg.rest.auth.OAuth2Util$AuthSession.lambda$scheduleTokenRefresh$2(OAuth2Util.java:670)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to