Hi Cheng and Rui,

Thanks for your replies, i guessed so, but my VPN can not make link[1] visited 
well either. :(


Actually, i just want to debug some tests, however the ISSUE mentioned by 
thread `IntelliJ and Gradle` is also an obstacle to me, for this reason i have 
to run `./gradlew build` and then this exception came out. 


I tried to run `./gradlew build -xtest` to solve the problem in thread 
`IntelliJ and Gradle`, but it didn’t work. How should i to to debug some unit 
tests?


Best wishes,
Trista


[1] http://en.wikipedia.org/wiki/List_of_United_States_cities_by_population


 Juan Pan


[email protected]
Juan Pan(Trista), Apache ShardingSphere


On 11/26/2019 15:59,Shuo Cheng<[email protected]> wrote:
First make sure the URLs in `FileReaderTest`, e.g ,
en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States,
can be accessed from your machine.

On Tue, Nov 26, 2019 at 3:49 PM Juan Pan <[email protected]> wrote:

Hi everyone,


After migrating Calcite to Gradle, i built Calcite referring to docs[1]
and got the following exception. As i have no idea to handle it, this
help-seeking email comes.


Thanks in advance.


Best wishes,
Trista


[1] https://calcite.apache.org/docs/howto.html#building-from-git




org.apache.calcite.adapter.file.FileReaderTest > testJsonFile
STANDARD_ERROR
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
5.2sec, org.apache.calcite.adapter.file.FileReaderTest >
testJsonFile
FAILURE   0.6sec, org.apache.calcite.adapter.file.FileReaderTest >
testFileReaderUrlNoPath


org.apache.calcite.adapter.file.FileReaderTest > testFileReaderUrlNoPath
FAILED
org.apache.calcite.adapter.file.FileReaderException: Cannot read //
en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States
at
org.apache.calcite.adapter.file.FileReader.getTable(FileReader.java:72)
at
org.apache.calcite.adapter.file.FileReader.refresh(FileReader.java:131)
at
org.apache.calcite.adapter.file.FileReaderTest.testFileReaderUrlNoPath(FileReaderTest.java:80)


Caused by:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at
java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:706)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at
org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:750)
at
org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:722)
at
org.jsoup.helper.HttpConnection.execute(HttpConnection.java:306)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:295)
at org.jsoup.Jsoup.parse(Jsoup.java:183)
at
org.apache.calcite.adapter.file.FileReader.getTable(FileReader.java:69)
... 2 more
FAILURE  28.0sec,   15 completed,   1 failed,   2 skipped,
org.apache.calcite.adapter.file.FileReaderTest
WARNING   4.3sec,   16 completed,   0 failed,   1 skipped,
org.apache.calcite.adapter.file.SqlTest
FAILURE  34.0sec,   31 completed,   1 failed,   3 skipped, Gradle Test Run
:file:test


31 tests completed, 1 failed, 3 skipped


Task :file:test FAILED


Juan Pan


[email protected]
Juan Pan(Trista), Apache ShardingSphere


Reply via email to