Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problem with hostname detection #158

Closed
lemo opened this issue Feb 13, 2014 · 9 comments
Closed

some problem with hostname detection #158

lemo opened this issue Feb 13, 2014 · 9 comments

Comments

@lemo
Copy link

lemo commented Feb 13, 2014

hi

i'm having this error since 0.25 install of erlide.
it is reproduceable each time i open eclipse.
it comes with a nice msgbox which closes eclipse.

bildschirmfoto vom 2014-02-13 23 58 06

i'm running ubuntu 13.10

here some of the information collected.

lemo@lemen-l1:~$ erl
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
lemo@lemen-l1:~$ cat .hosts.erlang 
'lemen-l1'.
lemo@lemen-l1:~$ cat /etc/hosts
127.0.0.1   localhost lemen-l1
and some ipv6 stuff
lemo@lemen-l1:~$ epmd -d
epmd: Thu Feb 13 23:56:32 2014: epmd running - daemon = 0
epmd: Thu Feb 13 23:57:41 2014: ** got ALIVE2_REQ
epmd: Thu Feb 13 23:57:41 2014: registering 'foo1392332260988:3', port 49909
epmd: Thu Feb 13 23:57:41 2014: type 77 proto 0 highvsn 5 lowvsn 5
epmd: Thu Feb 13 23:57:41 2014: ** sent ALIVE2_RESP for "foo1392332260988"
epmd: Thu Feb 13 23:57:41 2014: unregistering 'foo1392332260988:3', port 49909
epmd: Thu Feb 13 23:57:41 2014: ** got ALIVE2_REQ
epmd: Thu Feb 13 23:57:41 2014: registering 'foo1392332261308:3', port 55294
epmd: Thu Feb 13 23:57:41 2014: type 77 proto 0 highvsn 5 lowvsn 5
epmd: Thu Feb 13 23:57:41 2014: ** sent ALIVE2_RESP for "foo1392332261308"
epmd: Thu Feb 13 23:57:41 2014: unregistering 'foo1392332261308:3', port 55294
epmd: Thu Feb 13 23:57:41 2014: ** got ALIVE2_REQ
epmd: Thu Feb 13 23:57:41 2014: registering 'b9e59_lemo_784944_erlide:3', port 45961
epmd: Thu Feb 13 23:57:41 2014: type 77 proto 0 highvsn 5 lowvsn 5
epmd: Thu Feb 13 23:57:41 2014: ** sent ALIVE2_RESP for "b9e59_lemo_784944_erlide"
lemo@lemen-l1:~$ eclipse
23:57:36,415 I: (ErlangCore.java:70) : Starting CORE Thread[Worker-0,5,main]
23:57:36,432 I: (ErlangCore.java:79) : *** starting Erlide v0.25.0.201402101644 (core=0.24.2.201402101644) *** (UTF-8) 
23:57:36,463 I: (ErlangCore.java:86) : Started CORE
23:57:38,792 F: (ErlangHostnameRetriever.java:40) : Test long hostname: null
23:57:38,792 W: (ErlangHostnameRetriever.java:46) : Can't use null as long name
23:57:40,811 F: (ErlangHostnameRetriever.java:40) : Test long hostname: localhost
23:57:40,985 S: (ErlangHostnameRetriever.java:75) : Nameserver not responding on lemen-l1 when publishing jtest
java.io.IOException: Nameserver not responding on lemen-l1 when publishing jtest
    at com.ericsson.otp.erlang.OtpEpmd.r4_publish(OtpEpmd.java:334)
    at com.ericsson.otp.erlang.OtpEpmd.publishPort(OtpEpmd.java:139)
    at com.ericsson.otp.erlang.OtpNode$Acceptor.publishPort(OtpNode.java:700)
    at com.ericsson.otp.erlang.OtpNode$Acceptor.<init>(OtpNode.java:692)
    at com.ericsson.otp.erlang.OtpNode.init(OtpNode.java:150)
    at com.ericsson.otp.erlang.OtpNode.<init>(OtpNode.java:143)
    at com.ericsson.otp.erlang.OtpNode.<init>(OtpNode.java:118)
    at org.erlide.util.ErlangHostnameRetriever.canConnect(ErlangHostnameRetriever.java:70)
    at org.erlide.util.ErlangHostnameRetriever.checkHostName(ErlangHostnameRetriever.java:43)
    at org.erlide.util.HostnameUtils.detectHostNames(HostnameUtils.java:61)
    at org.erlide.runtime.api.RuntimeCore.getRuntimeInfoCatalog(RuntimeCore.java:24)
    at org.erlide.backend.BackendCore.getRuntimeInfoCatalog(BackendCore.java:27)
    at org.erlide.backend.internal.BackendPlugin.start(BackendPlugin.java:34)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
    at java.lang.Class.getConstructor0(Class.java:2803)
    at java.lang.Class.newInstance(Class.java:345)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition$1.run(LightweightDecoratorDefinition.java:124)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:866)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator(LightweightDecoratorDefinition.java:120)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:251)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
