[
https://issues.apache.org/jira/browse/GEODE-7880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17059059#comment-17059059
]
Anilkumar Gingade edited comment on GEODE-7880 at 3/13/20, 8:33 PM:
--------------------------------------------------------------------
This is caused by the checkin relating to: GEODE-6536.
commit sha: 86defd40c6ba558b53753c51176e05f009bb32c3
The Geode-6536 added/modified the borrowConnection.
In this case when we are unable to make a connection to a specific server; it
should not be throwing NoAvailableServersException (it has servers); as its
trying to get a connection to particular server; NoAvailableServersException is
thrown where there is no servers available to send a request.
was (Author: agingade):
This is caused by the checkin relating to: GEODE-6536.
The Geode-6536 added/modified the borrowConnection.
In this case when we are unable to make a connection to a specific server; it
should not be throwing NoAvailableServersException (it has servers); as its
trying to get a connection to particular server; NoAvailableServersException is
thrown where there is no servers available to send a request.
> Null exception message causes NPE when calculating pool retries
> ---------------------------------------------------------------
>
> Key: GEODE-7880
> URL: https://issues.apache.org/jira/browse/GEODE-7880
> Project: Geode
> Issue Type: Bug
> Components: client/server
> Reporter: Dale Emery
> Assignee: Dale Emery
> Priority: Major
>
> NPEs observed in testing, caused by:
> * {{ConnectionManagerImpl}} throws a {{NoAvailableServersException}} with no
> exception message.
> * {{PoolImpl.calculateRetryAttempts()}} attempts to examine the content of
> the exception message without first checking for {{null}}.
> Stack trace:
> org.apache.geode.cache.execute.FunctionException:
> java.lang.NullPointerExceptionorg.apache.geode.cache.execute.FunctionException:
> java.lang.NullPointerException
> at
> org.apache.geode.internal.cache.execute.ServerRegionFunctionExecutor.executeOnServer(ServerRegionFunctionExecutor.java:215)
> at
> org.apache.geode.internal.cache.execute.ServerRegionFunctionExecutor.executeFunction(ServerRegionFunctionExecutor.java:156)
> at
> org.apache.geode.internal.cache.execute.AbstractExecution.execute(AbstractExecution.java:397)
> at
> org.apache.geode.internal.cache.execute.AbstractExecution.execute(AbstractExecution.java:402)
> at resumeTx.ResumeTxTest.begin(ResumeTxTest.java:455)
> at resumeTx.ResumeTxTest.doTransactions(ResumeTxTest.java:285)
> at resumeTx.ResumeTxTest.concTxWithFE(ResumeTxTest.java:146)
> at resumeTx.ResumeTxTest.HydraTask_concTxWithFE(ResumeTxTest.java:131)
> at hydra.TestTask.execute(TestTask.java:197)
> Caused by: java.lang.NullPointerException
> at
> org.apache.geode.cache.client.internal.PoolImpl.calculateRetryAttempts(PoolImpl.java:1610)
> at
> org.apache.geode.cache.client.internal.SingleHopClientExecutor.submitAllHA(SingleHopClientExecutor.java:124)
> at
> org.apache.geode.cache.client.internal.ExecuteRegionFunctionSingleHopOp.execute(ExecuteRegionFunctionSingleHopOp.java:88)
> at
> org.apache.geode.cache.client.internal.ServerRegionProxy.executeFunction(ServerRegionProxy.java:727)
> at
> org.apache.geode.internal.cache.execute.ServerRegionFunctionExecutor.executeOnServer(ServerRegionFunctionExecutor.java:206)
> org.apache.geode.cache.execute.FunctionException:
> java.lang.NullPointerExceptionorg.apache.geode.cache.execute.FunctionException:
> java.lang.NullPointerException
> Caused by: java.lang.NullPointerException
--
This message was sent by Atlassian Jira
(v8.3.4#803005)