Hi,
the generic style is used only when it's not possible to determine the type
of geometry in the table
(unless you assigned it manually).

If you have a step by step procedure to reproduce the issue it would be
quite a valuable entry
as a bug report here:
https://osgeo-org.atlassian.net/projects/GEOS/summary

Cheers
Andrea


On Tue, Aug 7, 2018 at 7:40 PM Kris Johnson <krist...@d.umn.edu> wrote:

> Hello Ian & Co.,
>
> You might be onto something. When I assign a default style to a layer that
> was previously broken, it now works.
>
> This is a fine solution for me, but I swear that times that I've used
> Geoserver in the past, the "generic" style that Geoserver ships with is
> used when a layer doesn't have a default assigned. Could this be due to my
> layers existing in a workspace?
>
> Thanks for your help with this.
>
>
> On Tue, Aug 7, 2018 at 12:24 PM, Ian Turton <ijtur...@gmail.com> wrote:
>
>> I'm pretty sure that you need to specify a default style for each layer.
>>
>> Ian
>>
>> On Tue, 7 Aug 2018, 18:07 Kris Johnson, <krist...@d.umn.edu> wrote:
>>
>>> Another bit of info to add to this is that the layers that work have a
>>> default style assigned to them. And the layers that are not working do not
>>> have a default style.
>>> Are layers required to have a default style? I thought they would be
>>> given a generic style in the instances were there was no default (or
>>> otherwise) style specified.
>>>
>>> The documentation here (
>>> http://docs.geoserver.org/stable/en/user/services/wms/reference.html)
>>> states:
>>> Styles in which layers are to be rendered. Value is a comma-separated
>>> list of style names, or empty if default styling is required. Style names
>>> may be empty in the list, to use default layer styling.
>>>
>>> On Tue, Aug 7, 2018 at 11:57 AM, Kris Johnson <krist...@d.umn.edu>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Some (but not all) of my layers are returning errors when trying to run
>>>> a WMS GetMap request on them. This happens using both the openlayers Layer
>>>> Preview and running regular HTTP requests from my web application.
>>>>
>>>> Here is the error I see in the logs:
>>>> 2018-08-07 16:55:08,300 DEBUG
>>>> [security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
>>>> /nra/wms, QueryString:
>>>> service=WMS&version=1.1.0&request=GetMap&layers=nra:c2012_congress&styles=&bbox=189777.188873508,4857128.36819381,762236.95884475,5472414.14367913&width=714&height=768&srs=EPSG:26915&format=application/openlayers
>>>> with /**
>>>> 2018-08-07 16:55:08,304 TRACE [ows.OWSHandlerMapping] - No handler
>>>> mapping found for [/nra/wms]
>>>> 2018-08-07 16:55:08,304 DEBUG [ows.OWSHandlerMapping] - Mapping
>>>> [/nra/wms] to HandlerExecutionChain with handler
>>>> [org.geoserver.ows.Dispatcher@4b46afd] and 1 interceptor
>>>> 2018-08-07 16:55:08,304 INFO [geoserver.wms] -
>>>> Request: getServiceInfo
>>>> 2018-08-07 16:55:08,304 DEBUG [geotools.util] - CRSConverterFactory can
>>>> be applied from Strings to CRS  only.
>>>> 2018-08-07 16:55:08,304 DEBUG [geotools.util] -
>>>> InterpolationConverterFactory can be applied from Strings to Interpolation
>>>> only.
>>>> 2018-08-07 16:55:08,304 DEBUG [geotools.util] - CRSConverterFactory can
>>>> be applied from Strings to CRS  only.
>>>> 2018-08-07 16:55:08,304 DEBUG [geotools.util] -
>>>> InterpolationConverterFactory can be applied from Strings to Interpolation
>>>> only.
>>>> 2018-08-07 16:55:08,304 DEBUG [geoserver.ows] - Getting layers and
>>>> styles from LAYERS and STYLES
>>>> 2018-08-07 16:55:08,304 ERROR [geoserver.ows] -
>>>> java.lang.NullPointerException
>>>>
>>>> And here is the error I see from the Layer Preview:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE 
>>>> ServiceExceptionReport SYSTEM 
>>>> "http://data.nrri.umn.edu:32787/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd";>
>>>>  <ServiceExceptionReport version="1.1.1" >   <ServiceException>
>>>>       java.lang.NullPointerException
>>>> Details:
>>>> org.geoserver.platform.ServiceException: java.lang.NullPointerException
>>>>    at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1743)
>>>>    at 
>>>> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:280)
>>>>    at 
>>>> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:174)
>>>>    at 
>>>> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
>>>>    at 
>>>> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
>>>>    at 
>>>> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
>>>>    at 
>>>> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
>>>>    at 
>>>> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
>>>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
>>>>    at 
>>>> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
>>>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:423)
>>>>    at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:169)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
>>>>    at 
>>>> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
>>>>    at 
>>>> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
>>>>    at 
>>>> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>>>>    at 
>>>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
>>>>    at 
>>>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>>>>    at 
>>>> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>>>>    at 
>>>> org.springframework.security.web.authentication.www.DigestAuthenticationFilter.doFilter(DigestAuthenticationFilter.java:124)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerDigestAuthenticationFilter.doFilter(GeoServerDigestAuthenticationFilter.java:88)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>>>>    at 
>>>> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>>>>    at 
>>>> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
>>>>    at 
>>>> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
>>>>    at 
>>>> org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:152)
>>>>    at 
>>>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
>>>>    at 
>>>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:88)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.geoserver.filters.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:89)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
>>>>    at 
>>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>    at 
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>    at 
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
>>>>    at 
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>>    at 
>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
>>>>    at 
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
>>>>    at 
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
>>>>    at 
>>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
>>>>    at 
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>>>>    at 
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
>>>>    at 
>>>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
>>>>    at 
>>>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>>>>    at 
>>>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
>>>>    at 
>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
>>>>    at 
>>>> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>>    at 
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>    at 
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>    at 
>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>    at java.lang.Thread.run(Thread.java:748)
>>>> Caused by: java.lang.NullPointerException
>>>>
>>>> </ServiceException></ServiceExceptionReport>
>>>>
>>>> Thank you for any help you can provide.
>>>>
>>>> --
>>>> Kris Johnson
>>>> Natural Resources Research Institute
>>>> 5013 Miller Trunk Highway, Duluth, MN 55811
>>>> <https://maps.google.com/?q=5013+Miller+Trunk+Highway,+Duluth,+MN+55811&entry=gmail&source=g>
>>>> p: 218.788.2767
>>>> www.nrri.umn.edu
>>>>
>>>>
>>>
>>>
>>> --
>>> Kris Johnson
>>> Natural Resources Research Institute
>>> 5013 Miller Trunk Highway, Duluth, MN 55811
>>> <https://maps.google.com/?q=5013+Miller+Trunk+Highway,+Duluth,+MN+55811&entry=gmail&source=g>
>>> p: 218.788.2767
>>> www.nrri.umn.edu
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> 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
>>>
>>>
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>
>
>
> --
> Kris Johnson
> Natural Resources Research Institute
> 5013 Miller Trunk Highway, Duluth, MN 55811
> p: 218.788.2767
> www.nrri.umn.edu
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime == GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime
@geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054
Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339
8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to