Hi,
I finally got around to looking int this some more, the way it looks now;

The request for version 1.3.0 capabilities [1] gives me a capabilities
document that for some reason throws a SAX parser error which traces
[2] back to my code where the WMS the WebMapServer() is constructed.
(BTW. I tried loading this url in uDIG 1.2.3 but the
problem/result/error is the same.)

It seems that the SAX parser barfs on the inspire specific Extended
Capabilities tag:

    <inspire_common:MetadataUrl xsi:type="inspire_common:resourceLocatorType">

I'm not even sure what this tag actually means...  xsi is the wms
namespace and i've never seen a inspire_common:resourceLocatorType
type in there.. actually the longer I thnik about it the more my head
hurts..
Both requests for version 1.1.0 and 1.0.0 result in a server error
response containing a Service Exception (I suspect for this same
reason, it's geoserver in the back).

I tried loading a different service[3] from this server which pretty
much has the same caps, but those work.

Would the SAXparser actually check the linked resource? (ie metadata
document) because the service[1] I want to use is not listed there but
the one that works[3] is..

Maybe, as a workaround, I should drop a handcrafted capabilities
document in my webapp and use that..

[1] 
http://geodata.nationaalgeoregister.nl/brtachtergrondkaart/wms?version=1.3.0&request=GetCapabilities&service=WMS

[2]
jan 06, 2012 2:15:39 PM org.geotools.xml.XMLSAXHandler processException
SEVERE: Type not found for MetadataUrl
org.geotools.xml.handlers.ElementHandlerFactory.createElementHandler(ElementHandlerFactory.java:214)
    
org.geotools.xml.handlers.ComplexElementHandler.getHandler(ComplexElementHandler.java:543)
    org.geotools.xml.XMLSAXHandler.startElement(XMLSAXHandler.java:408)
    org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
    javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
    org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:134)
    
org.geotools.data.wms.response.WMSGetCapabilitiesResponse.<init>(WMSGetCapabilitiesResponse.java:56)
    
org.geotools.data.wms.WMS1_0_0$GetCapsRequest.createResponse(WMS1_0_0.java:234)
    
org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:432)
    org.geotools.data.wms.WebMapServer.issueRequest(WebMapServer.java:419)
    
org.geotools.data.ows.AbstractOpenWebService.negotiateVersion(AbstractOpenWebService.java:265)
    
org.geotools.data.ows.AbstractOpenWebService.<init>(AbstractOpenWebService.java:115)
    
org.geotools.data.ows.AbstractOpenWebService.<init>(AbstractOpenWebService.java:80)
    org.geotools.data.wms.WebMapServer.<init>(WebMapServer.java:370)
    nl.eleni.gcc.vpziek.servlet.WMSClientServlet.init(WMSClientServlet.java:139)


[3] 
http://geodata.nationaalgeoregister.nl/top10nl/wms?version=1.3.0&request=GetCapabilities&service=WMS


2011/12/21 Jody Garnett <[email protected]>:
> You should be able to explicitly set your VERSION=1.1.1 when creating your
> get capability URL.
>
> I use this kind of think in uDig to connect to the same GeoServer using both
> WFS 1.0 and WFS 1.1 in order to test compatibility etc...
>
> --
> Jody Garnett
>
> On Thursday, 15 December 2011 at 10:45 PM, Mark Prins wrote:
>
> I'm trying to connect to a geoserver WMS (beyond my control) that
> isgenerating "Translator error null" ServiceExeceptions for
> capabilitiesrequest of version < 1.3.0 using 8.0-SNAPSHOT. So I was
> wondering ifthere is any way to prevent WebMapServer from trying to
> see if thereare any other versions available when I specify the
> version as part ofthe Url. Right now it start with a version=1.3.0
> capabilities requestfolowed by 1.1.1 and 1.1.0 and wmtver=1.0.0.
> The 1.3.0 capabilitiesdocument seems to be valid, but maybe I'm
> missing something obvious.
>
> thanks, Mark
>
> code:
> https://github.com/mprins/geozet/blob/geozet-4-2d/geozet-webapp/src/main/java/nl/eleni/gcc/vpziek/servlet/WMSClientServlet.java#L133
> and downwards
>
> capabilities:
> https://github.com/mprins/geozet/blob/geozet-4-2d/geozet-webapp/src/main/webapp/brtachtergrondkaart-caps.xml
>
> trace:
> VPZIEK: DEBUG 2011-12-15 13:37:12,806
> (nl.eleni.gcc.vpziek.servlet.WMSClientServlet#init:135) - WMS
> capabilities url van achtergrond kaart:
> http://geodata.nationaalgeoregister.nl/brtachtergrondkaart/wms?version=1.3.0&request=GetCapabilities&service=WMS
> VPZIEK: FATAL 2011-12-15 13:38:44,285
> (nl.eleni.gcc.vpziek.servlet.WMSClientServlet#init:146) - Er is een
> service exception (WMS server fout) opgetreden bij het ophalen van de
> achtergrond WMS capabilities
> org.geotools.ows.ServiceException:
> javax.xml.transform.TransformerException: Translator error
> Translator error
> null
> at
> org.geotools.data.wms.xml.WMSComplexTypes$_ServiceException.getValue(WMSComplexTypes.java:4953)
> at
> org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:159)
> at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:264)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown
> Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
> Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.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.DTDConfiguration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:134)
> at
> org.geotools.data.wms.response.WMSGetCapabilitiesResponse.<init>(WMSGetCapabilitiesResponse.java:56)
> at
> org.geotools.data.wms.WMS1_0_0$GetCapsRequest.createResponse(WMS1_0_0.java:234)
> at
> org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:432)
> at org.geotools.data.wms.WebMapServer.issueRequest(WebMapServer.java:419)
> at
> org.geotools.data.ows.AbstractOpenWebService.negotiateVersion(AbstractOpenWebService.java:265)
> at
> org.geotools.data.ows.AbstractOpenWebService.<init>(AbstractOpenWebService.java:115)
> at
> org.geotools.data.ows.AbstractOpenWebService.<init>(AbstractOpenWebService.java:88)
> at org.geotools.data.wms.WebMapServer.<init>(WebMapServer.java:395)
> at
> nl.eleni.gcc.vpziek.servlet.WMSClientServlet.init(WMSClientServlet.java:139)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
> --
> Disclaimer;
> This message is just a reflection of what I thought at the time of
> sending. The message may contain information that is not intended for
> you or that you don't understand.
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Server Consolidation
> Server virtualization is being driven by many needs.
> But none more important than the need to reduce IT complexity
> while improving strategic productivity. Learn More!
> http://www.accelacomm.com/jaw/sdnl/114/51507609/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>



-- 
Disclaimer;
This message is just a reflection of what I thought at the time of
sending. The message may contain information that is not intended for
you or that you don't understand.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to