Christy,

this is rather odd. Even if the argument is not a string (and by #1 it 
means the second argument), the first thing strConcat tries to do is to 
convert it to a string. The only thing that I can think of that might 
cause this to fail is that the type is some big integer that it cannot 
handle, or null. Ordinary integers should be converted.

Can we please see the DDL for the source table?

Is objectid ever null?

select count(1) from yourtablename where objectid is null;

Kind regards,
Ben.


On 15/03/13 04:09, christy@azgs wrote:
> We have achieved schema resolution!  That is, as long as we use the getId()
> idExpression. However, because we'd like to use our integer field
> 'objectid', we need to figure out how to concatenate an integer with that
> field OR make that read as a string. We tried the following, but we get that
> "java.lang.IllegalArgumentException: Filter Function problem for function
> strConcat argument #1 - expected type String" error:
>
>                                                              <idExpression>
>
> <OCQL>strConcat('BT', objectid)</OCQL>
>                                                              </idExpression>
>
> And we also tried:
>                               <idExpression>
>                                                               
> <OCQL>strConcat('BT', strTrim(objectid))</OCQL>
>                                                       </idExpression>
>
> Resulting in the same error.  Thanks to anyone with ideas.
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Re-App-Schema-Resolution-tp5040030p5040472.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to