can't create JSONConverterGdb object

07-28-2017 04:46 AM
New Contributor

I can't create JSONConverterGdb object in ArcEngine SDK for Java  with 10.4.1 version. It gives AutomationException error ("0x80004002 - No such interface supported" when I create method. you can see my code sample below,
 my development environment is java (jdk 1.7). What is the problem? How can I solve?

IJSONReader jsonReader = new JSONReader();

//It gives AutomationException error at this line, How can I create this object. I saw .net samples, it seems working
IJSONConverterGdb jSONConverterGdb = new JSONConverterGdb();

IPropertySet originalToNewFieldMap[] = null;
IRecordSet recorset[] = null;

jSONConverterGdb.readRecordSet(jsonReader, null, null, recorset,  originalToNewFieldMap);

//StackTrace Log:

AutomationException: 0x80004002 - No such interface supported
    at com.esri.arcgis.interop.NativeObjRef.initNative(Native Method)
    at com.esri.arcgis.interop.NativeObjRef.init(Unknown Source)
    at com.esri.arcgis.interop.NativeObjRef.<init>(Unknown Source)
    at com.esri.arcgis.interop.Dispatch.createDispatch(Unknown Source)
    at com.esri.arcgis.interop.Dispatch.<init>(Unknown Source)
    at com.esri.arcgis.system.IExternalSerializerProxy.<init>(Unknown Source)
    at com.esri.arcgis.system.IJSONSerializerProxy.<init>(Unknown Source)
    at com.esri.arcgis.geodatabase.JSONConverterGdb.<init>(Unknown Source)
    at com.esri.arcgis.geodatabase.JSONConverterGdb.<init>(Unknown Source)
    at com.uniyaz.flexgis.core.JsonUtils.fromJson(

0 Kudos
3 Replies
New Contributor III

I have same issue in .NET SDK for ArcGIS Server 10.3.1. We you able to find a solution?

0 Kudos
New Contributor

Hi Rob;
I still have not resolved this issue but it has worked when I implement same code with ArcEngine SDK for .Net 10.4.1. you can try to use with this version.

0 Kudos
New Contributor
  • Constructs a JSONConverterGdb using ArcGIS Engine.
0 Kudos