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.
Summary: | Should not try to access DTD on the network | ||
---|---|---|---|
Product: | xml | Reporter: | Dongmei Cao <dongmeic> |
Component: | Text-Edit | Assignee: | Samaresh Panda <samaresh> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Sample project for reproducing the problem |
Description
Dongmei Cao
2008-02-21 18:07:51 UTC
You can try it out on any DTD based xml files, for example, sun-web.xml. I had to disconnect myself from the (slow) network so that the connection would fail right away and move on. The issue is in DTD Code completion code do not have the same capability as far as loading from catalog as the Schema Code completion. I think this is an enhancement, since this is a missing feature for DTD code completion. We can fix this after 6.1. I do not agree this an ENHANCEMENT. With this bug, the code completion for the Hibernate configuration and mapping files is unusable 50% of times. Can you please attach a sample xml document? Also please do mention the build or configuration I must use in order to see the problem. I attached a sample project for you to see the problem. I'm using the latest code from main. But you do need the Hibernate support modules in the main/contrib (hibernatelib and hibernate) installed for the attached sample project to work. Here is what you can do to get the Hibernate support modules: - clone the main/contrib (make sure you cd to main before cloning the main/contrib) - cd to main/contrib/hibernatelib and ant - cd to main/contrib/hibernate and ant - Now you have the Hibernate support modules - Open the attached the project; - Open the Hibernate configuration file - hibernate.cfg.xml, which is under the default package. - Try to edit the xml file, for example, add another <property>. It depends on the network and the web server for the dtd, sometimes, it is fast. But sometimes, it is very slow so that you get "Please wait...", then "No Suggestion". For you to see it is actually trying the access the dtd on the network, just disconnect yourself from the network when you're in the middle of editing the xml file. You'll get the INFO message as following in the IDE log INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: Software caused connection abort: connect INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: Software caused connection abort: connect INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: No route to host: connect INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: No route to host: connect Created attachment 57696 [details]
Sample project for reproducing the problem
You can also see the problem by editing the sun-web.xml. Just like the steps I listed for the attached sample project, create a web project and try to edit the sub-web.xml. In the middle of editing, disconnect your network. You'll see message like the following too: INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: Software caused connection abort: connect INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: No route to host: connect INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: No route to host: connect INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: No route to host: connect Fix integrated, http://hg.netbeans.org/main?cmd=changeset;node=2d51c2f933bc. Verified in a build from 3/06/08 |