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.
Build: NetBeans IDE Dev (Build 200812180001) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: jonycus: Ma gonite se u trista picke materine Stacktrace: java.lang.IllegalStateException: Current thread has already started a transaction at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:346) at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:341) at org.netbeans.modules.maven.api.customizer.ModelHandle.<init>(ModelHandle.java:124) at org.netbeans.modules.maven.api.customizer.ModelHandle.<init>(ModelHandle.java:68) at org.netbeans.modules.maven.api.customizer.ModelHandle$AccessorImpl.createHandle(ModelHandle.java:108) at org.netbeans.modules.maven.spi.customizer.ModelHandleUtils.createModelHandle(ModelHandleUtils.java:90)
Created attachment 76292 [details] stacktrace
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.28-13-generic, amd64 User Comments: Selected "Properties" from the context menu on a maven webapp Stacktrace: java.lang.IllegalStateException: Current thread has already started a transaction at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:346) at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:341) at org.netbeans.modules.maven.api.customizer.ModelHandle.<init>(ModelHandle.java:124) at org.netbeans.modules.maven.api.customizer.ModelHandle.<init>(ModelHandle.java:68) at org.netbeans.modules.maven.api.customizer.ModelHandle$AccessorImpl.createHandle(ModelHandle.java:108) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.init(CustomizerProviderImpl.java:243)
Created attachment 84291 [details] stacktrace
This issue already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=143983
This issue already has 21 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=143983
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.28-13-generic, amd64 User Comments: Stacktrace: java.lang.IllegalStateException: Current thread has already started a transaction at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:346) at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:341) at org.netbeans.modules.maven.api.customizer.ModelHandle.<init>(ModelHandle.java:124) at org.netbeans.modules.maven.api.customizer.ModelHandle.<init>(ModelHandle.java:68) at org.netbeans.modules.maven.api.customizer.ModelHandle$AccessorImpl.createHandle(ModelHandle.java:108) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.init(CustomizerProviderImpl.java:243)
Created attachment 84578 [details] stacktrace
This issue already has 22 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=143983
This issue is easily repeatable. Right click on a maven project in the projects view, select properties from the context menu. Once the properties dialog box is open, right click again on the same project and choose properties again.
Alex, please take a look.
This issue has been reassigned to the "maven" module due to the following reason. An IllegalStateException is thrown because the constructor ModelHandle(...) (maven/src/org/netbeans/modules/maven/api/customizer/ModelHandle.java) contains statements: private ModelHandle(POMModel mdl, ProfilesModel profile, MavenProject proj, Map<String, ActionToGoalMapping> mappings, List<Configuration> configs, Configuration active, MavenProjectPropsImpl auxProps) { model = mdl; model.startTransaction(); ................................................................................ } When this constructor is invoked for the 2nd time (see the last scenario for reproducing of the bug from "neilg" Fri Jul 10 08:51:01), the previous transaction has been started already and has not been finished yet. The class "org.netbeans.modules.xml.xam.AbstractModel" contains the method "isIntransaction()" which allows to check whether a transaction initialized already or not. So, before starting of a new transaction the constructor "ModelHandle" should invoke the method "model.isIntransaction()" or use "try-catch" for handling an IllegalStateException.
the dialog has to be modal, I've always thought it is.. :( http://hg.netbeans.org/main/rev/ca35534e4f25
Integrated into 'main-golden', will be available in build *200907161401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/ca35534e4f25 User: Milos Kleint <mkleint@netbeans.org> Log: #157538 the project properties dialog has to be modal
v.