Announcement Announcement Module
Collapse
No announcement yet.
Serialization problems with Transaction Intercepters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Serialization problems with Transaction Intercepters

    Hi,
    I am trying to enable clustering for my Spring, Hibernate based application. while configuring the Quartz schedular for JDBC based approach, I started getting serialization problems.

    My first problem was, it couldnt serialize the DefaultListableBeanFactory. Some one proposed a work around for that problem by extending the HibernateTransactionManager.
    After I tried this solution, it went ahead a bit but I am stuck with another problem.

    As this is my first post, i am not allowed to post any links, I will post more information in the following one.

    Can some one help me with this please.

    Thanks

  • #2
    more information

    This is the link for the solution I mentioned in the above post
    http://jira.springframework.org/browse/SPR-4662

    here is the stack for the new problem

    Code:
    java.lang.RuntimeException: Serialization error. Path to bad object: 
    [com.xyz.cic.bo.report.AutomatedReportDispatcherImpl@132a60, 
    org.springframework.aop.framework.JdkDynamicAopProxy@728b447, 
    org.springframework.aop.framework.ProxyFactory: 2 interfaces 
    [com.xyz.cic.bo.report.AutomatedReportDispatcher, java.io.Serializable]; 
    1 advisors org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor: advice bean 
    'org.springframework.transaction.interceptor.TransactionInterceptor#0'; 
    targetSource [SingletonTargetSource for target object 
    [com.edfenergy.cic.bo.report.AutomatedReportDispatcherImpl@132a60]]; proxyTargetClass=false; 
    optimize=false; opaque=false; exposeProxy=false; frozen=false, [Lorg.springframework.aop.Advisor;@2109e3, 
    org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor: advice bean 
    'org.springframework.transaction.interceptor.TransactionInterceptor#0', java.lang.Object@11dbed]

    My transaction manager configuration is like this

    Code:
    	<!-- this enables annotation driven transactions -->
    	<tx:annotation-driven transaction-manager="transactionManager" />
    
    	<!-- hibernate transaction manager -->
    	<bean id="transactionManager" class="com.xyz.cic.spring.SerializableHibernateTransactionManager">
    		<property name="sessionFactory" ref="sessionFactory"/>
    		<property name="dataSource" ref="${datasource.bean}"/>
    	</bean>
    Please let me know if you need more information

    Comment


    • #3
      Hi vkusuman, had a similar problem, thank you for the solution

      Comment

      Working...
      X