You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2008/05/07 13:24:55 UTC
[jira] Created: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
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
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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Updated: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruwan Linton updated SYNAPSE-294:
---------------------------------
Priority: Critical (was: Major)
Fix Version/s: 1.2
Need to fix this for 1.2 release
> 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
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Commented: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595118#action_12595118 ]
Evanthika Amarasiri commented on SYNAPSE-294:
---------------------------------------------
The same issue occurs when executing sample 252 as well
> 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
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Commented: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Closed: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Evanthika Amarasiri closed SYNAPSE-294.
---------------------------------------
Tested on synapse1.2. No exceptions thrown when running JMS samples. The issue will be closed
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Assigned: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruwan Linton reassigned SYNAPSE-294:
------------------------------------
Assignee: Ruwan Linton
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
[jira] Resolved: (SYNAPSE-294) Sample 250 fails throwing a
NullPointerException
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruwan Linton resolved SYNAPSE-294.
----------------------------------
Resolution: Fixed
Fixed on the 1.2 branch, check for the verification in the next QA build
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org