This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 109058 - visual web pack designer does not open jsp
Summary: visual web pack designer does not open jsp
Status: RESOLVED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 22:20 UTC by tinhars
Modified: 2007-08-22 21:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log file (tar zipped) (33.05 KB, application/octet-stream)
2007-07-06 22:21 UTC, tinhars
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tinhars 2007-07-06 22:20:03 UTC
The visual web pack designer fails to open a jsp.
I imported a sun studio creator 2.1 project into netbean 5.5.1 (with visual web pack).
My Sun studio project also uses the Ajax progress bar blueprint component. Thus I also imported the Ajax component
library in netbeans.
After a lot of pains I was successfully (not really, that is why I am raising this bug) able to import the sun studio
project into netbeans. The successfully part only worked as in the project would not have unresolved Ajax reference
problems anymore.

BUT I am still having this issue that no jsp page of this project is opening up in the netbeans designer.
I get a bunch of exceptions form the designer with the message to  report this problem here.
Even a new empty page in this project fails to open in the designer. 

If I create a new empty project, those pages open in the designer.

Here are the last few exceptions in the message.log

INFORMATIONAL *********** Exception occurred ************ at 4:53 PM on Jul 6, 2007
java.lang.IllegalStateException: [Winsys] TopComponent MVCTC[name=TestAgentSelection *,
peer=[model=current=com.sun.rave.project.jsfloader.JsfJavaEditorSupport$JspDesc@1b13d36]] throws runtime exception from
its componentActivated() method. Repair it!
[catch] at org.openide.windows.WindowManager.activateComponent(WindowManager.java:255)
        at org.netbeans.core.windows.WindowManagerImpl.notifyRegistryTopComponentActivated(WindowManagerImpl.java:923)
        at org.netbeans.core.windows.Central.activateModeTopComponent(Central.java:1392)
        at org.netbeans.core.windows.WindowManagerImpl.topComponentRequestActive(WindowManagerImpl.java:1020)
        at org.openide.windows.TopComponent.requestActive(TopComponent.java:625)
        at com.sun.rave.project.jsfloader.JsfJavaEditorSupport.doOpenDesigner(JsfJavaEditorSupport.java:144)
        at com.sun.rave.project.jsfloader.JsfJavaEditorSupport$1.run(JsfJavaEditorSupport.java:129)
        at org.openide.util.Mutex.doEvent(Mutex.java:1158)
        at org.openide.util.Mutex.writeAccess(Mutex.java:375)
        at com.sun.rave.project.jsfloader.JsfJavaEditorSupport.openDesigner(JsfJavaEditorSupport.java:127)
        at com.sun.rave.project.jsfloader.JsfJspEditorSupport.openDesigner(JsfJspEditorSupport.java:99)
        at com.sun.rave.project.jsfloader.JsfJspDataObject$OpenEdit.open(JsfJspDataObject.java:160)
        at com.sun.rave.project.jsfloader.JsfJspOpenAction.performAction(JsfJspOpenAction.java:28)
        at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:537)
        at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
        at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:533)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

                                                                              5546,2-9      96%



*********** Exception occurred ************ at 4:53 PM on Jul 6, 2007
java.lang.NullPointerException
        at com.sun.rave.designer.SelectionManager.selectTextBetweenSelectedNodes(SelectionManager.java:1868)
        at com.sun.rave.designer.SelectionManager.updateNodesImmediate(SelectionManager.java:1844)
        at com.sun.rave.designer.SelectionManager$3.actionPerformed(SelectionManager.java:1720)
        at javax.swing.Timer.fireActionPerformed(Timer.java:271)
        at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
*********** Exception occurred ************ at 4:58 PM on Jul 6, 2007
*********** Exception occurred ************ at 4:58 PM on Jul 6, 2007
java.lang.ClassCastException: com.sun.rave.insync.beans.Bean cannot be cast to com.sun.rave.insync.faces.MarkupBean
        at com.sun.rave.insync.faces.FacesPageUnit.bind(FacesPageUnit.java:395)
        at com.sun.rave.insync.beans.BeansUnit.sync(BeansUnit.java:195)
        at com.sun.rave.insync.live.LiveUnit.sync(LiveUnit.java:297)
        at com.sun.rave.insync.live.LiveUnitWrapper.sync(LiveUnitWrapper.java:120)
        at com.sun.rave.insync.models.FacesModel.syncImpl(FacesModel.java:1008)
        at com.sun.rave.insync.Model.sync(Model.java:194)
        at com.sun.rave.insync.ModelSet$WindowManagerPropertyRegistry.processNodes(ModelSet.java:115)
        at com.sun.rave.insync.ModelSet$WindowManagerPropertyRegistry.propertyChange(ModelSet.java:133)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
        at org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryImpl.java:255)
        at org.netbeans.core.windows.RegistryImpl.tryFireChanges(RegistryImpl.java:228)
        at org.netbeans.core.windows.RegistryImpl.selectedNodesChanged(RegistryImpl.java:192)
        at org.netbeans.core.windows.RegistryImpl.topComponentActivated(RegistryImpl.java:144)
        at org.netbeans.core.windows.WindowManagerImpl.notifyRegistryTopComponentActivated(WindowManagerImpl.java:919)
        at org.netbeans.core.windows.Central.activateModeTopComponent(Central.java:1392)
        at org.netbeans.core.windows.WindowManagerImpl.topComponentRequestActive(WindowManagerImpl.java:1020)
        at org.openide.windows.TopComponent.requestActive(TopComponent.java:625)
        at org.netbeans.core.output2.OutputWindow.requestActive(OutputWindow.java:190)
        at org.netbeans.core.output2.OutputTab.requestActive(OutputTab.java:134)
        at org.netbeans.core.output2.OutputPane.mousePressed(OutputPane.java:161)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
        at java.awt.Component.processMouseEvent(Component.java:6035)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 tinhars 2007-07-06 22:21:29 UTC
Created attachment 44780 [details]
messages.log file (tar zipped)
Comment 2 Peter Zavadsky 2007-07-09 07:53:00 UTC
The cause, ClassCastException is from insync, passing there.
Comment 3 _ sandipchitale 2007-07-10 19:20:05 UTC
Tinhars, can you please attach your project.
Comment 4 _ sandipchitale 2007-07-10 23:20:00 UTC
I created a project that uses Ajax progress bar blueprint component in sun java studio creator 2.1. Then tried to open 
it in NetBeans 6.0 M10+ (trunk) and was able to open the page. So marking it as works for me. If you have a specific 
test case that will not work in NetBeans 6.0 M10+ build please reopen the bug with test project.
Comment 5 tinhars 2007-08-20 21:46:57 UTC
It still does not work for me. I now can supply my test project which opens correctly on Sun studio creator but does 
its web page not open in the designer Netbeans 6 milestone 10 release with teh visual web pack.

Note the projects opens & buils in Netbeans 6 but when I click on the DiscoveryConfigPage.jsp, the designer crashes 
with the previously posted exceptions.

Please try to open the DiscoveryConfigPage.jsp of the my test project in netbeans to reproduce my problem. The test 
project is 9.5 MB unbuilt & 19MB built. Please advise how I should supply it to you as the attachment on this link is 
limited to only 1 MB???

Comment 6 _ sandipchitale 2007-08-22 03:25:31 UTC
Please attach the message log for NetBeans 6.0 so that we can see exactly which exceptions you get now.

Also please try it on the NetBeans 6.0 nightly build as several bugs have been fixed since M10.
Comment 7 _ sandipchitale 2007-08-22 21:40:58 UTC
You can upload large(r) files at:

https://supportfiles.sun.com/upload