Opened 12 years ago

Closed 12 years ago

#1980 closed defect (fixed)

ODBC connection with MGOS 2.2: Faulty configuration document in Maestro 4?

Reported by: janvw Owned by: jng
Priority: medium Milestone:
Component: Maestro Version:
Severity: major Keywords:
Cc: External ID:

Description

Problem: I have connected to a SQL server 2000 database using the ODBC provider. I have configured the tables in order to get the right columns for the X and Y values. After creating a layer using this feature source, the points should show up in my map, but they don't (MGOS 2.2 / Maestro 4). In the server error log I have the following entry: <2012-03-15T15:41:00> 1712 Ajax Viewer 127.0.0.1 Administrator

Error: Failed to stylize layer: test

An exception occurred in FDO component. Internal error

StackTrace:

Workaround: I used Maestro 2.1 for setting up the dataconnection. The preview of the feature source still didn't work (error message: "Argument ist null"), but I could create a new layer and show the X/Y coordinates as points.

Attached: Two configuration documents: 1 produced by Maestro 2.1 (works), 1 by Maestro 4 (doesn't work).

Attachments (3)

config_2_1.xml (7.9 KB ) - added by janvw 12 years ago.
config_4_0.xml (7.9 KB ) - added by janvw 12 years ago.
error_2_4.txt (1.4 KB ) - added by janvw 12 years ago.

Download all attachments as: .zip

Change History (8)

by janvw, 12 years ago

Attachment: config_2_1.xml added

by janvw, 12 years ago

Attachment: config_4_0.xml added

comment:1 by jng, 12 years ago

I think I know why.

I've been doing these configuration document changes against a trunk version of MapGuide, so FDO must've slipped in some breaking changes to how configuration documents are rendered and interpreted, so Maestro 4.0 creates configuration documents that would be valid for MapGuide 2.4, but not for 2.2 and older releases.

If you have time, download the 2.4 preview here (http://download.osgeo.org/mapguide/releases/2.4.0/Test/) and create the same configured feature source using Maestro 4.0.

If this configured feature source works, then I'd have to think of how to generate compatible configuration documents for various versions of MapGuide (ugh!)

in reply to:  1 ; comment:2 by janvw, 12 years ago

I'll check out the 2.4 preview.

One thing I don't understand: If Maestro 4.0 creates configuration documents valid for MapGuide 2.4, why is there a reference to the 3.2 ODBC provider (Line 159)?

<SchemaMapping provider="OSGeo.ODBC.3.2" xmlns:rdb="http://fdordbms.osgeo.org/schemas" xmlns="http://fdoodbc.osgeo.org/schemas" name="dbo">

In the Maestro 2.1 configuration document the ODBC 3.5 provider is mentioned instead.

in reply to:  2 comment:3 by janvw, 12 years ago

I tried to check out the 2.4 preview.

I connected to the ODBC feature source in Maestro 4.0 (Test Connection was true). When trying to edit the schema for specifying the X/Y columns I get two errors: First a popup saying "The value is outside the expected range" and then a Maestro error message (see attached file). So I couldn't get to the point where Maestro is generating the configuration document.

by janvw, 12 years ago

Attachment: error_2_4.txt added

comment:4 by jng, 12 years ago

Fixed trunk (r6750) and 4.0.x (r6752)

comment:5 by jng, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.