activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From binout <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #1055: Add default constructor for reflection
Date Tue, 28 Feb 2017 16:48:46 GMT
GitHub user binout opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1055

    Add default constructor for reflection

    When you use `org.apache.activemq.artemis.core.protocol.hornetq.client.HornetQClientProtocolManagerFactory`
as protocol-manager-factory, this class needs to be instantiated by reflection.
    
    Caused by: java.lang.RuntimeException: Your class must have a constructor without arguments.
If it is an inner class, it must be static! org.apache.activemq.artemis.core.protocol.hornetq.HQPropertiesConversionInterceptor
    	at org.apache.activemq.artemis.utils.ClassloadingUtil.newInstanceFromClassLoader(ClassloadingUtil.java:50)
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl$6.run(ServerLocatorImpl.java:1776)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.feedInterceptors(ServerLocatorImpl.java:1771)
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.setIncomingInterceptorList(ServerLocatorImpl.java:816)
    	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.setIncomingInterceptorList(ActiveMQConnectionFactory.java:642)
    	... 27 more
    Caused by: java.lang.InstantiationException: org.apache.activemq.artemis.core.protocol.hornetq.HQPropertiesConversionInterceptor
    	at java.lang.Class.newInstance(Class.java:427)
    	at org.apache.activemq.artemis.utils.ClassloadingUtil.newInstanceFromClassLoader(ClassloadingUtil.java:47)
    	... 32 more
    Caused by: java.lang.NoSuchMethodException: org.apache.activemq.artemis.core.protocol.hornetq.HQPropertiesConversionInterceptor.<init>()
    	at java.lang.Class.getConstructor0(Class.java:3082)
    	at java.lang.Class.newInstance(Class.java:412)
    	... 33 more

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/binout/activemq-artemis patch-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1055.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1055
    
----
commit f87bd45a756e4ed4b9ac9f499d0f25d5b27a2106
Author: BenoƮt Prioux <benoit.prioux@gmail.com>
Date:   2017-02-28T16:48:24Z

    Add default constructor for reflection
    
    When you use `org.apache.activemq.artemis.core.protocol.hornetq.client.HornetQClientProtocolManagerFactory`
as protocol-manager-factory, this class need to be instantiated by reflection.
    
    Caused by: java.lang.RuntimeException: Your class must have a constructor without arguments.
If it is an inner class, it must be static! org.apache.activemq.artemis.core.protocol.hornetq.HQPropertiesConversionInterceptor
    	at org.apache.activemq.artemis.utils.ClassloadingUtil.newInstanceFromClassLoader(ClassloadingUtil.java:50)
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl$6.run(ServerLocatorImpl.java:1776)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.feedInterceptors(ServerLocatorImpl.java:1771)
    	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.setIncomingInterceptorList(ServerLocatorImpl.java:816)
    	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.setIncomingInterceptorList(ActiveMQConnectionFactory.java:642)
    	... 27 more
    Caused by: java.lang.InstantiationException: org.apache.activemq.artemis.core.protocol.hornetq.HQPropertiesConversionInterceptor
    	at java.lang.Class.newInstance(Class.java:427)
    	at org.apache.activemq.artemis.utils.ClassloadingUtil.newInstanceFromClassLoader(ClassloadingUtil.java:47)
    	... 32 more
    Caused by: java.lang.NoSuchMethodException: org.apache.activemq.artemis.core.protocol.hornetq.HQPropertiesConversionInterceptor.<init>()
    	at java.lang.Class.getConstructor0(Class.java:3082)
    	at java.lang.Class.newInstance(Class.java:412)
    	... 33 more

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message