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.
Seen with NB 6.7.1 (build NETBEANS_BUILD=200910061357) in GlassfishESB 2.2 build (20091007-0735). 1. Open a WSDL document in the WSDL view of the WSDL editor. 2. Right-click on Port Types and choose Add Port Type from the context menu. 3. In the Operation field, choose One-way Operation. 4. Click the OK button. => An error dialog shows a BadLocationException, and more details gives the following stack trace: javax.swing.text.BadLocationException: Invalid offset=4735, docLength=4733 at org.netbeans.editor.DocumentContent.checkOffset(DocumentContent.java:326) at org.netbeans.editor.DocumentContent.createPosition(DocumentContent.java:117) at javax.swing.text.AbstractDocument.createPosition(AbstractDocument.java:816) at org.netbeans.api.editor.fold.Fold.updateGuardedStartPos(Fold.java:411) at org.netbeans.api.editor.fold.Fold.insertUpdate(Fold.java:444) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldInsertUpdate(FoldHierarchy.java:413) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.insertCheckEndOffset(FoldHierarchyTransactionImpl.java:292) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.insertCheckEndOffset(FoldHierarchyTransactionImpl.java:289) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.insertCheckEndOffset(FoldHierarchyTransactionImpl.java:289) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.insertUpdate(FoldHierarchyTransactionImpl.java:262) at org.netbeans.modules.editor.fold.FoldHierarchyExecution.insertUpdate(FoldHierarchyExecution.java:703) at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:79) at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185) at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1623) at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:778) at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:655) at org.netbeans.modules.xml.xdm.visitor.Utils.replaceDocument(Utils.java:111) at org.netbeans.modules.xml.xdm.visitor.Utils.replaceDocument(Utils.java:123) at org.netbeans.modules.xml.xdm.XDMModel.flushDocument(XDMModel.java:875) at org.netbeans.modules.xml.xdm.XDMModel.flush(XDMModel.java:145) at org.netbeans.modules.xml.xdm.xam.XDMAccess.flush(XDMAccess.java:110) at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:326) at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:313) at org.netbeans.modules.xml.wsdl.ui.view.treeeditor.newtype.PortTypeNewType.create(PortTypeNewType.java:161) at org.openide.actions.NewAction.performAction(NewAction.java:100) at org.openide.actions.NewAction.access$100(NewAction.java:64) at org.openide.actions.NewAction$ActSubMenuModel.performActionAt(NewAction.java:245) at org.openide.actions.NewAction$DelegateAction.actionPerformed(NewAction.java:287) 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:1225) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4460) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) (If the dialog doesn't pop up, there is a red icon flashing in the lower-right-hand corner; click it to see the message. Also, the errors are written to the log file.) The IDE log file is attached. NOTE: I can only reproduce this problem when I have just opened NB and the WSDL file. Adding additional port types to the same document does not produce additional errors.
Created attachment 89569 [details] log file
Alexey, Nikita, please take a look. Seems to be very similar to 174597.
Seems like editor folding issue. http://www.netbeans.org/issues/show_bug.cgi?id=164342 Probably we need to port this to gfesb netbeans, or have 6.7 patched. Is there a new patch for 6.7 planned?
Adding 174597 as dependent (also caused by the editor fold issue), since Nikita is working on fixing that by porting the editor fold fix.
The issue depends on adding a patch of the issue #164342 to release67_fixes branch
This is fixed, since the bugs in depends on list are fixed. Also 164342 has been patched into 6.7, so should have been picked up by gfesb
Verified fixed with GlassfishESB V2.2 build 20091118-0720, which includes NETBEANS_BUILD=200911081801 NETBEANS_VERSION=6.7.1 SOA_BUILD=091117 NETBEANS_VERSION=Sierra/soarelease Build CODELINE=gfesbv22 CVS_TIMESTAMP=2009.11.18.06.10.05 The problem no longer occurs.