[embjopr-issues] [JBoss JIRA] Updated: (EMBJOPR-62) NavigationAction Seam component being recreated whenever an Event it is listening for is raised from EmbeddedInventoryEventListener

Charles Crouch (JIRA) jira-events at lists.jboss.org
Fri Dec 19 19:26:56 EST 2008


     [ https://jira.jboss.org/jira/browse/EMBJOPR-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Crouch updated EMBJOPR-62:
----------------------------------

    Environment: jbas4 console in jbas 4.2.2


> NavigationAction Seam component being recreated whenever an Event it is listening for is raised from EmbeddedInventoryEventListener
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: EMBJOPR-62
>                 URL: https://jira.jboss.org/jira/browse/EMBJOPR-62
>             Project: Embedded Jopr
>          Issue Type: Bug
>          Components: Web App/Integration
>    Affects Versions: 1.1
>         Environment: jbas4 console in jbas 4.2.2
>            Reporter: Charles Crouch
>
> Found this while investigating why NavigationAction.updateNavWithDeletedResource could never find the resource in the navigation that it was trying to remove. It turns out that before the event is received NavigationAction is recreated so its rootNode member variable holding the navigation is recreated. The existing inventory is used to recreate the nav, which obviously doesn't include the deleted resource, so when updateNavWithDeletedResource looks in this new nav it doesn't find the resource.
> Not sure if this is our bug or a bug in Seam. The following log snippet shows the resource being removed, then the event dispatched, then the navigationAction component being re-intialized.
> I saw this same reinit happen when resources were created too, so its not delete specific. The easiest way to reproduce is to add a breakpoint to
> NavigationAction.createJONTreeNode() and then either remove or add resources to the filesystem and trigger a rediscovery by clicking around the UI.
> 2008-12-19 16:25:12,421 INFO  [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] (InventoryManager.discovery-1) Removing stale Resource[id=-76, type=Script, key=C:\usr\apps\jboss\jboss-4.2.2.GA\bin\wsconsume.bat, name=wsconsume.bat]...
> 2008-12-19 16:25:12,421 DEBUG [org.rhq.core.pc.inventory.InventoryManager] (InventoryManager.discovery-1) Removing Resource[id=-76, type=Script, key=C:\usr\apps\jboss\jboss-4.2.2.GA\bin\wsconsume.bat, name=wsconsume.bat] from local inventory...
> 2008-12-19 16:25:12,421 DEBUG [org.rhq.core.pc.inventory.InventoryManager] (InventoryManager.discovery-1) Successfully deactivated resource with id [-76].
> 2008-12-19 16:25:12,421 DEBUG [org.rhq.core.pc.inventory.InventoryManager] (InventoryManager.discovery-1) Set component state to STOPPED for resource with id [-76].
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.on.embedded.LoggingInventoryEventListener] (InventoryManager.discovery-1) The following resources have been removed
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.on.embedded.LoggingInventoryEventListener] (InventoryManager.discovery-1) Resource[-76]: wsconsume.bat
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.contexts.Lifecycle] (InventoryManager.discovery-1) >>> Begin call
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) instantiating Seam component: org.jboss.seam.core.events
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.events
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) initializing new instance of: org.jboss.seam.core.events
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) done initializing: org.jboss.seam.core.events
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.events
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.inventoryEventListener
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.inventoryEventListener
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.this
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.this
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.method
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.method
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.parameters
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.parameters
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.component
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.component
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:resourceDeleted
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) instantiating Seam component: navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) initializing new instance of: navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) done initializing: navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postCreate.navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.this
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.this
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.method
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.method
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.parameters
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.parameters
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.component
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.component
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) trying to inject from specified context: navTree, scope: SESSION
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) trying to inject with hierarchical context search: rootNode
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.contexts.Contexts] (InventoryManager.discovery-1) found in method context: navigationAction
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:navTreeInitialized
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.contexts.Contexts] (InventoryManager.discovery-1) found in application context: inventoryEventListener
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.inventoryEventListener
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.inventoryEventListener
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.this
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.this
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.method
> 2008-12-19 16:25:12,421 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.method
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.parameters
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.parameters
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.component
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.component
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.rootNode
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.rootNode
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) instantiating Seam component: org.jboss.seam.web.parameters
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) initializing new instance of: org.jboss.seam.web.parameters
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) done initializing: org.jboss.seam.web.parameters
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) instantiating Seam component: org.jboss.seam.web.servletContexts
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.web.servletContexts
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.web.servletContexts
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) initializing new instance of: org.jboss.seam.web.servletContexts
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.Component] (InventoryManager.discovery-1) done initializing: org.jboss.seam.web.servletContexts
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.seam.core.Events] (InventoryManager.discovery-1) Processing event:org.jboss.seam.postCreate.org.jboss.seam.web.servletContexts
> 2008-12-19 16:25:12,437 INFO  [org.jboss.on.embedded.ui.NavigationAction] (InventoryManager.discovery-1) Resource [Resource[id=-76, type=Script, key=C:\usr\apps\jboss\jboss-4.2.2.GA\bin\wsconsume.bat, name=wsconsume.bat]] deleted.
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()
> 2008-12-19 16:25:12,437 DEBUG [org.jboss.on.embedded.ui.nav.BaseTreeNode] (InventoryManager.discovery-1) About to call initChildrenMap()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the embjopr-issues mailing list