23:57:40,987 W: (ErlangHostnameRetriever.java:46) : Can't use localhost as long name
23:57:41,227 F: (ErlangHostnameRetriever.java:40) : Test short hostname: localhost
23:57:41,305 S: (ErlangHostnameRetriever.java:75) : Nameserver not responding on lemen-l1 when publishing jtest
java.io.IOException: Nameserver not responding on lemen-l1 when publishing jtest
    at com.ericsson.otp.erlang.OtpEpmd.r4_publish(OtpEpmd.java:334)
    at com.ericsson.otp.erlang.OtpEpmd.publishPort(OtpEpmd.java:139)
    at com.ericsson.otp.erlang.OtpNode$Acceptor.publishPort(OtpNode.java:700)
    at com.ericsson.otp.erlang.OtpNode$Acceptor.<init>(OtpNode.java:692)
    at com.ericsson.otp.erlang.OtpNode.init(OtpNode.java:150)
    at com.ericsson.otp.erlang.OtpNode.<init>(OtpNode.java:143)
    at com.ericsson.otp.erlang.OtpNode.<init>(OtpNode.java:118)
    at org.erlide.util.ErlangHostnameRetriever.canConnect(ErlangHostnameRetriever.java:70)
    at org.erlide.util.ErlangHostnameRetriever.checkHostName(ErlangHostnameRetriever.java:43)
    at org.erlide.util.ErlangHostnameRetriever.checkHostName(ErlangHostnameRetriever.java:62)
    at org.erlide.util.HostnameUtils.detectHostNames(HostnameUtils.java:68)
    at org.erlide.runtime.api.RuntimeCore.getRuntimeInfoCatalog(RuntimeCore.java:24)
    at org.erlide.backend.BackendCore.getRuntimeInfoCatalog(BackendCore.java:27)
    at org.erlide.backend.internal.BackendPlugin.start(BackendPlugin.java:34)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
    at java.lang.Class.getConstructor0(Class.java:2803)
    at java.lang.Class.newInstance(Class.java:345)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition$1.run(LightweightDecoratorDefinition.java:124)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:866)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator(LightweightDecoratorDefinition.java:120)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:251)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
23:57:41,307 W: (ErlangHostnameRetriever.java:46) : Can't use localhost as short name
23:57:41,550 F: (ErlangHostnameRetriever.java:40) : Test short hostname: lemen-l1
23:57:41,587 S: (ErlangHostnameRetriever.java:75) : Nameserver not responding on lemen-l1 when publishing jtest
java.io.IOException: Nameserver not responding on lemen-l1 when publishing jtest
    at com.ericsson.otp.erlang.OtpEpmd.r4_publish(OtpEpmd.java:334)
    at com.ericsson.otp.erlang.OtpEpmd.publishPort(OtpEpmd.java:139)
    at com.ericsson.otp.erlang.OtpNode$Acceptor.publishPort(OtpNode.java:700)
    at com.ericsson.otp.erlang.OtpNode$Acceptor.<init>(OtpNode.java:692)
    at com.ericsson.otp.erlang.OtpNode.init(OtpNode.java:150)
    at com.ericsson.otp.erlang.OtpNode.<init>(OtpNode.java:143)
    at com.ericsson.otp.erlang.OtpNode.<init>(OtpNode.java:118)
    at org.erlide.util.ErlangHostnameRetriever.canConnect(ErlangHostnameRetriever.java:70)
    at org.erlide.util.ErlangHostnameRetriever.checkHostName(ErlangHostnameRetriever.java:43)
    at org.erlide.util.HostnameUtils.detectHostNames(HostnameUtils.java:70)
    at org.erlide.runtime.api.RuntimeCore.getRuntimeInfoCatalog(RuntimeCore.java:24)
    at org.erlide.backend.BackendCore.getRuntimeInfoCatalog(BackendCore.java:27)
    at org.erlide.backend.internal.BackendPlugin.start(BackendPlugin.java:34)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
    at java.lang.Class.getConstructor0(Class.java:2803)
    at java.lang.Class.newInstance(Class.java:345)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition$1.run(LightweightDecoratorDefinition.java:124)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:866)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator(LightweightDecoratorDefinition.java:120)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:251)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
