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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018033
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagerminoralways2011-07-19 17:062011-08-06 05:32
ReportermalsasuaView Statuspublic 
Assigned Tomarvintm 
PriorityhighResolutionfixedFixed in Version3.0MP2
StatusclosedFix in branchFixed in SCM revision7f10ae8a4377
ProjectionnoneETAnoneTarget Version3.0MP2
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Web browserApple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018033: "null pointer exception" is returned when a function parameter does not have a name

Descriptionto run "update.database", if a function parameter does not have a name, error is returned:
     [java] 385992 ERROR -
     [java] java.lang.NullPointerException
     [java] at org.apache.ddlutils.model.Parameter.getName(Parameter.java:53)
Steps To Reproducecreate function with this header:
CREATE OR REPLACE FUNCTION nombreFuncion (numeric)
  RETURNS character varying AS
.....

run update.database
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0039243)
marvintm (developer)
2011-07-19 17:13

This header doesn't comply with the standard dbsm expects, so it's normal that it fails. However, the error log needs to be improved, because currently it's impossible for the developer to find out which function failed, and why.

So the fix for this issue will be to improve the log so that it's meaningful for the developer.
(0039442)
hgbot (developer)
2011-07-27 13:00

Repository: erp/devel/dbsm-main
Changeset: aa695d8e9913f684979f1f4ed67e56c609547193
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jul 27 12:37:49 2011 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/aa695d8e9913f684979f1f4ed67e56c609547193 [^]

Fixed issue 18033. If a function parameter cannot be read, a nice, intelligible exception will be thrown

---
M src/org/apache/ddlutils/model/Database.java
---
(0039444)
hgbot (developer)
2011-07-27 13:00

Repository: erp/devel/pi
Changeset: 3a620590bef8eb6e40d84e110b6e787f3427626e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jul 27 12:42:25 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3a620590bef8eb6e40d84e110b6e787f3427626e [^]

Fixed issue 18033. If a function parameter cannot be read, a nice, intelligible exception will be thrown

---
M src-db/database/lib/dbsourcemanager.jar
---
(0039707)
hudsonbot (developer)
2011-08-01 14:21

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf2afed6e8ef [^]

Maturity status: Test
(0039814)
hgbot (developer)
2011-08-03 12:59

Repository: erp/devel/dbsm-main
Changeset: a740f01cdc4c7280653249b19d5547d69fb37bee
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 03 12:59:05 2011 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/a740f01cdc4c7280653249b19d5547d69fb37bee [^]

Fixed issue 18033. Will also work if the bad function is only in the db.

---
M src/org/apache/ddlutils/model/Function.java
---
(0039815)
hgbot (developer)
2011-08-03 13:02

Repository: erp/devel/pi
Changeset: 7f10ae8a4377cb288bec825b46c064de1e9ce2b6
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 03 12:59:55 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7f10ae8a4377cb288bec825b46c064de1e9ce2b6 [^]

Fixed issue 18033. Will also work if the bad function is only in the db.

---
M src-db/database/lib/dbsourcemanager.jar
---
(0039818)
malsasua (developer)
2011-08-03 13:06

verified
(0039947)
hudsonbot (developer)
2011-08-06 05:32

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5744448753e7 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2011-07-19 17:06 malsasua New Issue
2011-07-19 17:06 malsasua Assigned To => marvintm
2011-07-19 17:06 malsasua Web browser => Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
2011-07-19 17:06 malsasua Modules => Core
2011-07-19 17:06 malsasua Resolution time => 1316728800
2011-07-19 17:11 marvintm Web browser Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox => Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
2011-07-19 17:11 marvintm Target Version => 3.0MP2
2011-07-19 17:13 marvintm Note Added: 0039243
2011-07-27 13:00 hgbot Checkin
2011-07-27 13:00 hgbot Note Added: 0039442
2011-07-27 13:00 hgbot Status new => resolved
2011-07-27 13:00 hgbot Resolution open => fixed
2011-07-27 13:00 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/dbsm-main/rev/aa695d8e9913f684979f1f4ed67e56c609547193 [^]
2011-07-27 13:00 hgbot Checkin
2011-07-27 13:00 hgbot Note Added: 0039444
2011-07-27 13:00 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/dbsm-main/rev/aa695d8e9913f684979f1f4ed67e56c609547193 [^] => http://code.openbravo.com/erp/devel/pi/rev/3a620590bef8eb6e40d84e110b6e787f3427626e [^]
2011-08-01 14:21 hudsonbot Checkin
2011-08-01 14:21 hudsonbot Note Added: 0039707
2011-08-03 12:59 hgbot Checkin
2011-08-03 12:59 hgbot Note Added: 0039814
2011-08-03 12:59 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/3a620590bef8eb6e40d84e110b6e787f3427626e [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/a740f01cdc4c7280653249b19d5547d69fb37bee [^]
2011-08-03 13:02 hgbot Checkin
2011-08-03 13:02 hgbot Note Added: 0039815
2011-08-03 13:02 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/dbsm-main/rev/a740f01cdc4c7280653249b19d5547d69fb37bee [^] => http://code.openbravo.com/erp/devel/pi/rev/7f10ae8a4377cb288bec825b46c064de1e9ce2b6 [^]
2011-08-03 13:06 malsasua Note Added: 0039818
2011-08-03 13:06 malsasua Status resolved => closed
2011-08-03 13:06 malsasua Fixed in Version => 3.0MP2
2011-08-06 05:32 hudsonbot Checkin
2011-08-06 05:32 hudsonbot Note Added: 0039947


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker