Wow, neat. Thanks for looking into this (and my apologies for not looking more carefully at the DTD and figuring it out myself)--i'm constantly amazed by the incredible support that all the JetBrains folks provide. IDEA is by FAR the best application I've ever used of any kind, and for any platform.
Back to the XML validator, i'm now left wondering...if IDEA is smart enough to auto-fetch DTDs from the net, do you plan to add an ALT-ENTER feature (similar to when IDEA suggests adding an import statement) that when an unknown URI to a DTD is detected, IDEA would ask the user something like "Download DTD? Alt+Enter". DTDs could then be saved in a config directory and IDEA could keep track of a mapping of URIs to DTDs (so that next time IDEA sees the same URI, it just uses the cached version). It seems to me that this feature would then make manual registration of External Resources completely unnecessary. thanks again, chris > -----Original Message----- > From: Mike Aizatsky [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 3:59 AM > To: [EMAIL PROTECTED] > Subject: RE: [Eap-list] [606 BUG] Initial Assertion upon XML validate > > > Bartley, > > I checked this issue once again, and found the reason why validator > tries to connect to internet. If you look inside XHTML DTD you'll find > that it has external references to files xhtml-lat1.ent, > xhtml-special.ent, xhtml-special.ent. Currently IDEA doesn't support > external references properly. Just give us some time. Sorry > that I said > that it's fixed in build #607. > > Best regards, > Mike Aizatsky. > ------------------------------ > IntelliJ Software, "Develop with pleasure!" http://www.intellij.com > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > On > > Behalf Of Bartley, Chris > > Sent: Thursday, February 28, 2002 2:29 AM > > To: '[EMAIL PROTECTED]' > > Subject: RE: [Eap-list] [606 BUG] Initial Assertion upon > XML validate > > > > Yes (but behind a firewall). > > > > Either way, however, IDEA shouldn't be trying to connect to the > internet > > since I have the URI for the DTD mapped as an External Resource (see > > original message). > > > > > -----Original Message----- > > > From: Daya Sharma [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 27, 2002 5:29 PM > > > To: [EMAIL PROTECTED] > > > Subject: RE: [Eap-list] [606 BUG] Initial Assertion upon XML > validate > > > > > > > > > Are you connected to the internet?, because the validator is > > > trying to access > > > the DTD and since there is no connection you get > > > ConnectException, better > > > error handling on the part of IntelliJ would be to inform the > > > user why the > > > validation couldn't be completed. > > > > > > -----Original Message----- > > > From: Bartley, Chris [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 27, 2002 4:18 PM > > > To: '[EMAIL PROTECTED]' > > > Subject: RE: [Eap-list] [606 BUG] Initial Assertion upon XML > validate > > > > > > > > > In #607, I still get an "Internal Error Occurred" dialog box, and > the > > > following stack trace: > > > > > > [ 306094] ERROR - Xml - > > > [ 306094] ERROR - Xml - IntelliJ > > > IDEA (Ariadna) > > > Build #607 > > > [ 306094] ERROR - Xml - JDK: 1.3.1_02 > > > [ 306094] ERROR - Xml - VM: Java > > > HotSpot(TM) > > > Client VM > > > [ 306094] ERROR - Xml - Vendor: > > > Sun Microsystems > > > Inc. > > > [ 306094] ERROR - Xml - OS: > Windows 2000 > > > [ 306094] ERROR - Xml - > > > java.net.ConnectException: Operation timed out: connect > > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > > at > > > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355) > > > at > > > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142) > > > at > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129) > > > at java.net.Socket.<init>(Socket.java:273) > > > at java.net.Socket.<init>(Socket.java:100) > > > at sun.net.NetworkClient.doConnect(NetworkClient.java:50) > > > at > sun.net.www.http.HttpClient.openServer(HttpClient.java:335) > > > at > sun.net.www.http.HttpClient.openServer(HttpClient.java:521) > > > at sun.net.www.http.HttpClient.<init>(HttpClient.java:271) > > > at sun.net.www.http.HttpClient.<init>(HttpClient.java:281) > > > at sun.net.www.http.HttpClient.New(HttpClient.java:293) > > > at > > > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCon > > > nection.java:4 > > > 04) > > > at > > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(Htt > > > pURLConnection > > > .java:497) > > > at java.net.URL.openStream(URL.java:798) > > > at > > > org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityM > > > anager.java:73 > > > 1) > > > at > > > org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEnti > > > tyManager.java > > > :691) > > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTD > > > ScannerImpl.ja > > > va:258) > > > at > > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.di > > > spatch(XMLDocu > > > mentScannerImpl.java:811) > > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > > > ment(XMLDocume > > > ntFragmentScannerImpl.java:333) > > > at > > > org.apache.xerces.parsers.StandardParserConfiguration.parse(St > > > andardParserCo > > > nfiguration.java:525) > > > at > > > org.apache.xerces.parsers.StandardParserConfiguration.parse(St > > > andardParserCo > > > nfiguration.java:581) > > > at > > > org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) > > > at > > > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP > > > arser.java:115 > > > 7) > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:394) > > > at com.intellij.xml.actions.a.run(a.java:1) > > > at java.lang.Thread.run(Thread.java:484) > > > > > > > -----Original Message----- > > > > From: Mike Aizatsky [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, February 27, 2002 11:37 AM > > > > To: [EMAIL PROTECTED] > > > > Subject: RE: [Eap-list] [606 BUG] Initial Assertion upon > > > XML validate > > > > > > > > > > > > Chris, > > > > > > > > This is fixed in build #607. > > > > > > > > Best regards, > > > > Mike Aizatsky. > > > > ------------------------------ > > > > IntelliJ Software, "Develop with pleasure!" > http://www.intellij.com > > > > > > > > > > > > > -----Original Message----- > > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]] > > > > On > > > > > Behalf Of Bartley, Chris > > > > > Sent: Wednesday, February 27, 2002 7:00 PM > > > > > To: '[EMAIL PROTECTED]' > > > > > Subject: [Eap-list] [606 BUG] Initial Assertion upon XML > validate > > > > > > > > > > Win2k sp1, jdk 1.3.1_02, build #606: > > > > > > > > > > I tried out the XML validation on the following > trivial XML file > > > > (named > > > > > test.xml): > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > > > > "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1- > > > > > transitional.dtd"> > > > > > <html xmlns="http://www.w3.org/1999/xhtml"> > > > > > <head> > > > > > <title>Test</title> > > > > > </head> > > > > > <body> > > > > > test > > > > > </body> > > > > > </html> > > > > > > > > > > I have the URI mapped correctly in External Resources > > > (i'm sure it's > > > > > correct > > > > > because tag completion works). > > > > > > > > > > When i right-clicked and selected Validate, the > validation pane > > > > opened. > > > > > IDEA appeared to be doing *something* (the Stop button > > > wasn't greyed > > > > out > > > > > like it was in 605), but after about 20-30 seconds an Initial > > > > Assertion > > > > > dialog appeared and i found the stack trace below in the > console. > > > > > > > > > > thanks, > > > > > > > > > > chris > > > > > =========================================================== > > > > > > > > > > [ 101828] ERROR - Xml - > > > > > java.net.ConnectException: Operation timed out: connect > > > > > at > java.net.PlainSocketImpl.socketConnect(Native Method) > > > > > at > > > > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355) > > > > > at > > > > > > > > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142) > > > > > at > > > > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129) > > > > > at java.net.Socket.<init>(Socket.java:273) > > > > > at java.net.Socket.<init>(Socket.java:100) > > > > > at > sun.net.NetworkClient.doConnect(NetworkClient.java:50) > > > > > at > > > > sun.net.www.http.HttpClient.openServer(HttpClient.java:335) > > > > > at > > > > sun.net.www.http.HttpClient.openServer(HttpClient.java:521) > > > > > at > sun.net.www.http.HttpClient.<init>(HttpClient.java:271) > > > > > at > sun.net.www.http.HttpClient.<init>(HttpClient.java:281) > > > > > at > sun.net.www.http.HttpClient.New(HttpClient.java:293) > > > > > at > > > > > > > > > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCon > > > > nection.ja > > > > va > > > > > :4 > > > > > 04) > > > > > at > > > > > > > > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(Htt > > > > pURLConnec > > > > ti > > > > > on > > > > > .java:497) > > > > > at java.net.URL.openStream(URL.java:798) > > > > > at > > > > > > > > > org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityM > > > > anager.jav > > > > a: > > > > > 73 > > > > > 1) > > > > > at > > > > > > > > > org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEnti > > > > tyManager. > > > > ja > > > > > va > > > > > :691) > > > > > at > > > > > > > > > org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTD > > > > ScannerImp > > > > l. > > > > > ja > > > > > va:258) > > > > > at > > > > > > > > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.di > > > > spatch(XML > > > > Do > > > > > cu > > > > > mentScannerImpl.java:811) > > > > > at > > > > > > > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > > > > ment(XMLDo > > > > cu > > > > > me > > > > > ntFragmentScannerImpl.java:333) > > > > > at > > > > > > > > > org.apache.xerces.parsers.StandardParserConfiguration.parse(St > > > > andardPars > > > > er > > > > > Co > > > > > nfiguration.java:525) > > > > > at > > > > > > > > > org.apache.xerces.parsers.StandardParserConfiguration.parse(St > > > > andardPars > > > > er > > > > > Co > > > > > nfiguration.java:581) > > > > > at > > > > org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) > > > > > at > > > > > > > > > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP > > > > arser.java > > > > :1 > > > > > 15 > > > > > 7) > > > > > at > javax.xml.parsers.SAXParser.parse(SAXParser.java:394) > > > > > at com.intellij.xml.actions.a.run(a.java:3) > > > > > at java.lang.Thread.run(Thread.java:484) > > > > > > > > > > _______________________________________________ > > > > > Eap-list mailing list > > > > > [EMAIL PROTECTED] > > > > > http://www.intellij.com/mailman/listinfo/eap-list > > > > > > > > > > > > _______________________________________________ > > > > Eap-list mailing list > > > > [EMAIL PROTECTED] > > > > http://www.intellij.com/mailman/listinfo/eap-list > > > > > > > > > > _______________________________________________ > > > Eap-list mailing list > > > [EMAIL PROTECTED] > > > http://www.intellij.com/mailman/listinfo/eap-list > > > > > > _______________________________________________ > > > Eap-list mailing list > > > [EMAIL PROTECTED] > > > http://www.intellij.com/mailman/listinfo/eap-list > > > > > > > _______________________________________________ > > Eap-list mailing list > > [EMAIL PROTECTED] > > http://www.intellij.com/mailman/listinfo/eap-list > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
