-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: argument type mismatch
PostPosted: Tue Nov 06, 2007 10:42 pm 
Newbie

Joined: Wed Mar 09, 2005 10:15 pm
Posts: 10
hi All...

I'm getting an argument type mismatch error when trying to load a collection. Based on the stack, I thought it would be a just a setter problem (as the msg indicates), but it's not obvious (to me at least). I'm using hibernate 3.2.2.ga, jboss 4.0.5.ga, jdk 1.5.0_12.

thx in adv...jim

Here's the stack...

Code:
18:25:18,023 ERROR [BasicPropertyAccessor] IllegalArgumentException in class: org.dcri.recruit.persistence.VolunteerPhysician, setter method of property: physician
18:25:18,023 ERROR [BasicPropertyAccessor] expected type: org.dcri.recruit.persistence.Physician, actual value: org.dcri.recruit.persistence.VolunteerImpl
18:25:18,053 ERROR [LogInterceptor] EJBException in method: public abstract org.dcri.recruit.VolunteerSearchObject[] org.dcri.recruit.ejb.VolunteerService.findVolunteers(org.dcri.recruit.VolunteerSearchCriteria), causedBy:
java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:42)
        at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:337)
        at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:200)
        at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3560)
        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129)
        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
        at org.hibernate.loader.Loader.doQuery(Loader.java:717)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
        at org.hibernate.loader.Loader.loadCollectionBatch(Loader.java:2023)
        at org.hibernate.loader.collection.BatchingCollectionInitializer.initialize(BatchingCollectionInitializer.java:4
7)
        at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:56
5)
        at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeColl
ectionEventListener.java:60)
        at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
        at org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:4
54)
        at org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:
784)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:229)
        at org.hibernate.loader.Loader.doList(Loader.java:2211)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
        at org.hibernate.loader.Loader.list(Loader.java:2090)
        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
        at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
        at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
        at org.dcri.recruit.persistence.VolunteerDaoImpl.findVolunteers(VolunteerDaoImpl.java:360)
        at org.dcri.recruit.persistence.VolunteerDaoBase.findVolunteers(VolunteerDaoBase.java:489)
        at org.dcri.recruit.persistence.VolunteerDaoBase.findVolunteers(VolunteerDaoBase.java:449)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:
172)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
        at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:104)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
        at $Proxy106.findVolunteers(Unknown Source)
        at org.dcri.recruit.VolunteerServiceImpl.handleFindVolunteers(VolunteerServiceImpl.java:38)
        at org.dcri.recruit.VolunteerServiceBase.findVolunteers(VolunteerServiceBase.java:302)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:
172)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
        at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:104)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
        at $Proxy114.findVolunteers(Unknown Source)
        at org.dcri.recruit.ejb.VolunteerServiceBean.findVolunteers(VolunteerServiceBean.java:25)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)

        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169
)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
        at org.jboss.ejb.Container.invoke(Container.java:954)
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
        at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
        at $Proxy76.findVolunteers(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInterceptor.java:70)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
        at $Proxy114.findVolunteers(Unknown Source)
        at org.dcri.recruit.web.action.VolunteerAction.searchVolunteers(VolunteerAction.java:293)
        at org.dcri.recruit.web.action.VolunteerAction.execute(VolunteerAction.java:37)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
18:25:18,133 ERROR [STDERR] java.lang.IllegalArgumentException: argument type mismatch
18:25:18,133 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:18,133 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:25:18,133 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

18:25:18,143 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
18:25:18,143 ERROR [STDERR]     at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.ja
va:42)
18:25:18,143 ERROR [STDERR]     at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTup
lizer.java:337)
18:25:18,143 ERROR [STDERR]     at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.ja
va:200)
18:25:18,143 ERROR [STDERR]     at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEnti
tyPersister.java:3560)
18:25:18,143 ERROR [STDERR]     at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129)
18:25:18,143 ERROR [STDERR]     at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
18:25:18,143 ERROR [STDERR]     at org.hibernate.loader.Loader.doQuery(Loader.java:717)
18:25:18,143 ERROR [STDERR]     at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
18:25:18,143 ERROR [STDERR]     at org.hibernate.loader.Loader.loadCollectionBatch(Loader.java:2023)
18:25:18,143 ERROR [STDERR]     at org.hibernate.loader.collection.BatchingCollectionInitializer.initialize(BatchingColl
ectionInitializer.java:47)
18:25:18,153 ERROR [STDERR]     at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCol
lectionPersister.java:565)
$ startjboss
on(DefaultInitializeCollectionEventListener.java:60)
18:25:18,153 ERROR [STDERR]     at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
18:25:18,153 ERROR [STDERR]     at org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPer
sistentCollection.java:454)
18:25:18,173 ERROR [STDERR]     at org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(Stateful
PersistenceContext.java:784)
18:25:18,173 ERROR [STDERR]     at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:229)
18:25:18,173 ERROR [STDERR]     at org.hibernate.loader.Loader.doList(Loader.java:2211)
18:25:18,173 ERROR [STDERR]     at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
18:25:18,173 ERROR [STDERR]     at org.hibernate.loader.Loader.list(Loader.java:2090)
18:25:18,173 ERROR [STDERR]     at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
18:25:18,173 ERROR [STDERR]     at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
18:25:18,173 ERROR [STDERR]     at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
18:25:18,173 ERROR [STDERR]     at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
18:25:18,173 ERROR [STDERR]     at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
18:25:18,173 ERROR [STDERR]     at org.dcri.recruit.persistence.VolunteerDaoImpl.findVolunteers(VolunteerDaoImpl.java:36
0)
18:25:18,173 ERROR [STDERR]     at org.dcri.recruit.persistence.VolunteerDaoBase.findVolunteers(VolunteerDaoBase.java:48
9)
18:25:18,183 ERROR [STDERR]     at org.dcri.recruit.persistence.VolunteerDaoBase.findVolunteers(VolunteerDaoBase.java:44
9)
18:25:18,183 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:18,183 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:25:18,183 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

18:25:18,183 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
18:25:18,183 ERROR [STDERR]     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java
:304)
18:25:18,183 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(Reflecti
veMethodInvocation.java:172)
18:25:18,193 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
Invocation.java:139)
18:25:18,193 ERROR [STDERR]     at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.j
ava:104)
18:25:18,193 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
Invocation.java:161)
18:25:18,193 ERROR [STDERR]     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:2
03)
18:25:18,193 ERROR [STDERR]     at $Proxy106.findVolunteers(Unknown Source)
18:25:18,193 ERROR [STDERR]     at org.dcri.recruit.VolunteerServiceImpl.handleFindVolunteers(VolunteerServiceImpl.java:
38)
18:25:18,193 ERROR [STDERR]     at org.dcri.recruit.VolunteerServiceBase.findVolunteers(VolunteerServiceBase.java:302)
18:25:18,193 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:18,193 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:25:18,203 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

18:25:18,203 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
18:25:18,203 ERROR [STDERR]     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java
:304)
18:25:18,203 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(Reflecti
veMethodInvocation.java:172)
18:25:18,203 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
Invocation.java:139)
18:25:18,203 ERROR [STDERR]     at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.j
ava:104)
18:25:18,203 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
Invocation.java:161)
18:25:18,213 ERROR [STDERR]     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:2
03)
18:25:18,213 ERROR [STDERR]     at $Proxy114.findVolunteers(Unknown Source)
18:25:18,213 ERROR [STDERR]     at org.dcri.recruit.ejb.VolunteerServiceBean.findVolunteers(VolunteerServiceBean.java:25
)
18:25:18,213 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:18,213 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:25:18,213 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

18:25:18,213 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
18:25:18,213 ERROR [STDERR]     at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
18:25:18,213 ERROR [STDERR]     at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionC
ontainer.java:237)
18:25:18,213 ERROR [STDERR]     at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnect
ionInterceptor.java:158)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInst
anceInterceptor.java:169)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java
:63)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121
)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
18:25:18,223 ERROR [STDERR]     at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderIntercep
tor.java:136)
18:25:18,233 ERROR [STDERR]     at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
18:25:18,233 ERROR [STDERR]     at org.jboss.ejb.Container.invoke(Container.java:954)
18:25:18,233 ERROR [STDERR]     at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:4
30)
18:25:18,233 ERROR [STDERR]     at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:1
03)
18:25:18,233 ERROR [STDERR]     at $Proxy76.findVolunteers(Unknown Source)
18:25:18,233 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:25:18,233 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:25:18,233 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

18:25:18,243 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
18:25:18,243 ERROR [STDERR]     at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInt
erceptor.java:70)
18:25:18,243 ERROR [STDERR]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
Invocation.java:161)
18:25:18,243 ERROR [STDERR]     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:2
03)
18:25:18,243 ERROR [STDERR]     at $Proxy114.findVolunteers(Unknown Source)
18:25:18,243 ERROR [STDERR]     at org.dcri.recruit.web.action.VolunteerAction.searchVolunteers(VolunteerAction.java:293
)
18:25:18,243 ERROR [STDERR]     at org.dcri.recruit.web.action.VolunteerAction.execute(VolunteerAction.java:37)
18:25:18,243 ERROR [STDERR]     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:
421)
18:25:18,243 ERROR [STDERR]     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
18:25:18,243 ERROR [STDERR]     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
18:25:18,253 ERROR [STDERR]     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
18:25:18,253 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
18:25:18,253 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
18:25:18,253 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
in.java:252)
18:25:18,253 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
173)
18:25:18,253 ERROR [STDERR]     at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125
)
18:25:18,253 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
in.java:202)
18:25:18,253 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
173)
18:25:18,263 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
18:25:18,263 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
in.java:202)
18:25:18,263 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
173)
18:25:18,263 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
18:25:18,263 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
18:25:18,263 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValv
e.java:175)
18:25:18,263 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
18:25:18,263 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
18:25:18,263 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
18:25:18,263 ERROR [STDERR]     at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
156)
18:25:18,273 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
18:25:18,273 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
18:25:18,273 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
18:25:18,273 ERROR [STDERR]     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
18:25:18,273 ERROR [STDERR]     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
18:25:18,273 ERROR [STDERR]     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:1
12)
18:25:18,273 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)
18:25:18,353 INFO  [STDOUT]


Here's my mapping file...

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping default-cascade="none">
    <class name="org.dcri.recruit.persistence.VolunteerPhysicianImpl" table="VOLUNTEER_PHYSICIAN" dynamic-insert="false" dynamic-update="false">
        <id name="id" type="java.lang.Long" unsaved-value="null">
            <column name="ID" sql-type="NUMBER(19)"/>
            <generator class="sequence">
                <param name="sequence">VOLUNTEER_PHYSICIAN_SEQ</param>
            </generator>
        </id>
        <property name="hasGrantedContactPermission" type="java.lang.Boolean">
            <column name="HAS_GRANTED_CONTACT_PERMISSION" not-null="false" unique="false" sql-type="NUMBER(1)"/>
        </property>
        <property name="hasGrantedMedicalRecordPermission" type="java.lang.Boolean">
            <column name="HAS_GRANTED_MEDICAL_RECORD_PER" not-null="false" unique="false" sql-type="NUMBER(1)"/>
        </property>
        <property name="medicalRecordNumber" type="java.lang.String">
            <column name="MEDICAL_RECORD_NUMBER" not-null="false" unique="false" sql-type="VARCHAR2(255)"/>
        </property>
        <many-to-one name="physician" class="org.dcri.recruit.persistence.PhysicianImpl" foreign-key="VOLUNTEER_PHYSICIAN_PHYSICIANC" not-null="true" lazy="proxy" fetch="select">
            <column name="PHYSICIAN_FK" not-null="true" sql-type="NUMBER(19)"/>
        </many-to-one>
        <many-to-one name="volunteer" class="org.dcri.recruit.persistence.VolunteerImpl" cascade="none" foreign-key="VOLUNTEER_PHYSICIAN_VOLUNTEERC" not-null="true" lazy="proxy" fetch="select">
            <column name="VOLUNTEER_FK" not-null="true" sql-type="NUMBER(19)"/>
        </many-to-one>
    </class>
</hibernate-mapping>



and my pojo...

Code:
package org.dcri.recruit.persistence;

/**
*
*/
public abstract class VolunteerPhysician
    implements java.io.Serializable
{
    /**
     * The serial version UID of this class. Needed for serialization.
     */
    private static final long serialVersionUID = -9173383239775886283L;

    private java.lang.Boolean hasGrantedContactPermission;

    /**
     *
     */
    public java.lang.Boolean getHasGrantedContactPermission()
    {
        return this.hasGrantedContactPermission;
    }

    public void setHasGrantedContactPermission(java.lang.Boolean hasGrantedContactPermission)
    {
        this.hasGrantedContactPermission = hasGrantedContactPermission;
    }

    private java.lang.Boolean hasGrantedMedicalRecordPermission;

    /**
     *
     */
    public java.lang.Boolean getHasGrantedMedicalRecordPermission()
    {
        return this.hasGrantedMedicalRecordPermission;
    }

    public void setHasGrantedMedicalRecordPermission(java.lang.Boolean hasGrantedMedicalRecordPermission)
    {
        this.hasGrantedMedicalRecordPermission = hasGrantedMedicalRecordPermission;
    }

    private java.lang.String medicalRecordNumber;

    /**
     *
     */
    public java.lang.String getMedicalRecordNumber()
    {
        return this.medicalRecordNumber;
    }

    public void setMedicalRecordNumber(java.lang.String medicalRecordNumber)
    {
        this.medicalRecordNumber = medicalRecordNumber;
    }

    private java.lang.Long id;

    /**
     *
     */
    public java.lang.Long getId()
    {
        return this.id;
    }

    public void setId(java.lang.Long id)
    {
        this.id = id;
    }

    private org.dcri.recruit.persistence.Physician physician;

    /**
     *
     */
    public org.dcri.recruit.persistence.Physician getPhysician()
    {
        return this.physician;
    }

    public void setPhysician(org.dcri.recruit.persistence.Physician physician)
    {
        this.physician = physician;
    }

    private org.dcri.recruit.persistence.Volunteer volunteer;

    /**
     *
     */
    public org.dcri.recruit.persistence.Volunteer getVolunteer()
    {
        return this.volunteer;
    }

    public void setVolunteer(org.dcri.recruit.persistence.Volunteer volunteer)
    {
        this.volunteer = volunteer;
    }

    /**
     * Returns <code>true</code> if the argument is an VolunteerPhysician instance and all identifiers for this entity
     * equal the identifiers of the argument entity. Returns <code>false</code> otherwise.
     */
    public boolean equals(Object object)
    {
        if (this == object)
        {
            return true;
        }
        if (!(object instanceof VolunteerPhysician))
        {
            return false;
        }
        final VolunteerPhysician that = (VolunteerPhysician)object;
        if (this.id == null || that.getId() == null || !this.id.equals(that.getId()))
        {
            return false;
        }
        return true;
    }

    /**
     * Returns a hash code based on this entity's identifiers.
     */
    public int hashCode()
    {
        int hashCode = 0;
        hashCode = 29 * hashCode + (id == null ? 0 : id.hashCode());

        return hashCode;
    }

    /**
     * Constructs new instances of {@link org.dcri.recruit.persistence.VolunteerPhysician}.
     */
    public static final class Factory
    {
        /**
         * Constructs a new instance of {@link org.dcri.recruit.persistence.VolunteerPhysician}.
         */
        public static org.dcri.recruit.persistence.VolunteerPhysician newInstance()
        {
            return new org.dcri.recruit.persistence.VolunteerPhysicianImpl();
        }

        /**
         * Constructs a new instance of {@link org.dcri.recruit.persistence.VolunteerPhysician}, taking all required and/or
         * read-only properties as arguments.
         */
        public static org.dcri.recruit.persistence.VolunteerPhysician newInstance(org.dcri.recruit.persistence.Physician physician, org.dcri.recruit.persistence.Volunteer volunteer)
        {
            final org.dcri.recruit.persistence.VolunteerPhysician entity = new org.dcri.recruit.persistence.VolunteerPhysicianImpl();
            entity.setPhysician(physician);
            entity.setVolunteer(volunteer);
            return entity;
        }

        /**
         * Constructs a new instance of {@link org.dcri.recruit.persistence.VolunteerPhysician}, taking all possible properties
         * (except the identifier(s))as arguments.
         */
        public static org.dcri.recruit.persistence.VolunteerPhysician newInstance(java.lang.Boolean hasGrantedContactPermission, java.lang.Boolean hasGrantedMedicalRecordPermission, java.lang.String medicalRecordNumber, org.dcri.recruit.persistence.Physician physician, org.dcri.recruit.persistence.Volunteer volunteer)
        {
            final org.dcri.recruit.persistence.VolunteerPhysician entity = new org.dcri.recruit.persistence.VolunteerPhysicianImpl();
            entity.setHasGrantedContactPermission(hasGrantedContactPermission);
            entity.setHasGrantedMedicalRecordPermission(hasGrantedMedicalRecordPermission);
            entity.setMedicalRecordNumber(medicalRecordNumber);
            entity.setPhysician(physician);
            entity.setVolunteer(volunteer);
            return entity;
        }
    }
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.