Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » content assist -> UnknownHostException
content assist -> UnknownHostException [message #473709] Wed, 22 November 2006 05:34 Go to next message
Eclipse User
Originally posted by: tino.scherlich.googlemail.com

Hi!

I use eclipse with wtp + jsf behind a firewall.
If I try to use the content assist in EL parts to get some beans or
their properties, I get an UnknownHostException: java.sun.com.
Content assist on taglibs is working fine.

What's wrong here?

Tino


..log:

!ENTRY org.eclipse.ui 4 4 2006-11-22 11:28:05.714
!MESSAGE "Content Assist" did not complete normally. Please see the log
for more information.

!ENTRY org.eclipse.ui 4 0 2006-11-22 11:28:05.714
!MESSAGE java.net.UnknownHostException: java.sun.com
!STACK 0
org.eclipse.emf.common.util.WrappedException:
java.net.UnknownHostException: java.sun.com
at
org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:97)
at
org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
at
org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
at
org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
at
org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.load(TranslatorResourceImpl.java:388)
at
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J ARFileJSFAppConfigProvider.getFacesConfigModel(JARFileJSFApp ConfigProvider.java:87)
at
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getFacesConfigModels(JSFAppConfigManager. java:404)
at
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getManagedBeans(JSFAppConfigManager.java: 439)
at
org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getManagedBeanSymbols(Defaul tBeanSymbolSourceProvider.java:124)
at
org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getSymbols(DefaultBeanSymbol SourceProvider.java:82)
at
org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.addBeanSymbols(DefaultDTVariableResolve r.java:149)
at
org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.getAllVariables(DefaultDTVariableResolv er.java:115)
at
org.eclipse.jst.jsf.designtime.internal.provisional.resolver .SymbolContextResolver.getAllVariables(SymbolContextResolver .java:75)
at
org.eclipse.jst.jsf.contentassist.internal.el.IdCompletionSt rategy.getProposals(IdCompletionStrategy.java:77)
at
org.eclipse.jst.jsf.contentassist.internal.el.JSFELContentAs sistProcessor.computeCompletionProposals(JSFELContentAssistP rocessor.java:101)
at
org.eclipse.wst.sse.ui.internal.contentassist.CompoundConten tAssistProcessor.computeCompletionProposals(CompoundContentA ssistProcessor.java:233)
at
org.eclipse.jface.text.contentassist.ContentAssistant.comput eCompletionProposals(ContentAssistant.java:1612)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeProposals(CompletionProposalPopup.java:473)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$17(CompletionProposalPopup.java:470)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(CompletionProposalPopup.java:405)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProposals(CompletionProposalPopup.java:399)
at
org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCompletions(ContentAssistant.java:1441)
at
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOpera tion(StructuredTextViewer.java:376)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOper ationAction.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperat ionAction.java:129)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:461)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:424)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:160)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:466)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:799)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:846)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:564)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:506)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:122)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982 )
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:19 25)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2966)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.net.UnknownHostException: java.sun.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unk nown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.set upCurrentEntity(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtEntity(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtDTDEntity(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.se tInputSource(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$DTDDispatcher.dispatch(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
Source)
at
org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:93)
... 72 more
Re: content assist -> UnknownHostException [message #473712 is a reply to message #473709] Mon, 27 November 2006 13:18 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Are you also behind an http proxy? If so, you will need to go to
Windows->Preferences->Internet->Proxy Settings and configure your proxy.
This is a known issue where the logic that processes the faces-config file
to load bean information tries to cache the DTD for the config file. If
it fails to connect it can cause these sorts of problems.

You can monitor https://bugs.eclipse.org/bugs/show_bug.cgi?id=154439 to
track this issue.


--Cam

Tino Scherlich wrote:

> Hi!

> I use eclipse with wtp + jsf behind a firewall.
> If I try to use the content assist in EL parts to get some beans or
> their properties, I get an UnknownHostException: java.sun.com.
> Content assist on taglibs is working fine.

> What's wrong here?

> Tino


> ..log:

> !ENTRY org.eclipse.ui 4 4 2006-11-22 11:28:05.714
> !MESSAGE "Content Assist" did not complete normally. Please see the log
> for more information.

> !ENTRY org.eclipse.ui 4 0 2006-11-22 11:28:05.714
> !MESSAGE java.net.UnknownHostException: java.sun.com
> !STACK 0
> org.eclipse.emf.common.util.WrappedException:
> java.net.UnknownHostException: java.sun.com
> at
>
org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:97)
> at
>
org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
> at
>
org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
> at
>
org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
> at
>
org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.load(TranslatorResourceImpl.java:388)
> at
>
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J ARFileJSFAppConfigProvider.getFacesConfigModel(JARFileJSFApp ConfigProvider.java:87)
> at
>
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getFacesConfigModels(JSFAppConfigManager. java:404)
> at
>
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getManagedBeans(JSFAppConfigManager.java: 439)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getManagedBeanSymbols(Defaul tBeanSymbolSourceProvider.java:124)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getSymbols(DefaultBeanSymbol SourceProvider.java:82)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.addBeanSymbols(DefaultDTVariableResolve r.java:149)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.getAllVariables(DefaultDTVariableResolv er.java:115)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.resolver .SymbolContextResolver.getAllVariables(SymbolContextResolver .java:75)
> at
>
org.eclipse.jst.jsf.contentassist.internal.el.IdCompletionSt rategy.getProposals(IdCompletionStrategy.java:77)
> at
>
org.eclipse.jst.jsf.contentassist.internal.el.JSFELContentAs sistProcessor.computeCompletionProposals(JSFELContentAssistP rocessor.java:101)
> at
>
org.eclipse.wst.sse.ui.internal.contentassist.CompoundConten tAssistProcessor.computeCompletionProposals(CompoundContentA ssistProcessor.java:233)
> at
>
org.eclipse.jface.text.contentassist.ContentAssistant.comput eCompletionProposals(ContentAssistant.java:1612)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeProposals(CompletionProposalPopup.java:473)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$17(CompletionProposalPopup.java:470)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(CompletionProposalPopup.java:405)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProposals(CompletionProposalPopup.java:399)
> at
>
org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCompletions(ContentAssistant.java:1441)
> at
>
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOpera tion(StructuredTextViewer.java:376)
> at
>
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOper ationAction.java:131)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
>
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperat ionAction.java:129)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
> at
>
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:461)
> at
>
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:424)
> at
>
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:160)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:466)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:799)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:846)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:564)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:506)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:122)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982 )
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:19 25)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2966)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
> Caused by: java.net.UnknownHostException: java.sun.com
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at sun.net.NetworkClient.doConnect(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.<init>(Unknown Source)
> at sun.net.www.http.HttpClient.New(Unknown Source)
> at sun.net.www.http.HttpClient.New(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (Unknown
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unk nown Source)
> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.set upCurrentEntity(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtEntity(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtDTDEntity(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.se tInputSource(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$DTDDispatcher.dispatch(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
>
org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:93)
> ... 72 more
Re: content assist -> UnknownHostException [message #473718 is a reply to message #473712] Mon, 04 December 2006 04:41 Go to previous messageGo to next message
Eclipse User
Originally posted by: tino.scherlich.googlemail.com

Yes, I'm behind an http proxy with limited access to the internet.
java.sun.com ist not in the list of allowed web sites.
Is there something else I can do?
Nevertheless the JSF plugin trys to load a DTD from java.sun.com and
freezes my eclipse.
Can I install this DTD local or on a server in our intranet to prevend
the plugin from looking to an adress outside of our network?

Tino


Cameron Bateman schrieb am 27.11.2006 19:18:
> Are you also behind an http proxy? If so, you will need to go to
> Windows->Preferences->Internet->Proxy Settings and configure your
> proxy. This is a known issue where the logic that processes the
> faces-config file to load bean information tries to cache the DTD for
> the config file. If it fails to connect it can cause these sorts of
> problems.
>
> You can monitor https://bugs.eclipse.org/bugs/show_bug.cgi?id=154439 to
> track this issue.
>
>
> --Cam
>
> Tino Scherlich wrote:
>
>> Hi!
>
>> I use eclipse with wtp + jsf behind a firewall.
>> If I try to use the content assist in EL parts to get some beans or
>> their properties, I get an UnknownHostException: java.sun.com.
>> Content assist on taglibs is working fine.
>
>> What's wrong here?
>
>> Tino
>
>
>> ..log:
>
>> !ENTRY org.eclipse.ui 4 4 2006-11-22 11:28:05.714
>> !MESSAGE "Content Assist" did not complete normally. Please see the
>> log for more information.
>
>> !ENTRY org.eclipse.ui 4 0 2006-11-22 11:28:05.714
>> !MESSAGE java.net.UnknownHostException: java.sun.com
>> !STACK 0
>> org.eclipse.emf.common.util.WrappedException:
>> java.net.UnknownHostException: java.sun.com
>> at
> org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:97)
>
>> at
> org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
>
>> at
> org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
>>
>> at
> org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
>
>> at
> org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.load(TranslatorResourceImpl.java:388)
>
>> at
> org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J ARFileJSFAppConfigProvider.getFacesConfigModel(JARFileJSFApp ConfigProvider.java:87)
>
>> at
> org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getFacesConfigModels(JSFAppConfigManager. java:404)
>
>> at
> org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getManagedBeans(JSFAppConfigManager.java: 439)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getManagedBeanSymbols(Defaul tBeanSymbolSourceProvider.java:124)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getSymbols(DefaultBeanSymbol SourceProvider.java:82)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.addBeanSymbols(DefaultDTVariableResolve r.java:149)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.getAllVariables(DefaultDTVariableResolv er.java:115)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.resolver .SymbolContextResolver.getAllVariables(SymbolContextResolver .java:75)
>
>> at
> org.eclipse.jst.jsf.contentassist.internal.el.IdCompletionSt rategy.getProposals(IdCompletionStrategy.java:77)
>
>> at
> org.eclipse.jst.jsf.contentassist.internal.el.JSFELContentAs sistProcessor.computeCompletionProposals(JSFELContentAssistP rocessor.java:101)
>
>> at
> org.eclipse.wst.sse.ui.internal.contentassist.CompoundConten tAssistProcessor.computeCompletionProposals(CompoundContentA ssistProcessor.java:233)
>
>> at
> org.eclipse.jface.text.contentassist.ContentAssistant.comput eCompletionProposals(ContentAssistant.java:1612)
>
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeProposals(CompletionProposalPopup.java:473)
>
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$17(CompletionProposalPopup.java:470)
>
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(CompletionProposalPopup.java:405)
>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProposals(CompletionProposalPopup.java:399)
>
>> at
> org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCompletions(ContentAssistant.java:1441)
>
>> at
> org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOpera tion(StructuredTextViewer.java:376)
>
>> at
> org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOper ationAction.java:131)
>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
> org.eclipse.ui.texteditor.TextOperationAction.run(TextOperat ionAction.java:129)
>
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>> at
>> org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
>> at
> org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
>
>> at
>> org.eclipse.core.commands.Command.executeWithChecks(Command. java:461)
>> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:424)
>
>> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:160)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:466)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:799)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:846)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:564)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:506)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:122)
>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982 )
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
>> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
>> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
>> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
>> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
>> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246 )
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025 )
>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:19 25)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2966)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>> Caused by: java.net.UnknownHostException: java.sun.com
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.net.NetworkClient.doConnect(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.<init>(Unknown Source)
>> at sun.net.www.http.HttpClient.New(Unknown Source)
>> at sun.net.www.http.HttpClient.New(Unknown Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unk nown Source)
>> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.set upCurrentEntity(Unknown
>
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtEntity(Unknown
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtDTDEntity(Unknown
>
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.se tInputSource(Unknown
>
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$DTDDispatcher.dispatch(Unknown
>
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>> Source)
>> at
> org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:93)
>
>> ... 72 more
>
>
Re: content assist -> UnknownHostException [message #473720 is a reply to message #473718] Tue, 05 December 2006 14:26 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Hi Tino,

I'm trying to get an answer for you on that. One thing you could try as a
workaround is to hack the WTP internet cache. The files are in in your
workspace directory under
metadata/.plugins/org.eclipse.wst.internet.cache. I get an entry in the
cache.xml file that looks like this:

<entry expirationTime="1162506301968" lastModified="1080458708000"
location="302164523.cache"
uri="http://java.sun.com/dtd/web-facesconfig_1_1.dtd"/>

The location attribute points to a file of that name in the same directory.


--Cam
Re: content assist -> UnknownHostException [message #473722 is a reply to message #473720] Wed, 06 December 2006 03:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: tino.scherlich.googlemail.com

Hi Cameron,

this doesn't help much. Everytime when I press CTRL+SPACE I get this
error again. :-(
It seems that the wtp internet cache is not used.

Tino

Cameron Bateman schrieb am 05.12.2006 20:26:
> Hi Tino,
>
> I'm trying to get an answer for you on that. One thing you could try as
> a workaround is to hack the WTP internet cache. The files are in in
> your workspace directory under
> metadata/.plugins/org.eclipse.wst.internet.cache. I get an entry in the
> cache.xml file that looks like this:
>
> <entry expirationTime="1162506301968" lastModified="1080458708000"
> location="302164523.cache"
> uri="http://java.sun.com/dtd/web-facesconfig_1_1.dtd"/>
>
> The location attribute points to a file of that name in the same directory.
>
>
> --Cam
>
Re: content assist -> UnknownHostException [message #473800 is a reply to message #473722] Thu, 21 December 2006 16:43 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
We have received a patch from Matthias Fuessel at GMX that appears to at
least partially address the problem. Stay tuned in the New Year when we
will apply this. You can monitor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154439 for updates.


--Cam
Re: content assist -> UnknownHostException [message #608377 is a reply to message #473709] Mon, 27 November 2006 13:18 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Are you also behind an http proxy? If so, you will need to go to
Windows->Preferences->Internet->Proxy Settings and configure your proxy.
This is a known issue where the logic that processes the faces-config file
to load bean information tries to cache the DTD for the config file. If
it fails to connect it can cause these sorts of problems.

You can monitor https://bugs.eclipse.org/bugs/show_bug.cgi?id=154439 to
track this issue.


--Cam

Tino Scherlich wrote:

> Hi!

> I use eclipse with wtp + jsf behind a firewall.
> If I try to use the content assist in EL parts to get some beans or
> their properties, I get an UnknownHostException: java.sun.com.
> Content assist on taglibs is working fine.

> What's wrong here?

> Tino


> ..log:

> !ENTRY org.eclipse.ui 4 4 2006-11-22 11:28:05.714
> !MESSAGE "Content Assist" did not complete normally. Please see the log
> for more information.

> !ENTRY org.eclipse.ui 4 0 2006-11-22 11:28:05.714
> !MESSAGE java.net.UnknownHostException: java.sun.com
> !STACK 0
> org.eclipse.emf.common.util.WrappedException:
> java.net.UnknownHostException: java.sun.com
> at
>
org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:97)
> at
>
org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
> at
>
org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
> at
>
org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
> at
>
org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.load(TranslatorResourceImpl.java:388)
> at
>
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J ARFileJSFAppConfigProvider.getFacesConfigModel(JARFileJSFApp ConfigProvider.java:87)
> at
>
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getFacesConfigModels(JSFAppConfigManager. java:404)
> at
>
org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getManagedBeans(JSFAppConfigManager.java: 439)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getManagedBeanSymbols(Defaul tBeanSymbolSourceProvider.java:124)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getSymbols(DefaultBeanSymbol SourceProvider.java:82)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.addBeanSymbols(DefaultDTVariableResolve r.java:149)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.getAllVariables(DefaultDTVariableResolv er.java:115)
> at
>
org.eclipse.jst.jsf.designtime.internal.provisional.resolver .SymbolContextResolver.getAllVariables(SymbolContextResolver .java:75)
> at
>
org.eclipse.jst.jsf.contentassist.internal.el.IdCompletionSt rategy.getProposals(IdCompletionStrategy.java:77)
> at
>
org.eclipse.jst.jsf.contentassist.internal.el.JSFELContentAs sistProcessor.computeCompletionProposals(JSFELContentAssistP rocessor.java:101)
> at
>
org.eclipse.wst.sse.ui.internal.contentassist.CompoundConten tAssistProcessor.computeCompletionProposals(CompoundContentA ssistProcessor.java:233)
> at
>
org.eclipse.jface.text.contentassist.ContentAssistant.comput eCompletionProposals(ContentAssistant.java:1612)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeProposals(CompletionProposalPopup.java:473)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$17(CompletionProposalPopup.java:470)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(CompletionProposalPopup.java:405)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProposals(CompletionProposalPopup.java:399)
> at
>
org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCompletions(ContentAssistant.java:1441)
> at
>
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOpera tion(StructuredTextViewer.java:376)
> at
>
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOper ationAction.java:131)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
>
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperat ionAction.java:129)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
> at
>
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:461)
> at
>
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:424)
> at
>
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:160)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:466)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:799)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:846)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:564)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:506)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:122)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982 )
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:19 25)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2966)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
> Caused by: java.net.UnknownHostException: java.sun.com
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at sun.net.NetworkClient.doConnect(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.<init>(Unknown Source)
> at sun.net.www.http.HttpClient.New(Unknown Source)
> at sun.net.www.http.HttpClient.New(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (Unknown
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unk nown Source)
> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.set upCurrentEntity(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtEntity(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtDTDEntity(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.se tInputSource(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$DTDDispatcher.dispatch(Unknown
> Source)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
>
org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:93)
> ... 72 more
Re: content assist -> UnknownHostException [message #608379 is a reply to message #473712] Mon, 04 December 2006 04:41 Go to previous message
Eclipse User
Originally posted by: tino.scherlich.googlemail.com

Yes, I'm behind an http proxy with limited access to the internet.
java.sun.com ist not in the list of allowed web sites.
Is there something else I can do?
Nevertheless the JSF plugin trys to load a DTD from java.sun.com and
freezes my eclipse.
Can I install this DTD local or on a server in our intranet to prevend
the plugin from looking to an adress outside of our network?

Tino


Cameron Bateman schrieb am 27.11.2006 19:18:
> Are you also behind an http proxy? If so, you will need to go to
> Windows->Preferences->Internet->Proxy Settings and configure your
> proxy. This is a known issue where the logic that processes the
> faces-config file to load bean information tries to cache the DTD for
> the config file. If it fails to connect it can cause these sorts of
> problems.
>
> You can monitor https://bugs.eclipse.org/bugs/show_bug.cgi?id=154439 to
> track this issue.
>
>
> --Cam
>
> Tino Scherlich wrote:
>
>> Hi!
>
>> I use eclipse with wtp + jsf behind a firewall.
>> If I try to use the content assist in EL parts to get some beans or
>> their properties, I get an UnknownHostException: java.sun.com.
>> Content assist on taglibs is working fine.
>
>> What's wrong here?
>
>> Tino
>
>
>> ..log:
>
>> !ENTRY org.eclipse.ui 4 4 2006-11-22 11:28:05.714
>> !MESSAGE "Content Assist" did not complete normally. Please see the
>> log for more information.
>
>> !ENTRY org.eclipse.ui 4 0 2006-11-22 11:28:05.714
>> !MESSAGE java.net.UnknownHostException: java.sun.com
>> !STACK 0
>> org.eclipse.emf.common.util.WrappedException:
>> java.net.UnknownHostException: java.sun.com
>> at
> org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:97)
>
>> at
> org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
>
>> at
> org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
>>
>> at
> org.eclipse.wst.common.internal.emf.resource.CompatibilityXM IResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
>
>> at
> org.eclipse.wst.common.internal.emf.resource.TranslatorResou rceImpl.load(TranslatorResourceImpl.java:388)
>
>> at
> org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J ARFileJSFAppConfigProvider.getFacesConfigModel(JARFileJSFApp ConfigProvider.java:87)
>
>> at
> org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getFacesConfigModels(JSFAppConfigManager. java:404)
>
>> at
> org.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.J SFAppConfigManager.getManagedBeans(JSFAppConfigManager.java: 439)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getManagedBeanSymbols(Defaul tBeanSymbolSourceProvider.java:124)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.symbols. DefaultBeanSymbolSourceProvider.getSymbols(DefaultBeanSymbol SourceProvider.java:82)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.addBeanSymbols(DefaultDTVariableResolve r.java:149)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.el.Defau ltDTVariableResolver.getAllVariables(DefaultDTVariableResolv er.java:115)
>
>> at
> org.eclipse.jst.jsf.designtime.internal.provisional.resolver .SymbolContextResolver.getAllVariables(SymbolContextResolver .java:75)
>
>> at
> org.eclipse.jst.jsf.contentassist.internal.el.IdCompletionSt rategy.getProposals(IdCompletionStrategy.java:77)
>
>> at
> org.eclipse.jst.jsf.contentassist.internal.el.JSFELContentAs sistProcessor.computeCompletionProposals(JSFELContentAssistP rocessor.java:101)
>
>> at
> org.eclipse.wst.sse.ui.internal.contentassist.CompoundConten tAssistProcessor.computeCompletionProposals(CompoundContentA ssistProcessor.java:233)
>
>> at
> org.eclipse.jface.text.contentassist.ContentAssistant.comput eCompletionProposals(ContentAssistant.java:1612)
>
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeProposals(CompletionProposalPopup.java:473)
>
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$17(CompletionProposalPopup.java:470)
>
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(CompletionProposalPopup.java:405)
>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProposals(CompletionProposalPopup.java:399)
>
>> at
> org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCompletions(ContentAssistant.java:1441)
>
>> at
> org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOpera tion(StructuredTextViewer.java:376)
>
>> at
> org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOper ationAction.java:131)
>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
> org.eclipse.ui.texteditor.TextOperationAction.run(TextOperat ionAction.java:129)
>
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>> at
>> org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
>> at
> org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
>
>> at
>> org.eclipse.core.commands.Command.executeWithChecks(Command. java:461)
>> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:424)
>
>> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:160)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:466)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:799)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:846)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:564)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:506)
>
>> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:122)
>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982 )
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
>> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
>> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
>> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
>> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
>> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246 )
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025 )
>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:19 25)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2966)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>> Caused by: java.net.UnknownHostException: java.sun.com
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.net.NetworkClient.doConnect(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.<init>(Unknown Source)
>> at sun.net.www.http.HttpClient.New(Unknown Source)
>> at sun.net.www.http.HttpClient.New(Unknown Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unk nown Source)
>> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.set upCurrentEntity(Unknown
>
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtEntity(Unknown
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.sta rtDTDEntity(Unknown
>
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.se tInputSource(Unknown
>
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$DTDDispatcher.dispatch(Unknown
>
>> Source)
>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>> Source)
>> at
> org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer .doLoad(EMF2SAXRenderer.java:93)
>
>> ... 72 more
>
>
Re: content assist -> UnknownHostException [message #608380 is a reply to message #473718] Tue, 05 December 2006 14:26 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Hi Tino,

I'm trying to get an answer for you on that. One thing you could try as a
workaround is to hack the WTP internet cache. The files are in in your
workspace directory under
metadata/.plugins/org.eclipse.wst.internet.cache. I get an entry in the
cache.xml file that looks like this:

<entry expirationTime="1162506301968" lastModified="1080458708000"
location="302164523.cache"
uri="http://java.sun.com/dtd/web-facesconfig_1_1.dtd"/>

The location attribute points to a file of that name in the same directory.


--Cam
Re: content assist -> UnknownHostException [message #608381 is a reply to message #473720] Wed, 06 December 2006 03:59 Go to previous message
Eclipse User
Originally posted by: tino.scherlich.googlemail.com

Hi Cameron,

this doesn't help much. Everytime when I press CTRL+SPACE I get this
error again. :-(
It seems that the wtp internet cache is not used.

Tino

Cameron Bateman schrieb am 05.12.2006 20:26:
> Hi Tino,
>
> I'm trying to get an answer for you on that. One thing you could try as
> a workaround is to hack the WTP internet cache. The files are in in
> your workspace directory under
> metadata/.plugins/org.eclipse.wst.internet.cache. I get an entry in the
> cache.xml file that looks like this:
>
> <entry expirationTime="1162506301968" lastModified="1080458708000"
> location="302164523.cache"
> uri="http://java.sun.com/dtd/web-facesconfig_1_1.dtd"/>
>
> The location attribute points to a file of that name in the same directory.
>
>
> --Cam
>
Re: content assist -> UnknownHostException [message #608385 is a reply to message #473722] Thu, 21 December 2006 16:43 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
We have received a patch from Matthias Fuessel at GMX that appears to at
least partially address the problem. Stay tuned in the New Year when we
will apply this. You can monitor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154439 for updates.


--Cam
Previous Topic:jsp Hello World
Next Topic:Eclipse Webinar on JSF
Goto Forum:
  


Current Time: Sat Aug 02 00:31:58 EDT 2014

Powered by FUDForum. Page generated in 0.02078 seconds