mattrpav commented on pull request #729:
URL: https://github.com/apache/activemq/pull/729#issuecomment-1048875347


   > @mattrpav it seems related to security enforcement we added. But it should 
fail on your machine as well.
   
   I agree with you =).  
   
   The connection factory is setup without setting trusted packages:
   AmqpTestSupport#createJMSConnection()
   ```
           ActiveMQConnectionFactory factory = new 
ActiveMQConnectionFactory(openwireURI);
           return factory.createConnection();
   ```
   
   .. which defaults to
   ClassLoadingAwareObjectInputStream#static{}
   ```
   serializablePackages = 
System.getProperty("org.apache.activemq.SERIALIZABLE_PACKAGES","java.lang,org.apache.activemq,org.fusesource.hawtbuf,com.thoughtworks.xstream.mapper").split(",");
   ```
   .. but is overidden by
   AmqpTestSupport#setUp
   ```
           System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES", 
"java.util");
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to