Opened 6 years ago

Closed 6 years ago

#1986 closed defect (fixed)

Cannot find abbreviation for cell data type band0

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: petascope Version: 9.7
Keywords: Cc:
Complexity: Medium

Description

Running test_coverageid_contains_AS I get this error (notice also the bad exception code exceptionCode="NoApplicableCode"):

Analyzing file (1/1): /home/dimitar/rasdaman/community/src/systemtest/testcases_services/test_all_wcst_import/testdata/test_coverageid_contains_AS/cropped.tiff ...
Elapsed time: 0.008 s.
All files have been analyzed. Please verify that the axis subsets of the first 1 files above are correct.
Slice 1: {Axis Subset: DATE("2018-11-14T00:00:00+00:00") E(399960.0,400010.0) N(5890200.0,5891000.0) 
Data Provider: file:///home/dimitar/rasdaman/community/src/systemtest/testcases_services/test_all_wcst_import/testdata/test_coverageid_contains_AS/cropped.tiff}

Progress: [------------------------------] 0/1 0.00% Service Call: http://localhost:8080/rasdaman/ows?service%3DWCS%26version%3D2.0.1%26request%3DInsertScaleLevel%26coverageId%3Dtest_S2_L2A_SOUTH_TYROL_RAS%26level%3D32
Error Code: 404
Error Text: Failed reading response from WCS service. Detailed error: Runtime error: Failed opening connection to 'http://localhost:8080/rasdaman/ows?service%3DWCS%26version%3D2.0.1%26request%3DInsertScaleLevel%26coverageId%3Dtest_S2_L2A_SOUTH_TYROL_RAS%26level%3D32'. Check that the service is up and running.Detail error: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ows:ExceptionReport version="2.0.1"
    xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"
    xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
    <ows:Exception exceptionCode="NoApplicableCode">
        <ows:ExceptionText>Cannot find abbreviation for cell data type 'band0' from registry.</ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>

petascope.log:

  INFO [10:39:17] PetascopeController@122: Received request: coverageRef=file:///tmp/7190a202_cd6e_4928_a44b_00f583363510.gml&pixelDataType=UInt16&request=InsertCoverage&service=WCS&tiling=ALIGNE
D [0:0, 0:1419, 0:1419]&useId=existing&version=2.0.1
  INFO [10:39:17] RasdamanDefaultCollectionCreator@53: Creating rasdaman collection test_S2_L2A_SOUTH_TYROL_RAS.
  INFO [10:39:17] RasdamanDefaultCollectionCreator@56: Collection created.
  INFO [10:39:17] PetascopeController@165: Request processed in '192' ms.
  INFO [10:39:17] PetascopeController@122: Received request: coverageId=test_S2_L2A_SOUTH_TYROL_RAS&level=32&request=InsertScaleLevel&service=WCS&version=2.0.1
  INFO [10:39:17] PyramidService@87: Creating new downscaled rasdaman collection 'test_S2_L2A_SOUTH_TYROL_RAS_32' for level '32'.
 ERROR [10:39:17] PyramidService@107: Error instantiating MDD for newly created downscaled rasdaman collection 'test_S2_L2A_SOUTH_TYROL_RAS_32' for level '32'. Reason: Cannot find abbreviation fo
r cell data type 'band0' from registry.
petascope.exceptions.PetascopeException: Cannot find abbreviation for cell data type 'band0' from registry.
        at petascope.util.ras.TypeResolverUtil.getDefaultValueForCellDataType(TypeResolverUtil.java:117)
        at petascope.util.ras.TypeResolverUtil.getDefaultBandValues(TypeResolverUtil.java:149)
        at petascope.util.ras.RasUtil.initializeMDD(RasUtil.java:256)
        at petascope.service.PyramidService.insertScaleLevel(PyramidService.java:98)
        at petascope.wcst.handlers.InsertScaleLevelHandler.handle(InsertScaleLevelHandler.java:75)
        at petascope.controller.handler.service.KVPWCSTServiceHandler.handleInsertScaleLevel(KVPWCSTServiceHandler.java:184)
        at petascope.controller.handler.service.KVPWCSTServiceHandler.handle(KVPWCSTServiceHandler.java:121)
        at petascope.controller.PetascopeController.requestDispatcher(PetascopeController.java:152)
        at petascope.controller.PetascopeController.handleGet(PetascopeController.java:100)

If I run wcst_import again it seems to succeed.

  INFO [10:39:35] PetascopeController@122: Received request: coverageId=test_S2_L2A_SOUTH_TYROL_RAS&inputCoverageRef=file:///tmp/0fd2ebd9_7bf9_4ae6_adf4_8c50e22dff5a.gml&request=UpdateCoverage&service=WCS&subset=DATE("2018-11-14T00:00:00+00:00")&subset=N(5890200.0,5891000.0)&subset=E(399960.0,400010.0)&version=2.0.1
  INFO [10:39:35] PetascopeController@165: Request processed in '71' ms.
  INFO [10:39:35] PetascopeController@122: Received request: request=GetCapabilities&service=WMS&version=1.3.0
  INFO [10:39:35] PetascopeController@165: Request processed in '5' ms.
  INFO [10:39:35] PetascopeController@122: Received request: request=InsertWCSLayer&service=WMS&version=1.3.0&wcsCoverageId=test_S2_L2A_SOUTH_TYROL_RAS&withPyramids=False
  INFO [10:39:35] KVPWMSInsertUpdateWCSLayerHandler@199: WMS layer: test_S2_L2A_SOUTH_TYROL_RAS is persisted in database.
  INFO [10:39:35] PetascopeController@165: Request processed in '24' ms.

Change History (1)

comment:1 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.