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 98413 - Modification of faces-config.xml causes exception
Summary: Modification of faces-config.xml causes exception
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Joelle Lam
URL:
Keywords:
Depends on: 98570
Blocks:
  Show dependency tree
 
Reported: 2007-03-21 01:01 UTC by Joanne Lau
Modified: 2007-04-24 20:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-03-21 01:01:31 UTC
NB: 200703191900
Visual Web Pack 6.0 Build 070319_20
1.5 Project

- Create a few pages, create link from one page to another
- Attempt to modify the navigation rules in the faces-config.xml,
  this causes the following exception:

SEVERE [global]
java.lang.IllegalStateException: attempted model write without invoking
startTransaction
        at
org.netbeans.modules.xml.xam.AbstractModel.validateWrite(AbstractModel.java:355)
        at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.verifyWrite(AbstractDocumentComponent.java:642)
        at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.setChildElementText(AbstractDocumentComponent.java:844)
        at
org.netbeans.modules.web.jsf.impl.facesmodel.NavigationCaseImpl.setToViewId(NavigationCaseImpl.java:78)
        at
org.netbeans.modules.web.jsf.navigation.PageFlowController.renamePageInModel(PageFlowController.java:412)
        at
org.netbeans.modules.web.jsf.navigation.PageFlowController$PageFlowNode.setName(PageFlowController.java:444)
        at
org.netbeans.modules.web.jsf.navigation.graph.PageFlowScene$PageNodeTextFieldInplaceEditor.setText(PageFlowScene.java:425)
        at
org.netbeans.modules.visual.action.TextFieldInplaceEditorProvider.notifyClosing(TextFieldInplaceEditorProvider.java:109)
        at
org.netbeans.modules.visual.action.TextFieldInplaceEditorProvider.notifyClosing(TextFieldInplaceEditorProvider.java:36)
        at
org.netbeans.modules.visual.action.InplaceEditorAction.closeEditor(InplaceEditorAction.java:141)
        at
org.netbeans.modules.visual.action.InplaceEditorAction.mousePressed(InplaceEditorAction.java:62)
        at
org.netbeans.api.visual.widget.SceneComponent$Operator$2.operate(SceneComponent.java:492)
        at
org.netbeans.api.visual.widget.SceneComponent.processLocationOperator(SceneComponent.java:227)
        at
org.netbeans.api.visual.widget.SceneComponent.mousePressed(SceneComponent.java:129)
        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)


 Another exception I'm also seeing but not always reproducible is:
java.lang.AssertionError
        at org.netbeans.api.visual.widget.Widget.removeChild(Widget.java:238)
        at
org.netbeans.modules.web.jsf.navigation.graph.PageFlowScene.removeMalFormedWidget(PageFlowScene.java:168)
        at
org.netbeans.modules.web.jsf.navigation.PageFlowView.removeUserMalFormedFacesConfig(PageFlowView.java:157)
        at
org.netbeans.modules.web.jsf.navigation.PageFlowController$FacesModelPropertyChangeListener.propertyChange(PageFlowController.java:345)
        at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at
org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireCompleteEventSet(AbstractModel.java:425)
        at
org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireEvents(AbstractModel.java:411)
        at
org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:292)
        at
org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:284)
        at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:231)
        at org.netbeans.modules.xml.xam.AbstractModel$1.run(AbstractModel.java:579)
        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)
Comment 1 Joelle Lam 2007-03-27 07:01:49 UTC
Related to 98570
Comment 2 Joelle Lam 2007-04-24 19:43:42 UTC
I believe this bug was fixed earlier on.
Comment 3 Joanne Lau 2007-04-24 20:05:33 UTC
Fix verified in Build 070424