This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225794 - bundled twitter web service not working
Summary: bundled twitter web service not working
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
: 251507 (view as bug list)
Depends on:
Blocks: 147464
  Show dependency tree
 
Reported: 2013-02-06 13:52 UTC by Masaki Katakai
Modified: 2016-07-07 09:54 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2013-02-06 13:52:14 UTC
Product Version: NetBeans IDE 7.3 RC1 (Build 201301232200)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; MS932; ja_JP (nb)

It seems that twitter web service bundled NetBeans generated code but not working against recent twitter.
For example, getUserTimeline causes the following exception.

Exception in thread "main" com.sun.jersey.api.client.UniformInterfaceException: GET http://twitter.com/statuses/user_timeline.xml?count=1 returned a response status of 404 Not Found
	at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
	at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
	at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:507)
	at javaapplication3.JavaApplication3$Twitter_OAuth_user_timeline__format_JerseyClient.getUserTimeline(JavaApplication3.java:105)
	at javaapplication3.JavaApplication3.initUserInfo(JavaApplication3.java:56)
	at javaapplication3.JavaApplication3.main(JavaApplication3.java:35)

http://twitter.com/statuses/user_timeline.xml  has been changed to https://api.twitter.com/1/statuses/user_timeline.xml.

Also the sample project which can be downloaded from http://netbeans.org/kb/docs/websvc/twitter-swing.html
tutorial is also causing this error.

Please evaluate.
Comment 1 Petr Jiricka 2013-02-13 10:21:53 UTC
Cc'ing David - David, since you are thinking about how web service consumption should work, what do you think we should do about the bundled Twitter support and other services included in the Services tab?
Comment 2 David Konecny 2013-02-13 21:44:37 UTC
Thanks for bringing this issue to our attention. It is a simple case of web service definition in NB being out of date. I found https://dev.twitter.com/blog/api-housekeeping which states that these web service endpoints ceased to work on May 14th, 2012. We must update the definition files on NB side.
Comment 3 David Konecny 2013-02-13 22:46:49 UTC
CCing Ken to deal with the tutorial. As for the code I thought I would update it quickly myself but it's not that easy -  it looks like original Twitter WADL was written by us?? I cannot find the newer version anywhere on the Twitter website.
Comment 4 Kenneth Ganfield 2013-02-14 02:28:36 UTC
I am retiring that tutorial when the docs are pushed for FCS pending a resolution.
I see that code must be updated to use API 1.1 by March 2013 because older links will not work. I do not know how much update will be required so we can post a new version of the tutorial when we have it working again.
Comment 5 David Konecny 2013-04-08 00:30:09 UTC
I'm commenting out the Twitter module from daily build until it gets fixed. 250018:acaf6bbe8ad3
Comment 6 Martin Fousek 2013-04-08 04:53:51 UTC
After fixing following changesets must be backouted:
web-main #d69c91ced5ce
web-main #c7fc1845852f
Comment 7 Milan Kuchtiak 2013-08-19 07:45:56 UTC
Needs to be re-evaluated, and at least re-enable the OAuth client
Comment 8 Jan Stola 2015-07-22 15:52:42 UTC
*** Bug 251507 has been marked as a duplicate of this bug. ***
Comment 9 Martin Balin 2016-07-07 09:54:03 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss