You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "William Tam (JIRA)" <ji...@apache.org> on 2008/06/20 00:47:00 UTC
[jira] Created: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
------------------------------------------------------------------------------------------
Key: CAMEL-620
URL: https://issues.apache.org/activemq/browse/CAMEL-620
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Reporter: William Tam
java.lang.NullPointerException
at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (CAMEL-620) ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
Posted by William Tam <em...@gmail.com>.
Yes, the attached patch includes those tests.
On Mon, Jun 23, 2008 at 11:59 PM, Claus Ibsen (JIRA) <ji...@apache.org> wrote:
>
> [ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43667#action_43667 ]
>
> Claus Ibsen commented on CAMEL-620:
> -----------------------------------
>
> Great William.
>
> Is it possible to provide these tests as a patch - would be great to include them in the source?
>
>> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
>> ------------------------------------------------------------------------------------------
>>
>> Key: CAMEL-620
>> URL: https://issues.apache.org/activemq/browse/CAMEL-620
>> Project: Apache Camel
>> Issue Type: Bug
>> Components: camel-core
>> Affects Versions: 1.3.0, 1.4.0
>> Reporter: William Tam
>> Fix For: 1.4.0
>>
>> Attachments: patch.txt
>>
>>
>> java.lang.NullPointerException
>> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
>> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
>> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
>> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
>> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
>> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
>> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
>> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
>> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
>> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
>> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
>> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
>> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
>> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
>> at junit.framework.TestCase.runBare(TestCase.java:128)
>> at junit.framework.TestResult$1.protect(TestResult.java:106)
>> at junit.framework.TestResult.runProtected(TestResult.java:124)
>> at junit.framework.TestResult.run(TestResult.java:109)
>> at junit.framework.TestCase.run(TestCase.java:120)
>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>> at junit.framework.TestSuite.run(TestSuite.java:225)
>> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
>> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Commented: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43638#action_43638 ]
Claus Ibsen commented on CAMEL-620:
-----------------------------------
William is this *fixed* by patch from CAMEL-606 or is it only a workaround?
We need to know if we can close this issue or there are still an issue to be addressed?
> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-620
> URL: https://issues.apache.org/activemq/browse/CAMEL-620
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: William Tam
>
> java.lang.NullPointerException
> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-620.
-------------------------------
Resolution: Fixed
Applied patch with thanks to William.
> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-620
> URL: https://issues.apache.org/activemq/browse/CAMEL-620
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.3.0, 1.4.0
> Reporter: William Tam
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
> Attachments: patch.txt
>
>
> java.lang.NullPointerException
> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
Posted by "William Tam (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
William Tam updated CAMEL-620:
------------------------------
Attachment: patch.txt
After taking a closer look, it is indeed a fix not a workaround. I add some tests to verify correct resequencers (batch vs stream) are created.
> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-620
> URL: https://issues.apache.org/activemq/browse/CAMEL-620
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.3.0, 1.4.0
> Reporter: William Tam
> Fix For: 1.4.0
>
> Attachments: patch.txt
>
>
> java.lang.NullPointerException
> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-620:
---------------------------------
Assignee: Claus Ibsen
> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-620
> URL: https://issues.apache.org/activemq/browse/CAMEL-620
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.3.0, 1.4.0
> Reporter: William Tam
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
> Attachments: patch.txt
>
>
> java.lang.NullPointerException
> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-620:
------------------------------
Fix Version/s: 1.4.0
Affects Version/s: 1.3.0
1.4.0
> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-620
> URL: https://issues.apache.org/activemq/browse/CAMEL-620
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.3.0, 1.4.0
> Reporter: William Tam
> Fix For: 1.4.0
>
>
> java.lang.NullPointerException
> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-620) ResequencerType.createProcessor could
throw NPE as stream config does not get initialized.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43667#action_43667 ]
Claus Ibsen commented on CAMEL-620:
-----------------------------------
Great William.
Is it possible to provide these tests as a patch - would be great to include them in the source?
> ResequencerType.createProcessor could throw NPE as stream config does not get initialized.
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-620
> URL: https://issues.apache.org/activemq/browse/CAMEL-620
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.3.0, 1.4.0
> Reporter: William Tam
> Fix For: 1.4.0
>
> Attachments: patch.txt
>
>
> java.lang.NullPointerException
> at org.apache.camel.model.ResequencerType.createStreamResequencer(ResequencerType.java:198)
> at org.apache.camel.model.ResequencerType.createProcessor(ResequencerType.java:163)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:1584)
> at org.apache.camel.model.ProcessorType.createOutputsProcessor(ProcessorType.java:93)
> at org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.java:61)
> at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1471)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:97)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:210)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:462)
> at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:454)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:108)
> at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:81)
> at org.apache.camel.processor.ResequencerTest.setUp(ResequencerTest.java:48)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.