Results 1 to 3 of 3

Thread: Serialization problems with Transaction Intercepters

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Post 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. #2
    Join Date
    Mar 2009
    Posts
    2

    Default 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

  3. #3
    Join Date
    Mar 2009
    Posts
    1

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •