[Geoserver-users] Geoserver: no style defined?

Hi,

I have a feature type ‘gbd:Ind_Stadsdelen’ with ‘’ in it.
I have style named Stadsdelen. Still i got this strange error.
The strange this is, that i didn’t change any settings, style, feature type, etc. This error just suddenly pops up and i don’t know how to fix it.

I use Geoserver 1.5.4. Does someone know how it can be fixed? Thanks in advance.

2008-09-24 15:27:26,203 INFO [STDOUT] 152031 [SEVERE] org.vfny.geoserver.servlets.AbstractService - Service exception occurred
org.vfny.geoserver.wms.WmsException: No default style has been defined for gbd:Ind_Stadsdelen
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseStylesParam(GetMapKvpReader.java:689)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersAndStyles(GetMapKvpReader.java:862)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseMandatoryParameters(GetMapKvpReader.java:483)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.getRequest(GetMapKvpReader.java:215)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:299)
at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:192)
at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:52)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)

I found the problem. It was a problem in my viewer (I use Flamingo-mc). I
changed some code and I think I didn't export it correctly. After a correct
export, the problem was gone. Still strange why Geoserver gives me this
error.

MystyxMac wrote:

Hi,

I have a feature type 'gbd:Ind_Stadsdelen' with '<styles default =
"Stadsdelen" />' in it.
I have style named Stadsdelen. Still i got this strange error.
The strange this is, that i didn't change any settings, style, feature
type,
etc. This error just suddenly pops up and i don't know how to fix it.

I use Geoserver 1.5.4. Does someone know how it can be fixed? Thanks in
advance.

2008-09-24 15:27:26,203 INFO [STDOUT] 152031 [SEVERE]
org.vfny.geoserver.servlets.AbstractService - Service exception occurred
org.vfny.geoserver.wms.WmsException: No default style has been defined for
gbd:Ind_Stadsdelen
    at
org.vfny.geoserver.wms.requests.GetMapKvpReader.parseStylesParam(GetMapKvpReader.java:689)
    at
org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersAndStyles(GetMapKvpReader.java:862)
    at
org.vfny.geoserver.wms.requests.GetMapKvpReader.parseMandatoryParameters(GetMapKvpReader.java:483)
    at
org.vfny.geoserver.wms.requests.GetMapKvpReader.getRequest(GetMapKvpReader.java:215)
    at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:299)
    at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:192)
    at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:52)
    at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
    at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
    at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
    at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
    at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
    at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    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:230)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Geoserver%3A-no-style-defined--tp19649181p19665156.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi all, I tried to follow the example about inline features that I’ve found at the link

http://geoserver.org/display/GEOSDOC/ComplexLabelingExample

and I tried to adapt it to the topp:states layer.

Since states have a style named population associated with, I’ve tried to edit it as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>



A Test Layer

// ALL STUFF IN population.sld file

//ADDED BY ME


Inline





Dave is Here!

<gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">

gml:coordgml:X-100.11</gml:X>gml:Y40.11</gml:Y></gml:coord>
</gml:Point>














star

#FD6435


12.0




ogc:PropertyNameLabel</ogc:PropertyName>


Times New Roman
Normal
18
bold





8


0






ogc:Literal2</ogc:Literal>


#FFFFFF
0.85




#FD6435


ogc:Literal100000000</ogc:Literal>

no
3




I’m trying to display a star at given coordinates, but I don’t know why it doesn’t work; it simply shows the old states image…


Get news, entertainment and everything you care about at Live.com. Check it out!

Francesco Santoro ha scritto:

Hi all, I tried to follow the example about inline features that I've found at the link
http://geoserver.org/display/GEOSDOC/ComplexLabelingExample
and I tried to adapt it to the topp:states layer.
Since states have a style named population associated with, I've tried to edit it as follows:

That does not work like that. The example in ComplexLabellingExample
shows that you have to make a POST request that mixes normal layers
with user defined ones, you have to do the same, modifying the
population style won't get you anywhere.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

thank you very much for your answer.
Is there a way to gain the same result via http get request?

Date: Thu, 25 Sep 2008 15:18:54 +0200
From: aaime@anonymised.com
To: francesco90060@anonymised.com
CC: geoserver-users@anonymised.com.net
Subject: Re: [Geoserver-users] Geoserver userStyle: problems while adding a simple star

Francesco Santoro ha scritto:

Hi all, I tried to follow the example about inline features that I’ve
found at the link

http://geoserver.org/display/GEOSDOC/ComplexLabelingExample

and I tried to adapt it to the topp:states layer.

Since states have a style named population associated with, I’ve tried
to edit it as follows:

That does not work like that. The example in ComplexLabellingExample
shows that you have to make a POST request that mixes normal layers
with user defined ones, you have to do the same, modifying the
population style won’t get you anywhere.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


Explore the seven wonders of the world Learn more!

Francesco Santoro ha scritto:

thank you very much for your answer.
Is there a way to gain the same result via http get request?

Mumble, I'm not sure, but I think you can use a GET request
without specifying the layers and styles parameters, and adding
sld=http://url/to/your/custom.sld
that points to your custom SLD... which could be generated on the
fly by another server side technology.

Otherwise you can try doing the same on the client side. If all
you need is a few points you can add them as a custom vector
layer (look into the OL documentation and ask for details on the OL ml).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I’ve just tried to do what you suggested me by using this link

http://localhost:8080/geoserver/wms?bbox=-127.61950064999999,23.7351786,-64.08177035,50.592523400000005&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&sld=file:///c:/Geoserver_files/star.sld&width=800&height=317&srs=EPSG:4326

and it works… that is I see a yellow star and a label… but I’ve lost USA :stuck_out_tongue:

Should I find a way to put the layer topp:states into the star.sld file?
And in future I would like to customize icons… now I have a star, then I would like to have whatever image. Is it the right way?

Thank you anyway!

Date: Fri, 26 Sep 2008 10:51:32 +0200
From: aaime@anonymised.com
To: francesco90060@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver userStyle: problems while adding a simple star

Francesco Santoro ha scritto:

thank you very much for your answer.
Is there a way to gain the same result via http get request?

Mumble, I’m not sure, but I think you can use a GET request
without specifying the layers and styles parameters, and adding
sld=http://url/to/your/custom.sld
that points to your custom SLD… which could be generated on the
fly by another server side technology.

Otherwise you can try doing the same on the client side. If all
you need is a few points you can add them as a custom vector
layer (look into the OL documentation and ask for details on the OL ml).

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


Get news, entertainment and everything you care about at Live.com. Check it out!

Francesco Santoro ha scritto:

I've just tried to do what you suggested me by using this link
http://localhost:8080/geoserver/wms?bbox=-127.61950064999999,23.7351786,-64.08177035,50.592523400000005&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&sld=file:///c:/Geoserver_files/star.sld&width=800&height=317&srs=EPSG:4326
and it works... that is I see a yellow star and a label.. but I've lost USA :stuck_out_tongue:

Hum, what happens if you remove the styles altogether?

Should I find a way to put the layer topp:states into the star.sld file?
And in future I would like to customize icons.. now I have a star, then I would like to have whatever image. Is it the right way?

The thing is, I never tried to do this kind of stuff myself, and I would
need to read the SLD specification to see if this is actually anything
supported using the sld=... parameter. You may just be hitting a bug
in GeoServer, but this week I simply have no time to look into it
(FOSS4G is close).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

done! simply I added the named layer in the sld file and it works!

now I’m turning on customized icons…

thank you!


From: francesco90060@anonymised.com
To: aaime@anonymised.com
Date: Fri, 26 Sep 2008 11:27:23 +0200
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver userStyle: problems while adding a simple star

I’ve just tried to do what you suggested me by using this link

http://localhost:8080/geoserver/wms?bbox=-127.61950064999999,23.7351786,-64.08177035,50.592523400000005&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&sld=file:///c:/Geoserver_files/star.sld&width=800&height=317&srs=EPSG:4326

and it works… that is I see a yellow star and a label… but I’ve lost USA :stuck_out_tongue:

Should I find a way to put the layer topp:states into the star.sld file?
And in future I would like to customize icons… now I have a star, then I would like to have whatever image. Is it the right way?

Thank you anyway!

Date: Fri, 26 Sep 2008 10:51:32 +0200
From: aaime@anonymised.com.1671…
To: francesco90060@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver userStyle: problems while adding a simple star

Francesco Santoro ha scritto:

thank you very much for your answer.
Is there a way to gain the same result via http get request?

Mumble, I’m not sure, but I think you can use a GET request
without specifying the layers and styles parameters, and adding
sld=http://url/to/your/custom.sld
that points to your custom SLD… which could be generated on the
fly by another server side technology.

Otherwise you can try doing the same on the client side. If all
you need is a few points you can add them as a custom vector
layer (look into the OL documentation and ask for details on the OL ml).

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


Get news, entertainment and everything you care about at Live.com. Check it out!


Discover the new Windows Vista Learn more!