got some pain in this process ..

in  FilterToSQL

   public Object visit(Literal expression, Object context) throws 
RuntimeException {
        LOGGER.finer("exporting LiteralExpression");

        //type to convert the literal to
        Class target = (Class)context;
       
                //JD except for numerics, let the database do the 
converstion
                Object literal = null;

line 747:                 if ( Number.class.isAssignableFrom( target ) ) {

blows up, because...

on line 177, same file, but a few calls back in the trace:
               filter.accept(this, null);

is called. Which always seems to blow up with the null pointer

What am i missing,

PS - is there a lucidd explanation anywhere of the extraData parameters....

Rob A




Jody Garnett (JIRA) wrote:
>     [ 
> http://jira.codehaus.org/browse/GEOT-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92118
>  ] 
>
> Jody Garnett commented on GEOT-1225:
> ------------------------------------
>
> I assume you mean the GeoAPI FilterVisitor interfaces? GeoAPI filters are 
> already passed into you as part of your Query.
>
> Here is quick idea on how you can force your test - with introduction of 
> GeoTools.getDefaultHints() you should be able to set the implementation of 
> FilterFactory you use for testin. Now all we need is a second implementation 
> of FilterFactory that just implements the bare bones GeoAPI interfaces (no 
> GeoTools specific stuff).
>
> There is *one* case that we cannot do - determining the correct number of 
> function parameters (we need to punt out FilterCapabilities for that).
>
>   
>> Implement GeoAPI filters
>> ------------------------
>>
>>                 Key: GEOT-1225
>>                 URL: http://jira.codehaus.org/browse/GEOT-1225
>>             Project: GeoTools
>>          Issue Type: Sub-task
>>            Reporter: Rob Atkinson
>>
>>     
>
>
>   



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to