23:57:41,589 W: (ErlangHostnameRetriever.java:46) : Can't use lemen-l1 as short name
23:57:41,590 F: (HostnameUtils.java:73) : Detected:: null && null
23:57:41,601 I: (ErlideUIPlugin.java:154) : Starting UI Thread[Worker-0,5,main]
23:57:41,677 I: (ErlideUIPlugin.java:189) : Started UI
23:57:41,688 F: (ModelActivator.java:16) : Starting Erlang model api
23:57:41,691 F: (ModelPlugin.java:35) : Starting Erlang model
23:57:41,691 F: (ModelPlugin.java:38) : Started model
23:57:41,697 F: (BackendFactory.java:42) : Create ide backend
23:57:41,701 F: (BackendFactory.java:74) : Create backend b9e59_lemo_784944_erlide
23:57:41,735 F: (ManagedErlRuntime.java:56) : START node :> [/usr/lib/erlang/bin/erl, -sname, b9e59_lemo_784944_erlide@null, -setcookie, erlide] *** /home/lemo/code/workspaces/planets
23:57:41,739 F: (ErlRuntime.java:411) : Runtime b9e59_lemo_784944_erlide@null starting
23:57:49,591 S: (ErlRuntime.java:320) : Couldn't contact epmd - erlang backend is probably not working
Your host's entry in /etc/hosts is probably wrong (null).
23:57:49,596 W: (ErlRuntime.java:392) : Runtime b9e59_lemo_784944_erlide@null crashed, exit code: -1.
Exception in thread "ManagedErlRuntime b9e59_lemo_784944_erlide@null" java.lang.RuntimeException: Couldn't contact epmd - erlang backend is probably not working
Your host's entry in /etc/hosts is probably wrong (null).
    at org.erlide.runtime.internal.ErlRuntime.wait_for_epmd(ErlRuntime.java:321)
    at org.erlide.runtime.internal.ErlRuntime.wait_for_epmd(ErlRuntime.java:295)
    at org.erlide.runtime.internal.ErlRuntime.startLocalNode(ErlRuntime.java:224)
    at org.erlide.runtime.internal.ErlRuntime.startUp(ErlRuntime.java:83)
    at org.erlide.runtime.internal.ManagedErlRuntime.startUp(ManagedErlRuntime.java:35)
    at com.google.common.util.concurrent.AbstractExecutionThreadService$1$2.run(AbstractExecutionThreadService.java:55)
    at com.google.common.util.concurrent.Callables$3.run(Callables.java:93)
    at java.lang.Thread.run(Thread.java:744)
23:57:49,597 I: (ErlRuntimeReporter.java:97) : Backend 'b9e59_lemo_784944_erlide@null' crashed with exit code -1.
23:57:49,597 S: (ExtensionUtils.java:39) : Plug-in "org.erlide.model" was unable to instantiate class "org.erlide.engine.internal.DefaultErlangEngine".
org.eclipse.core.runtime.CoreException: Plug-in "org.erlide.model" was unable to instantiate class "org.erlide.engine.internal.DefaultErlangEngine".
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:186)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.erlide.util.services.ExtensionUtils.getSingletonExtension(ExtensionUtils.java:34)
    at org.erlide.engine.ModelActivator.start(ModelActivator.java:17)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.erlide.ui.util.ProblemsLabelDecorator.computeAdornmentFlags(ProblemsLabelDecorator.java:90)
    at org.erlide.ui.navigator.NavigatorProblemsDecorator.computeAdornmentFlags(NavigatorProblemsDecorator.java:31)
    at org.erlide.ui.util.ProblemsLabelDecorator.decorate(ProblemsLabelDecorator.java:191)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
    at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
    at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: Couldn't contact epmd - erlang backend is probably not working
Your host's entry in /etc/hosts is probably wrong (null).
    at com.google.common.util.concurrent.Futures.wrapAndThrowUnchecked(Futures.java:1387)
    at com.google.common.util.concurrent.Futures.getUnchecked(Futures.java:1373)
    at com.google.common.util.concurrent.AbstractService.startAndWait(AbstractService.java:265)
    at com.google.common.util.concurrent.AbstractExecutionThreadService.startAndWait(AbstractExecutionThreadService.java:166)
    at org.erlide.backend.internal.BackendFactory.createBackend(BackendFactory.java:79)
    at org.erlide.backend.internal.BackendFactory.createIdeBackend(BackendFactory.java:43)
    at org.erlide.backend.internal.BackendManager.getIdeBackend(BackendManager.java:164)
    at org.erlide.backend.internal.BackendProvider.get(BackendProvider.java:12)
    at org.erlide.engine.internal.DefaultErlangEngine.<init>(DefaultErlangEngine.java:105)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
    ... 34 more
