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.
The DTD node action SAX Document Handler Wizard gives error message "Action failed due to internal error!" if the DTD file is located in any folder besides src. Steps: 1. Create a java application (create the following in another location besides src) 2. create purchase order sample 3. from this generate sample xml 4. from the xml file generate DTD 5. On the dtd try the action SAX Document Handler Wizard 6. When you try and finish the wizard the error is shown. System Info: Product Version: NetBeans IDE Dev (Build 200803051205) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)
Created attachment 57973 [details] Error message in console
Created attachment 57980 [details] error plain text
When you say a location other than src, do you mean test packages?
For a java project, if the dtd file is in any package other than default package this happens. For a BPEL project is is simple to see because all files must be in the project files folder.
Fixed.. I somehow didnt get the mercury notification. Here's the output of hg out changeset: 72021:123e0f8e1291 user: Sonali Kochar <sonali@netbeans.org> date: Fri Mar 07 10:12:54 2008 -0800 summary: Fix for http://www.netbeans.org/issues/show_bug.cgi?id=129531
Fix failed (or was not actually integrated that is why no mercurial notification)
Fixed: http://hg.netbeans.org/main/rev/a5ccc901576e
This fixes the problem for DTD located in package other than src for java projects, but same error still exists for BPEL projects. System Info: Product Version: NetBeans IDE Dev (Build 200806030004) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
Fixed: http://hg.netbeans.org/main/rev/5d7ca3b00a53
Fix Failed. There is no exception in the IDE but the IDE becomes hung. Attaching log and thread dump. Product Version: NetBeans IDE Dev (Build 200806040005) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
Created attachment 62382 [details] Log file for fix failed
Created attachment 62383 [details] Fix Failed thread dump
Interesting...Can you provide me some more info like what exactly you were trying to do when it occurred?
Create New BPEL Module project Add Purchase Order Schema Generate Sample XML w/ PurchaseOrder as root element From the XML document generate DTD For the DTD use the SAX Document handler Wizard accept all defaults When finishing the wizard this happens. On other platforms still get same Action Failed message but IDE still becomes hung at that point.
With new build (Build 200806050006) hang is not happening but problem persists.
For me, it generates all classes, however, I see that the generation is not perfect. I do not get any errors and no hang.
On Mac OS there is no exception thrown in the IDE, only in the log but the SAXBindings.xml file is not generated. On Linux the exception is thrown in the IDE, but similarly, the SAXBindings.xml file is not generated. Last tested on Build 080609
This has something to do with a bpel project. If you try the same in a java app or web app, it works fine. Note that the code generation requires class-path and package information. Sounds like bpel projects have no such notion. I realized that I cannot even create a package in bpel module. That tells me that it is specific to bpel and hence I have to lower the priority.
I realized, user cannot create a java class inside a bpel project. So I think we should track this as a separate issue (a task rather) that should not allow any form of java code generation in any non-java projects.
*** Issue 130372 has been marked as a duplicate of this issue. ***
Have you filed an issue about java classes in BPEL project? I think that the option for SAX Document Handler Wizard should be removed from the context menu for BPEL projects. Otherwise, I think this issue will be reported over and over by users.
Filed issue: http://www.netbeans.org/issues/show_bug.cgi?id=141207 Marking this issue as fixed
So, will the option for SAX Document Handler Wizard be removed from the context menu for BPEL projects?
*** Issue 143487 has been marked as a duplicate of this issue. ***