[
https://issues.apache.org/jira/browse/OPENJPA-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18003780#comment-18003780
]
ASF subversion and git services commented on OPENJPA-2938:
----------------------------------------------------------
Commit b7db3dd2f9a446e4b8301b9fded1098ed280bba9 in openjpa's branch
refs/heads/OPENJPA-2940 from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b7db3dd2f ]
[OPENJPA-2938] maxIdle property is properly set
> Certain combination of ConnectionProperties can lead to NPE
> -----------------------------------------------------------
>
> Key: OPENJPA-2938
> URL: https://issues.apache.org/jira/browse/OPENJPA-2938
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 4.1.1
> Reporter: Maxim Solodovnik
> Assignee: Maxim Solodovnik
> Priority: Major
> Fix For: 4.1.2
>
>
> Certain combination of ConnectionProperties can lead to NPE
> hasKey method used equalsIgnoreCase, so if I set MaxActive=10 to
> openjpa.ConnectionProperties and no "maxIdle" property for example ,
> <property name="openjpa.ConnectionProperties"
> value="autoReconnect=true,MaxActive=10,MaxWait=6000,TestOnBorrow=true"/>
> dbcpProps.setProperty("maxIdle", dbcpProps.getProperty("maxActive")) will
> throw java.lang.NullPointerException
> initially reported here:
> https://github.com/apache/openjpa/commit/fa6ce77004739d9601bfde43e06f9446ab601698#commitcomment-34251470
--
This message was sent by Atlassian Jira
(v8.20.10#820010)