Opened 7 years ago
Closed 7 years ago
#1714 closed defect (fixed)
Petascope_Catch error loading gdal_java native library and throw exception about restarting tomcat
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | critical | Milestone: | 9.6 |
Component: | petascope | Version: | development |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu | |
Complexity: | Medium |
Description
When Petascope cannot load gdal_java native library from /tmp/rasdaman, it cannot do the CRS transform and in this case, it needs to restart Petascope (as only when starting Tomcat, it will load native library by java class loader).
The code needs to be caught from the stack trace:
Caused by: java.lang.UnsatisfiedLinkError: org.gdal.osr.osrJNI.new_SpatialReference__SWIG_1()J at org.gdal.osr.osrJNI.new_SpatialReference__SWIG_1(Native Method) at org.gdal.osr.SpatialReference.<init>(SpatialReference.java:117) at petascope.util.CrsProjectionUtil.transform(CrsProjectionUtil.java:126)
Change History (5)
comment:1 by , 7 years ago
Priority: | major → critical |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This error will appear randomly, and the only way to make petascope operational again is to restart Tomcat. That is unacceptable, we have to
- find a way to reliably reproduce this problem, and then
- find a way to fix it automatically in petascope without needing to manually restart Tomcat
comment:5 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Will reopen if error appears again.
Note:
See TracTickets
for help on using tickets.
It seems that it is often the case that this library exists at
/tmp/rasdaman
but still get this error. The solution for now is to remove/tmp/rasdaman
and restart Tomcat, I think.