<html>
  <head>
    <meta content="text/html; charset=iso-8859-15"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Solved.<br>
    <br>
    It was PostGIS issue<br>
    <br>
    <div class="moz-cite-prefix">Il 23/11/2015 12:11, Francesco
      Marigliano ha scritto:<br>
    </div>
    <blockquote cite="mid:5652F444.7060103@ieee.org" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=iso-8859-15">
      Hi list,<br>
      <br>
      I've an issue when I try to replace a layer: after the operation I
      see the map to world extent and the layer infos disappear. <br>
      <br>
      Here the stacktrace<br>
      <small><small><font face="Courier New, Courier, monospace">at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)<br>
                at
            org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)<br>
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)<br>
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)<br>
                at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)<br>
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)<br>
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)<br>
                at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)<br>
                at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)<br>
                at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)<br>
                at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)<br>
                at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)<br>
                at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)<br>
                at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)<br>
                at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)<br>
                at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)<br>
                at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)<br>
                at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)<br>
                at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
                at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
                at java.lang.Thread.run(Thread.java:745)<br>
            Caused by: java.lang.RuntimeException: java.io.IOException<br>
                at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:176)<br>
                at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:58)<br>
                at
org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2388)<br>
                at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2113)<br>
                at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:832)<br>
                at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:539)<br>
                ... 116 more<br>
            Caused by: java.io.IOException<br>
                at
org.geotools.jdbc.JDBCFeatureSource.getReaderInternal(JDBCFeatureSource.java:649)<br>
                at
org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:634)<br>
                at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:173)<br>
                ... 121 more<br>
            Caused by: java.sql.SQLException:
            org.postgresql.util.PSQLException: ERROR: syntax error at or
            near "FROM"<br>
              Position: 8<br>
                at
org.geotools.jdbc.JDBCFeatureReader.<init>(JDBCFeatureReader.java:155)<br>
                at
org.geotools.jdbc.JDBCFeatureSource.getReaderInternal(JDBCFeatureSource.java:619)<br>
                ... 123 more<br>
            Caused by: org.postgresql.util.PSQLException: ERROR: syntax
            error at or near "FROM"<br>
              Position: 8<br>
                at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)<br>
                at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)<br>
                at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)<br>
                at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)<br>
                at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)<br>
                at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:252)<br>
                at
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)<br>
                at
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)<br>
                at
org.geotools.jdbc.JDBCFeatureReader.<init>(JDBCFeatureReader.java:146)<br>
                ... 124 more</font></small></small><br>
    </blockquote>
    <br>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="https://www.avast.com/antivirus">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                Questa e-mail è stata controllata per individuare virus con Avast antivirus.
                                <br><a href="https://www.avast.com/antivirus">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>