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 89168 - DOM graph creation failed
Summary: DOM graph creation failed
Status: VERIFIED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: bhate
URL:
Keywords: RANDOM, TEST
Depends on:
Blocks:
 
Reported: 2006-11-12 15:58 UTC by Lukas Jungmann
Modified: 2007-08-27 10:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2006-11-12 15:58:44 UTC
[own 6.0 w/ enabled websvc/core module; dup of issue 81501]

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.

might still randomly happen when creating new websvc client in emtpy j2se
project (empty = any j2se project wo/ jax-ws.xml file) because of incorrect
condition in J2SEProject.getJaxWsModel():

if (fo==null)
    jaxWsModel =
JaxWsModelProvider.getDefault().getJaxWsModel(WSUtils.class.getResource...);
else 
    jaxWsModel = JaxWsModelProvider.getDefault().getJaxWsModel(fo);

The exception is thrown by JaxWsModelProvider.getDefault().getJaxWsModel(fo) in
case when fo != null, but the file represented by fo does not exists on the disk
(is not valid).

this should fix the problem:
< if (fo==null)
-----
> if (fo==null || !fo.isValid())
Comment 1 Lukas Jungmann 2007-07-17 21:51:54 UTC
cannot reproduce any more
Comment 2 Lukas Jungmann 2007-08-27 10:39:35 UTC
v.