Exception:
-------------
11:24:27.580 [INFO] [org.apache.http.impl.execchain.RetryExec] I/O exception (java.net.SocketException) caught when processing request to {}->http://www.hibernatespatial.org:80: Connection reset
11:24:27.580 [DEBUG] [org.apache.http.impl.execchain.RetryExec] Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155)
Root Cause Analysis:
--------------------------
The javadoc for SocketException states that it is
Thrown to indicate that there is an error in the underlying protocol such as a TCP error
So, here the actual case is,
When the command "gradle bootRun" is trying to access this maven repo "http://www.hibernatespatial.org:80", it fails. Because this repo is dead.
Resource Link:
1. http://stackoverflow.com/a/585643
2. http://stackoverflow.com/a/4300803
Solution Procedure#1:
----------------------------
Hibernate Spatial has been merged into Hibernate ORM 5.0. The hibernatespatial.org site will be discontinued, along with the Maven Repository.
The ideal solution would be to upgrade to a 5.0.x version that is on maven central https://mvnrepository.com/artifact/org.hibernate/hibernate-spatial.
Solution Procedure#2:
----------------------------
As the repo is dead, so it is required to search for another repo which can give access for related file.
The versions 4.0 and 4.3 can be found on this repo: http://nexus.e-is.pro/nexus/content/groups/public/org/hibernate/hibernate-spatial/
Resource Link:
1. http://stackoverflow.com/a/38480566
You can choose 2nd solution procedure.
Now the build.gradle file looks like below:
repositories {
mavenCentral()
mavenLocal()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://download.osgeo.org/webdav/geotools" }
// maven { url "http://www.hibernatespatial.org/repository" } //dead link
maven { url "http://nexus.e-is.pro/nexus/content/groups/public/" }
}
-------------
11:24:27.580 [INFO] [org.apache.http.impl.execchain.RetryExec] I/O exception (java.net.SocketException) caught when processing request to {}->http://www.hibernatespatial.org:80: Connection reset
11:24:27.580 [DEBUG] [org.apache.http.impl.execchain.RetryExec] Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155)
Root Cause Analysis:
--------------------------
The javadoc for SocketException states that it is
Thrown to indicate that there is an error in the underlying protocol such as a TCP error
So, here the actual case is,
When the command "gradle bootRun" is trying to access this maven repo "http://www.hibernatespatial.org:80", it fails. Because this repo is dead.
Resource Link:
1. http://stackoverflow.com/a/585643
2. http://stackoverflow.com/a/4300803
Solution Procedure#1:
----------------------------
Hibernate Spatial has been merged into Hibernate ORM 5.0. The hibernatespatial.org site will be discontinued, along with the Maven Repository.
The ideal solution would be to upgrade to a 5.0.x version that is on maven central https://mvnrepository.com/artifact/org.hibernate/hibernate-spatial.
Solution Procedure#2:
----------------------------
As the repo is dead, so it is required to search for another repo which can give access for related file.
The versions 4.0 and 4.3 can be found on this repo: http://nexus.e-is.pro/nexus/content/groups/public/org/hibernate/hibernate-spatial/
Resource Link:
1. http://stackoverflow.com/a/38480566
You can choose 2nd solution procedure.
Now the build.gradle file looks like below:
repositories {
mavenCentral()
mavenLocal()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://download.osgeo.org/webdav/geotools" }
// maven { url "http://www.hibernatespatial.org/repository" } //dead link
maven { url "http://nexus.e-is.pro/nexus/content/groups/public/" }
}
No comments:
Post a Comment