Hi,

Thank you, I have to build the ESB from the latest updates anyway. So I
will do that and try the given scenario.

On Sun, Jun 28, 2015 at 9:05 PM, Malaka Silva <[email protected]> wrote:

> Hi Eranda,
>
> Certain brokers do not support having a dash '-' in any JMS Message
> properties. So we have to manually remove transport headers like
> Content-Type, Accept-Encoding other wise the broker does not accept the
> message. Doc link [1]
>
> This is fixed with latest version of esb.
>
> Relates jira [2]
>
> [1] https://docs.wso2.com/display/ESB481/JMS+Troubleshooting+Guide
> [2] https://wso2.org/jira/browse/ESBJAVA-3687
>
> On Sat, Jun 27, 2015 at 10:40 PM, eranda rajapaksha <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am trying to configure WSO2 ESB JMS transport sender as a Message
>> Producer[1] with HornetQ broker. First I configured ESB and the HornetQ as
>> given in here [2]. Then I used the proxy configuration given in the [1] and
>> set the endpoint address as
>>
>>
>>
>> *jms:/queue/mySampleQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory&amp;java.naming.provider.url=jnp://localhost:1099&amp;transport.jms.DestinationType=queue*
>> But when I invoke the proxy service I get the following error. ( I tried
>> the same thing with ActiveMQ and it works fine).
>> Is there anything that I have missed in the configuration?
>>
>> [1]. https://docs.wso2.com/display/ESB481/ESB+as+a+JMS+Producer
>> [2]. https://docs.wso2.com/display/ESB481/Configure+with+HornetQ
>>
>> Thank you!
>>
>> [2015-06-27 22:20:47,312] ERROR - Axis2Sender Unexpected error during
>>>> sending message out
>>>
>>> java.lang.IllegalArgumentException: The property name 'Content-Type' is
>>>> not a valid java identifier.
>>>
>>> at
>>>> org.hornetq.jms.client.HornetQMessage.checkProperty(HornetQMessage.java:1037)
>>>
>>> at
>>>> org.hornetq.jms.client.HornetQMessage.setStringProperty(HornetQMessage.java:792)
>>>
>>> at
>>>> org.apache.axis2.transport.jms.JMSUtils.setTransportHeaders(JMSUtils.java:316)
>>>
>>> at
>>>> org.apache.axis2.transport.jms.JMSSender.createJMSMessage(JMSSender.java:448)
>>>
>>> at
>>>> org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:175)
>>>
>>> at
>>>> org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:157)
>>>
>>> at
>>>> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
>>>
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>>
>>> at
>>>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
>>>
>>> at
>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>>
>>> at
>>>> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
>>>
>>> at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
>>>
>>> at
>>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
>>>
>>> at
>>>> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
>>>
>>> at
>>>> org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
>>>
>>> at
>>>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
>>>
>>> at
>>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
>>>
>>> at
>>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
>>>
>>> at
>>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
>>>
>>> at
>>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
>>>
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>>
>>> at
>>>> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
>>>
>>> at
>>>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
>>>
>>> at
>>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>>
>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>
>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>>
>>>
>> --
>> *Eranda Rajapakshe*
>> Computer Science and Engineering Undergraduate,
>> University of Moratuwa.
>> Tel : +94784822608
>> Email : [email protected] <[email protected]>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> <http://wso2.com/about/team/malaka-silva/>
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
*Eranda Rajapakshe*
Computer Science and Engineering Undergraduate,
University of Moratuwa.
Tel : +94784822608
Email : [email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to