KB-1264 "Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection... Caused by: java.lang.NoSuchMethodException: Method <method> not found" error thrown during application serve

Symptoms

The following warning,for example, is seen in the application server log which prevents the environment from being accessible:

WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.PoolBySubject] (ServerService Thread Pool -- 72) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection
    at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:514)
...
Caused by: java.lang.NoSuchMethodException: Method setServername not found
    at org.jboss.jca.adapters.jdbc.util.Injection.inject(Injection.java:141)

Cause

An exception of type java.lang.NoSuchMethodException can occur when trying to configure a data source using a -ds.xml file if any of the property names has been spelled incorrectly; property names are case sensitive. In the example above, the serverName property is the one incorrectly spelled in the appian-ds.xml file.

Action

  1. Open appian-ds.xml in <JBOSS_HOME>/standalone/deployments.
  2. Change the property to the correct name. For example, from servername to serverName.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: March 2017

Related
Recommended