org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities)

Spring JIRA | Shravan Reddy | 1 decade ago
  1. 0

    I have the following problem when I am using the Spring framework 1.1.5 and I do't have any problem when I use 1.1.2 version. The problem is, I have a following class JDBCObject as below. /** * The JDBCObject allows uniform storage and processing of data of different types - all the JDBC supported types listed in java.sql.Types * * @copyright 2004 UBS IB * @version $Revision: 1.0 $ * * @author $Author: rmanol $ $Date: 2004/04/26 15:07:00 $ */ package com.ubs.tsna.commons.sql; import java.text.ParseException; import com.ubs.tsna.commons.configuration.BeanRegistry; public class JDBCObject { /** * Zero-argument default constructor */ public JDBCObject() { } /** * Constructor; takes a value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @param decimals Number of decimals for this data type */ public JDBCObject(Object value, int javaSqlType, int decimals) { // Initialize the internal members this.javaSqlType = javaSqlType; this.value = value; this.numberOfDecimals = decimals; } /** * Constructor; takes a value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types */ public JDBCObject(Object value, int javaSqlType) { // Initialize the internal members this.javaSqlType = javaSqlType; // this.value = toValue(value, javaSqlType); this.value = value; } /** * Constructor; takes a string value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @throws ParseException when a string value cannot be parsed into a date */ public JDBCObject(String value, int javaSqlType) throws ParseException { // Initialize the internal members this.setJavaSqlType(javaSqlType); this.setValue(value, javaSqlType); } /** * Constructor; takes a string value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType A string identifying the data type of the value passed in. One of the symbolic names enumerated in java.sql.Types * @param decimals Number of decimals for this data type * @throws ParseException when a string value cannot be parsed into a date */ public JDBCObject(String value, String javaSqlTypeName, int decimals) throws ParseException { // Initialize the internal members int type = com.ubs.tsna.commons.sql.Types.getType(javaSqlTypeName); this.setJavaSqlType(type); this.setValue(toValue(value,type,decimals)); this.numberOfDecimals = decimals; } /** * Constructor; takes a string value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType A string identifying the data type of the value passed in. One of the symbolic names enumerated in java.sql.Types * @param outParameter Indicates whether this object is used to represent an output parameter * @param returnStatus Indicates whether this object is used to represent the return status of a stored procedure * @throws ParseException when a string value cannot be parsed into a date */ public JDBCObject(String value, String javaSqlTypeName, boolean outParameter, boolean returnStatus) throws ParseException { // Initialize the internal members this(value, javaSqlTypeName,0); this.outParameter = outParameter; this.returnStatus = returnStatus; } /** * Constructor; takes a cursor and a column position as parameters * @param resultSet An open cursor from which we can read a value * @param columnIndex The index of the column we are trying to read (1..numberOfColumns) * @exception java.sql.SQLException Thrown if the data can not be read from the cursor. */ public JDBCObject(java.sql.ResultSet resultSet, int columnIndex) throws java.sql.SQLException { // Get the metadata for the result set, in order to find the data type of the column java.sql.ResultSetMetaData metaData = resultSet.getMetaData(); // Get the column's data type (one of the values in java.sql.Types) javaSqlType = metaData.getColumnType(columnIndex); // Get the value from the cursor and initialize the internal member switch (javaSqlType) { case java.sql.Types.ARRAY : value = resultSet.getArray(columnIndex); break; case java.sql.Types.BIGINT : value = new Long(resultSet.getLong(columnIndex)); break; case java.sql.Types.BINARY : value = resultSet.getBinaryStream(columnIndex); break; case java.sql.Types.BIT : value = "'?'"; break; case java.sql.Types.BLOB : value = "'?'"; break; case java.sql.Types.CHAR : value = resultSet.getString(columnIndex); break; case java.sql.Types.CLOB : value = resultSet.getClob(columnIndex); break; case java.sql.Types.DATE : value = resultSet.getDate(columnIndex); break; case java.sql.Types.DECIMAL : if (numberOfDecimals==0) { value = new Long(resultSet.getLong(columnIndex)); } else { value = new Double(resultSet.getDouble(columnIndex)); } break; case java.sql.Types.DISTINCT : value = "'?'"; break; case java.sql.Types.DOUBLE : value = new Double(resultSet.getDouble(columnIndex)); break; case java.sql.Types.FLOAT : value = new Float(resultSet.getFloat(columnIndex)); break; case java.sql.Types.INTEGER : value = new Integer(resultSet.getInt(columnIndex)); break; case java.sql.Types.JAVA_OBJECT : value = resultSet.getObject(columnIndex); break; case java.sql.Types.LONGVARBINARY : value = "'?'"; break; case java.sql.Types.LONGVARCHAR : value = resultSet.getString(columnIndex); break; case java.sql.Types.NULL : value = null; break; case java.sql.Types.NUMERIC : value = new Double(resultSet.getDouble(columnIndex)); break; case java.sql.Types.OTHER : value = "'?'"; break; case java.sql.Types.REAL : value = new Double(resultSet.getDouble(columnIndex)); break; case java.sql.Types.REF : value = resultSet.getRef(columnIndex); break; case java.sql.Types.SMALLINT : value = new Short(resultSet.getShort(columnIndex)); break; case java.sql.Types.STRUCT : value = "'?'"; break; case java.sql.Types.TIME : value = resultSet.getDate(columnIndex); break; case java.sql.Types.TIMESTAMP : value = resultSet.getTimestamp(columnIndex); break; case java.sql.Types.TINYINT : value = new Byte(resultSet.getByte(columnIndex)); break; case java.sql.Types.VARBINARY : value = "'?'"; break; case java.sql.Types.VARCHAR : value = resultSet.getString(columnIndex); break; } } /** * The value that is being read from or written to the database. * The data must be of one of the types listed in java.sql.Types */ private Object value; /** * Accessor method for the property value * @return The value. */ public Object getValue() { return value; } /** * Mutator method for the property value. * @param value The value to be set in the property value. */ public void setValue(Object value) { this.value = value; } /** * Mutator method for the property stringValue. * @param stringValue The stringValue to be set in the property stringValue. * @param dataType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @throws ParseException when a string value cannot be converted to a date */ public void setValue(String stringValue, int dataType) throws ParseException { this.value = toValue(stringValue, dataType, numberOfDecimals); } /** * Number of decimals for this data type (if applicable) */ private int numberOfDecimals; /** * Accessor method for the property numberOfDecimals * @return The numberOfDecimals. */ public int getNumberOfDecimals() { return numberOfDecimals; } /** * Mutator method for the property numberOfDecimals. * @param numberOfDecimals The value to be set in the property numberOfDecimals. */ public void setNumberOfDecimals(int numberOfDecimals) { this.numberOfDecimals = numberOfDecimals; } /** * The data type of the value that is being read from or written to the database. * The data type must be of one of the types listed in java.sql.Types */ private int javaSqlType; /** * Accessor method for the property javaSqlType * @return The javaSqlType. */ public int getJavaSqlType() { return javaSqlType; } /** * Mutator method for the property javaSqlType. * @param javaSqlType The value to be set in the property javaSqlType. */ public void setJavaSqlType(int javaSqlType) { this.javaSqlType = javaSqlType; } /** * Tells whether this object corresponds to an output parameter in a stored procedure */ private boolean outParameter; /** * Accessor method for the property outParameter * @return The outParameter. */ public boolean isOutParameter() { return outParameter; } /** * Mutator method for the property outParameter. * @param outParameter The value to be set in the property outParameter. */ public void setOutParameter(boolean outParameter) { this.outParameter = outParameter; } /** * Tells whether this object corresponds to the return status in a stored procedure */ private boolean returnStatus; /** * Accessor method for the property returnStatus * @return The returnStatus. */ public boolean isReturnStatus() { return returnStatus; } /** * Mutator method for the property returnStatus. * @param returnStatus The value to be set in the property returnStatus. */ public void setReturnStatus(boolean returnStatus) { this.returnStatus = returnStatus; } /** * Sets a JDBC value as a parameter in a prepared statement. * It is unusual to have an object set itself onto a target, but this design allows encapsulation of the "switch" statements that deal with the different data types in just one class. * @param preparedStatement A prepared statement that needs parameters * @param columnIndex The index of the column we are trying to set (1..numberOfColumns) * @exception throws java.sql.SQLException Thrown if the data can not be written to the cursor. */ public void setStatementParameter(java.sql.PreparedStatement preparedStatement, int columnIndex) throws java.sql.SQLException { if (value==null) { preparedStatement.setNull(columnIndex,javaSqlType); return; } // Get the value from the cursor and initialise the internal member switch (javaSqlType) { case java.sql.Types.ARRAY : preparedStatement.setArray(columnIndex, (java.sql.Array) value); break; case java.sql.Types.BIGINT : preparedStatement.setBigDecimal(columnIndex, (java.math.BigDecimal) value); break; case java.sql.Types.BINARY : // What needs to ge here? break; case java.sql.Types.BIT : // What needs to ge here? break; case java.sql.Types.BLOB : preparedStatement.setBlob(columnIndex, (java.sql.Blob) value); break; case java.sql.Types.CHAR : preparedStatement.setString(columnIndex, (String) value); break; case java.sql.Types.CLOB : preparedStatement.setClob(columnIndex, (java.sql.Clob) value); break; case java.sql.Types.DATE : preparedStatement.setDate(columnIndex, (java.sql.Date) value); break; case java.sql.Types.DECIMAL : if (numberOfDecimals==0) { preparedStatement.setLong(columnIndex, ((Long) value).longValue()); } else { preparedStatement.setDouble(columnIndex, ((Double) value).doubleValue()); } break; case java.sql.Types.DISTINCT : // What needs to ge here?; break; case java.sql.Types.DOUBLE : preparedStatement.setDouble(columnIndex, ((Double) value).doubleValue()); break; case java.sql.Types.FLOAT : preparedStatement.setFloat(columnIndex, ((Float) value).floatValue()); break; case java.sql.Types.INTEGER : preparedStatement.setInt(columnIndex, ((Integer) value).intValue()); break; case java.sql.Types.JAVA_OBJECT : preparedStatement.setObject(columnIndex, value); break; case java.sql.Types.LONGVARBINARY : // What needs to ge here? break; case java.sql.Types.LONGVARCHAR : preparedStatement.setString(columnIndex, (String) value); break; case java.sql.Types.NULL : preparedStatement.setNull(columnIndex,javaSqlType); break; case java.sql.Types.NUMERIC : preparedStatement.setDouble(columnIndex, ((Double) value).doubleValue()); break; case java.sql.Types.OTHER : // What needs to ge here? break; case java.sql.Types.REAL : preparedStatement.setFloat(columnIndex, ((Float) value).floatValue()); break; case java.sql.Types.REF : preparedStatement.setRef(columnIndex, (java.sql.Ref) value); break; case java.sql.Types.SMALLINT : preparedStatement.setShort(columnIndex, ((Short) value).shortValue()); break; case java.sql.Types.STRUCT : // What needs to ge here? break; case java.sql.Types.TIME : preparedStatement.setDate(columnIndex, (java.sql.Date) value); break; case java.sql.Types.TIMESTAMP : preparedStatement.setTimestamp(columnIndex, (java.sql.Timestamp) value); break; case java.sql.Types.TINYINT : preparedStatement.setByte(columnIndex, ((Byte) value).byteValue()); break; case java.sql.Types.VARBINARY : // What needs to ge here? break; case java.sql.Types.VARCHAR : preparedStatement.setString(columnIndex, (String) value); break; } } /** * Returns the value of the JDBCObject as a string. * Overrides Object.toString(), which returns a string that is not very useful. * @return A string representation of this value. * @exception throws java.sql.SQLException Thrown if the data can not be written to the cursor. */ public String toString() { String valueString = ""; if (value==null) { return valueString; } switch (javaSqlType) { case java.sql.Types.ARRAY : valueString = "'?'"; break; case java.sql.Types.BIGINT : valueString = value.toString(); break; case java.sql.Types.BINARY : valueString = "'?'"; break; case java.sql.Types.BIT : valueString = "'?'"; break; case java.sql.Types.BLOB : valueString = "'?'"; break; case java.sql.Types.CHAR : valueString = (String) value; break; case java.sql.Types.CLOB : valueString = value.toString(); break; case java.sql.Types.DATE : valueString = value.toString(); break; case java.sql.Types.DECIMAL : valueString = value.toString(); break; case java.sql.Types.DISTINCT : valueString = "'?'"; break; case java.sql.Types.DOUBLE : valueString = "" + ((Double) value).doubleValue(); break; case java.sql.Types.FLOAT : valueString = "" + ((Float) value).floatValue(); break; case java.sql.Types.INTEGER : valueString = "" + ((Integer) value).intValue(); break; case java.sql.Types.JAVA_OBJECT : valueString = "'?'"; break; case java.sql.Types.LONGVARBINARY : valueString = "'?'"; break; case java.sql.Types.LONGVARCHAR : valueString = (String) value; break; case java.sql.Types.NULL : valueString = "NULL"; break; case java.sql.Types.NUMERIC : valueString = "" + ((Double) value).doubleValue(); break; case java.sql.Types.OTHER : valueString = "'?'"; break; case java.sql.Types.REAL : valueString = "" + ((Double) value).doubleValue(); break; case java.sql.Types.REF : valueString = "'?'"; break; case java.sql.Types.SMALLINT : valueString = "" + ((Short) value).shortValue(); break; case java.sql.Types.STRUCT : valueString = "'?'"; break; case java.sql.Types.TIME : valueString = ((java.util.Date) value).toString(); break; case java.sql.Types.TIMESTAMP : valueString = ((java.sql.Timestamp) value).toString(); break; case java.sql.Types.TINYINT : valueString = "" + ((Byte) value).byteValue(); break; case java.sql.Types.VARBINARY : valueString = "'?'"; break; case java.sql.Types.VARCHAR : valueString = (String) value; break; } return valueString; } /** * Converts the object's value (provided as a String) to the correct data type. * @param stringValue The JDBC value, as a string * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @param decimals number of decimal positions for this data type * @throws ParseException when a string value cannot be parsed into a date */ public static Object toValue(String stringValue, int dataType, int decimals) throws ParseException { // A date formatter that formats dates in the ODBC format java.text.SimpleDateFormat dateTimeFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java.text.SimpleDateFormat dateFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd"); if ((stringValue==null)||(stringValue.length()==0)) { return null; } switch (dataType) { case java.sql.Types.ARRAY : return stringValue; case java.sql.Types.BIGINT : return new Long(stringValue); case java.sql.Types.BINARY : return stringValue; case java.sql.Types.BIT : return stringValue; case java.sql.Types.BLOB : return stringValue; case java.sql.Types.CHAR : return stringValue; case java.sql.Types.CLOB : return stringValue; case java.sql.Types.DATE : return dateFormatter.parse(stringValue); case java.sql.Types.DECIMAL : if (decimals==0) { return new Long(stringValue); } else { return new Double(stringValue); } case java.sql.Types.DISTINCT : return stringValue; case java.sql.Types.DOUBLE : return new Double(stringValue); case java.sql.Types.FLOAT : return new Float(stringValue); case java.sql.Types.INTEGER : return new Integer(stringValue); case java.sql.Types.JAVA_OBJECT : return stringValue; case java.sql.Types.LONGVARBINARY : return stringValue; case java.sql.Types.LONGVARCHAR : return stringValue; case java.sql.Types.NULL : return null; case java.sql.Types.NUMERIC : return new Double(stringValue); case java.sql.Types.OTHER : return stringValue; case java.sql.Types.REAL : return new Double(stringValue); case java.sql.Types.REF : return stringValue; case java.sql.Types.SMALLINT : return new Short(stringValue); case java.sql.Types.STRUCT : return stringValue; case java.sql.Types.TIME : return new java.sql.Time(dateTimeFormatter.parse(stringValue).getTime()); case java.sql.Types.TIMESTAMP : return new java.sql.Timestamp(dateTimeFormatter.parse(stringValue).getTime()); case java.sql.Types.TINYINT : return new Byte(stringValue); case java.sql.Types.VARBINARY : return stringValue; case java.sql.Types.VARCHAR : return stringValue; } return null; } /** * Converts the object's value to the correct data type. * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @param decimals number of decimal positions for this data type */ private Object toValue(Object value, int javaSqlType, int decimals) { switch (javaSqlType) { case java.sql.Types.ARRAY : return (java.sql.Array) value; case java.sql.Types.BIGINT : return (Long) value; case java.sql.Types.BINARY : return value; case java.sql.Types.BIT : return value; case java.sql.Types.BLOB : return value; case java.sql.Types.CHAR : return value.toString(); case java.sql.Types.CLOB : return value; case java.sql.Types.DATE : return new java.sql.Date(((java.util.Date) value).getTime()); case java.sql.Types.DECIMAL : if (numberOfDecimals==0) { return (Long) value; } else { return (Double) value; } case java.sql.Types.DISTINCT : return value; case java.sql.Types.DOUBLE : return (Double) value; case java.sql.Types.FLOAT : return (Float) value; case java.sql.Types.INTEGER : return (Integer) value; case java.sql.Types.JAVA_OBJECT : return value; case java.sql.Types.LONGVARBINARY : return value; case java.sql.Types.LONGVARCHAR : return value; case java.sql.Types.NULL : return null; case java.sql.Types.NUMERIC : return (Double) value; case java.sql.Types.OTHER : return value; case java.sql.Types.REAL : return (Double) value; case java.sql.Types.REF : return value; case java.sql.Types.SMALLINT : return (Short) value; case java.sql.Types.STRUCT : return value; case java.sql.Types.TIME : return new java.sql.Date(((java.util.Date) value).getTime()); case java.sql.Types.TIMESTAMP : return (java.sql.Timestamp) value; case java.sql.Types.TINYINT : return (Byte) value; case java.sql.Types.VARBINARY : return value; case java.sql.Types.VARCHAR : return value.toString(); } return null; } /** * Returns the value of the JDBCObject as a string. * Overrides Object.toString(), which returns a string that is not very useful. * @return A string representation of this value. * @exception throws java.sql.SQLException Thrown if the data can not be written to the cursor. */ public String toQuotedString() { // A date formatter that formats dates in the ODBC format java.text.SimpleDateFormat dateTimeFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java.text.SimpleDateFormat dateFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd"); String valueString = ""; switch (javaSqlType) { case java.sql.Types.ARRAY : case java.sql.Types.BIGINT : case java.sql.Types.BINARY : case java.sql.Types.BIT : case java.sql.Types.BLOB : case java.sql.Types.CLOB : case java.sql.Types.DECIMAL : case java.sql.Types.DISTINCT : case java.sql.Types.DOUBLE : case java.sql.Types.FLOAT : case java.sql.Types.INTEGER : case java.sql.Types.JAVA_OBJECT : case java.sql.Types.LONGVARBINARY : case java.sql.Types.LONGVARCHAR : case java.sql.Types.NULL : case java.sql.Types.NUMERIC : case java.sql.Types.OTHER : case java.sql.Types.REAL : case java.sql.Types.REF : case java.sql.Types.SMALLINT : case java.sql.Types.STRUCT : case java.sql.Types.TINYINT : case java.sql.Types.VARBINARY : valueString = toString(); break; case java.sql.Types.DATE : case java.sql.Types.TIME : // valueString = "convert(DATE,'"+toString()+"')"; // Sybase valueString = "TO_DATE('"+dateTimeFormatter.format((java.util.Date)value)+"','YYYY-MM-DD HH24:MI:SS')"; // Oracle break; case java.sql.Types.TIMESTAMP : valueString = "TO_DATE('"+dateTimeFormatter.format((java.sql.Timestamp)value) +"','YYYY-MM-DD HH24:MI:SS')"; // Oracle break; case java.sql.Types.CHAR : case java.sql.Types.VARCHAR : valueString = "'"+toString()+"'"; break; } return valueString; } /** * Test method * @param args Program arguments for the class: [0]: bean name from beans.xml */ public static void main(String[] args) { if (args.length<1) { System.out.println("Usage: JDBCObject <beanId> where beanId is a valid bean id from the Spring config file (beans.xml)."); System.exit(1); } JDBCObject jdbcObject = (JDBCObject) BeanRegistry.getBean(args[0],JDBCObject.class); try { System.out.println("JDBCObject instance created: "+jdbcObject.toString()); System.exit(0); } catch (Throwable e) { System.out.println("JDBCObject failed: "); e.printStackTrace(); System.exit(1); } } } and my bean configuration as fallow's <bean id="justTestingThatWeCanDoThis" class="com.ubs.tsna.commons.sql.JDBCObject"> <constructor-arg index="0"><value>0</value></constructor-arg><!-- String value --> <constructor-arg index="1"><value>oracle.jdbc.driver.OracleTypes.CURSOR</value></constructor-arg><!-- String javaSqlTypeName --> <constructor-arg index="2"><value>true</value></constructor-arg><!-- boolean outParameter --> <constructor-arg index="3"><value>false</value></constructor-arg><!-- boolean returnStatus --> </bean> That is I am using a constructor with 4 arguments. JDBCObject(String,String, boolean,boolean) I am facing the problem (Exception is): [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.Object,int,int)] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.String,java.lang.String,int) throws java.text.ParseException] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.Object,int)] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.String,int) throws java.text.ParseException] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.sql.ResultSet,int) throws java.sql.SQLException] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject()] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98)

    Spring JIRA | 1 decade ago | Shravan Reddy
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities)
  2. 0

    I have the following problem when I am using the Spring framework 1.1.5 and I do't have any problem when I use 1.1.2 version. The problem is, I have a following class JDBCObject as below. /** * The JDBCObject allows uniform storage and processing of data of different types - all the JDBC supported types listed in java.sql.Types * * @copyright 2004 UBS IB * @version $Revision: 1.0 $ * * @author $Author: rmanol $ $Date: 2004/04/26 15:07:00 $ */ package com.ubs.tsna.commons.sql; import java.text.ParseException; import com.ubs.tsna.commons.configuration.BeanRegistry; public class JDBCObject { /** * Zero-argument default constructor */ public JDBCObject() { } /** * Constructor; takes a value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @param decimals Number of decimals for this data type */ public JDBCObject(Object value, int javaSqlType, int decimals) { // Initialize the internal members this.javaSqlType = javaSqlType; this.value = value; this.numberOfDecimals = decimals; } /** * Constructor; takes a value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types */ public JDBCObject(Object value, int javaSqlType) { // Initialize the internal members this.javaSqlType = javaSqlType; // this.value = toValue(value, javaSqlType); this.value = value; } /** * Constructor; takes a string value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @throws ParseException when a string value cannot be parsed into a date */ public JDBCObject(String value, int javaSqlType) throws ParseException { // Initialize the internal members this.setJavaSqlType(javaSqlType); this.setValue(value, javaSqlType); } /** * Constructor; takes a string value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType A string identifying the data type of the value passed in. One of the symbolic names enumerated in java.sql.Types * @param decimals Number of decimals for this data type * @throws ParseException when a string value cannot be parsed into a date */ public JDBCObject(String value, String javaSqlTypeName, int decimals) throws ParseException { // Initialize the internal members int type = com.ubs.tsna.commons.sql.Types.getType(javaSqlTypeName); this.setJavaSqlType(type); this.setValue(toValue(value,type,decimals)); this.numberOfDecimals = decimals; } /** * Constructor; takes a string value and a data type as parameters * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType A string identifying the data type of the value passed in. One of the symbolic names enumerated in java.sql.Types * @param outParameter Indicates whether this object is used to represent an output parameter * @param returnStatus Indicates whether this object is used to represent the return status of a stored procedure * @throws ParseException when a string value cannot be parsed into a date */ public JDBCObject(String value, String javaSqlTypeName, boolean outParameter, boolean returnStatus) throws ParseException { // Initialize the internal members this(value, javaSqlTypeName,0); this.outParameter = outParameter; this.returnStatus = returnStatus; } /** * Constructor; takes a cursor and a column position as parameters * @param resultSet An open cursor from which we can read a value * @param columnIndex The index of the column we are trying to read (1..numberOfColumns) * @exception java.sql.SQLException Thrown if the data can not be read from the cursor. */ public JDBCObject(java.sql.ResultSet resultSet, int columnIndex) throws java.sql.SQLException { // Get the metadata for the result set, in order to find the data type of the column java.sql.ResultSetMetaData metaData = resultSet.getMetaData(); // Get the column's data type (one of the values in java.sql.Types) javaSqlType = metaData.getColumnType(columnIndex); // Get the value from the cursor and initialize the internal member switch (javaSqlType) { case java.sql.Types.ARRAY : value = resultSet.getArray(columnIndex); break; case java.sql.Types.BIGINT : value = new Long(resultSet.getLong(columnIndex)); break; case java.sql.Types.BINARY : value = resultSet.getBinaryStream(columnIndex); break; case java.sql.Types.BIT : value = "'?'"; break; case java.sql.Types.BLOB : value = "'?'"; break; case java.sql.Types.CHAR : value = resultSet.getString(columnIndex); break; case java.sql.Types.CLOB : value = resultSet.getClob(columnIndex); break; case java.sql.Types.DATE : value = resultSet.getDate(columnIndex); break; case java.sql.Types.DECIMAL : if (numberOfDecimals==0) { value = new Long(resultSet.getLong(columnIndex)); } else { value = new Double(resultSet.getDouble(columnIndex)); } break; case java.sql.Types.DISTINCT : value = "'?'"; break; case java.sql.Types.DOUBLE : value = new Double(resultSet.getDouble(columnIndex)); break; case java.sql.Types.FLOAT : value = new Float(resultSet.getFloat(columnIndex)); break; case java.sql.Types.INTEGER : value = new Integer(resultSet.getInt(columnIndex)); break; case java.sql.Types.JAVA_OBJECT : value = resultSet.getObject(columnIndex); break; case java.sql.Types.LONGVARBINARY : value = "'?'"; break; case java.sql.Types.LONGVARCHAR : value = resultSet.getString(columnIndex); break; case java.sql.Types.NULL : value = null; break; case java.sql.Types.NUMERIC : value = new Double(resultSet.getDouble(columnIndex)); break; case java.sql.Types.OTHER : value = "'?'"; break; case java.sql.Types.REAL : value = new Double(resultSet.getDouble(columnIndex)); break; case java.sql.Types.REF : value = resultSet.getRef(columnIndex); break; case java.sql.Types.SMALLINT : value = new Short(resultSet.getShort(columnIndex)); break; case java.sql.Types.STRUCT : value = "'?'"; break; case java.sql.Types.TIME : value = resultSet.getDate(columnIndex); break; case java.sql.Types.TIMESTAMP : value = resultSet.getTimestamp(columnIndex); break; case java.sql.Types.TINYINT : value = new Byte(resultSet.getByte(columnIndex)); break; case java.sql.Types.VARBINARY : value = "'?'"; break; case java.sql.Types.VARCHAR : value = resultSet.getString(columnIndex); break; } } /** * The value that is being read from or written to the database. * The data must be of one of the types listed in java.sql.Types */ private Object value; /** * Accessor method for the property value * @return The value. */ public Object getValue() { return value; } /** * Mutator method for the property value. * @param value The value to be set in the property value. */ public void setValue(Object value) { this.value = value; } /** * Mutator method for the property stringValue. * @param stringValue The stringValue to be set in the property stringValue. * @param dataType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @throws ParseException when a string value cannot be converted to a date */ public void setValue(String stringValue, int dataType) throws ParseException { this.value = toValue(stringValue, dataType, numberOfDecimals); } /** * Number of decimals for this data type (if applicable) */ private int numberOfDecimals; /** * Accessor method for the property numberOfDecimals * @return The numberOfDecimals. */ public int getNumberOfDecimals() { return numberOfDecimals; } /** * Mutator method for the property numberOfDecimals. * @param numberOfDecimals The value to be set in the property numberOfDecimals. */ public void setNumberOfDecimals(int numberOfDecimals) { this.numberOfDecimals = numberOfDecimals; } /** * The data type of the value that is being read from or written to the database. * The data type must be of one of the types listed in java.sql.Types */ private int javaSqlType; /** * Accessor method for the property javaSqlType * @return The javaSqlType. */ public int getJavaSqlType() { return javaSqlType; } /** * Mutator method for the property javaSqlType. * @param javaSqlType The value to be set in the property javaSqlType. */ public void setJavaSqlType(int javaSqlType) { this.javaSqlType = javaSqlType; } /** * Tells whether this object corresponds to an output parameter in a stored procedure */ private boolean outParameter; /** * Accessor method for the property outParameter * @return The outParameter. */ public boolean isOutParameter() { return outParameter; } /** * Mutator method for the property outParameter. * @param outParameter The value to be set in the property outParameter. */ public void setOutParameter(boolean outParameter) { this.outParameter = outParameter; } /** * Tells whether this object corresponds to the return status in a stored procedure */ private boolean returnStatus; /** * Accessor method for the property returnStatus * @return The returnStatus. */ public boolean isReturnStatus() { return returnStatus; } /** * Mutator method for the property returnStatus. * @param returnStatus The value to be set in the property returnStatus. */ public void setReturnStatus(boolean returnStatus) { this.returnStatus = returnStatus; } /** * Sets a JDBC value as a parameter in a prepared statement. * It is unusual to have an object set itself onto a target, but this design allows encapsulation of the "switch" statements that deal with the different data types in just one class. * @param preparedStatement A prepared statement that needs parameters * @param columnIndex The index of the column we are trying to set (1..numberOfColumns) * @exception throws java.sql.SQLException Thrown if the data can not be written to the cursor. */ public void setStatementParameter(java.sql.PreparedStatement preparedStatement, int columnIndex) throws java.sql.SQLException { if (value==null) { preparedStatement.setNull(columnIndex,javaSqlType); return; } // Get the value from the cursor and initialise the internal member switch (javaSqlType) { case java.sql.Types.ARRAY : preparedStatement.setArray(columnIndex, (java.sql.Array) value); break; case java.sql.Types.BIGINT : preparedStatement.setBigDecimal(columnIndex, (java.math.BigDecimal) value); break; case java.sql.Types.BINARY : // What needs to ge here? break; case java.sql.Types.BIT : // What needs to ge here? break; case java.sql.Types.BLOB : preparedStatement.setBlob(columnIndex, (java.sql.Blob) value); break; case java.sql.Types.CHAR : preparedStatement.setString(columnIndex, (String) value); break; case java.sql.Types.CLOB : preparedStatement.setClob(columnIndex, (java.sql.Clob) value); break; case java.sql.Types.DATE : preparedStatement.setDate(columnIndex, (java.sql.Date) value); break; case java.sql.Types.DECIMAL : if (numberOfDecimals==0) { preparedStatement.setLong(columnIndex, ((Long) value).longValue()); } else { preparedStatement.setDouble(columnIndex, ((Double) value).doubleValue()); } break; case java.sql.Types.DISTINCT : // What needs to ge here?; break; case java.sql.Types.DOUBLE : preparedStatement.setDouble(columnIndex, ((Double) value).doubleValue()); break; case java.sql.Types.FLOAT : preparedStatement.setFloat(columnIndex, ((Float) value).floatValue()); break; case java.sql.Types.INTEGER : preparedStatement.setInt(columnIndex, ((Integer) value).intValue()); break; case java.sql.Types.JAVA_OBJECT : preparedStatement.setObject(columnIndex, value); break; case java.sql.Types.LONGVARBINARY : // What needs to ge here? break; case java.sql.Types.LONGVARCHAR : preparedStatement.setString(columnIndex, (String) value); break; case java.sql.Types.NULL : preparedStatement.setNull(columnIndex,javaSqlType); break; case java.sql.Types.NUMERIC : preparedStatement.setDouble(columnIndex, ((Double) value).doubleValue()); break; case java.sql.Types.OTHER : // What needs to ge here? break; case java.sql.Types.REAL : preparedStatement.setFloat(columnIndex, ((Float) value).floatValue()); break; case java.sql.Types.REF : preparedStatement.setRef(columnIndex, (java.sql.Ref) value); break; case java.sql.Types.SMALLINT : preparedStatement.setShort(columnIndex, ((Short) value).shortValue()); break; case java.sql.Types.STRUCT : // What needs to ge here? break; case java.sql.Types.TIME : preparedStatement.setDate(columnIndex, (java.sql.Date) value); break; case java.sql.Types.TIMESTAMP : preparedStatement.setTimestamp(columnIndex, (java.sql.Timestamp) value); break; case java.sql.Types.TINYINT : preparedStatement.setByte(columnIndex, ((Byte) value).byteValue()); break; case java.sql.Types.VARBINARY : // What needs to ge here? break; case java.sql.Types.VARCHAR : preparedStatement.setString(columnIndex, (String) value); break; } } /** * Returns the value of the JDBCObject as a string. * Overrides Object.toString(), which returns a string that is not very useful. * @return A string representation of this value. * @exception throws java.sql.SQLException Thrown if the data can not be written to the cursor. */ public String toString() { String valueString = ""; if (value==null) { return valueString; } switch (javaSqlType) { case java.sql.Types.ARRAY : valueString = "'?'"; break; case java.sql.Types.BIGINT : valueString = value.toString(); break; case java.sql.Types.BINARY : valueString = "'?'"; break; case java.sql.Types.BIT : valueString = "'?'"; break; case java.sql.Types.BLOB : valueString = "'?'"; break; case java.sql.Types.CHAR : valueString = (String) value; break; case java.sql.Types.CLOB : valueString = value.toString(); break; case java.sql.Types.DATE : valueString = value.toString(); break; case java.sql.Types.DECIMAL : valueString = value.toString(); break; case java.sql.Types.DISTINCT : valueString = "'?'"; break; case java.sql.Types.DOUBLE : valueString = "" + ((Double) value).doubleValue(); break; case java.sql.Types.FLOAT : valueString = "" + ((Float) value).floatValue(); break; case java.sql.Types.INTEGER : valueString = "" + ((Integer) value).intValue(); break; case java.sql.Types.JAVA_OBJECT : valueString = "'?'"; break; case java.sql.Types.LONGVARBINARY : valueString = "'?'"; break; case java.sql.Types.LONGVARCHAR : valueString = (String) value; break; case java.sql.Types.NULL : valueString = "NULL"; break; case java.sql.Types.NUMERIC : valueString = "" + ((Double) value).doubleValue(); break; case java.sql.Types.OTHER : valueString = "'?'"; break; case java.sql.Types.REAL : valueString = "" + ((Double) value).doubleValue(); break; case java.sql.Types.REF : valueString = "'?'"; break; case java.sql.Types.SMALLINT : valueString = "" + ((Short) value).shortValue(); break; case java.sql.Types.STRUCT : valueString = "'?'"; break; case java.sql.Types.TIME : valueString = ((java.util.Date) value).toString(); break; case java.sql.Types.TIMESTAMP : valueString = ((java.sql.Timestamp) value).toString(); break; case java.sql.Types.TINYINT : valueString = "" + ((Byte) value).byteValue(); break; case java.sql.Types.VARBINARY : valueString = "'?'"; break; case java.sql.Types.VARCHAR : valueString = (String) value; break; } return valueString; } /** * Converts the object's value (provided as a String) to the correct data type. * @param stringValue The JDBC value, as a string * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @param decimals number of decimal positions for this data type * @throws ParseException when a string value cannot be parsed into a date */ public static Object toValue(String stringValue, int dataType, int decimals) throws ParseException { // A date formatter that formats dates in the ODBC format java.text.SimpleDateFormat dateTimeFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java.text.SimpleDateFormat dateFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd"); if ((stringValue==null)||(stringValue.length()==0)) { return null; } switch (dataType) { case java.sql.Types.ARRAY : return stringValue; case java.sql.Types.BIGINT : return new Long(stringValue); case java.sql.Types.BINARY : return stringValue; case java.sql.Types.BIT : return stringValue; case java.sql.Types.BLOB : return stringValue; case java.sql.Types.CHAR : return stringValue; case java.sql.Types.CLOB : return stringValue; case java.sql.Types.DATE : return dateFormatter.parse(stringValue); case java.sql.Types.DECIMAL : if (decimals==0) { return new Long(stringValue); } else { return new Double(stringValue); } case java.sql.Types.DISTINCT : return stringValue; case java.sql.Types.DOUBLE : return new Double(stringValue); case java.sql.Types.FLOAT : return new Float(stringValue); case java.sql.Types.INTEGER : return new Integer(stringValue); case java.sql.Types.JAVA_OBJECT : return stringValue; case java.sql.Types.LONGVARBINARY : return stringValue; case java.sql.Types.LONGVARCHAR : return stringValue; case java.sql.Types.NULL : return null; case java.sql.Types.NUMERIC : return new Double(stringValue); case java.sql.Types.OTHER : return stringValue; case java.sql.Types.REAL : return new Double(stringValue); case java.sql.Types.REF : return stringValue; case java.sql.Types.SMALLINT : return new Short(stringValue); case java.sql.Types.STRUCT : return stringValue; case java.sql.Types.TIME : return new java.sql.Time(dateTimeFormatter.parse(stringValue).getTime()); case java.sql.Types.TIMESTAMP : return new java.sql.Timestamp(dateTimeFormatter.parse(stringValue).getTime()); case java.sql.Types.TINYINT : return new Byte(stringValue); case java.sql.Types.VARBINARY : return stringValue; case java.sql.Types.VARCHAR : return stringValue; } return null; } /** * Converts the object's value to the correct data type. * @param value The JDBC value (one of the valid JDBC data types) * @param javaSqlType An integer identifying the data type of the value passed in. One of the values enumerated in java.sql.Types * @param decimals number of decimal positions for this data type */ private Object toValue(Object value, int javaSqlType, int decimals) { switch (javaSqlType) { case java.sql.Types.ARRAY : return (java.sql.Array) value; case java.sql.Types.BIGINT : return (Long) value; case java.sql.Types.BINARY : return value; case java.sql.Types.BIT : return value; case java.sql.Types.BLOB : return value; case java.sql.Types.CHAR : return value.toString(); case java.sql.Types.CLOB : return value; case java.sql.Types.DATE : return new java.sql.Date(((java.util.Date) value).getTime()); case java.sql.Types.DECIMAL : if (numberOfDecimals==0) { return (Long) value; } else { return (Double) value; } case java.sql.Types.DISTINCT : return value; case java.sql.Types.DOUBLE : return (Double) value; case java.sql.Types.FLOAT : return (Float) value; case java.sql.Types.INTEGER : return (Integer) value; case java.sql.Types.JAVA_OBJECT : return value; case java.sql.Types.LONGVARBINARY : return value; case java.sql.Types.LONGVARCHAR : return value; case java.sql.Types.NULL : return null; case java.sql.Types.NUMERIC : return (Double) value; case java.sql.Types.OTHER : return value; case java.sql.Types.REAL : return (Double) value; case java.sql.Types.REF : return value; case java.sql.Types.SMALLINT : return (Short) value; case java.sql.Types.STRUCT : return value; case java.sql.Types.TIME : return new java.sql.Date(((java.util.Date) value).getTime()); case java.sql.Types.TIMESTAMP : return (java.sql.Timestamp) value; case java.sql.Types.TINYINT : return (Byte) value; case java.sql.Types.VARBINARY : return value; case java.sql.Types.VARCHAR : return value.toString(); } return null; } /** * Returns the value of the JDBCObject as a string. * Overrides Object.toString(), which returns a string that is not very useful. * @return A string representation of this value. * @exception throws java.sql.SQLException Thrown if the data can not be written to the cursor. */ public String toQuotedString() { // A date formatter that formats dates in the ODBC format java.text.SimpleDateFormat dateTimeFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java.text.SimpleDateFormat dateFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd"); String valueString = ""; switch (javaSqlType) { case java.sql.Types.ARRAY : case java.sql.Types.BIGINT : case java.sql.Types.BINARY : case java.sql.Types.BIT : case java.sql.Types.BLOB : case java.sql.Types.CLOB : case java.sql.Types.DECIMAL : case java.sql.Types.DISTINCT : case java.sql.Types.DOUBLE : case java.sql.Types.FLOAT : case java.sql.Types.INTEGER : case java.sql.Types.JAVA_OBJECT : case java.sql.Types.LONGVARBINARY : case java.sql.Types.LONGVARCHAR : case java.sql.Types.NULL : case java.sql.Types.NUMERIC : case java.sql.Types.OTHER : case java.sql.Types.REAL : case java.sql.Types.REF : case java.sql.Types.SMALLINT : case java.sql.Types.STRUCT : case java.sql.Types.TINYINT : case java.sql.Types.VARBINARY : valueString = toString(); break; case java.sql.Types.DATE : case java.sql.Types.TIME : // valueString = "convert(DATE,'"+toString()+"')"; // Sybase valueString = "TO_DATE('"+dateTimeFormatter.format((java.util.Date)value)+"','YYYY-MM-DD HH24:MI:SS')"; // Oracle break; case java.sql.Types.TIMESTAMP : valueString = "TO_DATE('"+dateTimeFormatter.format((java.sql.Timestamp)value) +"','YYYY-MM-DD HH24:MI:SS')"; // Oracle break; case java.sql.Types.CHAR : case java.sql.Types.VARCHAR : valueString = "'"+toString()+"'"; break; } return valueString; } /** * Test method * @param args Program arguments for the class: [0]: bean name from beans.xml */ public static void main(String[] args) { if (args.length<1) { System.out.println("Usage: JDBCObject <beanId> where beanId is a valid bean id from the Spring config file (beans.xml)."); System.exit(1); } JDBCObject jdbcObject = (JDBCObject) BeanRegistry.getBean(args[0],JDBCObject.class); try { System.out.println("JDBCObject instance created: "+jdbcObject.toString()); System.exit(0); } catch (Throwable e) { System.out.println("JDBCObject failed: "); e.printStackTrace(); System.exit(1); } } } and my bean configuration as fallow's <bean id="justTestingThatWeCanDoThis" class="com.ubs.tsna.commons.sql.JDBCObject"> <constructor-arg index="0"><value>0</value></constructor-arg><!-- String value --> <constructor-arg index="1"><value>oracle.jdbc.driver.OracleTypes.CURSOR</value></constructor-arg><!-- String javaSqlTypeName --> <constructor-arg index="2"><value>true</value></constructor-arg><!-- boolean outParameter --> <constructor-arg index="3"><value>false</value></constructor-arg><!-- boolean returnStatus --> </bean> That is I am using a constructor with 4 arguments. JDBCObject(String,String, boolean,boolean) I am facing the problem (Exception is): [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.Object,int,int)] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.String,java.lang.String,int) throws java.text.ParseException] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.Object,int)] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.lang.String,int) throws java.text.ParseException] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject(java.sql.ResultSet,int) throws java.sql.SQLException] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98) [20050421 13:41:16]WSTM0119994:NOAHSARK:ACKParser:Ignoring constructor [public com.ubs.tsna.commons.sql.JDBCObject()] of bean 'com.ubs.tsna.commons.sql.JDBCObject': could not satisfy dependencies org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508) at com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51) at com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112) at com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98)

    Spring JIRA | 1 decade ago | Shravan Reddy
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities)
  3. 0

    [WG: Sakai QA] Trunk is down

    sakaiproject.org | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.entitybroker.impl.entityprovider.EntityProviderAutoRegistrar' defined in file [/home/tomcat-nightly/sakai-demo-oracle/components/entitybroker-pack/WEB-INF/components.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.sitestats.api.report.ReportDefEntityProvider' defined in class path resource [site-stats-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.sitestats.api.report.ReportManager' while setting bean property 'reportManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.sitestats.api.report.ReportManager' defined in class path resource [site-stats-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.sitestats.api.StatsManager' while setting bean property 'statsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.sitestats.api.StatsManager' defined in class path resource [site-stats-components.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'clusterService' of bean class [org.sakaiproject.sitestats.impl.StatsManagerImpl]: Bean property 'clusterService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Editor / Upload document does not work

    GitHub | 2 years ago | pvgenuchten
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resource.upload.and.link': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private jeeves.server.context.ServiceContext org.fao.geonet.services.resources.UploadAndProcess.context; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [jeeves.server.context.ServiceContext] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  6. 0

    Got following error in running server "java.lang.NoSuchMethodError: java/lang/Object.toString()Ljava/lang/String;"

    Stack Overflow | 3 years ago | Pathik
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean5' defined in ServletContext resource [/WEB-INF/v2_0/myApplicationContext.xml]: Cannot resolve reference to bean 'myBean1' while setting bean property 'myProperty3' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean1' defined in ServletContext resource [/WEB-INF/myApplicationContext.xml]: Cannot resolve reference to bean 'myBean2' while setting bean property 'myProperty4' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean2' defined in ServletContext resource [/WEB-INF/myApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: java/lang/Object.toString()Ljava/lang/String;

  1. tvrmsmith 2 times, last 3 months ago
  2. abrazeneb 2 times, last 4 months ago
  3. rlovtangen 1 times, last 6 months ago
  4. kjhdofjosvs 3 times, last 1 month ago
  5. Tahir 6 times, last 2 months ago
13 more registered users
80 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationException

    Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:490)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveInnerBeanDefinition(AbstractAutowireCapableBeanFactory.java:948)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:909)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveManagedList(AbstractAutowireCapableBeanFactory.java:1000)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:922)
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688)
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325)
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    11. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    12. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    14. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    15. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859)
    16. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688)
    17. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325)
    18. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    19. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    20. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
    20 frames
  3. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:508)
    1 frame
  4. com.ubs.tsna
    ACKReprocess.main
    1. com.ubs.tsna.commons.configuration.BeanRegistry.invokeGetBean(BeanRegistry.java:51)
    2. com.ubs.tsna.commons.configuration.BeanRegistry.getBean(BeanRegistry.java:112)
    3. com.ubs.tsna.noah.ack.ACKReprocess.main(ACKReprocess.java:98)
    3 frames