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 148167 - [65cat] IllegalStateException: attempted model write without invoking startTransaction
Summary: [65cat] IllegalStateException: attempted model write without invoking startTr...
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Shivanand Kini
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 09:08 UTC by rajivderas
Modified: 2016-07-07 09:56 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 12780


Attachments
stacktrace (2.32 KB, text/plain)
2008-09-24 09:09 UTC, rajivderas
Details
stacktrace (2.32 KB, text/plain)
2008-09-24 09:13 UTC, rajivderas
Details
stacktrace (2.05 KB, text/plain)
2008-11-04 19:13 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-09-24 09:08:54 UTC
Build: NetBeans IDE Dev (Build 200809231435)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments:
rajivderas: Steps to reproduce:
1) Created a new WS in EJB module project
2) Add an operation to the WS in source editor mode 
3) View it in design mode and again switch to source mode and delete the operation and go again to design mode
4) Then refactor rename the service name
5) Then open the WS file in preview mode and goto the navigator and selet Bindings and right click it and select delete http bindings

pkaczyns: Tried to delete one component from within CASA editor

rajivderas: Steps to reproduce:
1) Created a new WS in EJB module project
2) Add an operation to the WS in source editor mode 
3) View it in design mode and again switch to source mode and delete the operation and go again to design mode
4) Then refactor rename the service name
5) Then open the WS file in preview mode and goto the navigator and selet Bindings and right click it and select delete http bindings



Stacktrace: 
java.lang.IllegalStateException: attempted model write without invoking startTransaction
        at org.netbeans.modules.xml.xam.AbstractModel.validateWrite(AbstractModel.java:418)
        at org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.verifyWrite(AbstractDocumentComponent.java:666)
        at org.netbeans.modules.xml.xam.AbstractComponent.removeChild(AbstractComponent.java:356)
        at org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase.removeExtensibilityElement(WSDLComponentBase.java:145)
        at org.netbeans.modules.xml.wsdl.model.impl.ChildComponentUpdateVisitor.visit(ChildComponentUpdateVisitor.java:389)
        at org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement.accept(GenericExtensibilityElement.java:72)
Comment 1 rajivderas 2008-09-24 09:09:03 UTC
Created attachment 70412 [details]
stacktrace
Comment 2 rajivderas 2008-09-24 09:12:17 UTC
Steps to reproduce:
1) Created a new WS in EJB module project
2) Add an operation to the WS in source editor mode 
3) View it in design mode and again switch to source mode and delete the operation and go again to design mode
4) Then refactor rename the service name
5) Then open the WS file in preview mode and goto the navigator and selet Bindings and right click it and select delete
http bindings> Add http bindings
6) In the WSDL view in editor select  binding > new webservice port bindings >http:binding from binding and delete
Comment 3 rajivderas 2008-09-24 09:12:56 UTC
Build: NetBeans IDE Dev (Build 200809231435)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments: 
Steps to reproduce:
1) Created a new WS in EJB module project
2) Add an operation to the WS in source editor mode 
3) View it in design mode and again switch to source mode and delete the operation and go again to design mode
4) Then refactor rename the service name
5) Then open the WS file in preview mode and goto the navigator and selet Bindings and right click it and select delete http bindings> Add http bindings
6) In the WSDL view in editor select  binding > new webservice port bindings >http:binding from binding and delete

Stacktrace: 
java.lang.IllegalStateException: attempted model write without invoking startTransaction
        at org.netbeans.modules.xml.xam.AbstractModel.validateWrite(AbstractModel.java:418)
        at org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.verifyWrite(AbstractDocumentComponent.java:666)
        at org.netbeans.modules.xml.xam.AbstractComponent.removeChild(AbstractComponent.java:356)
        at org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase.removeExtensibilityElement(WSDLComponentBase.java:145)
        at org.netbeans.modules.xml.wsdl.model.impl.ChildComponentUpdateVisitor.visit(ChildComponentUpdateVisitor.java:389)
        at org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement.accept(GenericExtensibilityElement.java:72)
Comment 4 rajivderas 2008-09-24 09:13:00 UTC
Created attachment 70414 [details]
stacktrace
Comment 5 rajivderas 2008-09-24 09:14:00 UTC
Steps to reproduce:
1) Created a new WS in EJB module project
2) Add an operation to the WS in source editor mode 
3) View it in design mode and again switch to source mode and delete the operation and go again to design mode
4) Then refactor rename the service name
5) Then open the WS file in preview mode and goto the navigator and selet Bindings and right click it and select delete
http bindings> Add http bindings
6) In the WSDL view in editor select  binding > new webservice port bindings >http:binding from binding and delete
Comment 6 Samaresh Panda 2008-09-24 16:46:56 UTC
Likely a wrong usage of model transaction. Should be fixed by the consumer.
Comment 7 Sergey Lunegov 2008-10-01 15:47:20 UTC
Changed target milestone.
Comment 8 sunbiz 2008-11-04 19:13:34 UTC
Build: NetBeans IDE Dev (Build 200811011401)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IllegalStateException: attempted model write without invoking startTransaction
        at org.netbeans.modules.xml.xam.AbstractModel.validateWrite(AbstractModel.java:418)
        at org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.verifyWrite(AbstractDocumentComponent.java:666)
        at org.netbeans.modules.xml.xam.AbstractComponent.removeChild(AbstractComponent.java:356)
        at org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase.removeExtensibilityElement(WSDLComponentBase.java:145)
        at org.netbeans.modules.xml.wsdl.model.impl.ChildComponentUpdateVisitor.visit(ChildComponentUpdateVisitor.java:389)
        at org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement.accept(GenericExtensibilityElement.java:72)
Comment 9 sunbiz 2008-11-04 19:13:43 UTC
Created attachment 73230 [details]
stacktrace
Comment 10 Exceptions Reporter 2009-06-18 20:01:31 UTC
This issue already has 13 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=12780
Comment 11 Martin Balin 2016-07-07 09:56:40 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss