Client app trying to access a Spring based App

Discuss the Spring cartridge here

Client app trying to access a Spring based App

Postby dbendlin » Fri 19. Aug 2005, 16:19

Hello guys,

Im trying to connect from a client (Swing based) application to some spring based application build with andromda.

This is what I needed to to in order to get things up and running
1.- Put the core, common, and workflow jars in the classpath
2.- Put the benRefFactory.xml
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE beans
PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

<bean id="beanRefFactoryEjb"
class="org.springframework.context.support.ClassPathXmlApplicationContext">
<constructor-arg>
<list>
<value>applicationContext-remoteEjb.xml</value>
</list>
</constructor-arg>
</bean>

</beans>

In my app classpath before the core.jar
3.- Put the jboss related jars in my classpath
4.- Put the Postgresql jdbc driver in my classpath

After all of this Im getting the following error:
19/08/2005 02:56:25 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/D:/src/java/JupenCalcuClient/main/src/resources/beanRefFactory.xml]
19/08/2005 02:56:26 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/D:/tmp/JupenCalcu/target/classes/beanRefFactory.xml]
19/08/2005 02:56:26 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'beanRefFactoryEjb': replacing [Root bean with class [org.springframework.context.support.ClassPathXmlApplicationContext] defined in URL [file:/D:/src/java/JupenCalcuClient/main/src/resources/beanRefFactory.xml]] with [Root bean with class [org.springframework.context.support.ClassPathXmlApplicationContext] defined in URL [file:/D:/tmp/JupenCalcu/target/classes/beanRefFactory.xml]]
19/08/2005 02:56:26 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/D:/src/java/JupenCalcuClient/target/classes/beanRefFactory.xml]
19/08/2005 02:56:26 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'beanRefFactoryEjb': replacing [Root bean with class [org.springframework.context.support.ClassPathXmlApplicationContext] defined in URL [file:/D:/tmp/JupenCalcu/target/classes/beanRefFactory.xml]] with [Root bean with class [org.springframework.context.support.ClassPathXmlApplicationContext] defined in URL [file:/D:/src/java/JupenCalcuClient/target/classes/beanRefFactory.xml]]
19/08/2005 02:56:26 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=17758476]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [beanRefFactoryEjb,beanRefFactory]; root of BeanFactory hierarchy
19/08/2005 02:56:26 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 2 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=17758476]
19/08/2005 02:56:26 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
19/08/2005 02:56:27 PM org.springframework.core.CollectionFactory <clinit>
INFO: Commons Collections 3.x available
19/08/2005 02:56:27 PM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1617189]
19/08/2005 02:56:27 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@17d5d2a]
19/08/2005 02:56:27 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [beanRefFactoryEjb,beanRefFactory]; root of BeanFactory hierarchy]
19/08/2005 02:56:27 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'beanRefFactoryEjb'
19/08/2005 02:56:27 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext-remoteEjb.xml]
19/08/2005 02:56:27 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=12577309]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiServerEnvironment,dpncSB]; root of BeanFactory hierarchy
19/08/2005 02:56:27 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 2 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=12577309]
19/08/2005 02:56:27 PM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@107ebe1]
19/08/2005 02:56:27 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@10f11b8]
19/08/2005 02:56:28 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiServerEnvironment,dpncSB]; root of BeanFactory hierarchy]
19/08/2005 02:56:28 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jndiServerEnvironment'
19/08/2005 02:56:28 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'dpncSB'
19/08/2005 02:56:29 PM org.springframework.aop.framework.DefaultAopProxyFactory <clinit>
INFO: CGLIB2 available: proxyTargetClass feature enabled
19/08/2005 02:56:30 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'beanRefFactory'
19/08/2005 02:56:30 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
19/08/2005 02:56:30 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext-localDataSource.xml]
19/08/2005 02:56:30 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext-manageable.xml]
19/08/2005 02:56:30 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=6131844]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,sessionFactory,hibernateInterceptor,salariosDao,salariosDaoTarget,chotoDao,chotoDaoTarget,iPCDao,iPCDaoTarget,serviceTransactionInterceptor,dpncSBTarget,dpncSB,dataSource,transactionManager,manageableServiceTransactionInterceptor,ChotoManageableDao,ChotoManageableDaoBase,ChotoManageableServiceBase,ChotoManageableService]; root of BeanFactory hierarchy
19/08/2005 02:56:30 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 19 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=6131844]
19/08/2005 02:56:30 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'messageSource'
19/08/2005 02:56:30 PM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Using MessageSource [org.springframework.context.support.ResourceBundleMessageSource: basenames=[messages]]
19/08/2005 02:56:30 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@165a3c2]
19/08/2005 02:56:30 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,sessionFactory,hibernateInterceptor,salariosDao,salariosDaoTarget,chotoDao,chotoDaoTarget,iPCDao,iPCDaoTarget,serviceTransactionInterceptor,dpncSBTarget,dpncSB,dataSource,transactionManager,manageableServiceTransactionInterceptor,ChotoManageableDao,ChotoManageableDaoBase,ChotoManageableServiceBase,ChotoManageableService]; root of BeanFactory hierarchy]
19/08/2005 02:56:30 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'sessionFactory'
19/08/2005 02:56:30 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'dataSource'
19/08/2005 02:56:30 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: org.postgresql.Driver
19/08/2005 02:56:30 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.0.5
19/08/2005 02:56:30 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
19/08/2005 02:56:30 PM org.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
19/08/2005 02:56:30 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
19/08/2005 02:56:31 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: jupen.calcu.dpnc.SalariosImpl -> SALARIOS
19/08/2005 02:56:31 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: jupen.calcu.dpnc.ChotoImpl -> CHOTO
19/08/2005 02:56:31 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: jupen.calcu.dgjp.IPCImpl -> I_P_C
19/08/2005 02:56:31 PM org.springframework.orm.hibernate3.LocalSessionFactoryBean afterPropertiesSet
INFO: Building new Hibernate SessionFactory
19/08/2005 02:56:31 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
19/08/2005 02:56:31 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
19/08/2005 02:56:31 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
19/08/2005 02:56:31 PM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
19/08/2005 02:56:31 PM org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: PostgreSQL, version: 8.0.2
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.0 JDBC3 with SSL (build 310)
19/08/2005 02:56:34 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect
19/08/2005 02:56:34 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
19/08/2005 02:56:34 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: null
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default schema: jupendb
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
19/08/2005 02:56:34 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
19/08/2005 02:56:34 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
19/08/2005 02:56:35 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
19/08/2005 02:56:35 PM net.sf.ehcache.config.Configurator configure
ADVERTENCIA: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Documents%20and%20Settings/administrator/.maven/repository/ehcache/jars/ehcache-0.9.jar!/ehcache-failsafe.xml
19/08/2005 02:56:35 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
19/08/2005 02:56:35 PM org.hibernate.impl.SessionFactoryImpl checkNamedQueries
INFO: Checking 0 named queries
19/08/2005 02:56:35 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'hibernateInterceptor'
19/08/2005 02:56:35 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'salariosDao'
19/08/2005 02:56:35 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'salariosDaoTarget'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'chotoDao'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'chotoDaoTarget'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'iPCDao'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'iPCDaoTarget'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'serviceTransactionInterceptor'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'transactionManager'
19/08/2005 02:56:36 PM org.springframework.orm.hibernate3.HibernateTransactionManager afterPropertiesSet
INFO: Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@1cebc9f] of Hibernate SessionFactory for HibernateTransactionManager
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'dpncSBTarget'
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,sessionFactory,hibernateInterceptor,salariosDao,salariosDaoTarget,chotoDao,chotoDaoTarget,iPCDao,iPCDaoTarget,serviceTransactionInterceptor,dpncSBTarget,dpncSB,dataSource,transactionManager,manageableServiceTransactionInterceptor,ChotoManageableDao,ChotoManageableDaoBase,ChotoManageableServiceBase,ChotoManageableService]; root of BeanFactory hierarchy}
19/08/2005 02:56:36 PM org.springframework.orm.hibernate3.LocalSessionFactoryBean destroy
INFO: Closing Hibernate SessionFactory
19/08/2005 02:56:36 PM org.hibernate.impl.SessionFactoryImpl close
INFO: closing
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [beanRefFactoryEjb,beanRefFactory]; root of BeanFactory hierarchy}
19/08/2005 02:56:36 PM org.springframework.context.support.AbstractApplicationContext close
INFO: Closing application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=12577309]
19/08/2005 02:56:36 PM org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiServerEnvironment,dpncSB]; root of BeanFactory hierarchy}
org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefFactory.xml], factory key [beanRefFactoryEjb]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanRefFactory' defined in URL [file:/D:/tmp/JupenCalcu/target/classes/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dpncSBTarget' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'iPCDao' of bean class [jupen.calcu.dpnc.DpncSBImpl]: Bean property 'iPCDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanRefFactory' defined in URL [file:/D:/tmp/JupenCalcu/target/classes/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dpncSBTarget' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'iPCDao' of bean class [jupen.calcu.dpnc.DpncSBImpl]: Bean property 'iPCDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dpncSBTarget' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'iPCDao' of bean class [jupen.calcu.dpnc.DpncSBImpl]: Bean property 'iPCDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dpncSBTarget' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'iPCDao' of bean class [jupen.calcu.dpnc.DpncSBImpl]: Bean property 'iPCDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'iPCDao' of bean class [jupen.calcu.dpnc.DpncSBImpl]: Bean property 'iPCDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:827)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:734)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:886)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:913)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:902)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:967)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:768)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:330)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:614)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:312)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:136)
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:386)
at jupen.calcu.ServiceLocator.getContext(ServiceLocator.java:106)
at jupen.calcu.ServiceLocator.getDpncSB(ServiceLocator.java:162)
at jupen.calcu.client.Main.main(Main.java:19)
Exception in thread "main"
Diego Bendlin
dbendlin
Experienced Member
 
