Hi Justin, thanks for the patch! I'll wait until it's on trunk and then test it.
Matthias Justin Deoliveira schrieb: > Hi Matthias, > > I looked into it and found the issue. The fix requires a change to the > wps model, it should be fine but I would like to get someone to review > the change as i know people are doing WPS work these days. > > Jody or Andrea perhaps? > > -Justin > > Matthias Lendholt wrote: >> Hi Justin, >> >> sorry for bothering again but I found another parsing exception >> (http://jira.codehaus.org/browse/GEOT-2734) with a different WPS. >> >> Hopefully it is easy to solve. >> >> Cheers, Matthias >> >> >> Jody Garnett schrieb: >>> Hi Matthias - if you have a checkout of uDig trunk run the >>> refresh.xml script and you can try out the update right away. More >>> maven being magical. >>> >>> Let us return to the udig-devel list - I will be focused on uDig next >>> week and be in a better position to help. >>> >>> Cheers, >>> Jody >>> >>> On 24/09/2009, at 6:02 PM, Matthias Lendholt wrote: >>> >>>> Hi Justin, >>>> thanks for your help. "should be not resolved" confuses me. >>>> >>>> Currently I'm testing my WPS code with GeoTools from trunk in >>>> Eclipse. I've updated it and it seems to work. Great! This means >>>> Maven has updated all the libs in the background too? I guess. (I'm >>>> quite new to Maven) >>>> But this is just my test project. We need this code for a uDig based >>>> application and I'll wait until a newer uDig version is released >>>> before migrating my code to this project. >>>> >>>> >>>> Yes - it wasn't me who brought the conversation private. ;-) >>>> >>>> Thanks again! >>>> Matthias >>>> >>>> Justin Deoliveira schrieb: >>>>> Hi Matthias, >>>>> So this issue should not be resolved, i had to tweak the >>>>> OWSConfiguration class a bit (it was missing some bindings). But >>>>> after doing so the xml you posted parses nicely. >>>>> Not sure how you are running. Are you running gt from sources? We >>>>> have a nightly build process deploys changes to repo.opengeo.org. I >>>>> could kick that off as well if need be. Let me know. >>>>> Also for future reference try to keep conversations on the public >>>>> mailing list. Feel free to CC me, just best to keep conversations >>>>> on list. Actually looking at the conversation it was Jody who >>>>> brought the conversation private. >>>>> -Justin >>>>> Matthias Lendholt wrote: >>>>>> Hi Justin, >>>>>> I opened a bug report and uploaded the describe prosess response >>>>>> as xml file (http://jira.codehaus.org/browse/GEOT-2727). I guess >>>>>> this is what you want? >>>>>> >>>>>> Thanks! >>>>>> Matthias >>>>>> >>>>>> Justin Deoliveira schrieb: >>>>>>> Hi Matthias, >>>>>>> >>>>>>> Sorry for the late reply. I have been swamped lately. Since your >>>>>>> server is behind your fireway can you just grab a bunch of output >>>>>>> from it, with somethign like curl you can do: >>>>>>> >>>>>>> curl -G >>>>>>> "http://192.168.112.128:8080/SIM/WebProcessingService?Service=WPS >>>>>>> and processName=SelectScenario" -O output.xml >>>>>>> >>>>>>> And then include that. With some output and the test code you >>>>>>> provided i should be able to nail it down. >>>>>>> >>>>>>> -Justin >>>>>>> >>>>>>> Matthias Lendholt wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> sorry for bothering me but have you worked on the parsing >>>>>>>> problem? I just have to know if I should wait a bit or search >>>>>>>> for another solution. >>>>>>>> >>>>>>>> Regarding http://jira.codehaus.org/browse/GEOT-2717 I have to >>>>>>>> know how do I get commit-access to svn? Andrea asked me to >>>>>>>> provide the patch since the module is unmaintained. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Matthias >>>>>>>> >>>>>>>> >>>>>>>> Jody Garnett schrieb: >>>>>>>>> Since it is a parsing problem could we have a copy of the document >>>>>>>>> being parsed; and then build up a test case around it? >>>>>>>>> >>>>>>>>> Jody >>>>>>>>> >>>>>>>>> On Thu, Sep 17, 2009 at 12:32 AM, Matthias Lendholt >>>>>>>>> <matthias.lendh...@gfz-potsdam.de> wrote: >>>>>>>>>> Hi Justin, >>>>>>>>>> >>>>>>>>>> Justin Deoliveira schrieb: >>>>>>>>>>> Not that I can think of. >>>>>>>>>>> >>>>>>>>>>> MAtthais: woudl it be possible to include the output from the >>>>>>>>>>> WPS you are >>>>>>>>>>> trying to parse, and the parsing code? If you could do it up >>>>>>>>>>> in a runnable >>>>>>>>>>> test case that would be even better, and i can take a look at >>>>>>>>>>> it. >>>>>>>>>> I'm not sure how to put it in a runnable testcase.... The WPS >>>>>>>>>> is running >>>>>>>>>> locally in a virtual machine and network restrictions will >>>>>>>>>> block any request >>>>>>>>>> from outside. >>>>>>>>>> >>>>>>>>>> But I can send you my code. Here where the exception occurs: >>>>>>>>>> >>>>>>>>>> public static WPSFactory getWpsFactory(URL wpsUrl, String >>>>>>>>>> processName) >>>>>>>>>> throws ServiceException, IOException { >>>>>>>>>> WebProcessingService wps = new WebProcessingService(wpsUrl); >>>>>>>>>> DescribeProcessRequest descRequest = >>>>>>>>>> wps.createDescribeProcessRequest(); >>>>>>>>>> descRequest.setIdentifier(processName); >>>>>>>>>> // this throws the exception: >>>>>>>>>> DescribeProcessResponse descResponse = >>>>>>>>>> wps.issueRequest(descRequest); >>>>>>>>>> ProcessDescriptionsType processDesc = >>>>>>>>>> descResponse.getProcessDesc(); >>>>>>>>>> ProcessDescriptionType pdt = (ProcessDescriptionType) >>>>>>>>>> processDesc.getProcessDescription().get(0); >>>>>>>>>> return new WPSFactory(pdt, wpsUrl); >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> The method is invoked with >>>>>>>>>> URL=http://192.168.112.128:8080/SIM/WebProcessingService?Service=WPS >>>>>>>>>> >>>>>>>>>> and processName=SelectScenario >>>>>>>>>> >>>>>>>>>> Since the method works fine (!) for other processes offered by >>>>>>>>>> the same WPS >>>>>>>>>> something inside this special process description must be >>>>>>>>>> wrong (or wrong in >>>>>>>>>> the parsing code). >>>>>>>>>> >>>>>>>>>> Submitting the describe process request in my browser with >>>>>>>>>> http://192.168.112.128:8080/SIM/WebProcessingService?Request=DescribeProcess&Service=WPS&Identifier=SelectScenario >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> returns: >>>>>>>>>> >>>>>>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>>>>>> <ns:ProcessDescriptions >>>>>>>>>> xmlns:ns="http://www.opengis.net/wps/1.0.0" >>>>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>>>>> xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 >>>>>>>>>> http://geoserver:8080/wps/schemas/wps/1.0.0/wpsDescribeProcess_response.xsd" >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> xml:lang="en-US" service="WPS" >>>>>>>>>> version="1.0.0"><ProcessDescription >>>>>>>>>> xmlns:ows="http://www.opengis.net/ows/1.1" >>>>>>>>>> xmlns:wps="http://www.opengis.net/wps/1.0.0" >>>>>>>>>> xmlns:xlink="http://www.w3.org/1999/xlink" >>>>>>>>>> wps:processVersion="1.0.0" >>>>>>>>>> storeSupported="true" statusSupported="true"> >>>>>>>>>> >>>>>>>>>> <ows:Identifier>de.awi.tsunami.smf.io.wps.SelectScenario</ows:Identifier> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> <ows:Title>Select the best fitting scenarios for the >>>>>>>>>> specified input >>>>>>>>>> sensor observations</ows:Title> >>>>>>>>>> <DataInputs> >>>>>>>>>> <Input minOccurs="0" maxOccurs="1"> >>>>>>>>>> <ows:Identifier>resultLength</ows:Identifier> >>>>>>>>>> <ows:Title>Number of scenarios to return as part >>>>>>>>>> of the >>>>>>>>>> ScenarioSelection</ows:Title> >>>>>>>>>> >>>>>>>>>> <LiteralData> >>>>>>>>>> <ows:DataType ows:reference="xs:int"/> >>>>>>>>>> <ows:AllowedValues> >>>>>>>>>> <ows:Range> >>>>>>>>>> <ows:MinimumValue>0</ows:MinimumValue> >>>>>>>>>> </ows:Range> >>>>>>>>>> </ows:AllowedValues> >>>>>>>>>> </LiteralData> >>>>>>>>>> >>>>>>>>>> </Input> >>>>>>>>>> <Input minOccurs="1" maxOccurs="1"> >>>>>>>>>> <ows:Identifier>observations</ows:Identifier> >>>>>>>>>> <ows:Title>The set of observations for whom a >>>>>>>>>> scenario >>>>>>>>>> matching is requested.</ows:Title> >>>>>>>>>> <ows:Abstract> >>>>>>>>>> The set of observations for whom a scenario >>>>>>>>>> matching is >>>>>>>>>> requested. >>>>>>>>>> This may contain epicenter, magnitude, depth >>>>>>>>>> below >>>>>>>>>> epicenter and >>>>>>>>>> arrivaltimes at buoys and tide gauges. >>>>>>>>>> </ows:Abstract> >>>>>>>>>> <ComplexData> >>>>>>>>>> >>>>>>>>>> <Default> >>>>>>>>>> <Format> >>>>>>>>>> <MimeType>text/XML</MimeType> >>>>>>>>>> <Encoding>UTF-8</Encoding> >>>>>>>>>> >>>>>>>>>> <Schema>http://www.opengis.net/om.xsd</Schema> >>>>>>>>>> </Format> >>>>>>>>>> </Default> >>>>>>>>>> >>>>>>>>>> <Supported> >>>>>>>>>> <Format> >>>>>>>>>> <MimeType>text/XML</MimeType> >>>>>>>>>> <Encoding>UTF-8</Encoding> >>>>>>>>>> >>>>>>>>>> <Schema>http://www.opengis.net/om.xsd</Schema> >>>>>>>>>> </Format> >>>>>>>>>> </Supported> >>>>>>>>>> >>>>>>>>>> </ComplexData> >>>>>>>>>> </Input> >>>>>>>>>> <Input minOccurs="1" maxOccurs="1"> >>>>>>>>>> <ows:Identifier>scenarioScope</ows:Identifier> >>>>>>>>>> <ows:Title>The selected scenarios shall be of this >>>>>>>>>> scope.</ows:Title> >>>>>>>>>> <LiteralData> >>>>>>>>>> <ows:DataType ows:reference="xs:string"/> >>>>>>>>>> <ows:AllowedValues> >>>>>>>>>> >>>>>>>>>> <ows:Value>global</ows:Value> >>>>>>>>>> <ows:Value>basin</ows:Value> >>>>>>>>>> <ows:Value>regional</ows:Value> >>>>>>>>>> <ows:Value>local</ows:Value> >>>>>>>>>> </ows:AllowedValues> >>>>>>>>>> </LiteralData> >>>>>>>>>> </Input> >>>>>>>>>> >>>>>>>>>> </DataInputs> >>>>>>>>>> <ProcessOutputs> >>>>>>>>>> <Output> >>>>>>>>>> <ows:Identifier>ScenarioSelection</ows:Identifier> >>>>>>>>>> <ows:Title>List of matched Scenarios with id, >>>>>>>>>> scenario >>>>>>>>>> mismatch and list of observation mismatches</ows:Title> >>>>>>>>>> <ComplexOutput> >>>>>>>>>> <Default> >>>>>>>>>> <Format> >>>>>>>>>> >>>>>>>>>> <MimeType>text/XML</MimeType> >>>>>>>>>> <Encoding>UTF-8</Encoding> >>>>>>>>>> >>>>>>>>>> <Schema>http://www.awi.de/tsunami/smf/ScenarioSelection.xsd</Schema> >>>>>>>>>> >>>>>>>>>> </Format> >>>>>>>>>> </Default> >>>>>>>>>> <Supported> >>>>>>>>>> <Format> >>>>>>>>>> >>>>>>>>>> <MimeType>text/XML</MimeType> >>>>>>>>>> <Encoding>UTF-8</Encoding> >>>>>>>>>> >>>>>>>>>> <Schema>http://www.awi.de/tsunami/smf/ScenarioSelection.xsd</Schema> >>>>>>>>>> >>>>>>>>>> </Format> >>>>>>>>>> </Supported> >>>>>>>>>> </ComplexOutput> >>>>>>>>>> </Output> >>>>>>>>>> >>>>>>>>>> </ProcessOutputs> >>>>>>>>>> </ProcessDescription></ns:ProcessDescriptions> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Here again the exception: >>>>>>>>>> >>>>>>>>>> java.lang.RuntimeException: Parsing failed for LiteralData: >>>>>>>>>> java.lang.RuntimeException: Unable to set property: >>>>>>>>>> AllowedValues for >>>>>>>>>> eobject: {http://www.opengis.net/wps/1.0.0}LiteralInputType >>>>>>>>>> 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 >>>>>>>>>> de.gfz_potsdam.lendholt.geotools.SimpleWpsConnector.getWpsFactory(SimpleWpsConnector.java:80) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> de.gfz_potsdam.lendholt.geotools.SimpleWpsConnector.getInputParameterInfo(SimpleWpsConnector.java:107) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> de.gfz_potsdam.lendholt.geotools.WpsTest.main(WpsTest.java:23) >>>>>>>>>> Caused by: java.lang.RuntimeException: Unable to set property: >>>>>>>>>> AllowedValues >>>>>>>>>> for eobject: {http://www.opengis.net/wps/1.0.0}LiteralInputType >>>>>>>>>> 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: java.lang.String >>>>>>>>>> cannot be cast to >>>>>>>>>> net.opengis.ows11.AllowedValuesType >>>>>>>>>> at >>>>>>>>>> net.opengis.wps10.impl.LiteralInputTypeImpl.eSet(LiteralInputTypeImpl.java:303) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 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 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Thanks for your help. I've tried to debug into this stuff but >>>>>>>>>> I was lost. So >>>>>>>>>> much generic emf objects completely confuse me. :-/ >>>>>>>>>> >>>>>>>>>> Cheers, Matthias >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Matthias Lendholt [matthias.lendh...@gfz-potsdam.de] >>>>>>>>>> tel: +49 331 288 1687; fax: +49 331 288 1703 >>>>>>>>>> Deutsches GeoForschungsZentrum (GFZ) >>>>>>>>>> Telegrafenberg A20; D14473 Potsdam; Germany >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>> >>>> >>>> -- >>>> Matthias Lendholt [matthias.lendh...@gfz-potsdam.de] >>>> tel: +49 331 288 1687; fax: +49 331 288 1703 >>>> Deutsches GeoForschungsZentrum (GFZ) >>>> Telegrafenberg A20; D14473 Potsdam; Germany >>> >>> >> >> > -- Matthias Lendholt [matthias.lendh...@gfz-potsdam.de] tel: +49 331 288 1687; fax: +49 331 288 1703 Deutsches GeoForschungsZentrum (GFZ) Telegrafenberg A20; D14473 Potsdam; Germany ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel