[
https://issues.apache.org/jira/browse/SYNAPSE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595170#action_12595170
]
Ruwan Linton commented on SYNAPSE-294:
--------------------------------------
when the contentType is null the code block
new ContentType(contentType).getParameter("charset")
causes the NPE and I have added a null check to this and now seems to work
fine. (It is possible to receive jms messages without a contentType)
> Sample 250 fails throwing a NullPointerException
> ------------------------------------------------
>
> Key: SYNAPSE-294
> URL: https://issues.apache.org/jira/browse/SYNAPSE-294
> Project: Synapse
> Issue Type: Bug
> Affects Versions: 1.2-QA-B1
> Environment: Ubuntu 7.10, Java version "1.5.0_14", Firefox2.0.0.12
> Reporter: Evanthika Amarasiri
> Assignee: Ruwan Linton
> Priority: Critical
> Fix For: 1.2
>
>
> Started the Synapse sample 250 and invoked the client using the command "ant
> jmsclient -Djms_type=pox -Djms_dest=dynamicQueues/StockQuoteProxy
> -Djms_payload=MSFT" and the following exception was thrown on the Synapse
> console
> *******************************************************************************************************************
> Exception in thread "jms-Worker-1" java.lang.NullPointerException
> at
> javax.mail.internet.HeaderTokenizer.readToken(HeaderTokenizer.java:120)
> at javax.mail.internet.HeaderTokenizer.next(HeaderTokenizer.java:81)
> at javax.mail.internet.ContentType.<init>(ContentType.java:47)
> at
> org.apache.synapse.transport.base.BaseUtils.setSOAPEnvelope(BaseUtils.java:204)
> at
> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:216)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> *******************************************************************************************************************
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]