GeoTools
  1. GeoTools
  2. GEOT-2734

Another parsing error on WPS DescribeProcessRequest

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6-M2
    • Fix Version/s: 2.6-M3
    • Component/s: None
    • Labels:
      None

      Description

      After GEOT-2727 has been fixed I found another parsing exception with a different WPS. Below the stack trace. I'll attach the DescribeProcess-Response as xml file. WPS was triggered with
      http://dews-services:9000/aais/services?service=WPS&request=DescribeProcess&Identifier=AffectedAreaIdentificationProcess&version=1.0.0
      WPS server is deegree3.

      stacktrace:
      Exception in thread "main" java.lang.RuntimeException: Parsing failed for Default: java.lang.RuntimeException: Unable to set property: UOM for eobject:

      {http://www.opengis.net/wps/1.0.0}

      SupportedUOMsType_Default
      at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158)
      at org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:216)
      at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:182)
      at org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:223)
      at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:605)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.geotools.xml.Parser.parse(Parser.java:221)
      at org.geotools.xml.Parser.parse(Parser.java:149)
      at org.geotools.data.wps.response.DescribeProcessResponse.<init>(DescribeProcessResponse.java:65)
      at org.geotools.data.wps.WPS1_0_0$InternalDescribeProcessRequest.createResponse(WPS1_0_0.java:133)
      at org.geotools.data.ows.AbstractWPS.internalIssueRequest(AbstractWPS.java:417)
      at org.geotools.data.wps.WebProcessingService.issueRequest(WebProcessingService.java:233)
      at ...
      Caused by: java.lang.RuntimeException: Unable to set property: UOM for eobject:

      {http://www.opengis.net/wps/1.0.0}

      SupportedUOMsType_Default
      at org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:284)
      at org.geotools.xml.AbstractComplexEMFBinding.setProperties(AbstractComplexEMFBinding.java:202)
      at org.geotools.xml.AbstractComplexEMFBinding.parse(AbstractComplexEMFBinding.java:143)
      at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:149)
      ... 21 more
      Caused by: java.lang.ClassCastException: javax.measure.unit.BaseUnit cannot be cast to net.opengis.ows11.DomainMetadataType
      at net.opengis.wps10.impl.DefaultType1Impl.eSet(DefaultType1Impl.java:142)
      at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:654)
      at org.geotools.xml.EMFUtils.set(EMFUtils.java:59)
      at org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:232)
      ... 24 more

      1. describeProcessResponse_aais.xml
        5 kB
        Matthias Lendholt
      2. GEOT-2734.patch
        75 kB
        Justin Deoliveira

        Activity

        Hide
        Justin Deoliveira added a comment -
        Patch to the model updating to Units
        Show
        Justin Deoliveira added a comment - Patch to the model updating to Units
        Hide
        Matthias Lendholt added a comment -
        Patch works. The exception above is not longer thrown. But I had to re-open GEOT-2717.
        Show
        Matthias Lendholt added a comment - Patch works. The exception above is not longer thrown. But I had to re-open GEOT-2717 .
        Hide
        Jody Garnett added a comment -
        Thanks justin for the patch; and Matthias for review.

        I noticed UOMsType and CRSsType - is it due for the same treatment?

        Patch applied as of -r34031.

        Matthias you may close if you are happy, I will mark this resolved
        Show
        Jody Garnett added a comment - Thanks justin for the patch; and Matthias for review. I noticed UOMsType and CRSsType - is it due for the same treatment? Patch applied as of -r34031. Matthias you may close if you are happy, I will mark this resolved
        Hide
        Andrea Aime added a comment -
        Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update
        Show
        Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

          People

          • Assignee:
            Justin Deoliveira
            Reporter:
            Matthias Lendholt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: