[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1487) Error at seam project creation (in specific situation)

Rob Stryker (JIRA) jira-events at lists.jboss.org
Mon Jan 21 22:22:21 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1487?page=comments#action_12396107 ] 
            
Rob Stryker commented on JBIDE-1487:
------------------------------------

where is this error even appearing?  In an error log somewhere? I'm not seeing it in my error log view.

In all honesty, I'm unable to replicate this issue. I've made a change to the code within the guilty method, but I really am not able to replicate it right now.   My change is that if the singleton doesn't exist, then not to try to refresh the item.

Max:  
   What's wrong with using singleton views? In the view extension point, ti specifically asks if you want the user to be able to open multiple instances of the view. If the answer is no, then what is wrong with assuming a singleton view? I still do not understand the issue there. 

The real issue is that my APIs are not doing the proper checks to make sure the view is instantiated and *can* be refreshed. With only one JBoss Server's View, I see no problem with the children of the view assuming the singleton instance.

The children are initialized via extension points, and are essentially free-standing classes with no reference to their view. In fact, they're implemented as standalone content managers, preference pages, and property pages. When they're created they have no reference to which "view" created them, because they werent created by a view.  They were created on their own.

The delegates in the servers view tree (modules, xpaths, filesets, etc) have to alert the root view whenever its model changes. To ask the view to listen to its children (which it doesn't really have direct reference to) would be almost exactly the same as telling the children to alert the parent when things change (which they also do not have direct reference to except through the JBossServersView.getDefault() API.) 

> Error at seam project creation (in specific situation)
> ------------------------------------------------------
>
>                 Key: JBIDE-1487
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1487
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>    Affects Versions: 2.0.0.GA
>         Environment: WindowsXP SP2
> jbds-win32-1.0.0.GA.jar
> JBoss Developer Studio
> Version: 1.0.0.GA
> Build: 1.0.0.GA
> JDK 1.5_08
>            Reporter: Aliaksey Nis
>         Assigned To: Rob Stryker
>             Fix For: 2.0.1
>
>         Attachments: Error refreshing viewer.txt
>
>
> At new workspace.
> 1. Open Web Development Perspective. Do not open JBoss Server View! 
> 2. Window->Preferences->JBoss tools->JBoss Servers->View 
> 3. Uncheck some checkboxes. Press Apply button. 
> NPE will appears (JBIDE-1483). 
> 4. New > New project > Seam web project.
> 5. Create default Seam project, press Finish.
> Error appears. It seems this error is somehow related to JBIDE-1483 .
> Log attached 
> This issue will not be reproduced after JBoss Server View was opened. 

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

        



More information about the jbosstools-issues mailing list