Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036043Openbravo ERPA. Platformpublic2017-05-18 18:182017-09-21 13:15
shuehner 
platform 
normalminorhave not tried
closedduplicate 
5
 
 
alostale
Core
No
0036043: update.database fails with NullPointerException when using PostgreSQL 10beta1
When running update.database (without any changes to files) against pg 10beta the code fails with the NPE shown below.

     [java] 18057 INFO - Executing default prescript
     [java] 18219 INFO - Executed 117 SQL command(s) successfully
     [java] 18232 INFO - Updating database model...
     [java] 18503 ERROR -
     [java] java.lang.NullPointerException
     [java] at org.apache.ddlutils.model.Parameter.getName(Parameter.java:53)
     [java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.writeParameter(PostgreSqlBuilder.java:503)
     [java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.writeDropFunctionStmt(PostgreSqlBuilder.java:343)
     [java] at org.apache.ddlutils.platform.SqlBuilder.dropFunction(SqlBuilder.java:4224)
     [java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.dropFunction(PostgreSqlBuilder.java:493)
     [java] at org.apache.ddlutils.platform.SqlBuilder.processChange(SqlBuilder.java:1491)
     [java] at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
     [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] at java.lang.reflect.Method.invoke(Method.java:606)
     [java] at org.apache.ddlutils.util.CallbackClosure.execute(CallbackClosure.java:151)
     [java] at org.apache.ddlutils.platform.SqlBuilder$1.evaluate(SqlBuilder.java:975)
     [java] at org.apache.commons.collections.CollectionUtils.filter(CollectionUtils.java:406)
     [java] at org.apache.ddlutils.platform.SqlBuilder.applyForSelectedChanges(SqlBuilder.java:972)
     [java] at org.apache.ddlutils.platform.SqlBuilder.processChanges(SqlBuilder.java:1060)
     [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:576)
     [java] at org.apache.ddlutils.platform.SqlBuilder.alterDatabase(SqlBuilder.java:562)
     [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:675)
     [java] at org.apache.ddlutils.platform.PlatformImplBase.alterTables(PlatformImplBase.java:658)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:180)
     [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:57)
use PostgreSQL 10beta
a.) install.source
b.) ant update.database

No tags attached.
duplicate of defect 0036862 closed alostale update.database throws NPE in PostgreSQL 9.6 
blocks feature request 0036911 closed alostale support PostgreSQL 10 
Issue History
2017-05-18 18:18shuehnerNew Issue
2017-05-18 18:18shuehnerAssigned To => platform
2017-05-18 18:18shuehnerModules => Core
2017-05-18 18:18shuehnerTriggers an Emergency Pack => No
2017-05-22 11:04alostaleStatusnew => acknowledged
2017-09-21 12:40alostaleRelationship addedblocks 0036911
2017-09-21 13:14alostaleStatusacknowledged => scheduled
2017-09-21 13:14alostaleStatusscheduled => feedback
2017-09-21 13:15alostaleReview Assigned To => alostale
2017-09-21 13:15alostaleRelationship addedduplicate of 0036862
2017-09-21 13:15alostaleNote Added: 0099212
2017-09-21 13:15alostaleStatusfeedback => closed
2017-09-21 13:15alostaleResolutionopen => duplicate

Notes
(0099212)
alostale   
2017-09-21 13:15   
fixed by 0036862