๐Ÿ’ปTech/๐Ÿ‘จ‍๐Ÿ’ปetc

[Activemq] serializable class not available to broker

_viper_ 2017. 2. 9. 10:44
๋ฐ˜์‘ํ˜•

๐Ÿšซ 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