Problems with new version of Excel Importer appstore module
1
I have just updated the Excel Importer to the new version 3.0.1. In one application I had no issue, but the second application refuses to compile the java: Buildfile: C:\Mendix4\TeamManager\deployment\build.xml compile: [javac] Compiling 31 source files to C:\Mendix4\TeamManager\deployment\model\lib\bin [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelReader.java:424: cannot find symbol [javac] symbol : method clear() [javac] location: class excelimporter.reader.readers.replication.ExcelReplicationSettings [javac] this.settings.clear(); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelReader.java:466: cannot find symbol [javac] symbol : method printNotFoundMessageForMainobject(java.lang.Boolean) [javac] location: class excelimporter.reader.readers.replication.ExcelReplicationSettings [javac] settings.printNotFoundMessageForMainobject( (Boolean)addProperties.getValue(context, AdditionalProperties.MemberNames.PrintNotFoundMessages_MainObject.toString()) ); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelRowProcessor.java:31: cannot find symbol [javac] symbol : constructor MetaInfo(com.mendix.systemwideinterfaces.core.IContext,excelimporter.reader.readers.replication.ExcelReplicationSettings,excelimporter.reader.readers.replication.ExcelValueParser,java.lang.String) [javac] location: class replication.MetaInfo [javac] this.info = new MetaInfo( this.xlsReader.getContext(),this.xlsReader.getSettings(), this.valueParser, "XLSReader" ); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelRowProcessor.java:40: incompatible types [javac] found : java.util.TreeSet<java.lang.string> [javac] required: java.util.TreeMap<java.lang.string,java.lang.boolean> [javac] TreeMap<string, boolean=""> keys = settings.getKeys(); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelRowProcessor.java:61: incompatible types [javac] found : void [javac] required: replication.MetaInfo.MetaInfoObject [javac] miObject = this.info.setAssociationValue(objectKey, alias, this.valueParser.getValue(type, alias, values)); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelRowProcessor.java:64: incompatible types [javac] found : void [javac] required: replication.MetaInfo.MetaInfoObject [javac] miObject = this.info.addAssociationValue(objectKey, alias, this.valueParser.getValue(type, alias, values)); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelRowProcessor.java:67: incompatible types [javac] found : void [javac] required: replication.MetaInfo.MetaInfoObject [javac] miObject = this.info.addValue(objectKey, alias, this.valueParser.getValue(type, alias, values)); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\ExcelRowProcessor.java:70: cannot find symbol [javac] symbol : method getId() [javac] location: class replication.MetaInfo.MetaInfoObject [javac] Long columnObjectID = miObject.getId(); [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\replication\ExcelValueParser.java:24: excelimporter.reader.readers.replication.ExcelValueParser is not abstract and does not override abstract method getValueFromObject(com.mendix.systemwideinterfaces.core.IMendixObject,java.lang.String) in replication.ValueParser [javac] public class ExcelValueParser extends ValueParser { [javac] ^ [javac] C:\Mendix4\TeamManager\javasource\excelimporter\reader\readers\replication\ExcelValueParser.java:59: processKeyValue(java.lang.String,java.lang.String) in replication.ValueParser cannot be applied to (java.lang.Boolean,java.lang.String) [javac] keyBuilder.append( this.processKeyValue(isCaseSensitive, keyValue) ).append(keySeparator); [javac] ^ [javac] 10 errors BUILD FAILED C:\Mendix4\TeamManager\deployment\build.xml:61: Compile failed; see the compiler error output for details. Total time: 2 seconds The project that compiled OK also included the new Database Replication module, The one that gave errors does not contain the Database Replication module. I also updated MxModel Reflection for both projects. Testing in a new blank project worked OK. Any ideas?
asked
David Sanders
1 answers
0
Found it... The errors were caused by there being an old (renamed) version of replication.jar in the userlib directory. This did not cause an issue with earlier versions of the Excel importer, but did with this latest version. Deleting the file fixed the issue. I'm not even sure why it was there in the first place