D:workspaceerpcusOpenbravoERP>ant update.database -Dforce=true Buildfile: build.xml set.code.rev: code.rev: init: update.database: set.code.rev: code.rev: init: database.lib: init: compile: build.jar: jar: set.code.rev: code.rev: init: core.lib: init: compile: build.jar: build: copy.core.lib: update.database.java: fix.date.POSTGRE: [sql] Executing commands [sql] 1 of 1 SQL statements executed successfully [java] Executing database update process without checking changes in local files. [java] Initializing in-memory model... [java] Building runtime model [java] Column BusinessPartner.email mandatory is null [java] Column BusinessPartner.firstName mandatory is null [java] Column BusinessPartner.lastName mandatory is null [java] Column BusinessPartner.phone mandatory is null [java] Column BusinessPartner.newsletterFromPlatane mandatory is null [java] Column BusinessPartner.newsletterFromRLH mandatory is null [java] Column BusinessPartner.customerStatus mandatory is null [java] Model read in-memory, generating mapping... [java] Dal layer initialized [java] Database connection: jdbc:postgresql://localhost:5432/openbravo. User: tad [java] Checking if database structure was modified locally. [java] Database was modified locally, but as update.database command is forced, the database wi ll be updated anyway. [java] Executing full update.database [java] Executing default prescript [java] Executed 116 SQL command(s) with 0 error(s) [java] Reading tables... [java] Reading views... [java] Reading sequences... [java] Reading triggers... [java] Reading functions... [java] Sorting foreign keys and checks... [java] Starting function and trigger standardization. [java] Original model loaded from database. [java] Loading data from XML files [java] Loading and applying configuration scripts [java] Comparing databases to find differences [java] Comparing table AD_Package [java] Comparing table AD_Reference [java] Comparing table AD_Dataset_Column [java] Comparing table AD_Table [java] Comparing table AD_Ref_Table [java] Comparing table AD_Dataset [java] Comparing table AD_Ref_List [java] Comparing table AD_Module [java] Comparing table AD_Column [java] Comparing table AD_Ref_Search [java] Comparing table AD_Dataset_Table [java] Updating database model... [java] Processing Trigger Trigger [name=SP_BP_TRG; ] (created for the database PostgreSql se rver) [java] Processing Column EM_SP_EMAIL (created for table C_BPARTNER) [java] Processing Column EM_SP_FIRSTNAME (created for table C_BPARTNER) [java] Processing Column EM_SP_LASTNAME (created for table C_BPARTNER) [java] Processing Column EM_SP_PHONE (created for table C_BPARTNER) [java] Processing Column EM_SP_NEWSFROMP (created for table C_BPARTNER) [java] Processing Column EM_SP_NEWSFROMR (created for table C_BPARTNER) [java] Processing Column EM_SP_CUSTOMERSTATUS (created for table C_BPARTNER) [java] Processing View View [name=C_INVOICE_CANDIDATE_V; ] (created for the database PostgreSql server) [java] Processing Function Function [notation=SP_GENERATE_LOCATION(); ] (removed from databas e PostgreSql server) [java] Processing Function Function [notation=SP_GENERATE_CUSTOMERS(VARCHAR); ] (created for the database PostgreSql server) [java] String index out of range: 5 [java] org.apache.ddlutils.DdlUtilsException: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:154) [java] at org.apache.ddlutils.platform.SqlBuilder$1.evaluate(SqlBuilder.java:832) [java] at org.apache.commons.collections.CollectionUtils.filter(CollectionUtils.java:403) [java] at org.apache.ddlutils.platform.SqlBuilder.applyForSelectedChanges(SqlBuilder.java:8 29) [java] at org.apache.ddlutils.platform.SqlBuilder.processChanges(SqlBuilder.java:921) [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:551) [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:536) [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:6 47) [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:6 30) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.j ava:172) [java] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:116) [java] at org.openbravo.ddlutils.task.BaseDalInitializingTask.execute(BaseDalInitializingTa sk.java:84) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.execute(AlterDatabaseDataAll.jav a:93) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:36) [java] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 [java] at java.lang.String.charAt(String.java:687) [java] at java.util.regex.Matcher.appendReplacement(Matcher.java:711) [java] at java.util.regex.Matcher.replaceFirst(Matcher.java:861) [java] at java.lang.String.replaceFirst(String.java:2147) [java] at org.apache.ddlutils.translation.LiteralFilter.restoreLiterals(LiteralFilter.java: 51) [java] at org.apache.ddlutils.platform.SqlBuilder.createFunction(SqlBuilder.java:3698) [java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.createFunction(PostgreS qlBuilder.java:467) [java] at org.apache.ddlutils.platform.SqlBuilder.processChange(SqlBuilder.java:1175) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:151) [java] ... 13 more [java] Exception in thread "main" org.apache.ddlutils.DdlUtilsException: java.lang.StringIndexO utOfBoundsException: String index out of range: 5 [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.j ava:235) [java] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:116) [java] at org.openbravo.ddlutils.task.BaseDalInitializingTask.execute(BaseDalInitializingTa sk.java:84) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.execute(AlterDatabaseDataAll.jav a:93) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:36) [java] Caused by: org.apache.ddlutils.DdlUtilsException: java.lang.StringIndexOutOfBoundsExcept ion: String index out of range: 5 [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:154) [java] at org.apache.ddlutils.platform.SqlBuilder$1.evaluate(SqlBuilder.java:832) [java] at org.apache.commons.collections.CollectionUtils.filter(CollectionUtils.java:403) [java] at org.apache.ddlutils.platform.SqlBuilder.applyForSelectedChanges(SqlBuilder.java:8 29) [java] at org.apache.ddlutils.platform.SqlBuilder.processChanges(SqlBuilder.java:921) [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:551) [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:536) [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:6 47) [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:6 30) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.j ava:172) [java] ... 4 more [java] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 [java] at java.lang.String.charAt(String.java:687) [java] at java.util.regex.Matcher.appendReplacement(Matcher.java:711) [java] at java.util.regex.Matcher.replaceFirst(Matcher.java:861) [java] at java.lang.String.replaceFirst(String.java:2147) [java] at org.apache.ddlutils.translation.LiteralFilter.restoreLiterals(LiteralFilter.java: 51) [java] at org.apache.ddlutils.platform.SqlBuilder.createFunction(SqlBuilder.java:3698) [java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.createFunction(PostgreS qlBuilder.java:467) [java] at org.apache.ddlutils.platform.SqlBuilder.processChange(SqlBuilder.java:1175) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:151) [java] ... 13 more [java] --- Nested Exception --- [java] org.apache.ddlutils.DdlUtilsException: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:154) [java] at org.apache.ddlutils.platform.SqlBuilder$1.evaluate(SqlBuilder.java:832) [java] at org.apache.commons.collections.CollectionUtils.filter(CollectionUtils.java:403) [java] at org.apache.ddlutils.platform.SqlBuilder.applyForSelectedChanges(SqlBuilder.java:8 29) [java] at org.apache.ddlutils.platform.SqlBuilder.processChanges(SqlBuilder.java:921) [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:551) [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:536) [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:6 47) [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:6 30) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.j ava:172) [java] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:116) [java] at org.openbravo.ddlutils.task.BaseDalInitializingTask.execute(BaseDalInitializingTa sk.java:84) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.execute(AlterDatabaseDataAll.jav a:93) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:36) [java] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 [java] at java.lang.String.charAt(String.java:687) [java] at java.util.regex.Matcher.appendReplacement(Matcher.java:711) [java] at java.util.regex.Matcher.replaceFirst(Matcher.java:861) [java] at java.lang.String.replaceFirst(String.java:2147) [java] at org.apache.ddlutils.translation.LiteralFilter.restoreLiterals(LiteralFilter.java: 51) [java] at org.apache.ddlutils.platform.SqlBuilder.createFunction(SqlBuilder.java:3698) [java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.createFunction(PostgreS qlBuilder.java:467) [java] at org.apache.ddlutils.platform.SqlBuilder.processChange(SqlBuilder.java:1175) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:151) [java] ... 13 more BUILD FAILED D:workspaceerpcusOpenbravoERPbuild.xml:544: The following error occurred while executin g this line: D:workspaceerpcusOpenbravoERPsrc-dbdatabasebuild.xml:159: Java returned: 1 Total time: 4 minutes 18 seconds D:workspaceerpcusOpenbravoERP>