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