Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0025882 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2014-03-03 17:08 | 2014-03-05 08:57 | |||
Reporter | mblackhall | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | urgent | Resolution | no change required | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 64 bit | Database | PostgreSQL | Java version | 6 | |||
OS Version | Ubuntu 12.04.3 | Database version | 9.1.10 | Ant version | 1.8.2 | |||
Product Version | 3.0MP27 | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | Mozilla Firefox | |||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0025882: Component provider check returning null and not allowing Openbravo to start | |||||||
Description | I have been trying to move my module to our production environment. It cannot run in production becuase the code for static rsource component is picking up a null Component resource in the following code (this is in StaticResourceComponent (i put in the log commands to see what is wrong) public boolean isInDevelopment() { if (isInDevelopment == null) { isInDevelopment = false; for (ComponentProvider provider : componentProviders) { final List<ComponentResource> resources = provider.getGlobalComponentResources(); if (resources == null || resources.size() == 0) { continue; } log.info(" Provider " + provider); log.info(" Provider " + provider.getModule().getDescription()); log.info(" Provider " + provider.getModule().isInDevelopment()); if (provider.getModule().isInDevelopment()) { isInDevelopment = true; return isInDevelopment; } } } return isInDevelopment; } The log shows null for a provider. This should not be possible . It must mean that Openbravo is created a null provider in its list. | |||||||
Steps To Reproduce | Import module in live. This can't happen for any module, but why can a provider be created as null ? | |||||||
Proposed Solution | Let me know where it builds the provider least and do not add one if it si null | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0064778) alostale (manager) 2014-03-04 08:16 |
List of components is injected by Weld. @Inject @Any private Instance<ComponentProvider> componentProviders; Can you share the module that's failing? |
(0064802) mblackhall (reporter) 2014-03-04 16:46 |
Oke. I spotted I didn't have a dependent modules installed on my live version. After adding this module to the environment, it passed the code. I still would have thought that a null provider could not be injected into the providers List but oke its working now. Thanks for your help. You can close the issue. |
Issue History | |||
Date Modified | Username | Field | Change |
2014-03-03 17:08 | mblackhall | New Issue | |
2014-03-03 17:08 | mblackhall | Assigned To | => AugustoMauch |
2014-03-03 17:08 | mblackhall | Web browser | => Mozilla Firefox |
2014-03-03 17:08 | mblackhall | Modules | => Core |
2014-03-03 17:08 | mblackhall | Triggers an Emergency Pack | => No |
2014-03-04 08:16 | alostale | Web browser | Mozilla Firefox => Mozilla Firefox |
2014-03-04 08:16 | alostale | Note Added: 0064778 | |
2014-03-04 08:16 | alostale | Priority | immediate => urgent |
2014-03-04 08:16 | alostale | Severity | critical => major |
2014-03-04 08:16 | alostale | Status | new => feedback |
2014-03-04 16:46 | mblackhall | Note Added: 0064802 | |
2014-03-05 08:57 | alostale | Status | feedback => closed |
2014-03-05 08:57 | alostale | Resolution | open => no change required |
Copyright © 2000 - 2009 MantisBT Group |