Caused by: java.lang.RuntimeException: Couldn't contact epmd - erlang backend is probably not working
Your host's entry in /etc/hosts is probably wrong (null).
    at org.erlide.runtime.internal.ErlRuntime.wait_for_epmd(ErlRuntime.java:321)
    at org.erlide.runtime.internal.ErlRuntime.wait_for_epmd(ErlRuntime.java:295)
    at org.erlide.runtime.internal.ErlRuntime.startLocalNode(ErlRuntime.java:224)
    at org.erlide.runtime.internal.ErlRuntime.startUp(ErlRuntime.java:83)
    at org.erlide.runtime.internal.ManagedErlRuntime.startUp(ManagedErlRuntime.java:35)
    at com.google.common.util.concurrent.AbstractExecutionThreadService$1$2.run(AbstractExecutionThreadService.java:55)
    at com.google.common.util.concurrent.Callables$3.run(Callables.java:93)
    at java.lang.Thread.run(Thread.java:744)
23:57:49,599 W: (ModelActivator.java:20) : Could not instantiate Erlang engine!
23:57:49,599 F: (ModelActivator.java:24) : Started model api
00:00:00,050 I: (ErlideUIPlugin.java:219) : *** Automatically cleaning caches ***
lemo@lemen-l1:~$ erl -name test
{error_logger,{{2014,2,14},{0,5,2}},"Can't set long node name!\nPlease check your configuration\n",[]}
{error_logger,{{2014,2,14},{0,5,2}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[<0.18.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,27},{reductions,880}],[]]}
{error_logger,{{2014,2,14},{0,5,2}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[test,longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2014,2,14},{0,5,2}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2014,2,14},{0,5,2}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,376},{stack_size,27},{reductions,117}],[]]}
{error_logger,{{2014,2,14},{0,5,2}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k

funniliy when i change my hostname to e.g. "lemen-h1.lan" and add the entry to /etc/hosts i can start "erl -name test" without it erroring. but eclipse & erlide still don't start.

@vladdu
Copy link
Collaborator

vladdu commented Feb 14, 2014

If your host name has a dot in it, it won't work; Java and Erlang disagree regarding the name being a local name or a FQDN.

It may be so that dashes confuses them too. Did you try to name your machine lemen_l1 or just lemen?

Is the output from epmd from the same session when the logs said "couldn't connect to epmd"?

@lemo
Copy link
Author

lemo commented Feb 14, 2014

my hostname does not contain a dot.
yes epmd is the same session. that's what's confusing me a bit because log output says he couldn't reach epmd, but epmd log says otherwise.

i tried running again with my hostname changed to "lemen" and with no network connected but still yields the same result.

@vladdu
Copy link
Collaborator

vladdu commented Feb 14, 2014

You mentioned trying "lemen-l1.lan", that's where the dot is.

Epmd didn't accept the connection from the Java node... Strange, because this part is pure jinterface, has nothing to do with erlide's handling of host names.

Please try without dashes and I'll be thinking about other answers.

@lemo
Copy link
Author

lemo commented Feb 14, 2014

like asked, i tried with:

  • no local domain
  • hostname without dash (changed to underscore)
  • no network connection so only /etc/hosts schould supply dns results

also tried on a different machine with the same results.

i still hope it's not an error from my side xD

@lemo lemo closed this as completed Feb 14, 2014
@lemo lemo reopened this Feb 14, 2014
@vladdu
Copy link
Collaborator

vladdu commented Feb 14, 2014

Hmmmm... This kind of issues is so difficult to debug remotely...

Ok, try to uninstall erlide and reinstall the previous version from http://download.erlide.org/update/archive/releases/0.24.2/

The thing is that I didn't do any changes that should affect this... Please let me know if 0.24.2 works (again)

@lemo
Copy link
Author

lemo commented Feb 14, 2014

tried that version as well ... different error.

i'm just trying to setup erlide debugging then i'll take a peak inside.

@vladdu
Copy link
Collaborator

vladdu commented Feb 14, 2014

Which version worked for you last?
Did you make any other changes to the system in the meanwhile?

@lemo
Copy link
Author

lemo commented Feb 14, 2014

i think its an error from my side.
the socket in com.ericsson.otp.erlang.OtpEpmd tries contacting "localhost" but proxy does not know how to resolve it and then crashes and the node can't be reached.
my SOCKS proxy gives back some malformed info because contacting localhost through proxy is kind of difficult 😅
that's that.
looking further down one may want to consider changing the socket so proper SocketImpl is used(instead of SocksSocketImpl in my case) so no proxy at all maybe used or configure no_proxy somehow.

thanks for your time

@lemo lemo closed this as completed Feb 14, 2014
@vladdu
Copy link
Collaborator

vladdu commented Feb 14, 2014

I'm glad you found the problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants