What is the type of Objects used in the collection?? Are they serialized?? I had a similar issue when i was using the array of objects as the return type.. I fixed that by writing array serializer and deserializer you can try using synchronization wrappers like Collections.*synchronizedCollection() or *Collections.*synchronizedList() once your objects are synchronized. *
On Thu, Aug 27, 2009 at 11:19 AM, Gopalakrishnan <gopalakrish...@vayana.in>wrote: > > Hi all, i am working in Axis 2 webservice development, i am geting > exception > when my service method return the collection type, if return type is int > boolean or String kind of primitive types its working fine, but if i try to > get hashtable type of colection from the service its through exception can > any body suggest me to resolve this > > thanks in advance > > Gopal > ----- Original Message ----- > From: "Math" <matiasberru...@gmail.com> > To: "Java EE (J2EE) Programming with Passion!" > <java-ee-j2ee-programming-with-passion@googlegroups.com> > Sent: Thursday, August 27, 2009 8:36 AM > Subject: [java ee programming] give the start kickoff JPA-Spring > > > > Hello everyone , im trying and trying to configure a project with > maven, spring and jpa. I had read read all google and canĀ“t resolve > the problems. > > first all code is here: > http://code.google.com/p/base2dev/source/browse/#svn/src/trunk/base2dev > > i have so differents troubles . now are throwing this exception > > testSave(ar.fiuba.test.model.TheUserTest) Time elapsed: 2.378 sec > <<< ERROR! > org.springframework.beans.factory.BeanCreationException: Error > creating bean > with name 'user' defined in file > [/media/particionB/dev/java/source/open_source/base2dev/src/trunk/ > base2dev/core/ > target/classes/applicationContext.xml]: Cannot resolve reference to > bean > 'entityManagerFactory' while setting bean property > 'entityManagerFactory '; > nested exception is > org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'entityManagerFactory' defined in file > [/media/particionB/dev/java/source/open_source/base2dev/src/trunk/ > base2dev/core/ > target/classes/applicationContext.xml]: Invocation of init method > failed; nested > exception is javax.persistence.PersistenceException: [PersistenceUnit: > punit] > Unable to build EntityManagerFactory > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference > (BeanDefinitionValueResolver.java:275) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary > (BeanDefinitionValueResolver.java:104) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues > (AbstractAutowireCapableBeanFactory.java:1244) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean > (AbstractAutowireCapableBeanFactory.java:1008) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean > (AbstractAutowireCapableBeanFactory.java:470) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory > $1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > (AbstractAutowireCapableBeanFactory.java:380) > at > org.springframework.beans.factory.support.AbstractBeanFactory > $1.getObject(AbstractBeanFactory.java:264) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > (DefaultSingletonBeanRegistry.java:220) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean > (AbstractBeanFactory.java:261) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:185) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:164) > at ar.fiuba.test.model.TheUserTest.setUp(TheUserTest.java:28) > > > any idea ? > > > > pom > http://code.google.com/p/base2dev/source/browse/src/trunk/base2dev/pom.xml > > persistence > > http://code.google.com/p/base2dev/source/browse/src/trunk/base2dev/core/src/main/java/META-INF/persistence.xml > > spring conf > > http://code.google.com/p/base2dev/source/browse/src/trunk/base2dev/core/src/main/resources/applicationContext.xml > > sample class > > http://code.google.com/p/base2dev/source/browse/src/trunk/base2dev/core/src/main/java/ar/fiuba/model/TheUser.java > > and test > > http://code.google.com/p/base2dev/source/browse/src/trunk/base2dev/core/src/test/java/ar/fiuba/test/model/TheUserTest.java > > > > thanks for any help > > Matias Berrueta > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---