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 Dimitar Misev, 7 years ago

Priority: majorcritical

comment:2 by Dimitar Misev, 7 years ago

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.

comment:3 by Bang Pham Huu, 7 years ago

Resolution: fixed
Status: newclosed

comment:4 by Dimitar Misev, 7 years ago

Resolution: fixed
Status: closedreopened

This error will appear randomly, and the only way to make petascope operational again is to restart Tomcat. That is unacceptable, we have to

  1. find a way to reliably reproduce this problem, and then
  2. find a way to fix it automatically in petascope without needing to manually restart Tomcat

comment:5 by Dimitar Misev, 7 years ago

Resolution: fixed
Status: reopenedclosed

Will reopen if error appears again.

Note: See TracTickets for help on using tickets.