Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot searching from google scholar #1538

Closed
couragelfyang opened this issue Jul 2, 2016 · 6 comments
Closed

Cannot searching from google scholar #1538

couragelfyang opened this issue Jul 2, 2016 · 6 comments

Comments

@couragelfyang
Copy link

couragelfyang commented Jul 2, 2016

JabRef version 3.4 on Arch Linux 4.5.4

Steps to reproduce:

  1. I get nothing through searching feature from google scholar, there is "status: searching" displaying on status bar all the time. But I can achieve expected results with JabRef 3.4 on Windows 7.
@matthiasgeiger
Copy link
Member

Thanks for your Report!

Can you please check whether there are some errors in the error Console ("Help" -> "Show error console").

@couragelfyang
Copy link
Author

The log below
18:24:49.994 [AWT-EventQueue-0] WARN net.sf.jabref.JabRefGUI - There seem to be problems with OpenJDK and the default GTK Look&Feel. Using Metal L&F instead. Change to another L&F with caution.
18:25:04.911 [JabRef CachedThreadPool] WARN net.sf.jabref.logic.net.URLDownload - Could not copy input
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792) ~[?:1.8.0_92]
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647) ~[?:1.8.0_92]
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:789) ~[?:1.8.0_92]
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647) ~[?:1.8.0_92]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536) ~[?:1.8.0_92]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[?:1.8.0_92]
at net.sf.jabref.logic.net.URLDownload.downloadToString(URLDownload.java:157) ~[JabRef-3.4.jar:?]
at net.sf.jabref.logic.net.URLDownload.downloadToString(URLDownload.java:152) ~[JabRef-3.4.jar:?]
at net.sf.jabref.importer.fetcher.GoogleScholarFetcher.runConfig(GoogleScholarFetcher.java:176) ~[JabRef-3.4.jar:?]
at net.sf.jabref.importer.fetcher.GoogleScholarFetcher.processQueryGetPreview(GoogleScholarFetcher.java:96) ~[JabRef-3.4.jar:?]
at net.sf.jabref.importer.fetcher.GeneralFetcher.lambda$actionPerformed$4(GeneralFetcher.java:231) ~[JabRef-3.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
18:25:04.913 [JabRef CachedThreadPool] WARN net.sf.jabref.importer.fetcher.GoogleScholarFetcher - Error fetching from Google Scholar
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792) ~[?:1.8.0_92]
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647) ~[?:1.8.0_92]
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:789) ~[?:1.8.0_92]
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647) ~[?:1.8.0_92]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536) ~[?:1.8.0_92]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[?:1.8.0_92]
at net.sf.jabref.logic.net.URLDownload.downloadToString(URLDownload.java:157) ~[JabRef-3.4.jar:?]
at net.sf.jabref.logic.net.URLDownload.downloadToString(URLDownload.java:152) ~[JabRef-3.4.jar:?]
at net.sf.jabref.importer.fetcher.GoogleScholarFetcher.runConfig(GoogleScholarFetcher.java:176) ~[JabRef-3.4.jar:?]
at net.sf.jabref.importer.fetcher.GoogleScholarFetcher.processQueryGetPreview(GoogleScholarFetcher.java:96) ~[JabRef-3.4.jar:?]
at net.sf.jabref.importer.fetcher.GeneralFetcher.lambda$actionPerformed$4(GeneralFetcher.java:231) ~[JabRef-3.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]

There is nothing in exceptions and outpus

@Siedlerchr
Copy link
Member

Thanks for the detailed error message.
A SocketException indicates that the Remote host (Google) unexpectedly closed the connection.
Is this reproducible, e.g. does it happen every time?
Do you use a Proxy?

@couragelfyang
Copy link
Author

It happen every time and I use shadowsocks.

On 7/4/2016 20:55, Christoph wrote:

Thanks for the detailed error message.
A SocketException indicates that the Remote host (Google) unexpectedly
closed the connection.
Is this reproducible, e.g. does it happen every time?
Do you use a Proxy?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1538 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AImuyaOEWkOEG_zXypAhun6dOIq5vCyxks5qSQLWgaJpZM4JDrb1.

*/Cordially,/
/Alice Aria/

@couragelfyang
Copy link
Author

The terminal shows

kbibtex(2262) OnlineSearchAbstract::hanleErrors: Search using "Google
Scholar" failed (error code 202 ( "Error downloading
http://scholar.google.com/ - server replied: Forbidden" ), HTTP code 403
: "Forbidden")

On 7/4/2016 20:55, Christoph wrote:

Thanks for the detailed error message.
A SocketException indicates that the Remote host (Google) unexpectedly
closed the connection.
Is this reproducible, e.g. does it happen every time?
Do you use a Proxy?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1538 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AImuyaOEWkOEG_zXypAhun6dOIq5vCyxks5qSQLWgaJpZM4JDrb1.

*/Cordially,/
/Alice Aria/

@Siedlerchr
Copy link
Member

@AriaAsuka There we see the reason HTTP code 403 -Forbidden. So this is not a Problem of JabRef.
Seems like Google Scholar has blocked your Proxy-IP.
A quick Google Search turned up with this, maybe that helps you:
https://github.com/sjtug/kxsw/wiki/Google-Scholar

The only improvement we can do in JabRef is do display a more clear Error message
Refs #1542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants