enragedginger / TweetStreamChallenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#TweetStreamChallenge

This is a Play 2.5 application that uses Akka Streams and Twitter4J to stream Twitter data via comet.

##Running

Use these instructions to get Twitter app keys and tokens: https://dev.twitter.com/oauth/overview/application-owner-access-tokens

To run, make sure the JVM is running with the appropriate Twitter4J system properties: ./activator run -Dtwitter4j.debug=true -Dtwitter4j.oauth.consumerKey=*************** -Dtwitter4j.oauth.consumerSecret=*************** -Dtwitter4j.oauth.accessToken=*************** -Dtwitter4j.oauth.accessTokenSecret=***************

Then, view the site at: http://localhost:9000

Challenge 1

After 7 tweets, the 8th tweet will cause an error. Your challenge: fix it.

[error] a.a.OneForOneStrategy - It is illegal to throw exceptions from request(), rule 3.16 akka.stream.impl.ReactiveStreamsCompliance$SignalThrewException: It is illegal to throw exceptions from request(), rule 3.16 at akka.stream.impl.ReactiveStreamsCompliance$.tryRequest(ReactiveStreamsCompliance.scala:111) at akka.stream.impl.fusing.ActorGraphInterpreter$BatchingActorInputBoundary.akka$stream$impl$fusing$ActorGraphInterpreter$BatchingActorInputBoundary$$dequeue(ActorGraphInterpreter.scala:118) at akka.stream.impl.fusing.ActorGraphInterpreter$BatchingActorInputBoundary.onNext(ActorGraphInterpreter.scala:145) at akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:386) at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:547) at akka.actor.Actor$class.aroundReceive(Actor.scala:480) at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:493) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) at akka.actor.ActorCell.invoke(ActorCell.scala:495) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) Caused by: java.lang.NullPointerException: null at akka.stream.impl.ReactiveStreamsCompliance$.tryRequest(ReactiveStreamsCompliance.scala:110) at akka.stream.impl.fusing.ActorGraphInterpreter$BatchingActorInputBoundary.akka$stream$impl$fusing$ActorGraphInterpreter$BatchingActorInputBoundary$$dequeue(ActorGraphInterpreter.scala:118) at akka.stream.impl.fusing.ActorGraphInterpreter$BatchingActorInputBoundary.onNext(ActorGraphInterpreter.scala:145) at akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:386) at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:547) at akka.actor.Actor$class.aroundReceive(Actor.scala:480) at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:493) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) at akka.actor.ActorCell.invoke(ActorCell.scala:495) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)

About

License:Other


Languages

Language:Scala 89.5%Language:HTML 9.8%Language:CSS 0.7%