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 159272 - IllegalStateException: Current thread has already started a transaction
Summary: IllegalStateException: Current thread has already started a transaction
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: XAM (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ alexpetrov
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-27 01:48 UTC by odisley
Modified: 2009-11-06 01:43 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 8177


Attachments
stacktrace (6.62 KB, text/plain)
2009-02-27 01:48 UTC, odisley
Details
The "corrupt" file (954 bytes, text/xml)
2009-07-08 15:30 UTC, neilyboy
Details
VisualWeb application (27.28 KB, application/octet-stream)
2009-07-16 12:16 UTC, _ alexpetrov
Details
screenshot (29.78 KB, image/png)
2009-07-16 12:19 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description odisley 2009-02-27 01:48:17 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments:
GUEST: I was unable to navigate to other page through one page.

GUEST: close project

GUEST: I am deleting the whole project.

GUEST: Linking an hyperlink to a jsp page on a faces-config.xml pageflow.

GUEST: I was trying to delete a visual mapping of navigation case in the faces-config.xml. I had edited the condition name but it would not lose focus on thecondition (case) name edit so then I tried to delete it. Then I tried closing the file and discarding changes and I got the error.

jiai: Trying to use the PageFlow view of Netbeans ... sorry, but NB 6.01 is garbage!

brviking: Editing page navigation.

GUEST: Unable to close face-config.xml.

IDE refuses to close file.



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.sync(AbstractModel.java:257)
        at org.netbeans.modules.web.jsf.JSFConfigEditorSupport.notifyClosed(JSFConfigEditorSupport.java:372)
        at org.netbeans.modules.web.jsf.JSFConfigEditorSupport$CloseHandler.resolveCloseOperation(JSFConfigEditorSupport.java:463)
        at org.netbeans.core.multiview.MultiViewPeer.canClose(MultiViewPeer.java:549)
        at org.netbeans.core.multiview.MultiViewCloneableTopComponent.canClose(MultiViewCloneableTopComponent.java:295)
Comment 1 odisley 2009-02-27 01:48:22 UTC
Created attachment 77438 [details]
stacktrace
Comment 2 neilyboy 2009-07-08 14:27:28 UTC
This problem has now resulted in my netbeans becoming totaly unusable

The faces-config file would not close, project would not close, changed to another project group which took a while.
Eventualy opened other project group, plus the offending faces-config from the prior project. Changed back and closed
netbeans.
Now on opening netbeans I see the start page and the rogue faces-config file and nothing responds.

Comment 3 neilyboy 2009-07-08 15:29:18 UTC
After removing the faces-config.NavData in the nbproject directory netbeans will now start.
So looks like something is corrupting the file and then the file is causing netbeans to freeze up on start.
Comment 4 neilyboy 2009-07-08 15:30:45 UTC
Created attachment 84503 [details]
The "corrupt" file
Comment 5 Exceptions Reporter 2009-07-10 09:30:48 UTC
This issue already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=8177
Comment 6 Sergey Lunegov 2009-07-10 10:01:30 UTC
Nikita, please take a look.
Comment 7 Exceptions Reporter 2009-07-10 11:57:54 UTC
This issue already has 51 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=8177
Comment 8 Exceptions Reporter 2009-07-10 12:02:34 UTC
This issue already has 52 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=8177
Comment 9 Sergey Lunegov 2009-07-15 05:34:39 UTC
Alex, try to reproduce it on current NB trunk build.
Comment 10 _ alexpetrov 2009-07-16 12:10:32 UTC
This bug is not reproducible on NB trunk release:

Product Version: NetBeans IDE Dev (Build 200907140201)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86;

My steps:
1. Install Visual Wev JSF plugin.
2. Create a new Web Application (see the appropriate attachment) with Visual Web Designer for JSF components
3. Create a new JSF web page Page2
4. Put a label and a button on Visual Designer of Page1.jsp and Page2.jsp
5. Open faces-config.xml and create 2 links: Page1.button1 -> Page2 and Page2.button1 -> Page1
6. Save all changed files and close faces-config.xml
   No any exception was thrown.
7. Open faces-config.xml, change edit mode from "PageFlow" to "XML", change xml-source of faces-config.xml to make this
document invalid.
8. Save all changed files and close faces-config.xml
   No any exception was thrown.
9. Restore correct xml-source of faces-config.xml and save.
10. Deploy this web application on Glassfish V2.
    Web application is running properly (see the attached screenshot).
Comment 11 _ alexpetrov 2009-07-16 12:11:22 UTC
This bug is not reproducible on NB trunk release:

Product Version: NetBeans IDE Dev (Build 200907140201)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86;

My steps:
1. Install Visual Wev JSF plugin.
2. Create a new Web Application (see the appropriate attachment) with Visual Web Designer for JSF components
3. Create a new JSF web page Page2
4. Put a label and a button on Visual Designer of Page1.jsp and Page2.jsp
5. Open faces-config.xml and create 2 links: Page1.button1 -> Page2 and Page2.button1 -> Page1
6. Save all changed files and close faces-config.xml
   No any exception was thrown.
7. Open faces-config.xml, change edit mode from "PageFlow" to "XML", change xml-source of faces-config.xml to make this
document invalid.
8. Save all changed files and close faces-config.xml
   No any exception was thrown.
9. Restore correct xml-source of faces-config.xml and save.
10. Deploy this web application on Glassfish V2.
    Web application is running properly (see the attached screenshot).
Comment 12 _ alexpetrov 2009-07-16 12:16:18 UTC
Created attachment 84825 [details]
VisualWeb application
Comment 13 _ alexpetrov 2009-07-16 12:19:38 UTC
Created attachment 84826 [details]
screenshot