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

  • Serialization problems with Transaction Intercepters

    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.


  • #2
    more information

    This is the link for the solution I mentioned in the above post

    here is the stack for the new problem

    java.lang.RuntimeException: Serialization error. Path to bad object: 
    [[email protected], 
    [email protected], 
    org.springframework.aop.framework.ProxyFactory: 2 interfaces 
    1 advisors org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor: advice bean 
    targetSource [SingletonTargetSource for target object 
    [[email protected]]]; 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', [email protected]]

    My transaction manager configuration is like this

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


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