XPath Module in Mendix 11.2.0

0
Hi. I'm testing my application on Mendix 11.2.0 and I get an error in the XPath module. In Mendix 10.24.4 it works perfectly. The error is: C:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\xpath\helper\xpathHelper.java:18: error: cannot find symbolimport static com.mendix.core.Core.retrieveXPathQuery;^  symbol:   static retrieveXPathQuery  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\xpath\helper\xpathHelper.java:19: error: cannot find symbolimport static com.mendix.core.Core.retrieveXPathQueryAggregate;^  symbol:   static retrieveXPathQueryAggregate  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\xpath\helper\xpathHelper.java:20: error: cannot find symbolimport static com.mendix.core.Core.retrieveXPathQueryAggregateDouble;^  symbol:   static retrieveXPathQueryAggregateDouble  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\audittrail\log\diff_match_patch.java:1806: warning: [dep-ann] deprecated item is not annotated with @Deprecated  public LinkedList<Patch> patch_make(String text1, String text2,                           ^C:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\communitycommons\StringUtils.java:231: error: cannot find symbol        return IOUtils.toString(BOMInputStream.builder().setInputStream(inputStream).get(), charset);                                              ^  symbol:   method builder()  location: class BOMInputStreamC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\csvservices\impl\CsvExporter.java:37: error: cannot find symbol        long recordCount = Core.retrieveXPathQueryAggregate(context, "count(" + xpath + ")");                               ^  symbol:   method retrieveXPathQueryAggregate(IContext,String)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\csvservices\impl\CsvExporter.java:53: error: cannot find symbol            List<IMendixObject> objects = Core.retrieveXPathQuery(context, offsetXpath, pageSize, 0, sortIdAsc, 2);                                              ^  symbol:   method retrieveXPathQuery(IContext,String,int,int,LinkedHashMap<String,String>,int)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\csvservices\impl\CsvImporter.java:191: error: cannot find symbol                        List<IMendixObject> objects = Core.retrieveXPathQuery(ctx, findByPkXpath);                                                          ^  symbol:   method retrieveXPathQuery(IContext,String)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\csvservices\impl\CsvImporterSql.java:117: error: cannot find symbol                            List<IMendixObject> objects = Core.retrieveXPathQuery(context, findByPkXpath);                                                              ^  symbol:   method retrieveXPathQuery(IContext,String)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\csvservices\impl\CsvImporterSql.java:160: error: cannot find symbol                                    List<IMendixObject> refObjectList = Core.retrieveXPathQuery(context, xpath);                                                                            ^  symbol:   method retrieveXPathQuery(IContext,String)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\csvservices\impl\CsvImporterSql.java:177: error: cannot find symbol                                        List<IMendixObject> refObjectList = Core.retrieveXPathQuery(context, xpath);                                                                                ^  symbol:   method retrieveXPathQuery(IContext,String)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\dmm_core\actions\JA_ClearColumnAttribute.java:50: error: cannot find symbol            __Attribute.get(i).setValue(context(), __Head.getValue(context(), "Field"), null);                                        ^  symbol:   method context()  location: class JA_ClearColumnAttributeC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\dmm_core\actions\JA_ClearColumnAttribute.java:50: error: cannot find symbol            __Attribute.get(i).setValue(context(), __Head.getValue(context(), "Field"), null);                                                                   ^  symbol:   method context()  location: class JA_ClearColumnAttributeC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\mendixsso\implementation\utils\MicroflowParameter.java:77: error: cannot find symbol        if (objectType != null && Core.isSubClassOf(SYSTEM_USER, objectType)) {                                      ^  symbol:   method isSubClassOf(String,String)  location: class CoreC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\xpath\helper\xpathHelper.java:79: error: cannot find symbol        return retrieveXPathQuery(context, xpath, amount, offset, sortMap);               ^  symbol:   method retrieveXPathQuery(IContext,String,int,int,Map<String,String>)  location: class xpathHelperC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\xpath\helper\xpathHelper.java:90: error: cannot find symbol        Double aggregateResult = retrieveXPathQueryAggregateDouble(context, xpathQuery);                                 ^  symbol:   method retrieveXPathQueryAggregateDouble(IContext,String)  location: class xpathHelperC:\Users\Victor\Mendix\Smarter MRP-Test_version_11.2\javasource\xpath\helper\xpathHelper.java:109: error: cannot find symbol        Long aggregateResult = retrieveXPathQueryAggregate(context, xpathQuery);                               ^  symbol:   method retrieveXPathQueryAggregate(IContext,String)  location: class xpathHelperNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: Some input files use unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.16 errors1 warning FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':compile'.> Compilation failed; see the compiler error output for details. * Try:> Run with --scan to get full insights. BUILD FAILED in 6s   Any idea to solve this?
asked
1 answers
2

retrieveXpathQuery has been deprecated. Either wait/ask for an update, or fix the java code yourself using createXpathQuery.

answered