Posts: 248
Joined: Tue 17. May 2005, 20:34
Location: Asunción - Paraguay

Postby chad.brandon » Fri 19. Aug 2005, 16:26

Code: Select all
org.springframework.beans.NotWritablePropertyException: Invalid property 'iPCDao' of bean class [jupen.calcu.dpnc.DpncSBImpl]: Bean property 'iPCDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?


Change the name of your iPC dependency (or give it a name if you haven't since it takes the name of the entity by default)...apparently Spring has issues resolving the DAO reference if the second letter in the property is uppercased (after the first one being lower cased).
Chad Brandon - chad [at] andromda [dot] org
http://www.andromda.org
chad.brandon
AndroMDA Admin
 
Posts: 3054
Joined: Fri 6. May 2005, 20:26
Location: Colorado Springs, CO, USA

Postby dbendlin » Mon 22. Aug 2005, 23:04

Thank you Chad!

That was the problem.

Now I have all eyes on
http://galaxy.andromda.org/forum/viewtopic.php?t=715

Hope Peter can help, I send him a couple of messages to watch the topic above.
Diego Bendlin
dbendlin
Experienced Member
 
Posts: 248
Joined: Tue 17. May 2005, 20:34
Location: Asunción - Paraguay

Postby wouter.zoons » Tue 23. Aug 2005, 02:18

chad.brandon wrote:apparently Spring has issues resolving the DAO reference if the second letter in the property is uppercased (after the first one being lower cased).


so Spring has the same problems Struts has, in that case we might refactor the logic to check for this pattern: currently the same constraint is used by StrutsAttribute, StrutsParameter, StrutsManageableEntityAttribute and StrutsManageableEntityAssociationEnd

from Bpm4StrutsUtils:

Code: Select all
    public static boolean isSafeName(final String name)
    {
        boolean safe = true;

        if (name != null && name.length() > 1)
        {
            safe = !(Character.isLowerCase(name.charAt(0)) && Character.isUpperCase(name.charAt(1)));
        }

        return safe;
    }


perhaps we could move this to the generic facades: AttributeFacade, AssociationEndFacade, ManageableEntityAttribute and ManageableEntityAssociationEnd

what do you think ?
Wouter Zoons - wouter [at] andromda [dot] org
http://www.andromda.org/ - http://draftdog.blogspot.com/
wouter.zoons
AndroMDA Admin
 
Posts: 4137
Joined: Fri 6. May 2005, 18:29
Location: Brussels, Belgium

Postby chad.brandon » Tue 23. Aug 2005, 10:40

We could put it into the andromda-utils (in another utils class) and call that from the cartridge metafacades where appropriate...I don't think we should enforce it in the generic facades though (since those should be implementation independant).
Chad Brandon - chad [at] andromda [dot] org
http://www.andromda.org
chad.brandon
AndroMDA Admin
 
Posts: 3054
Joined: Fri 6. May 2005, 20:26
Location: Colorado Springs, CO, USA


Return to Spring cartridge

Who is online

Users browsing this forum: No registered users and 0 guests