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 80781 - IOException on File-New File command
Summary: IOException on File-New File command
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 08:20 UTC by Maksim Khramov
Modified: 2006-08-07 21:51 UTC (History)
3 users (show)

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 Maksim Khramov 2006-07-21 08:20:50 UTC
Launch IDE.
Create new Java Application project.
Invoke New-File command.
The IOException is thrown:
java.io.IOException: Invalid token '#' found in document: Please use the text
editor to resolve the issues...
	at
org.netbeans.modules.xml.xdm.nodes.XMLSyntaxParser.parse(XMLSyntaxParser.java:223)
	at org.netbeans.modules.xml.xdm.XDMModel.prepareSync(XDMModel.java:132)
	at org.netbeans.modules.xml.xdm.XDMModel.sync(XDMModel.java:122)
	at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(XDMAccess.java:109)
	at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:221)
	at
org.netbeans.modules.xml.xam.AbstractModelFactory.getModel(AbstractModelFactory.java:79)
	at
org.netbeans.modules.xml.wsdl.model.WSDLModelFactory.getModel(WSDLModelFactory.java:55)
	at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLEditorSupport.getWSDLDocument(WSDLEditorSupport.java:232)
	at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLDataObject.<init>(WSDLDataObject.java:72)
	at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLDataLoader.createMultiObject(WSDLDataLoader.java:107)
	at
org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:83)
	at org.openide.loaders.DataObjectPool.handleFindDataObject(DataObjectPool.java:129)
	at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:364)
	at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:408)
	at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:368)
	at org.openide.loaders.DataObject.find(DataObject.java:465)
	at org.openide.loaders.FolderList.createObjects(FolderList.java:628)
	at org.openide.loaders.FolderList.getObjects(FolderList.java:521)
	at org.openide.loaders.FolderList.access$200(FolderList.java:56)
	at org.openide.loaders.FolderList$ListTask.run(FolderList.java:886)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Sherry Barkodar 2006-07-21 16:18:24 UTC
This bug has impact on SynchronousSample Tutorial and needs to get fixed.
Comment 2 pcmreddy 2006-07-23 03:18:36 UTC
This issue is not reproduced in Netbeans 5.5 beta2.
From exception : It may be this is a regression caused by xdm modules.
Moving this issue to xdm.
Comment 3 pcmreddy 2006-07-23 03:31:06 UTC
This issue is a stopper for EntPack docs team.
making this as p1.
Comment 4 Chris Webster 2006-07-23 15:53:14 UTC
The wizard template is not well-formed XML and thus a new WSDL document cannot
be created. The WSDLDataObject has code like:

try {
            set.add(new ValidateXMLCookieImpl(editorSupport.getWSDLDocument()));
        } catch (IOException e) {
            ErrorManager.getDefault().notify(e);
        }

Where the ErrorManager.getDefault().notify(e) is producing the error notification.  
There are several ways to resolve this issue:

1. do not attempt to create a validation cookie if the file is from the default
filesystem (layer file Repository.getDefault())
2. do not attempt to create a validation cookie if the file has the template 
attribute (FileObject.getAttribute("template") set to true. 
3. Change the validationXMLCookieImpl to have an abstract getModel which is
delayed until actually needed. 

Reassigning to WSDL tools where the DataObject resides. 
Comment 5 Sergey Petrov 2006-07-24 13:15:32 UTC
issue affects 
Comment 6 Sergey Petrov 2006-07-24 13:16:49 UTC
issue affects postbuild smoke tests
Comment 7 Shivanand Kini 2006-07-25 20:25:26 UTC
there were some checkins yesterday as per chris's comments. please verify
whether this still occurs.
Comment 8 Maksim Khramov 2006-08-07 09:34:31 UTC
Verified in build 060802
Comment 9 lchang 2006-08-07 21:51:40 UTC
Verified in 0806_1 and it looks good.