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 120353 - CC not working when offline for DTDs provided by a catalog
Summary: CC not working when offline for DTDs provided by a catalog
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 14:42 UTC by Erno Mononen
Modified: 2008-01-22 19:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack Overflow Error (19.07 KB, text/plain)
2008-01-22 19:32 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2007-10-29 14:42:18 UTC
Product Version: NetBeans IDE Dev (Build 200710241200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Linux version 2.6.22-14-386 running on i386; UTF-8; en_US (nb)

Code completion does not seem to work when offline for dtd based xml files even though the dtd is provided by a 
catalog. The following is printed to output:
INFO [org.netbeans.modules.xml.schema.completion.util.CompletionUtil]: No route to host

Steps to reproduce.
1. disable network access
2. create a new web application, target server GlassFish, J2EE 1.4, with JSF 
3. open faces-config.xml (which is a dtd based file)
4. invoke code completion => nothing happens

Note that the needed DTD (web-facesconfig_1_1.dtd) is provided by o.n.m.web.jsf.JSFCatalog (web/jsf module) so no 
network access should be required.
Comment 1 Sonali Kochar 2007-10-30 23:08:29 UTC
I tried this on JDK1.5.0_12 and Win XP and its seems to be working fine. I did the steps as outlined after verifing that
I was off the network.

Tony,

Can you try on linux?
Comment 2 tonybeckham 2008-01-22 19:31:37 UTC
System Info:
Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

When I try and switch to XML view (the default is page navigation view) for faces-config.xml I get a stack overflow
error that repeats forever.  Had to kill the ide.  I'll attach the exception.
Comment 3 tonybeckham 2008-01-22 19:32:37 UTC
Created attachment 55394 [details]
Stack Overflow Error
Comment 4 tonybeckham 2008-01-22 19:33:23 UTC
With networking enabled no SOE.
Comment 5 tonybeckham 2008-01-22 19:49:13 UTC
I don't know what caused the SOE I reported earlier.  I cannot reproduce that, it was a one time thing.
I was able to test the steps provided and there does not appear to be such an issue any longer.

Also, w/ 6.1 JSF version is 1.2 this does not support J2EE 1.4.  However, installing the JSF backward compatibility
plugin a 1.4 level project and JSF 1.1 project can be created. I tested both an EE5 and J2EE level project and JSF 1.2
and 1.1.02  for the project settings.  Both had CC when there was no connectivity.