[JBoss JIRA] (JBJCA-1310) NPE when validating database connection (and the validation failed) if connection pool statistics is enabled
by Jesper Pedersen (JIRA)
[ https://issues.jboss.org/browse/JBJCA-1310?page=com.atlassian.jira.plugin... ]
Jesper Pedersen updated JBJCA-1310:
-----------------------------------
Workaround Description: Use mcp="org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool"
Workaround: Workaround Exists
Priority: Critical (was: Major)
Thanks for the file. Could you rerun with the Tracer on (<tracer enabled="true">) ? You will see TRACE statements with IJTRACER in them. Also attach the file instead of pasting into comments.
We need to figure out where the getConnectionListener() becomes null
> NPE when validating database connection (and the validation failed) if connection pool statistics is enabled
> ------------------------------------------------------------------------------------------------------------
>
> Key: JBJCA-1310
> URL: https://issues.jboss.org/browse/JBJCA-1310
> Project: IronJacamar
> Issue Type: Bug
> Components: Core
> Affects Versions: WildFly/IronJacamar 1.3.2.Final, 1.2.6.Final
> Reporter: Hugh Nguyen
> Assignee: Jesper Pedersen
> Priority: Critical
>
> - An xa-datasource connection pool is configured with: statistic-enabled=true, validate-on-match=true
> - When validation failed, after the failure, the following is logged:
> {code}
> 2016-02-10 12:23:12,580 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (Sched1_Worker-13) IJ000621: Destroying connection that could not be validated: null
> {code}
> - This appears to come from SemaphoreConcurrentLinkedDequeManagedConnectionPool.java, line 436:
> {code}
> log.destroyingConnectionNotValidated(clw.getConnectionListener());
> {code}
> - So apparently clw.getConnectionListener() is null at this point, causing line 441/442 to throw NPE, if statistics is enabled:
> {code}
> pool.getInternalStatistics().deltaTotalPoolTime(lastUsed - clw.getConnectionListener().getLastReturnedTime());
> {code}
> - NPE is caught by the catch clause, and line 456 write the following to the log:
> {code}
> 2016-02-10 12:23:12,580 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (Sched1_Worker-13) IJ000613: Throwable while trying to match managed connection, destroying connection: null: java.lang.NullPointerException
> at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:441)
> at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getTransactionNewConnection(AbstractPool.java:708)
> at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:607)
> at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:590)
> at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:429)
> at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:747)
> {code}
> - However, this catch clause try to do the same thing that cause the NPE in line 461/462
> {code}
> pool.getInternalStatistics().deltaTotalPoolTime(lastUsed - clw.getConnectionListener().getLastReturnedTime());
> {code}
> - And finally this NPE is throw all the way out to the user of the connection
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (WFLY-869) Cache Store descriptor specifies that properties max-occurs = 1
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/WFLY-869?page=com.atlassian.jira.plugin.s... ]
Radoslav Husar commented on WFLY-869:
-------------------------------------
Although, let me link an issue: WFCORE-320 which is to implement cardinality checking properly.
> Cache Store descriptor specifies that properties max-occurs = 1
> ---------------------------------------------------------------
>
> Key: WFLY-869
> URL: https://issues.jboss.org/browse/WFLY-869
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Reporter: NadirX
> Assignee: Radoslav Husar
> Priority: Minor
>
> Querying the descriptor for the Infinispan subsystem reveals that the <property> sub-element of the <store> element has been specified at max-occurs = 1, while it should be unlimited
> property" => {
> "description" => "A cache store property with name and value.",
> "min-occurs" => 0,
> "max-occurs" => 1,
> "model-description" => {"*" => {
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (WFLY-869) Cache Store descriptor specifies that properties max-occurs = 1
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/WFLY-869?page=com.atlassian.jira.plugin.s... ]
Radoslav Husar closed WFLY-869.
-------------------------------
Resolution: Out of Date
This is very out of date.
# there is no such thing as min/max-occurs (I am not even sure if it made it to public EAP release as this was dropped early on)
# the attribute to control properties is:
{code}[standalone@localhost:9990 /] /subsystem=infinispan/cache-container=web/distributed-cache=dist/store=file/:write-attribute(name=properties,value=[a=b]{code}
> Cache Store descriptor specifies that properties max-occurs = 1
> ---------------------------------------------------------------
>
> Key: WFLY-869
> URL: https://issues.jboss.org/browse/WFLY-869
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Reporter: NadirX
> Assignee: Radoslav Husar
> Priority: Minor
>
> Querying the descriptor for the Infinispan subsystem reveals that the <property> sub-element of the <store> element has been specified at max-occurs = 1, while it should be unlimited
> property" => {
> "description" => "A cache store property with name and value.",
> "min-occurs" => 0,
> "max-occurs" => 1,
> "model-description" => {"*" => {
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (WFLY-6257) Allow Narayanas list of XAOrphanFilters to include a check of the transaction status manager
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/WFLY-6257?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated WFLY-6257:
--------------------------------
Description: Narayana has added a check of the transaction status manager to check the status of the transaction with a transaction manager. This needs to be exposed in WildFly. (was: Currently the way the JTAEnvironmentBean works is to force a list of filters. It would be useful for a user to be able to override those in certain situations.)
> Allow Narayanas list of XAOrphanFilters to include a check of the transaction status manager
> --------------------------------------------------------------------------------------------
>
> Key: WFLY-6257
> URL: https://issues.jboss.org/browse/WFLY-6257
> Project: WildFly
> Issue Type: Enhancement
> Components: Transactions
> Reporter: Tom Jenkinson
> Assignee: Tom Jenkinson
>
> Narayana has added a check of the transaction status manager to check the status of the transaction with a transaction manager. This needs to be exposed in WildFly.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (WFLY-6297) Identify problems introduced with new JDK9 versioning scheme
by Richard Opalka (JIRA)
[ https://issues.jboss.org/browse/WFLY-6297?page=com.atlassian.jira.plugin.... ]
Richard Opalka commented on WFLY-6297:
--------------------------------------
After source code review we identified problems with new JDK9 versioning scheme in these classes:
jboss-modules.jar', class 'org/jboss/modules/Main', contains string [java.specification.version]
modules/system/layers/base/org/eclipse/jdt/ecj/main/ecj-4.4.2.jar', class 'org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager', contains string [java.version]
modules/system/layers/base/org/eclipse/jdt/ecj/main/ecj-4.4.2.jar', class 'org/eclipse/jdt/internal/compiler/tool/EclipseFileManager', contains string [java.version]
modules/system/layers/base/org/apache/cxf/main/cxf-core-3.1.4.jar', class 'org/apache/cxf/common/util/ClassHelper', contains string [java.version]
modules/system/layers/base/org/apache/commons/beanutils/main/commons-beanutils-1.9.2.jar', class 'org/apache/commons/beanutils/MethodUtils', contains string [java.specification.version]
modules/system/layers/base/org/apache/commons/lang/main/commons-lang-2.6.jar', class 'org/apache/commons/lang/SystemUtils', contains strings [java.version]
modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final.jar', class 'org/apache/log4j/helpers/Loader', contains string [java.version]
> Identify problems introduced with new JDK9 versioning scheme
> ------------------------------------------------------------
>
> Key: WFLY-6297
> URL: https://issues.jboss.org/browse/WFLY-6297
> Project: WildFly
> Issue Type: Sub-task
> Components: Build System
> Affects Versions: 10.0.0.Final
> Reporter: Richard Opalka
> Assignee: Richard Opalka
>
> JDK9 will introduce new versioning scheme described here:
> http://openjdk.java.net/projects/verona/
> We need to identify WildFly components that are realying on
> these properties.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (WFLY-6297) Identify problems introduced with new JDK9 versioning scheme
by Richard Opalka (JIRA)
[ https://issues.jboss.org/browse/WFLY-6297?page=com.atlassian.jira.plugin.... ]
Richard Opalka commented on WFLY-6297:
--------------------------------------
We identified these clases in WildFly distribution that are relying on properties mentioned in Verona project:
/jboss-modules.jar', class 'org/jboss/modules/Main', contains string [java.specification.version]
/modules/system/layers/base/nu/xom/main/xom-1.2.10.jar', class 'nu/xom/xinclude/XIncluder', contains string [java.version]
/modules/system/layers/base/nu/xom/main/xom-1.2.10.jar', class 'nu/xom/jaxen/JaxenException', contains string [java.version]
/modules/system/layers/base/nu/xom/main/xom-1.2.10.jar', class 'nu/xom/jaxen/saxpath/SAXPathException', contains string [java.version]
/modules/system/layers/base/com/google/guava/main/guava-18.0.jar', class 'com/google/common/base/StandardSystemProperty', contains strings [java.specification.version, java.version, java.vm.version, java.vm.specification.version]
/modules/system/layers/base/com/microsoft/azure/storage/main/azure-storage-4.0.0.jar', class 'com/microsoft/azure/storage/core/BaseRequest', contains string [java.version]
/modules/system/layers/base/com/h2database/h2/main/h2-1.3.173.jar', class 'org/h2/constant/SysProperties', contains string [java.specification.version]
/modules/system/layers/base/com/h2database/h2/main/h2-1.3.173.jar', class 'org/h2/table/MetaTable', contains string [java.runtime.version]
/modules/system/layers/base/org/eclipse/jdt/ecj/main/ecj-4.4.2.jar', class 'org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager', contains string [java.version]
/modules/system/layers/base/org/eclipse/jdt/ecj/main/ecj-4.4.2.jar', class 'org/eclipse/jdt/internal/compiler/tool/EclipseFileManager', contains string [java.version]
/modules/system/layers/base/org/eclipse/jdt/ecj/main/ecj-4.4.2.jar', class 'org/eclipse/jdt/internal/compiler/util/Util', contains string [java.version]
/modules/system/layers/base/org/apache/commons/beanutils/main/commons-beanutils-1.9.2.jar', class 'org/apache/commons/beanutils/MethodUtils', contains string [java.specification.version]
/modules/system/layers/base/org/apache/commons/collections/main/commons-collections-3.2.2.jar', class 'org/apache/commons/collections/MultiHashMap', contains string [java.version]
/modules/system/layers/base/org/apache/commons/lang/main/commons-lang-2.6.jar', class 'org/apache/commons/lang/SystemUtils', contains strings [java.specification.version, java.version, java.vm.version, java.runtime.version, java.vm.specification.version]
/modules/system/layers/base/org/apache/httpcomponents/main/httpcore-4.4.1.jar', class 'org/apache/http/util/VersionInfo', contains string [java.version]
/modules/system/layers/base/org/apache/avro/main/avro-1.7.6.jar', class 'org/apache/avro/util/Utf8', contains string [java.version]
/modules/system/layers/base/org/apache/ws/security/main/wss4j-ws-security-common-2.1.4.jar', class 'org/apache/wss4j/common/kerberos/KerberosServiceExceptionAction', contains string [java.version]
/modules/system/layers/base/org/apache/ws/security/main/wss4j-ws-security-common-2.1.4.jar', class 'org/apache/wss4j/common/kerberos/KerberosClientExceptionAction', contains string [java.version]
/modules/system/layers/base/org/apache/ws/security/main/jasypt-1.9.1.jar', class 'org/jasypt/intf/cli/CLIUtils', contains string [java.vm.version]
/modules/system/layers/base/org/apache/lucene/main/lucene-core-5.3.1.jar', class 'org/apache/lucene/index/IndexWriter', contains strings [java.version, java.vm.version, java.runtime.version]
/modules/system/layers/base/org/apache/lucene/main/lucene-core-5.3.1.jar', class 'org/apache/lucene/util/Constants', contains strings [java.specification.version, java.vm.version, java.version]
/modules/system/layers/base/org/apache/xalan/main/xalan-2.7.1.jbossorg-2.jar', class 'org/apache/xalan/xslt/EnvironmentCheck', contains string [java.version]
/modules/system/layers/base/org/apache/santuario/xmlsec/main/xmlsec-2.0.5.jar', class 'org/apache/jcp/xml/dsig/internal/dom/DOMKeyValue$EC', contains string [java.version]
/modules/system/layers/base/org/apache/cxf/main/cxf-core-3.1.4.jar', class 'org/apache/cxf/common/util/ClassHelper', contains string [java.version]
/modules/system/layers/base/org/jboss/metadata/web/main/jboss-metadata-web-10.0.0.Final.jar', class 'org/jboss/metadata/web/jboss/JBossWebMetaData', contains string [java.version]
/modules/system/layers/base/org/jboss/as/server/main/wildfly-server-2.1.0.CR3-SNAPSHOT.jar', class 'org/jboss/as/server/operations/AbstractInstallationReporter', contains strings [java.version, java.vm.specification.version]
/modules/system/layers/base/org/jboss/as/server/main/wildfly-server-2.1.0.CR3-SNAPSHOT.jar', class 'org/jboss/as/server/deployment/module/ModuleSpecProcessor', contains strings [java.specification.version, java.version, java.vm.version, java.runtime.version, java.vm.specification.version]
/modules/system/layers/base/org/jboss/as/platform-mbean/main/wildfly-platform-mbean-2.1.0.CR3-SNAPSHOT.jar', class 'org/jboss/as/platform/mbean/PlatformMBeanUtil', contains string [java.specification.version]
/modules/system/layers/base/org/jboss/as/cli/main/wildfly-cli-2.1.0.CR3-SNAPSHOT.jar', class 'org/jboss/as/cli/handlers/VersionHandler', contains strings [java.version, java.vm.version]
/modules/system/layers/base/org/jboss/as/jsr77/main/wildfly-jsr77-10.1.0.Final-SNAPSHOT.jar', class 'org/jboss/as/jsr77/managedobject/JVMHandler', contains string [java.version]
/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final.jar', class 'org/apache/log4j/helpers/Loader', contains string [java.version]
/modules/system/layers/base/org/hibernate/validator/main/hibernate-validator-5.2.4.Final.jar', class 'org/hibernate/validator/internal/util/Version', contains string [java.specification.version]
/modules/system/layers/base/org/jaxen/main/jaxen-1.1.6.jar', class 'org/jaxen/JaxenException', contains string [java.version]
/modules/system/layers/base/org/jaxen/main/jaxen-1.1.6.jar', class 'org/jaxen/saxpath/SAXPathException', contains string [java.version]
/modules/system/layers/base/org/slf4j/main/slf4j-api-1.7.7.jbossorg-1.jar', class 'org/slf4j/helpers/BasicMDCAdapter', contains string [java.version]
/bin/client/jboss-cli-client.jar', class 'org/jboss/as/cli/handlers/VersionHandler', contains strings [java.version, java.vm.version]
/bin/client/jboss-cli-client.jar', class 'org/jboss/modules/Main', contains string [java.specification.version]
/bin/client/jboss-client.jar', class 'org/apache/commons/beanutils/MethodUtils', contains string [java.specification.version]
/bin/client/jboss-client.jar', class 'org/apache/commons/collections/MultiHashMap', contains string [java.version]
/bin/client/jboss-client.jar', class 'com/google/common/base/StandardSystemProperty', contains strings [java.specification.version, java.version, java.vm.version, java.vm.specification.version]
/bin/client/jboss-client.jar', class 'org/slf4j/helpers/BasicMDCAdapter', contains string [java.version]
> Identify problems introduced with new JDK9 versioning scheme
> ------------------------------------------------------------
>
> Key: WFLY-6297
> URL: https://issues.jboss.org/browse/WFLY-6297
> Project: WildFly
> Issue Type: Sub-task
> Components: Build System
> Affects Versions: 10.0.0.Final
> Reporter: Richard Opalka
> Assignee: Richard Opalka
>
> JDK9 will introduce new versioning scheme described here:
> http://openjdk.java.net/projects/verona/
> We need to identify WildFly components that are realying on
> these properties.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month