[Geoserver-users] Problems parsing WMS GetCapabilities response using GeoTools

Hi,

I’m using GeoTools 2.6.1 and GeoServer 2.1.0. For some reason, when I try and access my WMS (located at http://li199-25.members.linode.com:8080/geoserver/) GeoTools throwns a load of errors (shown below). The strange thing is, when I try my local version of GeoServer (also 2.1.0) it works fine. The server is running on Ubuntu 10.10 while my local machine is Windows 7, if that’s relevant.

The Error:

09-Jun-2011 12:31:47 org.geotools.xml.XMLSAXHandler fatalError
SEVERE: FATAL The processing instruction target matching “[xX][mM][lL]” is not allowed.
09-Jun-2011 12:31:47 org.geotools.xml.XMLSAXHandler fatalError
SEVERE: col 17, line 4716

This is repeated four times. When I try a GetCapabilities requesting using my browser it seems ok.

Any idea what’s happening here?

Thanks,

Jon

It has given you a line number; I suspect you should look at your capabilities file and check that line…
(when I look at that capabilities file it is all on one line).

Perhaps you could do a diff between your local capabilities and that produced by the remote service?


Jody Garnett

On Thursday, 9 June 2011 at 9:58 PM, Jon Britton wrote:

Hi,

I’m using GeoTools 2.6.1 and GeoServer 2.1.0. For some reason, when I try and access my WMS (located at http://li199-25.members.linode.com:8080/geoserver/) GeoTools throwns a load of errors (shown below). The strange thing is, when I try my local version of GeoServer (also 2.1.0) it works fine. The server is running on Ubuntu 10.10 while my local machine is Windows 7, if that’s relevant.

The Error:

09-Jun-2011 12:31:47 org.geotools.xml.XMLSAXHandler fatalError
SEVERE: FATAL The processing instruction target matching “[xX][mM][lL]” is not allowed.
09-Jun-2011 12:31:47 org.geotools.xml.XMLSAXHandler fatalError
SEVERE: col 17, line 4716

This is repeated four times. When I try a GetCapabilities requesting using my browser it seems ok.

Any idea what’s happening here?

Thanks,

Jon


EditLive Enterprise is the world’s most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

I think I’ve found the problem. I thought it was working using the browser but it isn’t. It returns a partial response ending with:

EPSG:62666405
EPSG:62676405
EPSG:62686405
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
javax.xml.transform.TransformerException: Translator error
Translator error
Error occurred trying to write out metadata for layer: Pk50095
Unable to acquire a reader for this coverage with format: WorldImage

Any ideas? This is a clean GeoServer install, by the way.

Jon

On 9 June 2011 14:03, Jody Garnett <jody.garnett@anonymised.com> wrote:

It has given you a line number; I suspect you should look at your capabilities file and check that line…
(when I look at that capabilities file it is all on one line).

Perhaps you could do a diff between your local capabilities and that produced by the remote service?


Jody Garnett

On Thursday, 9 June 2011 at 9:58 PM, Jon Britton wrote:

Hi,

I’m using GeoTools 2.6.1 and GeoServer 2.1.0. For some reason, when I try and access my WMS (located at http://li199-25.members.linode.com:8080/geoserver/) GeoTools throwns a load of errors (shown below). The strange thing is, when I try my local version of GeoServer (also 2.1.0) it works fine. The server is running on Ubuntu 10.10 while my local machine is Windows 7, if that’s relevant.

The Error:

09-Jun-2011 12:31:47 org.geotools.xml.XMLSAXHandler fatalError
SEVERE: FATAL The processing instruction target matching “[xX][mM][lL]” is not allowed.
09-Jun-2011 12:31:47 org.geotools.xml.XMLSAXHandler fatalError
SEVERE: col 17, line 4716

This is repeated four times. When I try a GetCapabilities requesting using my browser it seems ok.

Any idea what’s happening here?

Thanks,

Jon


EditLive Enterprise is the world’s most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


Geotools-gt2-users mailing list
Geotools-gt2-users@anonymised.comnet
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

On Thu, Jun 9, 2011 at 3:56 PM, Jon Britton <jonbritton3@anonymised.com> wrote:

I think I've found the problem. I thought it was working using the browser
but it isn't. It returns a partial response ending with:
<SRS>EPSG:62666405</SRS>
<SRS>EPSG:62676405</SRS>
<SRS>EPSG:62686405</SRS>
<SRS><?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://li199-25.members.linode.com:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&quot;&gt;
<ServiceExceptionReport version="1.1.1" > <ServiceException>
javax.xml.transform.TransformerException: Translator error
Translator error
Error occurred trying to write out metadata for layer: Pk50095
Unable to acquire a reader for this coverage with format: WorldImage
</ServiceException></ServiceExceptionReport>
Any ideas? This is a clean GeoServer install, by the way.

In a recent Tomcat? Might be this one:
http://geo-solutions.blogspot.com/search/label/tomcat

Cheers
Andrea

--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

Yeh, I’m using Tomcat 6.0.28 so maybe that’s it. I’ll try the solutions listed there.

Thanks,
Jon

On 9 June 2011 15:07, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, Jun 9, 2011 at 3:56 PM, Jon Britton <jonbritton3@anonymised.com> wrote:

I think I’ve found the problem. I thought it was working using the browser
but it isn’t. It returns a partial response ending with:
EPSG:62666405
EPSG:62676405
EPSG:62686405
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

javax.xml.transform.TransformerException: Translator error
Translator error
Error occurred trying to write out metadata for layer: Pk50095
Unable to acquire a reader for this coverage with format: WorldImage

Any ideas? This is a clean GeoServer install, by the way.

In a recent Tomcat? Might be this one:
http://geo-solutions.blogspot.com/search/label/tomcat

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf



EditLive Enterprise is the world’s most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Tried the first solution in the link and it seems to have worked.

Thanks!

On 9 June 2011 15:07, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, Jun 9, 2011 at 3:56 PM, Jon Britton <jonbritton3@anonymised.com> wrote:

I think I’ve found the problem. I thought it was working using the browser
but it isn’t. It returns a partial response ending with:
EPSG:62666405
EPSG:62676405
EPSG:62686405
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

javax.xml.transform.TransformerException: Translator error
Translator error
Error occurred trying to write out metadata for layer: Pk50095
Unable to acquire a reader for this coverage with format: WorldImage

Any ideas? This is a clean GeoServer install, by the way.

In a recent Tomcat? Might be this one:
http://geo-solutions.blogspot.com/search/label/tomcat

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf



EditLive Enterprise is the world’s most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users