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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0008358
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2009-03-31 12:142009-04-29 00:00
ReportermarvintmView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version2.50MP1
StatusclosedFix in branchFixed in SCM revision500bea73b740
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionmainSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0008358: When package.module is called without having exported the module, the process crashes without any meaningful message

DescriptionWhen package.module is called without having exported the module, the process crashes (because it tries to zip a non-existent directory) without any message, only with a NullPointerException:

openbravo@domU-12-31-39-03-4A-44 AppsOpenbravo]$ ant package.module
> -Dmodule=com.mycompany.hotel
> Buildfile: build.xml
>
> package.module:
> [echo] Validating Module...
> [validateModules] 0 [main] WARN SystemValidation - Validation
> successfull no warnings or errors
>
> obx.export.database:
>
> obx.export.config.script:
> [extractModule] java.lang.NullPointerException
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModule.createOBX(ExtractModule.java:203)
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModule.extractModule(ExtractModule.java:156)
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModule.extractPackage(ExtractModule.java:175)
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModule.extract(ExtractModule.java:86)
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModule.extractName(ExtractModule.java:141)
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModuleTask.doExecute(ExtractModuleTask.java:64)
> [extractModule] at
> org.openbravo.erpCommon.modules.ExtractModuleTask.execute(ExtractModuleTask.java:44)
> [extractModule] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> [extractModule] at
> sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> [extractModule] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [extractModule] at java.lang.reflect.Method.invoke(Method.java:597)
> [extractModule] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> [extractModule] at org.apache.tools.ant.Task.perform(Task.java:348)
> [extractModule] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [extractModule] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [extractModule] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
> [extractModule] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> [extractModule] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> [extractModule] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
> [extractModule] at org.apache.tools.ant.Main.runBuild(Main.java:758)
> [extractModule] at org.apache.tools.ant.Main.startAnt(Main.java:217)
> [extractModule] at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> [extractModule] at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>

Of course, the process cannot complete succesfully if the module has not been exported, but a meaningful message should be provided, so the user knows that he needs to export the module (or call package.module with -Dobx.export.DB=true)
Tagsmain
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0008939 closedalostale Null Pointer Exception at packaging a Industry template 

-  Notes
(0015146)
hgbot (developer)
2009-04-03 09:17

Repository: erp/devel/pi
Changeset: 500bea73b740486e7c44650744d386d3bbf04935
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Apr 03 09:16:54 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/500bea73b740486e7c44650744d386d3bbf04935 [^]

fixed bug 0008358: When package.module is called without having exported the module, the process crashes without any meaningful message

---
M src/org/openbravo/erpCommon/modules/ExtractModule.java
---

- Issue History
Date Modified Username Field Change
2009-03-31 12:14 marvintm New Issue
2009-03-31 12:14 marvintm Assigned To => alostale
2009-03-31 12:14 marvintm Regression testing => No
2009-04-01 09:53 pjuvara version => main
2009-04-03 09:17 hgbot Checkin
2009-04-03 09:17 hgbot Note Added: 0015146
2009-04-03 09:17 hgbot Status new => resolved
2009-04-03 09:17 hgbot Resolution open => fixed
2009-04-03 09:17 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/500bea73b740486e7c44650744d386d3bbf04935 [^]
2009-04-22 11:24 psarobe Tag Attached: main
2009-04-28 20:20 psarobe Status resolved => closed
2009-04-29 00:00 anonymous sf_bug_id 0 => 2783258
2009-05-08 12:35 alostale Relationship added has duplicate 0008939


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker