본문 바로가기
💻Tech/👨‍💻etc

[Activemq] serializable class not available to broker

by _viper_ 2017. 2. 9.
반응형

🚫 ERROR

Caused by: javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class java.util.ArrayList! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.

 

💡 SOLVED

## Add System property > java.util
System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES", "java.lang,javax.security,java.util,org.apache.activemq,com")

 

 

🔗Refernece site 

http://activemq.apache.org/objectmessage.html