AnsweredAssumed Answered

can't create JSONConverterGdb object

Question asked by orhun on Jul 28, 2017
Latest reply on Jan 14, 2019 by registruCentras

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(