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 199704 - RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct. Prematur
Summary: RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2bean...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 12:28 UTC by Exceptions Reporter
Modified: 2011-09-08 14:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171492


Attachments
stacktrace (2.30 KB, text/plain)
2011-06-26 12:28 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2011-06-26 12:28:33 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
dbcurtis: just starting netbeans

dbcurtis: just starting net beans

GUEST: started netbeans

dbcurtis: started playing with some of the windows using the window menu while nb was starting up.




Stacktrace: 
java.lang.RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Failed to create the XML-DOM Document.  Check your XML to make sure it is correct.
Premature end of file.
   at org.netbeans.modules.websvc.jaxwsmodel.project_config1_0.JaxWs.createGraph(JaxWs.java:235)
   at org.netbeans.modules.websvc.jaxwsmodel.project_config1_0.JaxWs.createGraph(JaxWs.java:226)
   at org.netbeans.modules.websvc.jaxwsmodel.project.JaxWsModelImpl.<init>(JaxWsModelImpl.java:101)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
Comment 1 Exceptions Reporter 2011-06-26 12:28:37 UTC
Created attachment 109112 [details]
stacktrace
Comment 2 Denis Anisimov 2011-09-07 16:27:17 UTC
Schema2Beans usage should be eliminated . It generates the code which throws unchecked RuntimeException instead of some specific checked exception.
Normally the model should be rewritten via XAM/XDM.

But this is too big work and not for upcoming release.

I will fix here the exception.
Comment 3 Denis Anisimov 2011-09-07 16:30:19 UTC
web-main#ed0156839d7a
Comment 4 Quality Engineering 2011-09-08 14:31:44 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ed0156839d7a
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#199704 - RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct. Prematur