Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Exception when setting FieldOperatorCustomizer on FilterBuilder

    Isomorphic,

    The FilterBuilder is throwing the following exception if the FieldOperatorCustomizer has been set.

    Exception:
    Code:
    *15:04:43.816:WARN:Log:java.lang.ArrayStoreException:
    Unknown.sC_g$(sandbox10-0.js@8:3347)
    Unknown.YC_g$(sandbox10-0.js@9:3595)
    Unknown.eD_g$(sandbox10-0.js@9:3642)
    Unknown.new mYk_g$(sandbox10-0.js@9:184836)
    Unknown.Wrm_g$(sandbox10-0.js@18:197323)
    Unknown.Orm_g$(sandbox10-0.js@5:197235)
    Unknown.jAc_g$(sandbox10-0.js@3:552)
    Unknown.aig_g$(sandbox10-0.js@5:84492)
    Unknown.H7f_g$(sandbox10-0.js@21:77565)
    Unknown.<anonymous>(sandbox10-0.js@24:141895)
    Unknown.qL_g$(sandbox10-0.js@28:4414)
    Unknown.tL_g$(sandbox10-0.js@16:4470)
    Unknown.getFieldOperators(sandbox10-0.js@14:4450)
    Unknown.isc_FilterClause_getFieldOperators(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@293:2989)
    Unknown.isc_FilterClause__getFieldOperators(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@107:2989)
    Unknown.isc_FilterClause_getFieldOperatorMap(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@166:2918)
    Unknown.isc_FilterClause_setupClause(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@88:2932)
    Unknown.isc_FilterClause_initWidget(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@832:2907)
    Unknown.isc_Canvas_init(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_Core.js@48:2570)
    Unknown.isc_Class_createAutoChild(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_Core.js@5:410)
    Unknown.isc_FilterBuilder_addNewClause(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@169:3024)
    Unknown.isc_FilterBuilder__setCriteria(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@62:3041)
    Unknown.isc_FilterBuilder__createForm(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@44:3023)
    Unknown.isc_FilterBuilder_rebuild(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@555:3015)
    Unknown.isc_FilterBuilder_initWidget(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_DataBinding.js@6:3012)
    Unknown.isc_Canvas_init(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_Core.js@48:2570)
    Unknown.isc_Class_completeCreation(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_Core.js@6:366)
    Unknown.isc_c_Class_create(http://127.0.0.1:8888/sandbox10/sc/modules/ISC_Core.js@1837:251)
    Unknown.Jui_g$(sandbox10-0.js@48:141505)
    Unknown.BDd_g$(sandbox10-0.js@23:17789)
    Unknown.$Td_g$(sandbox10-0.js@37:26757)
    Unknown.CWd_g$(sandbox10-0.js@8:28004)
    Unknown.KEc_g$(sandbox10-0.js@27:13597)
    Unknown.initializeModules_0_g$(sandbox10-0.js@30:28)
    Unknown.qL_g$(sandbox10-0.js@28:4414)
    Unknown.tL_g$(sandbox10-0.js@14:4484)
    Unknown.anonymous(sandbox10-0.js@14:4450)
    Unknown.bEc_g$(sandbox10-0.js@40:41)
    Unknown.anonymous(sandbox10-0.js@46:197836)
    Entry Point:
    Code:
     @Override
        public void onModuleLoad() {
            setWidth100();
            setHeight100();
    
            GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
                @Override
                public void onUncaughtException(Throwable e) {
                    StringBuilder builder = new StringBuilder();
                    builder.append(e.getClass().getName());
                    builder.append(":");
                    String message = e.getLocalizedMessage();
                    if (message != null) {
                        builder.append(" ");
                        builder.append(message);
                    }
                    StackTraceElement[] elementList = e.getStackTrace();
                    for (StackTraceElement element : elementList) {
                        builder.append("\n");
                        builder.append(element.toString());
                    }
                    SC.logWarn(builder.toString());
                }
            });
    
            DataSource ds = DataSource.getDataSource("sandbox10");
    
            FilterBuilder fb = new FilterBuilder();
            fb.setDataSource(ds);
    
            fb.setFieldOperatorCustomizer(new FieldOperatorCustomizer() {
                @Override
                public OperatorId[] getFieldOperators(String fieldName, OperatorId[] defaultOperators, FilterBuilder filterBuilder) {
                    return defaultOperators;
                }
            });
    
            addMember(fb);
            draw();
        }
    I am using SmartClient Version: v12.0p_2018-08-17/Pro Deployment (built 2018-08-17).

    Thanks

    #2
    Apologies for the delay - we see the problem here and it's been fixed for builds dated August 28 and later.

    Comment


      #3
      I have verified that this is working with the August 28 build. Thanks!

      Comment

      Working...
      X