ddinraj / mixare

Automatically exported from code.google.com/p/mixare
0 stars 0 forks source link

Java exception with Twiiter search #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?

-> Tweets should appear. No tweets are displayed (Error in Eclipse log)

What version of the product are you using? On what operating system?
-> Source file obtained from the link: https://github.com/mixare/mixare
-> Running on Samsung Tab 2 having Android 4.2.2 OS.

Please see the log below:

---
09-23 13:30:55.987: W/Mixare(2074): Error on url 
http://search.twitter.com/search.json?geocode=9.9795412%2C76.4704738%2C20.0km
09-23 13:30:55.987: W/Mixare(2074): java.lang.NullPointerException
09-23 13:30:55.987: W/Mixare(2074):     at 
org.mixare.mgr.HttpTools.getHttpGETInputStream(HttpTools.java:158)
09-23 13:30:55.987: W/Mixare(2074):     at 
org.mixare.mgr.HttpTools.getPageContent(HttpTools.java:69)
09-23 13:30:55.987: W/Mixare(2074):     at 
org.mixare.mgr.downloader.DownloadMgrImpl.processRequest(DownloadMgrImpl.java:93
)
09-23 13:30:55.987: W/Mixare(2074):     at 
org.mixare.mgr.downloader.DownloadMgrImpl.run(DownloadMgrImpl.java:69)
09-23 13:30:55.987: W/Mixare(2074):     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
09-23 13:30:55.987: W/Mixare(2074):     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
09-23 13:30:55.987: W/Mixare(2074):     at java.lang.Thread.run(Thread.java:856)
09-23 13:30:55.994: W/Mixare(2074): ERROR ON DOWNLOAD REQUEST
09-23 13:30:55.994: W/Mixare(2074): java.io.FileNotFoundException: 
http://search.twitter.com/search.json?geocode=9.9795412%2C76.4704738%2C20.0km
09-23 13:30:55.994: W/Mixare(2074):     at 
libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java
:177)
09-23 13:30:55.994: W/Mixare(2074):     at 
org.mixare.mgr.HttpTools.getHttpGETInputStream(HttpTools.java:153)
09-23 13:30:55.994: W/Mixare(2074):     at 
org.mixare.mgr.HttpTools.getPageContent(HttpTools.java:69)
09-23 13:30:55.994: W/Mixare(2074):     at 
org.mixare.mgr.downloader.DownloadMgrImpl.processRequest(DownloadMgrImpl.java:93
)
09-23 13:30:55.994: W/Mixare(2074):     at 
org.mixare.mgr.downloader.DownloadMgrImpl.run(DownloadMgrImpl.java:69)
09-23 13:30:55.994: W/Mixare(2074):     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
09-23 13:30:55.994: W/Mixare(2074):     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
09-23 13:30:55.994: W/Mixare(2074):     at java.lang.Thread.run(Thread.java:856)
09-23 13:30:56.010: I/Mixare(2074): Submitted  type: TWITTER, params: 
?geocode=9.9795412%2C76.4704738%2C20.0km, url: 
http://search.twitter.com/search.json

---

Original issue reported on code.google.com by binsp...@gmail.com on 23 Sep 2013 at 8:07

GoogleCodeExporter commented 9 years ago
Started a fix development for this problem.
Forked at https://github.com/micdic/mixare

The problem is related to the new Twitter Search API, based now on oAuth.
It requires some code implementation. I've successfully tested an integration
with Twitter4J client. Tweets are now retrievied correctly. 
Still coding some enhancements.
Hope this help.

Michele.

Original comment by micheled...@gmail.com on 19 Oct 2013 at 7:22