java.io.NotSerializableException: DefaultListableBeanFactory has no serialization id

Solution In Progress - Updated -

Issue

Spring application throwing this application when trying to replicate the session in EAP 7.4 infinispan :

org.infinispan.commons.marshall.NotSerializableException: DefaultListableBeanFactory has no serialization id
Caused by: an exception which occurred:
  in field org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.beanFactory
  in object org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor@494c0572
  in field org.springframework.aop.framework.AdvisedSupport.advisorArray
  in object org.springframework.aop.framework.ProxyFactory@29c16e97
  in field org.springframework.aop.framework.JdkDynamicAopProxy.advised
  in object org.springframework.aop.framework.JdkDynamicAopProxy@300d15a
  in field com.redhat.examples.NavivationBean.exampleService
  in object com.redhat.examples.NavivationBean@3395584c
  in field java.util.Collections$SynchronizedMap.m
  in object java.util.Collections$SynchronizedMap@8802fbf3
  in object java.util.Collections$SynchronizedMap@8802fbf3
Caused by: java.io.NotSerializableException: DefaultListableBeanFactory has no serialization id
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.writeReplace(DefaultListableBeanFactory.java:1523)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1118)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1136)
  at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
  at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
  at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
  at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
  at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
  at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
  at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • Spring Framework

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content