- This topic has 6 replies, 2 voices, and was last updated 20 years, 8 months ago by Scott Anderson.
-
AuthorPosts
-
Steve ViensMember– System Setup ——————————-
Operating System and version: Windows XP
Eclipse version: 3.0m7
Eclipse build id: 200402122000
Fresh Eclipse install (y):
If not, was it upgraded to its current version using the update manager? n/aOther installed external plugins:
<oXygen> http://www.oxygenxml.com
Checkstyle http://eclipse-cs.sourceforge.net/
Quantum http://quantum.sourceforge.net/Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
MyEclipse version:
Eclipse JDK version: 3.7
Application Server JDK version:
Are there any exceptions in the Eclipse log file? YES (see below)– Message Body ——————————-
When I right-click on any web.xml file MyEclipse stops responding and I have to force-quit via the Windows (XP) Task Manager and restart MyEclipse. No context-sensitive menu is ever displayed. I believe that I can wait (about 4-8 minutes) and use MyEclipse again without restarting.
I can double-click on web.xml to open it and I can right click on any other .xml file (including build.xml) or any other object in the package explorer tree (.html, .jsp, etc) and display the context-sensitive menu options in the popup menu.
The contents of a web.xml file are below.
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”>
<web-app><display-name>Mailman</display-name>
<servlet>
<servlet-name>MailmanServlet</servlet-name>
<display-name>Mailman Startup Servlet</display-name>
<description>Load This First!</description>
<servlet-class>com.fmr.ossc.mailman.MailmanServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet><welcome-file-list id=”WelcomeFileList”>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.shtml</welcome-file>
</welcome-file-list></web-app>
– Exceptions (from .metadata/.log) ———————
!ENTRY org.eclipse.ui.ide 4 4 Mar 17, 2004 15:50:46.104
!MESSAGE Problem parsing file
!ENTRY org.eclipse.ui.ide 4 4 Mar 17, 2004 15:50:46.114
!MESSAGE Problem parsing file
!STACK 0
java.net.ConnectException: Connection timed out: connect
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2870)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
at org.eclipse.ui.internal.ide.model.PropertyParser.parseResource(PropertyParser.java:125)
at org.eclipse.ui.internal.ide.model.WorkbenchResource.testXMLProperty(WorkbenchResource.java:243)
at org.eclipse.ui.internal.ide.model.WorkbenchResource.testAttribute(WorkbenchResource.java:118)
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.preciselyMatches(ActionExpression.java:375)
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:344)
at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:238)
at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:78)
at org.eclipse.ui.internal.ObjectActionContributor$ObjectContribution.isApplicableTo(ObjectActionContributor.java:234)
at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:155)
at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:249)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:121)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:98)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:119)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:286)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:370)
at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:367)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:383)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:857)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:838)
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3278)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2963)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1436)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2873)
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:220)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:2374)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2022)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
!ENTRY org.eclipse.ui.ide 4 4 Mar 17, 2004 15:51:07.175
!MESSAGE Problem parsing file
!ENTRY org.eclipse.ui.ide 4 4 Mar 17, 2004 15:51:07.175
!MESSAGE Problem parsing file
!STACK 0
java.net.ConnectException: Connection timed out: connect
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2870)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
at org.eclipse.ui.internal.ide.model.PropertyParser.parseResource(PropertyParser.java:125)
at org.eclipse.ui.internal.ide.model.WorkbenchResource.testXMLProperty(WorkbenchResource.java:243)
at org.eclipse.ui.internal.ide.model.WorkbenchResource.testAttribute(WorkbenchResource.java:118)
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.preciselyMatches(ActionExpression.java:375)
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:344)
at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:238)
at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:78)
at org.eclipse.ui.internal.ObjectActionContributor$ObjectContribution.isApplicableTo(ObjectActionContributor.java:234)
at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:155)
at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:249)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:129)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:98)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:119)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:286)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:370)
at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:367)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:383)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:857)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:838)
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3278)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2963)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1436)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2873)
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:220)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:2374)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2022)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
Steve ViensMemberIt seems to be happening on any file that declares a DTD. I’ve noticed that this happens to following files – and these declare a DTD:
application.xml
checkstyle.xmlHowever right-clicking works fine on files that do not declare a DTD:
build.xml
site.xml
juddi-users.xml
gump.xml
grapple-config.xmlFor the hell of it I added a DTD to the gump.xml doc and the problem occurred.
Hope this helps … perhaps it’s something I need to configure?
Steve
Steve ViensMemberI can get around this by specifying valid http proxy settings in:
Window->Preferences->Install/Update
Once I’ve set the proxy values and right-clicked on a specific file successfully I can always right-click on that file successfully even if I remove the http proxy settings. But if I attempt to open an XML doc that includes a DTD that I DID NOT open while the http proxy settings were set I’ll get the time out I mentioned above.
Also, to clarify, if I right-click on an XML doc that includes a DTD I realize that I do eventually see the context menu pop up … it just might take a minute or two before that happens (I was being too impatient before).
I hope this is helpful.
Steve
Scott AndersonParticipantSteve,
With the 3.7 GA release, an XML DTD cache is used by MyEclipse. Can you please check to see if it is enabled under Window > Prefereces > MyEclipse > XML Editor > Configuration? From your description, it looks like the XML builder is trying to download the referenced DTD, but this should only occur one time and only for DTD’s that do not ship with MyEclipse. That is, as long as the DTD cache is enabled. However, I’d never expect a download to occur with web.xml or application.xml as cached versions of these DTD’s are shipped in the product.
Steve ViensMemberScott, the under the “Validate” section the “Only Deployment Descriptors” is selected. Also all three checkboxes are checked.
As I mentioned before, everything works fine as long as I have valid proxy server settings specified in:
Window > Preferences > Install/Update > Proxy Settings
However, if I remove these proxy settings by unchecking “Enable HTTP Proxy Connection” and then click on any XML doc with a DTD that I HAD NOT clicked on when the proxy settings were set I recieve the long delay.
In our environment proxy settings are required to access the Internet.
Steve
Scott AndersonParticipantSteve,
Can you check your log file to see if any entries have been generated? It’s located in <workspace>/.metadata/.log
Also, you’re positive you’re running 3.7 GA, not the RC2 bulid?
Scott AndersonParticipantSteve,
I looked into this and it’s actually a bug in the Eclipse UI. They try to do a parse of your XML file while trying to determine what the context menu should look like. Heres the stack:
PlainSocketImpl.socketConnect(InetAddress, int, int) line: not available [native method]
PlainSocketImpl.doConnect(InetAddress, int, int) line: 305
PlainSocketImpl.connectToAddress(InetAddress, int, int) line: 171
PlainSocketImpl.connect(SocketAddress, int) line: 158
Socket.connect(SocketAddress, int) line: 426
Socket.connect(SocketAddress) line: 376
HttpClient(NetworkClient).doConnect(String, int) line: 139
HttpClient.openServer(String, int) line: 386
HttpClient$3.run() line: 435
AccessController.doPrivileged(PrivilegedExceptionAction) line: not available [native method]
HttpClient.privilegedOpenServer(String, int) line: 432
HttpClient.openServer() line: 592
HttpClient.<init>(URL, String, int, boolean) line: 303
HttpClient.<init>(URL, String, int) line: 264
HttpClient.New(URL, String, int, boolean) line: 336
HttpClient.New(URL, boolean) line: 317
HttpClient.New(URL) line: 312
HttpURLConnection.plainConnect() line: 481
HttpURLConnection.connect() line: 472
HttpURLConnection.getInputStream() line: 574
HttpURLConnection(HttpURLConnection).getResponseCode() line: 238
Resolver.createInputSource(URL, boolean) line: 287
ExternalEntity.getInputSource(EntityResolver) line: 92
Parser2.pushReader(ExternalEntity) line: 3133
Parser2.externalParameterEntity(ExternalEntity) line: 2868
Parser2.maybeDoctypeDecl() line: 1167
Parser2.parseInternal(InputSource) line: 489
Parser2.parse(InputSource) line: 305
XMLReaderImpl.parse(InputSource) line: 442
SAXParserImpl(SAXParser).parse(InputSource, DefaultHandler) line: 345
SAXParserImpl(SAXParser).parse(File, DefaultHandler) line: 281
PropertyParser.parseResource(IResource) line: 125
WorkbenchFile(WorkbenchResource).testXMLProperty(IResource, String, String) line: 243
WorkbenchFile(WorkbenchResource).testAttribute(Object, String, String) line: 118
ActionExpression$ObjectStateExpression.preciselyMatches(Object) line: 375
ActionExpression$ObjectStateExpression.isEnabledFor(Object) line: 344
ActionExpression$SingleExpression.isEnabledFor(Object) line: 238
ActionExpression.isEnabledFor(Object) line: 78
ObjectActionContributor$ObjectContribution.isApplicableTo(Object) line: 234
ObjectActionContributor.isApplicableTo(Object) line: 155
ObjectActionContributorManager(ObjectContributorManager).isApplicableTo(List, IObjectContributor) line: 249
ObjectActionContributorManager.contributeObjectActions(IWorkbenchPart, IMenuManager, ISelectionProvider) line: 121
PopupMenuExtender.addObjectActions(IMenuManager) line: 98
PopupMenuExtender.menuAboutToShow(IMenuManager) line: 119
MenuManager.fireAboutToShow(IMenuManager) line: 286
MenuManager.handleAboutToShow() line: 370
MenuManager.access$0(MenuManager) line: 367
MenuManager$2.menuShown(MenuEvent) line: 383
TypedListener.handleEvent(Event) line: 116
EventTable.sendEvent(Event) line: 82
Menu(Widget).sendEvent(Event) line: 833
Menu(Widget).sendEvent(int, Event, boolean) line: 857
Menu(Widget).sendEvent(int) line: 838
Shell(Control).WM_INITMENUPOPUP(int, int) line: 3278
Shell(Control).windowProc(int, int, int, int) line: 2963
Shell(Decorations).windowProc(int, int, int, int) line: 1436
Display.windowProc(int, int, int, int) line: 2873
OS.TrackPopupMenu(int, int, int, int, int, int, RECT) line: not available [native method]
Menu._setVisible(boolean) line: 220
Display.runPopups() line: 2374
Display.readAndDispatch() line: 2022
Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 1550
Workbench.runUI() line: 1526
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 265
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 139
IDEApplication.run(Object) line: 47
PlatformActivator$1.run() line: 257
EclipseStarter.run(String[], Runnable) line: 104
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object[]) line: 324
Main.basicRun(String[]) line: 279
Main.run(String[]) line: 742
Main.main(String[]) line: 581One of the other guys here posted it as a bug against the Eclipse UI as #55617 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=55617)
-
AuthorPosts