Hi, I'm trying to consume some geoserver geoprocesses with geotools
WPS client and I'm running into two issues.

First, I have a custom process which describeProcess operation returns
a document containing this output definition[1]. The client tries to
access to the DataType inside the LiteralOutput and crashes with a NPE
at line 312.

Second, I've tried with another out of the box (I think) process like,
"JTS-area"[2] and I get also a NPE. In this case, the DataType is not
null, but in the same line as before, a "reference" attribute is read,
which is null and causes the code to fail later. In this case, the
data type is not in the reference attribute but on the value of the
element.

I guess both are bugs. Am I right?

Cheers.

[1]
        <ProcessOutputs>
            <Output>
                <ows:Identifier>result</ows:Identifier>
                <ows:Title>result</ows:Title>
                <LiteralOutput />
            </Output>
        </ProcessOutputs>

[2]
        <ProcessOutputs>
            <Output>
                <ows:Identifier>result</ows:Identifier>
                <ows:Title>result</ows:Title>
                <LiteralOutput>
                    <ows:DataType>double</ows:DataType>
                </LiteralOutput>
            </Output>
        </ProcessOutputs>

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to