[Geoserver-users] Fw:Server can't recognize my own shapefiles created by ArcGIS

Thank you for your help.
I opened the wms file the server created. The content are as follows.I rechecked my .shp file. There is no null value there.

---------------wms file content-------------------------------

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

java.lang.reflect.UndeclaredThrowableException
null
null
null
Details:
org.geoserver.platform.ServiceException: java.lang.reflect.UndeclaredThrowableException
at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1245)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:223)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:163)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy8.getStyle(Unknown Source)
at org.vfny.geoserver.global.FeatureTypeInfo.getDefaultStyle(FeatureTypeInfo.java:623)
at org.vfny.geoserver.global.MapLayerInfo.getDefaultStyle(MapLayerInfo.java:364)
at org.geoserver.wms.kvp.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:291)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1068)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:428)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:208)
… 49 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:91)
… 56 more
Caused by: java.lang.NullPointerException
at org.geotools.filter.ExpressionDOMParser.expression(ExpressionDOMParser.java:335)
at org.geotools.filter.ExpressionDOMParser.parseExpression(ExpressionDOMParser.java:102)
at org.geotools.styling.SLDParser.parseCssParameter(SLDParser.java:2054)
at org.geotools.styling.SLDParser.parseTextSymbolizer(SLDParser.java:1039)
at org.geotools.styling.SLDParser.parseRule(SLDParser.java:895)
at org.geotools.styling.SLDParser.parseFeatureTypeStyle(SLDParser.java:795)
at org.geotools.styling.SLDParser.parseStyle(SLDParser.java:741)
at org.geotools.styling.SLDParser.readDOM(SLDParser.java:313)
at org.geotools.styling.SLDParser.readXML(SLDParser.java:289)
at org.geoserver.catalog.ResourcePool.getStyle(ResourcePool.java:602)
at org.geoserver.catalog.impl.StyleInfoImpl.getStyle(StyleInfoImpl.java:52)
… 60 more

在2009-03-05,"Andrea Aime" <[aaime@anonymised.com](mailto:aaime@anonymised.com)> 写道:
>xuzhen-001 wrote:
>>  
>> 
>> Hi all,
>>     I met a problem when adding my own shapefile into geoserver to show 
>> it.I used the file of the example to test the procedure and got the 
>> right answer.The map of the street show up in the browser.Then i create 
>> a .shp file
>> in ArcGIS 9 to see whether the server can recognize my file.My File 
>> content is simple,just several points with fields called name ,id.When i 
>> press the link created by geoserver in demo,the browser give me a window 
>> to download wms file.I convert the file to PostGIS,got the same problem.
>>     Can anyone help me with this?
>>     Thank you for your any help in advance.
>
>Go into config/server and enable "verbose exceptions", apply/save, then
>grab the contents of the wms file that GeoServer is providing you (which
>is really an OGC service exception document) and tell us what the
>contents are
>
>Cheers
>Andrea


网易邮箱,中国第一大电子邮件服务商


网易邮箱,中国第一大电子邮件服务商

xuzhen-001 wrote:

I opened the wms file the server created. The content are as follows.I rechecked my .shp file. There is no null value there.

By the looks of it, it seems you're using an invalid SLD style.
Can you check your shapefile with some of the default styles
(point, line or polygon according to the geometric nature of
your data)?

Seeing the SLD in question would help, too
Cheers
Andrea

I checked the SLD styles and find some problems:
The file i used is the demo .shp file which can be recognized by the server(eg:data\taz_shapes\tasmania_roads.shp) .
I created a new datastore called "demo".
---------------------------------
Feature Data Set :Shapefile
Feature Data Set ID:demo
---------------------------------
Feature Data Set ID: demo
Enabled: Yes
NameSpace: topp
Description:
* url: file:data/taz_shapes/tasmania_roads.shp
create spatial index: false
charset:
memory mapped buffer: false
------------------------------------------
Then i go to the page of FeatureType Editor

SRS:4326 and hit the box create.

Problem lies here:
If i use the SLD provided by the server called "simple roads" everything goes well.
But if I create a new SLD:
---------------------------------------------------------------------
Label names for the lines:
Name Field: the_geom
Text Color:#000077
Color of the lines:
Color:#000099 Opacity: 1
Line dimentions:
Line width: 1
----------------------------------------------------------------------

By hitting apply and finish I got a new SLD called tasmania_roads_style.
Then I get wrong wms mentioned in the mail before.

I use SLD Editor to edit the style.
Using SLD:tasmania_roads_style ,by hitting Submit ,the server tells that"cann't read style-null"
Using SLD:Simple_roads,everything goes well.

How can i create a right SLD to show my map?

------------------
Jacky.Xu
2009-03-06

-------------------------------------------------------------
发件人:Andrea Aime
发送日期:2009-03-06 04:18:55
收件人:xuzhen-001
抄送:geoserver-users@lists.sourceforge.net
主题:Re: [Geoserver-users] Fw:Server can't recognize my own shapefilescreated by ArcGIS

xuzhen-001 wrote:

Thank you for your help.
I opened the wms file the server created. The content are as follows.I
rechecked my .shp file. There is no null value there.

By the looks of it, it seems you're using an invalid SLD style.
Can you check your shapefile with some of the default styles
(point, line or polygon according to the geometric nature of
your data)?

Seeing the SLD in question would help, too
Cheers
Andrea

Problem sovled. thank you for your help :).Happying.
I create the SLD file myself,not from the webpage,then everything is OK now.
The next question is:
Can the auto generator of SLD file module providered by the server page operate normally? Or is there a
alternative option? Must I create the SLD manually everytime?

------------------
Jacky.Xu
2009-03-06

-------------------------------------------------------------

xuzhen-001 wrote:

Thank you for your help.
I opened the wms file the server created. The content are as follows.I
rechecked my .shp file. There is no null value there.

By the looks of it, it seems you're using an invalid SLD style.
Can you check your shapefile with some of the default styles
(point, line or polygon according to the geometric nature of
your data)?

Seeing the SLD in question would help, too
Cheers
Andrea