| Summary: | NPE caused by requests during startup result in UndeclaredRepositoryException later | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 6 | Reporter: | Martin Weiler <mweiler> |
| Component: | Portal | Assignee: | Default User <jbpapp-maint> |
| Status: | CLOSED WONTFIX | QA Contact: | Tomas Kyjovsky <tkyjovsk> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.2.0 | CC: | epp-bugs, tkobayas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-04 08:45:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Martin Weiler
2016-03-24 13:16:28 UTC
Note: The issue is observed in JPP 6.1.1 and 6.2.0. Analysis: I see PortalCheckInitFilter has 2 problems. 1. PortalCheckInitFilter flips the flag isPortalStarted to true once it confirms ONE PortalContainer is started. So if it confirms "portal" PortalContainer is started, it will allow "sample-portal" requests too. https://github.com/gatein/gatein-portal/blob/3.6.x/component/portal/src/main/java/org/gatein/portal/init/PortalCheckInitFilter.java We can fix it by checking per PortalContainer. But the issue which the customer is hitting is the next one. 2. The gap between "PortalContainer.isStarted" and deployment complete. As you can find in the RootContainer.createPortalContainer(), there is a gap between "pcontainer.start(true);" and "executeInitTasks(pcontainer, PortalContainerPostCreateTask.TYPE);" where PortalController.onInit() is actually executed. https://github.com/exoplatform/kernel/blob/stable/2.4.x/exo.kernel.container/src/main/java/org/exoplatform/container/RootContainer.java#L759-L766 So we need to add (or replace with) another status check. This issue is resolved by a custom filter which waits for server startup. The following article contains the filter and instructions: * NullPointerExceptions in log files when JPP 6 is accessed before fully started https://access.redhat.com/solutions/497133 |