<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Message won't deliver on a new queue
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/newway">Noa Drach</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/574541#574541">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I have JBOSS 4.2.3.GA with messaging 1.4.5.GA. java 6</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I created a new queue and the message that is sent from the producer doesn't reach my MDB instead I get this error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-java">java.lang.IllegalArgumentException: wrong number of arguments
&#160;
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
java.lang.IllegalArgumentException: wrong number of arguments
&#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
&#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
&#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
&#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:517)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.StrictMaxPool.get(StrictMaxPool.java:141)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
&#160;&#160;&#160;&#160;&#160;at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:249)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
&#160;&#160;&#160;&#160;&#160;at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
&#160;&#160;&#160;&#160;&#160;at $Proxy204.onMessage(Unknown Source)
&#160;&#160;&#160;&#160;&#160;at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
&#160;&#160;&#160;&#160;&#160;at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect14.invoke(SessionAspect14.java)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
&#160;&#160;&#160;&#160;&#160;at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
&#160;&#160;&#160;&#160;&#160;at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
&#160;&#160;&#160;&#160;&#160;at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)
&#160;&#160;&#160;&#160;&#160;at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
&#160;&#160;&#160;&#160;&#160;at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
&#160;&#160;&#160;&#160;&#160;at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
&#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:619)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
&#160;
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
&#160;
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>If I replace the queue I'm using to an exiting queue in my system than the massage is delivered without any problem.</li><li>I thought that the problem might come from the fact that the producer is an MDB that is restricted using @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"), so:<ul><li>I removed the restriction from the producer - no change</li><li>I added the restriction to the receiver - no change </li></ul></li><li>I don't think there is an issue with the queue creation, since 2 queues were added and function just fine.</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>my suspicion is that there is something wrong with the recieving MDB definition, but I don't know what to look for.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>any suggestions?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/574541#574541">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>