Oracle cannot add FeatureTypes

Description

And another showstopper: I can't seem to add Feature Types. After creating an Oracle DataStore I switch to the FeatureTypes tab. The combo box for FeatureTypeName is empty (should this really be a combo box??) and if I click new I get the following stack trace:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1480)
at org.vfny.geoserver.action.data.DataFeatureTypesNewAction.execute(DataFeatureTypesNewAction.java:69)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

I'll add this to Jira when there is a new category for it, but for now do you know why this is happening?

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:10 PM

CodeHaus Comment From: jgarnett - Time: Thu, 22 Jan 2004 19:42:34 -0600
---------------------
<p>My guess for your problem is that you need to select a FeatureType from the DataStore in order to add. If the list of FeatureTypes is empty your DataStore may not be set up correctly? Do you get a value back from a call to OracleDataStore.getTypeNames()? You should be able to tell if your OracleDataStore worked by hitting submit (one cannot switch directly to FeatureTypes). If submit comes back with out errors everything should be okay.</p>

codehaus
April 10, 2015, 4:10 PM

CodeHaus Comment From: jgarnett - Time: Sun, 1 Feb 2004 17:23:43 -0600
---------------------
<p>This was the usual - forgot to install the oracle jars in the lib directory kind of issue.</p>

<p>This is an open bug because the Oracle dataStore should not return true for canProcess when the correct jars are not available.</p>

<p>I will make a gt2 jira task for this, and close this bug. Recent updates to the reporting of errors by GeoServer will at least catch these problems early and not advertise FeatureTypes that cannot actually be used.</p>

codehaus
April 10, 2015, 4:10 PM

CodeHaus Comment From: jgarnett - Time: Sun, 1 Feb 2004 17:34:43 -0600
---------------------
<p><a href="https://jira.codehaus.org/browse/GEOT-89" title="Oracle canProcess(Map) shoudl be true iff oracle jars present" class="issue-link" data-issue-key="GEOT-89"><del>GEOT-89</del></a> describes OracleDataStore.canProcess( Map ) returning true even when the required JDBC Driver is not present.</p>

codehaus
April 10, 2015, 4:10 PM

CodeHaus Comment From: emperorkefka - Time: Tue, 17 Feb 2004 15:29:02 -0600
---------------------
<p>We are putting this off to 1.2.0 since we are waiting for a geotools2 fix</p>

codehaus
April 10, 2015, 4:10 PM

CodeHaus Comment From: jgarnett - Time: Wed, 7 Apr 2004 00:08:35 -0500
---------------------
<p>Decided not to bundle the jar until this problem is fixed

Will prevent user frustration.</p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure