activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <>
Subject Re: Need a way to configure org.apache.activemq.SERIALIZABLE_PACKAGES property in client
Date Thu, 29 Jun 2017 01:44:31 GMT
How are you constructing your clients, if not via the ConnectionFactory?
(Clearly you're not actually doing JNLP *instead of* using a
ConnectionFactory, as they're unrelated technologies that can't be swapped
for one another, so it would help to know what you're actually using

I'd recommend you confirm that your JNLP setting really is taking effect,
by having your app issue a System.getProperty() against that key. If you
don't get "*" back, the problem is in JNLP or your use of it, not the
ActiveMQ client code. If you do get the right value back, then the
underlying problem might be (I'm purely speculating here) some race
condition between the JNLP initialization code and the ActiveMQ code that
reads the property, but if that was a problem I'd think lots of other users
of JNLP would be complaining about the same problem.

One other thing: make sure your browser isn't caching an old version of the
JNLP file from before you added the property. On the one project where I've
used JNLP, I think we had problems with exactly that, and had to set cache
control headers to prevent it from being cached.


On Jun 28, 2017 1:24 AM, "neelam" <> wrote:

> Hi,
> I have recently upgraded activemq to 5.14.5 from 5.6.0  and after the
> upgrade I see below errors in my client logs:
> 28 Jun 2017 11:22:17,221-[AWT-EventQueue-2] ERROR
> com.powerup.configmgr.client.messaging.JMSMessagingManager  - Failed to
> build body from content. Serializable class not available to broker.
> Reason:
> java.lang.ClassNotFoundException: Forbidden class
>! This class
> is
> not trusted to be serialized as ObjectMessage payload. Please take a look
> at
> for more information on how
> to
> configure trusted classes.
> As per I should set wild
> card
> value for org.apache.activemq.SERIALIZABLE_PACKAGES property or use
> setTrustedPackages to configure the trusted packages. But in my client I
> don't use the ConnectionFactory and use jnlp file instead. I tried setting
> the property as below in my jnlp file but it doesn't work.
> <property name=""
> value="*"/>
> Let me know is there any other way I can set this value in the client.
> Regards
> Neelam
> --
> View this message in context: http://activemq.2283324.n4.
> SERIALIZABLE-PACKAGES-property-in-client-tp4727985.html
> Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message