[Geoserver-users] SAXParseException

Hi,

I tried this wms call in my browser:

http://localhost:8080/geoserver/wms?bbox=103.59736493356376,1.17866724157080
97,104.09707604959173,1.4807073969316509&Format=image/png&request=GetMap&wid
th=800&height=400&srs=EPSG:4326&SLD_BODY=%3CStyledLayerDescriptor%20version=
%221.0.0%22%3E%3CUserLayer%3E%3CName%3Eprrm:history_track%3C/Name%3E%3CUserS
tyle%3E%3CTitle%3EDefault%20Styler%3C/Title%3E%3CAbstract%3E%3C/Abstract%3E%
3CFeatureTypeStyle%3E%3CFeatureTypeName%3EFeature%3C/FeatureTypeName%3E%3CRu
le%3E%3CName%3EHistorytracking%20Zoomed%20In%3C/Name%3E%3CTitle%3EHistorytra
cking%20zoomedin%3C/Title%3E%3CMinScaleDenominator%3E0.1%3C/MinScaleDenomina
tor%3E%3CMaxScaleDenominator%3E35000%3C/MaxScaleDenominator%3E%3CFilter%20xm
lns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropert
yName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3ESGD7575D%3C/Literal%3E
%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CMa
rk%3E%3CWellKnownName%3Etriangle%3C/WellKnownName%3E%3CFill%3E%3CCssParamete
r%20name=%22fill%22%3E%23F000000%3C/CssParameter%3E%3C/Fill%3E%3C/Mark%3E%3C
Size%3E20.0%3C/Size%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3CRule
%3E%3CName%3EHistorytracking%20Zoomed%20Out%3C/Name%3E%3CTitle%3EHistorytrac
king%20zoomed%20out%3C/Title%3E%3CMinScaleDenominator%3E35001%3C/MinScaleDen
ominator%3E%3CMaxScaleDenominator%3E700000%3C/MaxScaleDenominator%3E%3CFilte
r%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CP
ropertyName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3ESGD7575D%3C/Lite
ral%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3
E%3CMark%3E%3CWellKnownName%3Etriangle%3C/WellKnownName%3E%3CFill%3E%3CCssPa
rameter%20name=%22fill%22%3E%23F000000%3C/CssParameter%3E%3C/Fill%3E%3C/Mark
%3E%3CSize%3E20.0%3C/Size%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%
3CRule%3E%3CFilter%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropert
yIsEqualTo%3E%3CPropertyName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3
ESGD7575D%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CTextSymbolize
r%3E%3CLabel%3E%3Cogc:PropertyName%3Evehicle_number%3C/ogc:PropertyName%3E%3
C/Label%3E%3CFont%3E%3CCssParameter%20name=%22font-family%22%3ETimes%20New%2
0Roman%3C/CssParameter%3E%3CCssParameter%20name=%22font-style%22%3ENormal%3C
/CssParameter%3E%3CCssParameter%20name=%22font-size%22%3E12%3C/CssParameter%
3E%3CCssParameter%20name=%22font-weight%22%3Enormal%3C/CssParameter%3E%3C/Fo
nt%3E%3CLabelPlacement%3E%3CPointPlacement%3E%3CAnchorPoint%3E%3CAnchorPoint
X%3E0.5%3C/AnchorPointX%3E%3CAnchorPointY%3E-0.5%3C/AnchorPointY%3E%3C/Ancho
rPoint%3E%3C/PointPlacement%3E%3C/LabelPlacement%3E%3C/TextSymbolizer%3E%3C/
Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLaye
rDescriptor%3E

I have got the following error:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://localhost:8080/geoserver/data/capabilities//wms/1.1.1/WMS_exception_
1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException
code="">org.xml.sax.SAXParseException: XML document structures must start
and end within the same entity.</ServiceException>
</ServiceExceptionReport>

I understand that the error is saying that I need to have a matching pair of
same entity tags, but I simply can't figure out where I went wrong. Would
appreciate it if someone could help me by taking a look at the messy chunk
and letting me know where went wrong. A dozen thanks!

Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

Um, have you thought about using WMS Post? I think we added that, and it'd make your request a lot more clear. This chunk is way too hard to figure out, with the < characters encoded... I don't think anyone's going to be able to make it out.

sorry,

Chris

Lee Wai See wrote:

Hi,

I tried this wms call in my browser:

