Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #34131 Back to Issue ]
Summary 0034131: can't export database in verbose mode if there's a config script changing a column to nullable
Revision 2016-09-30 09:14 by alostale
Steps To Reproduce 1. Install attached template
2. Set bbdd.verbosity=DEBUG in Openbravo.properties
3. run ant export.database
  -> NPE is thrown:
/opt/OpenbravoERP/build.xml:787: The following error occurred while executing this line:
/opt/OpenbravoERP/src-db/database/build.xml:159: java.lang.NullPointerException
    at org.apache.ddlutils.alteration.ColumnRequiredChange.toString(ColumnRequiredChange.java:122)
    at java.lang.String.valueOf(String.java:2849)
    at java.lang.StringBuilder.append(StringBuilder.java:128)
    at org.openbravo.utils.OBLogAppender.append(OBLogAppender.java:95)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
    at org.apache.log4j.Category.callAppenders(Category.java:206)
    at org.apache.log4j.Category.forcedLog(Category.java:391)
    at org.apache.log4j.Category.debug(Category.java:260)
    at org.openbravo.ddlutils.util.DBSMOBUtil.applyConfigScripts(DBSMOBUtil.java:997)
    at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:928)
    at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:896)
    at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:890)
Revision 2016-09-30 09:14 by alostale
Description If there is a config script that changes a column from not null to null (or in the other way around), when trying to export DB a NPE is thrown and the process stops in case bbdd.verbosity is set to debug.
Revision 2016-09-29 16:13 by alostale
Steps To Reproduce run ant export.database
  -> NPE is thrown:
/opt/OpenbravoERP/build.xml:787: The following error occurred while executing this line:
/opt/OpenbravoERP/src-db/database/build.xml:159: java.lang.NullPointerException
    at org.apache.ddlutils.alteration.ColumnRequiredChange.toString(ColumnRequiredChange.java:122)
    at java.lang.String.valueOf(String.java:2849)
    at java.lang.StringBuilder.append(StringBuilder.java:128)
    at org.openbravo.utils.OBLogAppender.append(OBLogAppender.java:95)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
    at org.apache.log4j.Category.callAppenders(Category.java:206)
    at org.apache.log4j.Category.forcedLog(Category.java:391)
    at org.apache.log4j.Category.debug(Category.java:260)
    at org.openbravo.ddlutils.util.DBSMOBUtil.applyConfigScripts(DBSMOBUtil.java:997)
    at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:928)
    at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:896)
    at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:890)
Revision 2016-09-29 16:13 by alostale
Description If there is a config script that changes a column from not null to null, when trying to export DB a NPE is thrown and the process stops.
Revision 2016-09-29 16:09 by alostale
Steps To Reproduce run ant export.database
  -> NPE is thrown:
Revision 2016-09-29 16:09 by alostale
Description IF there is a config script that changes a column from not null to null, when trying to export DB a NPE is thrown and the process stops.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker