[mapguide-users] KgOraInsert::Execute: Unable to find class definition

Franz1965 fsozzi at INTERCAD.CH
Sun Apr 22 16:30:26 EDT 2012


Hi all,

I'm trying to insert a feature inside an Oracle Layer supported by King Ora
FDO driver.

Below more or less my code...

The problem is that I get an FDO message: 
/"An exception occurred in FDO component. KgOraInsert::Execute: Unable to
find class definition!\n"/

As you can see below, I create a resource identifier on my layerName and
that works fine, so I am sure about layerName validity.

I then create an MgInsertFeature on the same layerName and, after executing
this, I get the error on problems finding class definition.

Any idea on what's wrong?...

I'm using Mapguide 2.4 on Windows 7 32bit and Oracle 11g R2 Enterprise.

/MgLayerCollection layerCollection = map.GetLayers();
MgLayer layer = (MgLayer)layerCollection.GetItem(layerName);                

//get feature source id                
string featureSourceId = layer.GetFeatureSourceId();
MgResourceIdentifier resourceIdentifier = new
MgResourceIdentifier(featureSourceId);

// Add the line to the feature source                
MgPropertyCollection propertyCollection = ecc...                

// Add the batch property collection to the feature source
MgFeatureCommandCollection featureCommandCollection = new
MgFeatureCommandCollection();
MgInsertFeatures cmd = new MgInsertFeatures(layerName, propertyCollection);
featureCommandCollection.Add(cmd);

// Execute the "add" commands                
MgPropertyCollection resultPropertyCollection =
featureService.UpdateFeatures(resourceIdentifier, featureCommandCollection,
false);
MgStringProperty resultProperty =
(MgStringProperty)resultPropertyCollection[0];
string retName = resultProperty.GetName();
string retValue = resultProperty.GetValue();/

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/KgOraInsert-Execute-Unable-to-find-class-definition-tp4908256p4908256.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list