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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0025882
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2014-03-03 17:082014-03-05 08:57
ReportermblackhallView Statuspublic 
Assigned ToAugustoMauch 
PriorityurgentResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version6
OS VersionUbuntu 12.04.3Database version9.1.10Ant version1.8.2
Product Version3.0MP27SCM revision 
Review Assigned To
Web browserMozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0025882: Component provider check returning null and not allowing Openbravo to start

DescriptionI 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 ReproduceImport module in live. This can't happen for any module, but why can a provider be created as null ?
Proposed SolutionLet me know where it builds the provider least and do not add one if it si null
TagsNo 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
Powered by Mantis Bugtracker