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: "autoProxy" not eligible for processed by BeanPost
PostPosted: Sat Dec 17, 2005 5:44 am 
Newbie

Joined: Sat Dec 17, 2005 5:21 am
Posts: 1
Need help with Hibernate?

I am trying to implement declarative transaction management in my application using BeanNameAutoProxyCreator.


but i am getting the "autoProxy" not eligible for processed by all BeanPostProcessors

Hibernate version:3.0


mapping files:

<value>
com/usjade/nda/hibernate/model/Approvals.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/ContactsMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/DistiMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/DocumentTxnHistory.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/EmployeeDirectorMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalAttachments.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalDocType.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalDocuments.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LobDirector.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/ParticipantMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LookupMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/QuestionAnswer.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/QuestionOptions.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/QuestionsMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/TemplateQuestionMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/TemplatesMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/UserRoles.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/UserMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalPartsMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalPartsInfo.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/OracleUserMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LobAttachmentApproval.hbm.xml
</value>



my code to proxy the the method saveNdaDocument in LegalDocumentDaoImpl.


<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>

<bean id="transactionAttributeSource"
class="org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource">

<property name="methodMap">
<map>
<entry key="com.usjade.nda.hibernate.dao.LegalDocTypeDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.SearchDAOImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.ParticipantDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.ContactDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.LegalDocumentsDaoImpl.save*" >
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.UserMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.TemplateMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.LookupDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.LegalPartsDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.QuestionMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.QuestionOptionsDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.LegalAttachmentsDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.LegalPartInfoDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.LobDirectorDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.UserRolesDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

<entry key="com.usjade.nda.hibernate.dao.EmployeeDirMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>


<entry key="com.usjade.nda.hibernate.dao.OracleUserMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>

</map>
</property>
</bean>

<bean id="transactionInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributeSource">
<ref bean="transactionAttributeSource"/>
</property>
</bean>
<bean id="transactionAdvisor" class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor">
<constructor-arg>
<ref bean="transactionInterceptor"/>
</constructor-arg>
</bean>
<bean id="autoproxy"
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator" >
<!-- <property name="transactionAdvisor">
<list>
<idref bean="transactionAdvisor"/>
</list>
</property>-->
<property name="beanNames">
<list>
<value>*Impl</value>
<value>*Dao</value>
</list>
</property>
</bean>

the information is.error in creating the bean BeanNameAutoProxyCreator.
"autoProxy" not eligible for processed by BeanPostProcessors.

Any help would be appreciate.this is urgent.


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.