[Gvsig_english] Problem with Serbian Version

Francisco José Peñarrubia fjp at scolab.es
Fri Oct 30 11:40:43 CET 2009


Hi.

I don't know if it may be a problem related to those chars. The lines 
that are throwing the exception are:

        if (! this.filterExpressionFromWhereIsEmpty(expression)) {
            long[] sel = doSet(expression);

            if (sel == null) {
                throw new RuntimeException("Not a 'where' clause?");
            }

So, I guess the method doSet is returning a null. Inside doSet you can 
see this:

            DataSource ds = 
LayerFactory.getDataSourceFactory().executeSQL(expression,
                    DataSourceFactory.MANUAL_OPENING);

            return ds.getWhereFilter();

And it depends on DataSource type. So, we will need more information:

- Are you using shapes or Postgis, or....?
- Can we test the datasource (if shapes, send us a little example, if 
PostGIS, can we connect to the database...)?

Best regards.

Fran.


Dubravko Zupan escribió:
> Dear all
>
>
>     I have problem with  " š đ ž č ć " letters in a Serbian version of
>     GvSIG.
>
>     Error in Code
>     java.lang.RuntimeException: Not a 'where' clause?
>     com.iver.cit.gvsig.FiltroExtension.fromSet(FiltroExtension.java:315)
>     com.iver.cit.gvsig.gui.filter.FilterDialog$3$1.run(FilterDialog.java:193)
>
>     com.iver.andami.PluginServices$RunnableDecorator$1.run(PluginServices.java:479)
>
>     java.awt.event.InvocationEvent.dispatch(Unknown Source)
>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
>     java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.run(Unknown Source) urce)
>
>
>
> Any idea what I am doing wrong?
>
> kind regards
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>   



More information about the Gvsig_internacional mailing list