Problems with SQL-Views in PostGIS

Description

I encountered some problems when using SQL-views with geoserver 2.5 RC2. First I created a simple SQL-View: "select * from ...".
When trying to access this view-based layer with a filter like "geom intersects POLYGON ((..." the following error is raised:
"org.postgresql.util.PSQLException: Operation on mixed SRID geometries".

This always happens when trying to select features with the "old" GetFeatureInfo-Method (disabling the VectorRenderingLayerIdentifier and using the VectorBasicLayerIdentifier)!
I have written some other OWS-operatiions which filter a SQL-view and get the same error message. In geoserver-versions < 2.5 this code worked against the same PostGIS-Database. Could this be a geotools-problem?

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure