I use 1.7-SNAPSHOT gs manager.
If i create layer from store(with filter /sql view/), and i publish the new layer, the publishing works(its all from java with the geoserver manager api on gs rest). But the layer preview not working. If i check the "Guess geometry type and srid" and refresh, and i check the correct "Identifier", its will working.
The bug: in java with api, i create a new VTGeometryEncoder with 3 parameter(VTGeometryEncoder(String name, String geometryType, String srid)), and put in the List, the program will iterate on list, but if the program ran, in the "featuretype.xml" have only 1 <geometry></geometry> parameter(always the last from the List). I need 1 keycolumn, and 3 geometry parameter for the good working in layer preview. In 2.8.0 version its working.