I have a body of code that uses ArcGIS runtime 10.1 to work with a geometric network in customer data. It's been working fine, but we recently obtained a newer version of the geodatabase and I cannot seem to open any feature classes! Oddly, the 'isNameExists' method returns true when queried whether the feature class exists yet the following called to 'openFeatureClass' blows up with this exception:
AutomationException: 0x80041352 - Unable to create object class extension COM component [MyClassName] in 'Esri GeoDatabase'
at com.esri.arcgis.geodatabase.Workspace.openFeatureClass(Unknown Source)
| | IWorkspace2 is2 = (IWorkspace2) featureWorkspace; |
| | if (! is2.isNameExists(esriDatasetType.esriDTFeatureClass, feature_class_name)) { |
| | System.err.println("Feature class " + feature_class_name + " not found"); |
| | continue; |
| | } |
| | |
| | IFeatureClass iFeatureClass = featureWorkspace.openFeatureClass(feature_class_name); |
I'm at a loss to know how to work around this problem. Any suggestions for further troubleshooting? ArcCatalog does show the class, FWIW.