http://localhost:8080/geoserver/wms?bbox=103.59736493356376,1.17866724157080
97,104.09707604959173,1.4807073969316509&Format=image/png&request=GetMap&wid
th=800&height=400&srs=EPSG:4326&SLD_BODY=%3CStyledLayerDescriptor%20version=
%221.0.0%22%3E%3CUserLayer%3E%3CName%3Eprrm:history_track%3C/Name%3E%3CUserS
tyle%3E%3CTitle%3EDefault%20Styler%3C/Title%3E%3CAbstract%3E%3C/Abstract%3E%
3CFeatureTypeStyle%3E%3CFeatureTypeName%3EFeature%3C/FeatureTypeName%3E%3CRu
le%3E%3CName%3EHistorytracking%20Zoomed%20In%3C/Name%3E%3CTitle%3EHistorytra
cking%20zoomedin%3C/Title%3E%3CMinScaleDenominator%3E0.1%3C/MinScaleDenomina
tor%3E%3CMaxScaleDenominator%3E35000%3C/MaxScaleDenominator%3E%3CFilter%20xm
lns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropert
yName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3ESGD7575D%3C/Literal%3E
%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CMa
rk%3E%3CWellKnownName%3Etriangle%3C/WellKnownName%3E%3CFill%3E%3CCssParamete
r%20name=%22fill%22%3E%23F000000%3C/CssParameter%3E%3C/Fill%3E%3C/Mark%3E%3C
Size%3E20.0%3C/Size%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3CRule
%3E%3CName%3EHistorytracking%20Zoomed%20Out%3C/Name%3E%3CTitle%3EHistorytrac
king%20zoomed%20out%3C/Title%3E%3CMinScaleDenominator%3E35001%3C/MinScaleDen
ominator%3E%3CMaxScaleDenominator%3E700000%3C/MaxScaleDenominator%3E%3CFilte
r%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CP
ropertyName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3ESGD7575D%3C/Lite
ral%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3
E%3CMark%3E%3CWellKnownName%3Etriangle%3C/WellKnownName%3E%3CFill%3E%3CCssPa
rameter%20name=%22fill%22%3E%23F000000%3C/CssParameter%3E%3C/Fill%3E%3C/Mark
%3E%3CSize%3E20.0%3C/Size%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%
3CRule%3E%3CFilter%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropert
yIsEqualTo%3E%3CPropertyName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3
ESGD7575D%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CTextSymbolize
r%3E%3CLabel%3E%3Cogc:PropertyName%3Evehicle_number%3C/ogc:PropertyName%3E%3
C/Label%3E%3CFont%3E%3CCssParameter%20name=%22font-family%22%3ETimes%20New%2
0Roman%3C/CssParameter%3E%3CCssParameter%20name=%22font-style%22%3ENormal%3C
/CssParameter%3E%3CCssParameter%20name=%22font-size%22%3E12%3C/CssParameter%
3E%3CCssParameter%20name=%22font-weight%22%3Enormal%3C/CssParameter%3E%3C/Fo
nt%3E%3CLabelPlacement%3E%3CPointPlacement%3E%3CAnchorPoint%3E%3CAnchorPoint
X%3E0.5%3C/AnchorPointX%3E%3CAnchorPointY%3E-0.5%3C/AnchorPointY%3E%3C/Ancho
rPoint%3E%3C/PointPlacement%3E%3C/LabelPlacement%3E%3C/TextSymbolizer%3E%3C/
Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLaye
rDescriptor%3E

I have got the following error:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://localhost:8080/geoserver/data/capabilities//wms/1.1.1/WMS_exception_
1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException
code="">org.xml.sax.SAXParseException: XML document structures must start
and end within the same entity.</ServiceException>
</ServiceExceptionReport>

I understand that the error is saying that I need to have a matching pair of
same entity tags, but I simply can't figure out where I went wrong. Would
appreciate it if someone could help me by taking a look at the messy chunk
and letting me know where went wrong. A dozen thanks!

Regards, Lee Wai See ST Electronics (Info-Software Systems) Pte Ltd

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

--
Chris Holmes
The Open Planning Project
thoughts at: http://cholmes.wordpress.com

It may help for you to turn on the fine debugging in GeoServer. GeoServer puts out what request it got in as well as a cleaned up version.

I have used that feature a lot to debug wms calls.

-- Carolyn

At 11:17 AM 3/7/2006, Chris Holmes wrote:

