Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0013385 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2010-05-19 16:20 | 2012-04-02 06:11 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | migueldejuana | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | eff5eee6234b | |||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0013385: buildvalidation does not give a useful error message if used with non-existing Openbravo.properties | |||||||
Description | If you use 'ant buildvalidation' in a working copy not having Openbravo.properties, then the following stacktrace is shown: buildvalidation: [java] 0 [main] INFO org.openbravo.buildvalidation.BuildValidationHandler - Executing build validation: org.openbravo.buildvalidation.Cbpvendoracct [java] 10 [main] INFO org.openbravo.buildvalidation.BuildValidationHandler - Error executing build-validation: org.openbravo.buildvalidation.Cbpvendoracct [java] java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:616) [java] at org.openbravo.buildvalidation.BuildValidationHandler.callExecute(BuildValidationHandler.java:94) [java] at org.openbravo.buildvalidation.BuildValidationHandler.main(BuildValidationHandler.java:67) [java] Caused by: java.lang.NullPointerException [java] at org.openbravo.buildvalidation.BuildValidation.getConnectionProvider(BuildValidation.java:55) [java] at org.openbravo.buildvalidation.Cbpvendoracct.execute(Cbpvendoracct.java:36) [java] ... 6 more [java] 12 [main] ERROR org.openbravo.buildvalidation.BuildValidationHandler - The build validation org.openbravo.buildvalidation.Cbpvendoracct couldn't be properly executed | |||||||
Steps To Reproduce | see description | |||||||
Proposed Solution | Show a more useful error message like 'Could not find Openbravo.properties' instead of a NPE | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0027558) shuehner (administrator) 2010-05-19 16:21 |
Note: doing the steps needed to reproduce is not useful at all, just to tell the user in this case what he is doing wrong would be nice. |
(0046656) migueldejuana (developer) 2012-03-22 15:35 |
Test plan: - Rename Openbravo.properties to Openbravo.properties.temp for example. - Comment in the build.xml this line: <target name="buildvalidation" depends="init, core.lib"> <!--<updatesystemstatus v="RB11"/>--> <condition property="buildValidation.var"> <istrue value="${buildValidation}" /> </condition> <ant dir="src-util/buildvalidation" target="buildvalidation" inheritAll="true" inheritRefs="true" /> </target> - launch: ant buildvalidation No risky fix. |
(0046674) hgbot (developer) 2012-03-23 12:01 |
Repository: erp/devel/pi Changeset: eff5eee6234b9d351ffb667d459327ad343584ed Author: Miguel de Juana <miguel.dejuana <at> openbravo.com> Date: Thu Mar 22 13:42:37 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/eff5eee6234b9d351ffb667d459327ad343584ed [^] Fixed issue 13385: Added message in buildvalidation without Openbravo.properties In buildvalidation ant task, with non-existing Openbravo.properties, the message: 'Could not find Openbravo.properties' has been added --- M src-core/src/org/openbravo/buildvalidation/BuildValidation.java --- |
(0047209) hudsonbot (developer) 2012-04-02 06:11 |
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/7814864461ac [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2010-05-19 16:20 | shuehner | New Issue | |
2010-05-19 16:20 | shuehner | Assigned To | => marvintm |
2010-05-19 16:21 | shuehner | Note Added: 0027558 | |
2010-05-24 08:42 | alostale | Status | new => scheduled |
2010-05-24 08:42 | alostale | fix_in_branch | => pi |
2012-03-22 10:57 | marvintm | Assigned To | marvintm => migueldejuana |
2012-03-22 15:35 | migueldejuana | Note Added: 0046656 | |
2012-03-23 12:01 | hgbot | Checkin | |
2012-03-23 12:01 | hgbot | Note Added: 0046674 | |
2012-03-23 12:01 | hgbot | Status | scheduled => resolved |
2012-03-23 12:01 | hgbot | Resolution | open => fixed |
2012-03-23 12:01 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/eff5eee6234b9d351ffb667d459327ad343584ed [^] |
2012-03-23 12:12 | marvintm | Status | resolved => closed |
2012-04-02 06:11 | hudsonbot | Checkin | |
2012-04-02 06:11 | hudsonbot | Note Added: 0047209 |
Copyright © 2000 - 2009 MantisBT Group |