streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (STREAMS-173) RssStreamsProvider attempts to cast a LinkedConcurrentQueue to a StreamsResultSet
Date Thu, 18 Sep 2014 13:47:33 GMT

    [ https://issues.apache.org/jira/browse/STREAMS-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138947#comment-14138947
] 

ASF GitHub Bot commented on STREAMS-173:
----------------------------------------

Github user renato2099 commented on the pull request:

    https://github.com/apache/incubator-streams/pull/84#issuecomment-56039986
  
    Hey guys so what's the decision on this?


> RssStreamsProvider attempts to cast a LinkedConcurrentQueue to a StreamsResultSet
> ---------------------------------------------------------------------------------
>
>                 Key: STREAMS-173
>                 URL: https://issues.apache.org/jira/browse/STREAMS-173
>             Project: Streams
>          Issue Type: Bug
>            Reporter: Ryan Ebanks
>
> On line 140, a queue is attempted to be cast to a StreamsResultSet.
> StackTrace:
> 00:05:59.016 [main] DEBUG o.a.s.l.builders.LocalStreamBuilder - Attaching
> shutdown handler
> 00:05:59.030 [pool-3-thread-1] DEBUG
> o.a.s.l.t.LocalStreamProcessMonitorThread - [monitor] Used Memory: 20.0 MB,
> Max: 954.7 MB
> 00:05:59.044 [main] INFO  o.a.s.l.builders.LocalStreamBuilder - Started
> stream with 2 components
> 00:05:59.067 [pool-2-thread-4] ERROR o.a.s.l.tasks.StreamsProviderTask -
> Error in processing provider stream
> java.lang.ClassCastException: java.util.concurrent.ConcurrentLinkedQueue
> cannot be cast to org.apache.streams.core.StreamsResultSet
> at
> org.apache.streams.rss.provider.RssStreamProvider.readCurrent(RssStreamProvider.java:140)
> ~[classes/:na]
> at
> org.apache.streams.local.tasks.StreamsProviderTask.run(StreamsProviderTask.java:148)
> ~[streams-runtime-local-0.1-SNAPSHOT.jar:0.1-SNAPSHOT]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> [na:1.7.0_67]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> [na:1.7.0_67]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> [na:1.7.0_67]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
> 00:05:59.067 [pool-2-thread-4] DEBUG o.a.s.l.tasks.StreamsProviderTask -
> Complete Provider Task execution for RssStreamProvider
> 00:05:59.077 [pool-1-thread-2] INFO  o.a.s.rss.provider.RssEventProcessor -
> Terminating!
> 00:05:59.475 [pool-1-thread-1] INFO  o.a.s.rss.provider.RssStreamProvider -
> Connected: http://www.thelocal.ch/feeds/rss.php
> java.lang.NullPointerException
> at
> org.apache.streams.rss.provider.RssStreamProviderTask.run(RssStreamProviderTask.java:62)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> Acceptance Criteria:
> * Successfully executes, i.e. no exceptions
> * Unit tests to prove correctness



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message