CSW GetCapabilities : NullPointerException

Added by leplatre mathieu over 7 years ago

As far as I can tell, my instance of PROXY works quite well with WMS.
However, my first attempt to obtain my GeoNetwork GetCapabilities fails during post treatment...

<LogRequest user="userpublic" requestTime="07/03/2011 15:01:24"> 
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="Request"><![CDATA[SERVICE=CSW&REQUEST=GetCapabilities]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RequestOperation"><![CDATA[GetCapabilities]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RemoteRequestUrl"><![CDATA[http://geonetwork.makina-corpus.loc/geonetwork/srv/en/csw]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RemoteRequest"><![CDATA[REQUEST=GetCapabilities&SERVICE=CSW&]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RemoteRequestLength"><![CDATA[36]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RemoteRequestDateTime"><![CDATA[07/03/2011 15:01:24]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="INFO"><![CDATA[Postreatment file null/userpublic/000/GetCapabilities.xsldoes not exist]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="INFO"><![CDATA[Postreatment file null/000/GetCapabilities.xsldoes not exist]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="ERROR"><![CDATA[java.lang.NullPointerException]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="ERROR"><![CDATA[Error in EasySDI Proxy. Consult the proxy log for more details.]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="ClientResponseDateTime"><![CDATA[07/03/2011 15:01:24]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="ClientResponseLength"><![CDATA[474]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RemoteAddr"><![CDATA[172.16.23.1]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RemoteUser"><![CDATA[userpublic]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="QueryString"><![CDATA[SERVICE=CSW&REQUEST=GetCapabilities]]></logEntry>
<logEntry time="07/03/2011 15:01:24" severity="SYSTEM" name="RequestURL"><![CDATA[http://172.16.23.148:8080/proxy/ogc/geonetwork]]></logEntry>
</LogRequest>

Do you have any idea ?
Thank you very much.


Replies (2)

RE: CSW GetCapabilities : NullPointerException - Added by leplatre mathieu over 7 years ago

Well, it looks like I fixed something (changed Geonetwork service of connexion URL).

Because I now have this a PolicyNotFoundException

which reminds me this : http://forge.easysdi.org/issues/show/320

17:54:55,695 [http-8080-1] WARN  Filter - Throwable thrown during doFilter on request with URI: /proxy/ogc/geonetwork and Query: SERVICE=CSW&REQUEST=GetCapabilitiesNo policy found.
org.easysdi.proxy.exception.PolicyNotFoundException: No policy found.
    at org.easysdi.proxy.ehcache.GetMapCacheFilter.calculateKey(GetMapCacheFilter.java:161)
    at org.easysdi.proxy.ehcache.GetMapCacheFilter.buildPageInfo(GetMapCacheFilter.java:221)
    at net.sf.ehcache.constructs.web.filter.CachingFilter.doFilter(CachingFilter.java:185)
    at org.easysdi.proxy.ehcache.GetMapCacheFilter.doFilter(GetMapCacheFilter.java:126)
    at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.easysdi.proxy.core.EasySdiConfigFilter.doFilter(EasySdiConfigFilter.java:67)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.easysdi.security.JoomlaCookieAuthenticationFilter.doFilter(JoomlaCookieAuthenticationFilter.java:209)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:662)

RE: CSW GetCapabilities : NullPointerException - Added by leplatre mathieu over 7 years ago

I edited my policy by hand, and the problem is gone. Do not know what happened, but this looks related to http://forge.easysdi.org/boards/14/topics/show/149

Anyway, I hope my stacktraces will be indexed by Google and will make other users happy !

(1-2/2)