INFO Evictions for component project-userlib/ java.io.IOException: Unable to establish loopback connection

1
My app was working perfect in 8.10.0 and was even deployed to cloud. There were no changes and after couple of days, when running locally it started giving the below error. Also previous apps in 6.7.1, 8.7.0 also started giving the same error.   I tried uninstalling all mendix modellers in the system, clearing the system cache, mendix cache and installed the versions back. It still gives me the same error. Did someone encounter the issue and is there any rootcause/fix? Please suggest.   [rtlauncher:container$] INFO Evictions for component 'project-userlib': Evicted D:\App name-main\deployment\model\lib\userlib\javax.mail-1.6.0.jar by D:\App name-main\deployment\model\lib\userlib\javax.mail-1.6.2.jar. Evicted D:\App name-main\deployment\model\lib\userlib\commons-io-2.3.jar by D:\App name-main\deployment\model\lib\userlib\commons-io-2.6.jar. Evicted D:\App name-main\deployment\model\lib\userlib\commons-codec-1.10.jar by D:\App name-main\deployment\model\lib\userlib\commons-codec-1.13.jar. java.io.IOException: Unable to establish loopback connection     at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)     at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)     at java.base/java.security.AccessController.doPrivileged(Native Method)     at java.base/sun.nio.ch.PipeImpl.<init>(PipeImpl.java:171)     at java.base/sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)     at java.base/java.nio.channels.Pipe.open(Pipe.java:155)     at java.base/sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)     at java.base/sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)     at java.base/java.nio.channels.Selector.open(Selector.java:295)     at org.eclipse.jetty.io.SelectorManager.newSelector(SelectorManager.java:384)     at org.eclipse.jetty.io.ManagedSelector.doStart(ManagedSelector.java:94)     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)     at org.eclipse.jetty.io.SelectorManager.doStart(SelectorManager.java:262)     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)     at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:282)     at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81)     at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)     at org.eclipse.jetty.server.Server.doStart(Server.java:394)     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)     at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.<init>(HttpAdminHandler.java:87)     at com.mendix.m2ee.appcontainer.AppContainer.setupAdminHandlerAndActions(AppContainer.java:134)     at com.mendix.m2ee.appcontainer.AppContainer.start(AppContainer.java:98)     at com.mendix.m2ee.appcontainer.AppContainer.handleEvent(AppContainer.java:359)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)     at com.mendix.container.support.EventProcessorDelegate.$anonfun$sendEvent$3(EventProcessorDelegate.scala:21)     at scala.collection.Iterator.foreach(Iterator.scala:941)     at scala.collection.Iterator.foreach$(Iterator.scala:941)     at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)     at scala.collection.IterableLike.foreach(IterableLike.scala:74)     at scala.collection.IterableLike.foreach$(IterableLike.scala:73)     at scala.collection.AbstractIterable.foreach(Iterable.scala:56)     at com.mendix.container.support.EventProcessorDelegate.sendEvent(EventProcessorDelegate.scala:16)     at com.mendix.container.support.EventProcessor.sendEvent(EventProcessor.scala:24)     at com.mendix.container.support.EventProcessor.startSending(EventProcessor.scala:32)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)     at com.mendix.container.eventing.Eventing$.$anonfun$startSendingEvents$13(Eventing.scala:51)     at scala.util.Either.map(Either.scala:353)     at com.mendix.container.eventing.Eventing$.startSendingEvents(Eventing.scala:51)     at com.mendix.container.boot.Container$.$anonfun$doStart$11(Container.scala:171)     at scala.util.Either.flatMap(Either.scala:341)     at com.mendix.container.boot.Container$.$anonfun$doStart$8(Container.scala:169)     at scala.util.Either.flatMap(Either.scala:341)     at com.mendix.container.boot.Container$.doStart(Container.scala:164)     at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$2(Container.scala:125)     at scala.util.Either.flatMap(Either.scala:341)     at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$1(Container.scala:124)     at com.mendix.container.boot.Container$.time(Container.scala:214)     at com.mendix.container.boot.Container$.startAndWaitForever(Container.scala:124)     at com.mendix.container.boot.Main$.$anonfun$new$1(Main.scala:11)     at scala.util.Either.flatMap(Either.scala:341)     at com.mendix.container.config.ProjectConfig$.run(ProjectConfig.scala:61)     at com.mendix.container.boot.Main$.delayedEndpoint$com$mendix$container$boot$Main$1(Main.scala:11)     at com.mendix.container.boot.Main$delayedInit$body.apply(Main.scala:9)     at scala.Function0.apply$mcV$sp(Function0.scala:39)     at scala.Function0.apply$mcV$sp$(Function0.scala:39)     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)     at scala.App.$anonfun$main$1$adapted(App.scala:80)     at scala.collection.immutable.List.foreach(List.scala:392)     at scala.App.main(App.scala:80)     at scala.App.main$(App.scala:78)     at com.mendix.container.boot.Main$.main(Main.scala:9)     at com.mendix.container.boot.Main.main(Main.scala) Caused by: java.net.ConnectException: Connection timed out: connect     at java.base/sun.nio.ch.Net.connect0(Native Method)     at java.base/sun.nio.ch.Net.connect(Net.java:482)     at java.base/sun.nio.ch.Net.connect(Net.java:474)     at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:694)     at java.base/java.nio.channels.SocketChannel.open(SocketChannel.java:194)     at java.base/sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)     at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)     ... 72 more  
asked
2 answers
1

Sjors message about the eviction messages are correct, however they don’t seem to be the cause of your issue. Mendix apps will start with eviction messages. The real error is:

java.io.IOException: Unable to establish loopback connection

You should Google this message to see possible causes. I’ve seen a few ideas in there:

  • Restart your computer
  • Reinstall the JDK
  • Make sure you have a loopback address defined in your hosts file
  • Check if you’ve gotten any Windows updates right before this happened
  • Check if you have any new firewall settings applied

 

answered
0

It looks like you have conflicting java libraries in your userlib folder. Please go to your project directory and remove the duplicates. Save them somewhere else in cause you might need them later. Possibly you updated an appstore module (Email with templates?) which caused this.

Then in Studio Pro press ‘Sync with projectdirectory’ and ‘Clean deployment directory’. Then run again.

Your conficting libraries are in your error message. I usually keep the latest version:

Evicted D:\App name-main\deployment\model\lib\userlib\javax.mail-1.6.0.jar by D:\App name-main\deployment\model\lib\userlib\javax.mail-1.6.2.jar.
Evicted D:\App name-main\deployment\model\lib\userlib\commons-io-2.3.jar by D:\App name-main\deployment\model\lib\userlib\commons-io-2.6.jar.
Evicted D:\App name-main\deployment\model\lib\userlib\commons-codec-1.10.jar by D:\App name-main\deployment\model\lib\userlib\commons-codec-1.13.jar.

answered