Apache does not update documentation? Major Bug in Java
Apache does not update documentation? Major Bug in Java
I'm getting this error
Cannot display ObjectMessage body. Reason: Failed to build the body from content. Serializable class not available to the broker. Reason: java.lang.ClassNotFoundException: Forbidden class com.company.data.TicketData! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at this for more information on how to configure trusted classes.
I added System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES","*");
in my code that invokes the creation of the JMS and doesn't work.
System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES","*");
I also set setx org.apache.activemq.SERIALIZABLE_PACKAGES "*"
in the cmd but still the same error.
setx org.apache.activemq.SERIALIZABLE_PACKAGES "*"
Even if you check the error page.
it talks about an env script file that does not exist when you download the Apache ActiveMQ.
What can I do?? There are some files in /config but I don't see how do enable this? Why Apache has documentation that even doesn't work?
The title for this question is ambiguous. Please reword to clarify what the actual issue is (i.e. something related to de/serialization of object messages).
– Justin Bertram
9 hours ago
Correction grammar and formatted.
– Saveen
3 hours ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
where are you setting the property, client or broker ?
– Tim Bish
14 hours ago