Error parsing GML3 using QGIS WPS plugin

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error parsing GML3 using QGIS WPS plugin

williamvoor
Hello,

I've set up a 52n WPS server from sources, version 3.3.2-SNAPSHOT with
Geotools, Tomcat 7.0.53, and Java 8. My client is QGIS WPS plugin.
I've created a new process by extending AbstractAnnotatedAlgorithm and
annotated it accordingly. My process has a complex data input, which I
expect it to be bound to a GT FeatureCollection.
I was able to include the new process in the server and register it
under the LocalAlgorithmRepository.

I'm getting an error when trying to execute the process from QGIS WPS plugin.
The server apparently cannot parse the GML3. The following is an
exception I see in the server logs, related to GLM parsing.
GML3BasicParser receives an escaped XML and fails to start the
parsing, which is probably transformed before it gets to the parser. I
can see that in
a temporary file create by the parser.
The same error was occurring when I deployed a binary distribution of
version 3.3.1; I have then set up from sources for debugging purposes.

org.n52.wps.server.ExceptionReport: Error occured, while XML parsing
at org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:576)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:518)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:157)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:132)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:662)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.Request.call(Request.java:1)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[na:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[na:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: java.lang.IllegalArgumentException:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2;
Reference is not allowed in prolog.
at org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:315)
~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.io.datahandler.parser.GML3BasicParser.parseFeatureCollection(GML3BasicParser.java:156)
~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.io.datahandler.parser.GML3BasicParser.parseXML(GML3BasicParser.java:141)
~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:126)
~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:1)
~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
at org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:574)
~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
... 10 common frames omitted
Caused by: org.xml.sax.SAXParseException: Reference is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source) ~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source) ~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
Source) ~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) ~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
~[xercesImpl-2.7.1.jar:na]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source) ~[xercesImpl-2.7.1.jar:na]
at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) ~[na:1.8.0_45]
at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) ~[na:1.8.0_45]
at org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:305)
~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]

Best regards,

William
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error parsing GML3 using QGIS WPS plugin

BenjaminPross
Hello William,

Which version of QGIS are you using?

Cheers,

Benjamin

Am 30.07.2015 um 08:07 schrieb William Voorsluys:

> Hello,
>
> I've set up a 52n WPS server from sources, version 3.3.2-SNAPSHOT with
> Geotools, Tomcat 7.0.53, and Java 8. My client is QGIS WPS plugin.
> I've created a new process by extending AbstractAnnotatedAlgorithm and
> annotated it accordingly. My process has a complex data input, which I
> expect it to be bound to a GT FeatureCollection.
> I was able to include the new process in the server and register it
> under the LocalAlgorithmRepository.
>
> I'm getting an error when trying to execute the process from QGIS WPS plugin.
> The server apparently cannot parse the GML3. The following is an
> exception I see in the server logs, related to GLM parsing.
> GML3BasicParser receives an escaped XML and fails to start the
> parsing, which is probably transformed before it gets to the parser. I
> can see that in
> a temporary file create by the parser.
> The same error was occurring when I deployed a binary distribution of
> version 3.3.1; I have then set up from sources for debugging purposes.
>
> org.n52.wps.server.ExceptionReport: Error occured, while XML parsing
> at org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:576)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:518)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:157)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:132)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:662)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.Request.call(Request.java:1)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[na:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[na:1.8.0_45]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
> Caused by: java.lang.IllegalArgumentException:
> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2;
> Reference is not allowed in prolog.
> at org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:315)
> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.io.datahandler.parser.GML3BasicParser.parseFeatureCollection(GML3BasicParser.java:156)
> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.io.datahandler.parser.GML3BasicParser.parseXML(GML3BasicParser.java:141)
> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:126)
> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:1)
> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:574)
> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
> ... 10 common frames omitted
> Caused by: org.xml.sax.SAXParseException: Reference is not allowed in prolog.
> at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source) ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source) ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
> Source) ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source) ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> ~[xercesImpl-2.7.1.jar:na]
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source) ~[xercesImpl-2.7.1.jar:na]
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) ~[na:1.8.0_45]
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) ~[na:1.8.0_45]
> at org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:305)
> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>
> Best regards,
>
> William
> _______________________________________________
> Geoprocessingservices mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> http://geoprocessing.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines


