๐ป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