关于不能初始化ACTION的错误以及排除的办法
最近有测试发邮件说测试WEB前端的时候,有错误报出,我登陆服务器一看,错误代码如下
Error MessageUnable to instantiate Action, counterActionBean, defined for 'counterAction' in namespace '/stat'Error creating bean with name 'counterActionBean' defined in ServletContext resource [/WEB-INF/counter-context.xml]: Cannot resolve reference to bean 'counterChartService' while setting bean property 'ccs'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterChartService' defined in ServletContext resource [/WEB-INF/counter-context.xml]: Cannot resolve reference to bean 'counterDAO' while setting bean property 'counterDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterDAO' defined in ServletContext resource [/WEB-INF/counter-context.xml]: Cannot resolve reference to bean 'counterDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterDS' defined in ServletContext resource [/WEB-INF/counter-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'initialPoolSize' threw exception; nested exception is java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Error during pool creation in Universal Connection Pool Manager MBean
<bean id="counterDS" factory-method="getPoolDataSource" lazy-init="true"><property name="URL" value="${nbg.db.url}" /><property name="user" value="${nbg.db.user}" /><property name="password" value="${nbg.db.password}" /><property name="connectionFactoryClassName" value="oracle.jdbc.pool.OracleDataSource"/><property name="connectionPoolName" value="COUNTER_POOL" /><property name="minPoolSize" value="5" /><property name="maxPoolSize" value="10" /><property name="initialPoolSize" value="5" /><property name="inactiveConnectionTimeout" value="120" /><property name="validateConnectionOnBorrow" value="true" /><property name="maxStatements" value="10" /></bean><bean name="counterDAO" ref="counterDS" /></bean><bean name="counterChartService" ref="counterDAO" /></bean><bean name="counterActionBean" scope="request"><property name="ccs" ref="counterChartService" /></bean>