--
Benjamin Proß
Software Engineer
52°North Geoprocessing Community

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
[hidden email]
http://52north.org/

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error parsing GML3 using QGIS WPS plugin

williamvoor
I'm using QGIS 2.0.1-2 (from Ubuntu 14.04LTS repositories). The WPS
plugin is 2.0.14, installed from within QGIS plugin manager itself.

On Thu, Jul 30, 2015 at 5:29 PM, Benjamin Proß <[hidden email]> wrote:

> Hello William,
>
> Which version of QGIS are you using?
>
> Cheers,
>
> Benjamin
>
>
> Am 30.07.2015 um 08:07 schrieb William Voorsluys:
>>
>> Hello,
>>
>> I've set up a 52n WPS server from sources, version 3.3.2-SNAPSHOT with
>> Geotools, Tomcat 7.0.53, and Java 8. My client is QGIS WPS plugin.
>> I've created a new process by extending AbstractAnnotatedAlgorithm and
>> annotated it accordingly. My process has a complex data input, which I
>> expect it to be bound to a GT FeatureCollection.
>> I was able to include the new process in the server and register it
>> under the LocalAlgorithmRepository.
>>
>> I'm getting an error when trying to execute the process from QGIS WPS
>> plugin.
>> The server apparently cannot parse the GML3. The following is an
>> exception I see in the server logs, related to GLM parsing.
>> GML3BasicParser receives an escaped XML and fails to start the
>> parsing, which is probably transformed before it gets to the parser. I
>> can see that in
>> a temporary file create by the parser.
>> The same error was occurring when I deployed a binary distribution of
>> version 3.3.1; I have then set up from sources for debugging purposes.
>>
>> org.n52.wps.server.ExceptionReport: Error occured, while XML parsing
>> at
>> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:576)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:518)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:157)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:132)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:662)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.Request.call(Request.java:1)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> ~[na:1.8.0_45]
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> ~[na:1.8.0_45]
>> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
>> Caused by: java.lang.IllegalArgumentException:
>> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2;
>> Reference is not allowed in prolog.
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:315)
>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseFeatureCollection(GML3BasicParser.java:156)
>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseXML(GML3BasicParser.java:141)
>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:126)
>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:1)
>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:574)
>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>> ... 10 common frames omitted
>> Caused by: org.xml.sax.SAXParseException: Reference is not allowed in
>> prolog.
>> at
>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>> Source) ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
>> Source) ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at
>> org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
>> Source) ~[xercesImpl-2.7.1.jar:na]
>> at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source) ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>> ~[xercesImpl-2.7.1.jar:na]
>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source) ~[xercesImpl-2.7.1.jar:na]
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) ~[na:1.8.0_45]
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) ~[na:1.8.0_45]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:305)
>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>
>> Best regards,
>>
>> William
>> _______________________________________________
>> Geoprocessingservices mailing list
>> [hidden email]
>> http://list.52north.org/mailman/listinfo/geoprocessingservices
>> http://geoprocessing.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>
>
>
> --
> Benjamin Proß
> Software Engineer
> 52°North Geoprocessing Community
>
> 52°North Initiative for Geospatial Open Source Software GmbH
> Martin-Luther-King-Weg 24
> Fon: +49-(0)-251–396371-42
> Fax: +49-(0)-251–396371-11
> [hidden email]
> http://52north.org/
>
> General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
> Local Court Muenster HRB 10849
>
> _______________________________________________
> Geoprocessingservices mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> http://geoprocessing.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error parsing GML3 using QGIS WPS plugin

BenjaminPross
Apparently from version 2.0.10 on the QGIS WPS plugin wrapps every
complex data value in a CDATA section, even GML (see issue here[1]).
This is problematic for our parsers..
I am not sure that this is correct behaviour on the client side.
However, I will evaluate options to make our WPS work with the client again.

Cheers,

Benjamin

[1] http://hub.qgis.org/issues/11180

Am 30.07.2015 um 12:17 schrieb William Voorsluys:

> I'm using QGIS 2.0.1-2 (from Ubuntu 14.04LTS repositories). The WPS
> plugin is 2.0.14, installed from within QGIS plugin manager itself.
>
> On Thu, Jul 30, 2015 at 5:29 PM, Benjamin Proß <[hidden email]> wrote:
>> Hello William,
>>
>> Which version of QGIS are you using?
>>
>> Cheers,
>>
>> Benjamin
>>
>>
>> Am 30.07.2015 um 08:07 schrieb William Voorsluys:
>>> Hello,
>>>
>>> I've set up a 52n WPS server from sources, version 3.3.2-SNAPSHOT with
>>> Geotools, Tomcat 7.0.53, and Java 8. My client is QGIS WPS plugin.
>>> I've created a new process by extending AbstractAnnotatedAlgorithm and
>>> annotated it accordingly. My process has a complex data input, which I
>>> expect it to be bound to a GT FeatureCollection.
>>> I was able to include the new process in the server and register it
>>> under the LocalAlgorithmRepository.
>>>
>>> I'm getting an error when trying to execute the process from QGIS WPS
>>> plugin.
>>> The server apparently cannot parse the GML3. The following is an
>>> exception I see in the server logs, related to GLM parsing.
>>> GML3BasicParser receives an escaped XML and fails to start the
>>> parsing, which is probably transformed before it gets to the parser. I
>>> can see that in
>>> a temporary file create by the parser.
>>> The same error was occurring when I deployed a binary distribution of
>>> version 3.3.1; I have then set up from sources for debugging purposes.
>>>
>>> org.n52.wps.server.ExceptionReport: Error occured, while XML parsing
>>> at
>>> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:576)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:518)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:157)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:132)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:662)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at org.n52.wps.server.request.Request.call(Request.java:1)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> ~[na:1.8.0_45]
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> ~[na:1.8.0_45]
>>> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
>>> Caused by: java.lang.IllegalArgumentException:
>>> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2;
>>> Reference is not allowed in prolog.
>>> at
>>> org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:315)
>>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseFeatureCollection(GML3BasicParser.java:156)
>>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseXML(GML3BasicParser.java:141)
>>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:126)
>>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:1)
>>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>> at
>>> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:574)
>>> ~[52n-wps-server-3.3.2-SNAPSHOT.jar:na]
>>> ... 10 common frames omitted
>>> Caused by: org.xml.sax.SAXParseException: Reference is not allowed in
>>> prolog.
>>> at
>>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>>> Source) ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
>>> Source) ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at
>>> org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
>>> Source) ~[xercesImpl-2.7.1.jar:na]
>>> at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>>> Source) ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>> ~[xercesImpl-2.7.1.jar:na]
>>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>>> Source) ~[xercesImpl-2.7.1.jar:na]
>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) ~[na:1.8.0_45]
>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) ~[na:1.8.0_45]
>>> at
>>> org.n52.wps.io.datahandler.parser.GML3BasicParser.determineFeatureTypeSchema(GML3BasicParser.java:305)
>>> ~[52n-wps-io-geotools-3.3.2-SNAPSHOT.jar:na]
>>>
>>> Best regards,
>>>
>>> William
>>> _______________________________________________
>>> Geoprocessingservices mailing list
>>> [hidden email]
>>> http://list.52north.org/mailman/listinfo/geoprocessingservices
>>> http://geoprocessing.forum.52north.org
>>> Please respect our mailing list guidelines:
>>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>
>>
>> --
>> Benjamin Proß
>> Software Engineer
>> 52°North Geoprocessing Community
>>
>> 52°North Initiative for Geospatial Open Source Software GmbH
>> Martin-Luther-King-Weg 24
>> Fon: +49-(0)-251–396371-42
>> Fax: +49-(0)-251–396371-11
>> [hidden email]
>> http://52north.org/
>>
>> General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
>> Local Court Muenster HRB 10849
>>
>> _______________________________________________
>> Geoprocessingservices mailing list
>> [hidden email]
>> http://list.52north.org/mailman/listinfo/geoprocessingservices
>> http://geoprocessing.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines


--
Benjamin Proß
Software Engineer
52°North Geoprocessing Community

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
[hidden email]
http://52north.org/

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Loading...