I have added a new snippet page under Datastore snippets on the goetools site called ConnectionTester. This code runs fine, but you will notice that I commented out the line:
System.out.println(type.getRestriction();
because this throws an error.

Oliver

On 3/14/06, Jody Garnett <[EMAIL PROTECTED]> wrote:
Hi Oliver / Marc:

Marc you have not updated the project.xml file so new developers will
keep pestering Sean (hi Sean we miss you).  This appears to be a problem
with either the length restriction indicated by oracle, or a problem
with the Length function writing itself out.

Corey is taking over from Dave handling _expression_/filter land, if you
make a jira bug against Filter it should land write in his inbox.

Oliver do you have any sample code that can reproduce the problem?

Jody
> Hi
>
> I'm trying to print out schema information for a feature type. When I
> get features out of oracle spacial, and I use the getRestrictions()
> method for a feature type object, I get the following error:
>
> java.lang.NullPointerException
>     at org.geotools.filter.LengthFunction.toString(LengthFunction.java:64)
>     at java.lang.String.valueOf(Unknown Source)
>     at java.lang.StringBuffer.append (Unknown Source)
>     at
> org.geotools.filter.CompareFilterImpl.toString(CompareFilterImpl.java:316)
>     at java.lang.String.valueOf(Unknown Source)
>     at java.io.PrintStream.print(Unknown Source)
>     at java.io.PrintStream.println(Unknown Source)
>     at
> za.co.blueshpere.ConnectionTester.describeSchema(ConnectionTester.java:124)
>
> Any help would be appreciated.
>
> Oliver Loe
>
>





Reply via email to