Um, have you thought about using WMS Post? I think we added that, and it'd make your request a lot more clear. This chunk is way too hard to figure out, with the < characters encoded... I don't think anyone's going to be able to make it out.

sorry,

Chris

Lee Wai See wrote:

Hi,

I tried this wms call in my browser:

http://localhost:8080/geoserver/wms?bbox=103.59736493356376,1.17866724157080
97,104.09707604959173,1.4807073969316509&Format=image/png&request=GetMap&wid
th=800&height=400&srs=EPSG:4326&SLD_BODY=%3CStyledLayerDescriptor%20version=
%221.0.0%22%3E%3CUserLayer%3E%3CName%3Eprrm:history_track%3C/Name%3E%3CUserS
tyle%3E%3CTitle%3EDefault%20Styler%3C/Title%3E%3CAbstract%3E%3C/Abstract%3E%
3CFeatureTypeStyle%3E%3CFeatureTypeName%3EFeature%3C/FeatureTypeName%3E%3CRu
le%3E%3CName%3EHistorytracking%20Zoomed%20In%3C/Name%3E%3CTitle%3EHistorytra
cking%20zoomedin%3C/Title%3E%3CMinScaleDenominator%3E0.1%3C/MinScaleDenomina
tor%3E%3CMaxScaleDenominator%3E35000%3C/MaxScaleDenominator%3E%3CFilter%20xm
lns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropert
yName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3ESGD7575D%3C/Literal%3E
%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CMa
rk%3E%3CWellKnownName%3Etriangle%3C/WellKnownName%3E%3CFill%3E%3CCssParamete
r%20name=%22fill%22%3E%23F000000%3C/CssParameter%3E%3C/Fill%3E%3C/Mark%3E%3C
Size%3E20.0%3C/Size%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3CRule
%3E%3CName%3EHistorytracking%20Zoomed%20Out%3C/Name%3E%3CTitle%3EHistorytrac
king%20zoomed%20out%3C/Title%3E%3CMinScaleDenominator%3E35001%3C/MinScaleDen
ominator%3E%3CMaxScaleDenominator%3E700000%3C/MaxScaleDenominator%3E%3CFilte
r%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CP
ropertyName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3ESGD7575D%3C/Lite
ral%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3
E%3CMark%3E%3CWellKnownName%3Etriangle%3C/WellKnownName%3E%3CFill%3E%3CCssPa
rameter%20name=%22fill%22%3E%23F000000%3C/CssParameter%3E%3C/Fill%3E%3C/Mark
%3E%3CSize%3E20.0%3C/Size%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%
3CRule%3E%3CFilter%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropert
yIsEqualTo%3E%3CPropertyName%3Evehicle_number%3C/PropertyName%3E%3CLiteral%3
ESGD7575D%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CTextSymbolize
r%3E%3CLabel%3E%3Cogc:PropertyName%3Evehicle_number%3C/ogc:PropertyName%3E%3
C/Label%3E%3CFont%3E%3CCssParameter%20name=%22font-family%22%3ETimes%20New%2
0Roman%3C/CssParameter%3E%3CCssParameter%20name=%22font-style%22%3ENormal%3C
/CssParameter%3E%3CCssParameter%20name=%22font-size%22%3E12%3C/CssParameter%
3E%3CCssParameter%20name=%22font-weight%22%3Enormal%3C/CssParameter%3E%3C/Fo
nt%3E%3CLabelPlacement%3E%3CPointPlacement%3E%3CAnchorPoint%3E%3CAnchorPoint
X%3E0.5%3C/AnchorPointX%3E%3CAnchorPointY%3E-0.5%3C/AnchorPointY%3E%3C/Ancho
rPoint%3E%3C/PointPlacement%3E%3C/LabelPlacement%3E%3C/TextSymbolizer%3E%3C/
Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLaye
rDescriptor%3E

I have got the following error:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://localhost:8080/geoserver/data/capabilities//wms/1.1.1/WMS_exception_
> 1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException
code="">org.xml.sax.SAXParseException: XML document structures must start
and end within the same entity.</ServiceException>
</ServiceExceptionReport>

I understand that the error is saying that I need to have a matching pair of
same entity tags, but I simply can't figure out where I went wrong. Would
appreciate it if someone could help me by taking a look at the messy chunk
and letting me know where went wrong. A dozen thanks!
Regards, Lee Wai See ST Electronics (Info-Software Systems) Pte Ltd

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

--
Chris Holmes
The Open Planning Project
thoughts at: http://cholmes.wordpress.com