Four Stars

Talend Remote Engine / Exceptions

Hello, I'm currently trying to run Talend Remote Engine on windows machine but I'm having a bit of troubles.

 

I've tried both, the installer and the zip versions of the TRE.

 

Once started(the engine), I'm pairing it with Talend cloud and everything is going well, exactly as in the documentation.

 

Then I try to execute a job from the cloud. Here is where the trouble begins. Sometimes, it executes a job successfully, sometimes it doesn't.

I've checked the logs located in {container}/data/log/ and I found several exceptions, most commonly - 

 

2018-06-12T17:52:21,883 | ERROR | ActiveMQ Connection Executor: https://msg.eu.cloud.talend.com:443 | AMQEventSource | 268 - org.talend.ipaas.rt.tipaas-rt-amqsource - 2.2.0 | A problem with connection to ActiveMQ.
javax.jms.JMSException: Force close due to SecurityException on connect
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:54) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1952) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1971) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.ActiveMQConnection.forceCloseOnSecurityException(ActiveMQConnection.java:1377) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1404) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1478) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:527) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.jms.pool.ConnectionPool.start(ConnectionPool.java:125) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.apache.activemq.jms.pool.PooledConnection.start(PooledConnection.java:95) [62Smiley Surprisedrg.apache.activemq.activemq-osgi:5.15.2]
at org.talend.ipaas.rt.amqsource.impl.AMQEventSource.createJmsSession(AMQEventSource.java:217) [268Smiley Surprisedrg.talend.ipaas.rt.tipaas-rt-amqsource:2.2.0]
at org.talend.ipaas.rt.amqsource.impl.AMQEventSource.registerEventCallback(AMQEventSource.java:177) [268Smiley Surprisedrg.talend.ipaas.rt.tipaas-rt-amqsource:2.2.0]
at org.talend.ipaas.rt.amqsource.impl.AMQEventSource.bind(AMQEventSource.java:142) [268Smiley Surprisedrg.talend.ipaas.rt.tipaas-rt-amqsource:2.2.0]
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.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:588) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:553) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:448) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:134) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:362) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:341) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) [?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:920) [?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) [?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469) [?:?]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:472) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:726) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:412) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:275) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) [13Smiley Surprisedrg.apache.aries.blueprint.core:1.8.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.io.IOException: Force close due to SecurityException on connect
... 45 more
Caused by: java.lang.SecurityException
at org.talend.ipaas.rt.amq.security.model.TipaasSecurityContext.<init>(TipaasSecurityContext.java:16) ~[?:?]
at org.talend.ipaas.rt.amq.security.RestAuthorizationMap.authenticate(RestAuthorizationMap.java:108) ~[?:?]
at org.talend.ipaas.rt.amq.security.RestAuthenticationBroker.addConnection(RestAuthenticationBroker.java:25) ~[?:?]
at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:103) ~[?:?]
at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:852) ~[?:?]
at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:77) ~[?:?]
at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139) ~[?:?]
at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:336) ~[?:?]
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:200) ~[?:?]
at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:301) ~[?:?]
at org.apache.activemq.transport.http.HttpInactivityMonitor.onCommand(HttpInactivityMonitor.java:56) ~[?:?]
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) ~[?:?]
at org.apache.activemq.transport.http.HttpTunnelServlet.doPost(HttpTunnelServlet.java:147) ~[?:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) ~[?:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808) ~[?:?]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[?:?]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) ~[?:?]
at org.eclipse.jetty.servlets.gzip.GzipHandler.handle(GzipHandler.java:349) ~[?:?]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129) ~[?:?]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) ~[?:?]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[?:?]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[?:?]
at org.eclipse.jetty.server.Server.handle(Server.java:499) ~[?:?]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) ~[?:?]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) ~[?:?]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) ~[?:?]
at java.lang.Thread.run(Unknown Source) ~[?:?]

 

There are other exceptions such as - 

 

ERROR | Framework Event Dispatcher: org.eclipse.osgi.internal.framework.EquinoxEventPublisher@7b51f624 | resources | 242 - org.eclipse.core.resources - 3.8.1.v20121114-124432 | FrameworkEvent ERROR - org.eclipse.core.resources
org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.stop() of bundle org.eclipse.core.resources.
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:855) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:947) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314) [?:?]
at org.eclipse.osgi.container.Module.doStop(Module.java:636) [?:?]
at org.eclipse.osgi.container.Module.stop(Module.java:498) [?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1675) [?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1594) [?:?]
at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147) [?:?]
at org.eclipse.osgi.container.Module.doStop(Module.java:636) [?:?]
at org.eclipse.osgi.container.Module.stop(Module.java:498) [?:?]

 

I've tried reinstalling the TRE, reinstalling java update 8 151 but I have not found solution yet.

I've also tried adding the TRE in windows firewall and disabling it all as well.

 

Thank you