Hmm. Another oddity - If I execute the getcaps in the browser, I get an xml
file. If I execute it via an HttpURLConnection in code:
Viz
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
This I get the error log in geoserver below.
From: Phil Scadden <[email protected]>
Sent: Wednesday, 1 May 2019 12:33
To: GeoServer Mailing List List <[email protected]>
Subject: [Geoserver-users] Odd error doing a getCapabilities call; Geoserver
2.15
http://myserver/myinstance/wms?service=WMS&request=GetCapabilities&version=1.1.1
is returning
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://webmaps-dev.gns.cri.nz:80/petroleum/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1" > <ServiceException>
javax.xml.transform.TransformerException: Translator error
Translator error
java.lang.NullPointerException
</ServiceException></ServiceExceptionReport>
Digging into log, Starts at:
2019-05-01 12:20:31,659 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException:
javax.xml.transform.TransformerException: Translator error
at
org.geoserver.wms.capabilities.GetCapabilitiesResponse.write(GetCapabilitiesResponse.java:106)
at
org.geoserver.config.CapabilitiesCacheHeadersCallback$RevalidateTagResponse.write(CapabilitiesCacheHeadersCallback.java:144)
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:1029)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
and further down I see the null exception at:
org.geoserver.wms.capabilities.GetCapabilitiesTransformer$CapabilitiesTranslator.getOrderedLayers(GetCapabilitiesTransformer.java:758)
at
org.geoserver.wms.capabilities.GetCapabilitiesTransformer$CapabilitiesTranslator.handleLayers(GetCapabilitiesTransformer.java:675)
at
org.geoserver.wms.capabilities.GetCapabilitiesTransformer$CapabilitiesTranslator.handleCapability(GetCapabilitiesTransformer.java:472)
at
org.geoserver.wms.capabilities.GetCapabilitiesTransformer$CapabilitiesTranslator.encode(GetCapabilitiesTransformer.java:310)
at
org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:995)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
at
org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:283)
at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:118)
... 96 more
Caused by: java.lang.NullPointerException
at
org.hibernate.impl.SessionFactoryImpl.getClassMetadata(SessionFactoryImpl.java:807)
at
com.googlecode.genericdao.search.hibernate.HibernateMetadataUtil.get(HibernateMetadataUtil.java:92)
Further up log, there are quite a few:
2019-05-01 12:15:25,679 WARN [wms.capabilities] - Error getting LegendURL
dimensions from sample
Due to a missing font, but this hasn't been an issue in the past.
Can anyone point in direction of where to look for an issue?
Notice: This email and any attachments are confidential and may not be used,
published or redistributed without the prior written consent of the Institute
of Geological and Nuclear Sciences Limited (GNS Science). If received in error
please destroy and immediately notify GNS Science. Do not copy or disclose the
contents.
Notice: This email and any attachments are confidential and may not be used,
published or redistributed without the prior written consent of the Institute
of Geological and Nuclear Sciences Limited (GNS Science). If received in error
please destroy and immediately notify GNS Science. Do not copy or disclose the
contents.
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users