Changes between Initial Version and Version 1 of Ticket #1720
- Timestamp:
- Apr 10, 2018, 1:19:42 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1720
- Property Summary Petascope_Throw proper exeception with condenser over a clip Polygon → Petascope_Fix null error when enconding WCPS coverage constructor in netCDF
-
Ticket #1720 – Description
initial v1 1 This WCPS query is invalid because clip Polygon returns an MDD instead of a scalar value 2 3 1 This query throws Null exception because coverage's metadata of coverage constructor was null. 4 2 {{{ 5 for c in (OCCCI_V3_1_chlor_a_monthly) 6 7 return 8 9 encode ( 10 11 12 13 coverage clipped 14 15 over $ansi ansi(0:12) 16 17 values 18 19 ( 20 21 clip(c[ansi($ansi)].chlor_a * 100, 22 POLYGON ((57.5 -11.5,56.5 -11.5,55.5 -11.5,54.5 -11.5,53.5 -11.5,52.5 -11.5,51.5 -11.5,50.5 -11.5,49.5 -11.5,49.5 -10.5,49.5 -9.5,49.5 -8.5,49.5 -7.5,48.5 -7.5,47.5 -7.5,47.5 -6.5,47.5 -5.5,46.5 -5.5,45.5 -5.5,45.5 -4.5,45.5 -3.5,45.5 -2.5,44.5 -2.5,44.5 -3.5,44.5 -4.5,44.5 -5.5,44.5 -6.5,44.5 -7.5,44.5 -8.5,44.5 -9.5,43.5 -9.5,43.5 -10.5,43.5 -11.5,43.5 -12.5,43.5 -13.5,43.5 -14.5,43.5 -15.5,43.5 -16.5,43.5 -17.5,43.5 -18.5,43.5 -19.5,43.5 -20.5,43.5 -21.5,43.5 -22.5,43.5 -23.5,43.5 -24.5,43.5 -25.5,43.5 -26.5,43.5 -27.5,43.5 -28.5,43.5 -29.5,43.5 -30.5,43.5 -31.5,43.5 -32.5,43.5 -33.5,43.5 -34.5,43.5 -35.5,43.5 -36.5,43.5 -37.5,43.5 -38.5,43.5 -39.5,43.5 -40.5,43.5 -41.5,43.5 -42.5,43.5 -43.5,44.5 -43.5,45.5 -43.5,46.5 -43.5,47.5 -43.5,48.5 -43.5,49.5 -43.5,50.5 -43.5,51.5 -43.5,52.5 -43.5,53.5 -43.5,54.5 -43.5,55.5 -43.5,55.5 -42.5,55.5 -41.5,55.5 -40.5,55.5 -39.5,55.5 -38.5,55.5 -37.5,55.5 -36.5,55.5 -35.5,55.5 -34.5,55.5 -33.5,55.5 -32.5,55.5 -31.5,55.5 -30.5,55.5 -29.5,55.5 -28.5,55.5 -27.5,55.5 -26.5,55.5 -25.5,55.5 -24.5,55.5 -23.5,56.5 -23.5,57.5 -23.5,57.5 -22.5,57.5 -21.5,57.5 -20.5,57.5 -19.5,57.5 -18.5,57.5 -17.5,57.5 -16.5,57.5 -15.5,57.5 -14.5,57.5 -13.5,57.5 -12.5,57.5 -11.5)) ) 23 24 ) 25 26 , "netcdf" 3 for c in (test_eobstest) return encode( 4 coverage clipped 5 over $ansi t(0:5) 6 values 1, "netcdf") 27 7 }}} 28 29 30 It returns stack trace for NullException which needs to have proper error message.31 32 33 {{{34 Caused by: java.lang.NullPointerException35 36 at petascope.wcps.encodeparameters.service.ExtraMetadataService.removeMetadataSlices(ExtraMetadataService.java:95)37 38 at petascope.wcps.encodeparameters.service.ExtraMetadataService.deserializeCoverageMetadata(ExtraMetadataService.java:64)39 40 at petascope.wcps.parameters.netcdf.service.NetCDFParametersService.buildDimensionVariables(NetCDFParametersService.java:129)41 42 at petascope.wcps.parameters.netcdf.service.NetCDFParametersService.buildVariables(NetCDFParametersService.java:191)43 44 at petascope.wcps.parameters.netcdf.service.NetCDFParametersService.buildParameters(NetCDFParametersService.java:85)45 46 at petascope.wcps.handler.EncodeCoverageHandler.getExtraParams(EncodeCoverageHandler.java:139)47 48 at petascope.wcps.handler.EncodeCoverageHandler.handle(EncodeCoverageHandler.java:98)49 50 at petascope.wcps.parser.WcpsEvaluator.visitEncodedCoverageExpressionLabel(WcpsEvaluator.java:329)51 52 at petascope.wcps.parser.WcpsEvaluator.visitEncodedCoverageExpressionLabel(WcpsEvaluator.java:131)53 54 at petascope.wcps.parser.wcpsParser$EncodedCoverageExpressionLabelContext.accept(wcpsParser.java:2448)55 56 at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:68)57 58 at petascope.wcps.parser.wcpsBaseVisitor.visitProcessingExpression(wcpsBaseVisitor.java:229)59 60 at petascope.wcps.parser.wcpsParser$ProcessingExpressionContext.accept(wcpsParser.java:544)61 62 at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:44)63 64 at petascope.wcps.parser.WcpsEvaluator.visitReturnClauseLabel(WcpsEvaluator.java:302)65 66 at petascope.wcps.parser.WcpsEvaluator.visitReturnClauseLabel(WcpsEvaluator.java:131)67 68 at petascope.wcps.parser.wcpsParser$ReturnClauseLabelContext.accept(wcpsParser.java:442)69 70 at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:44)71 72 }}}