java.lang.RuntimeException

tip

Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • com.jcraft.jsch.JSchException: Auth cancel
    via Stack Overflow by Dan Fabulich
    ,
    • java.lang.RuntimeException: Error when executing the GrepTask at org.grep4j.core.executors.GrepExecutor.execute(GrepExecutor.java:59) at org.grep4j.core.executors.GrepExecutor.execute(GrepExecutor.java:27) at org.grep4j.core.Grep4j.execute(Grep4j.java:239) at org.grep4j.core.Grep4j.grep(Grep4j.java:145) at org.grep4j.core.Grep4j.grep(Grep4j.java:213) at ua.privatbank.eantifraud.client.core.resource.EntryPointResource.main(EntryPointResource.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error when executing the CommandExecutorTasks at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.grep4j.core.executors.GrepExecutor.execute(GrepExecutor.java:54) ... 10 more Caused by: java.lang.RuntimeException: Error when executing the CommandExecutorTasks at org.grep4j.core.executors.GrepTaskExecutor.execute(GrepTaskExecutor.java:51) at org.grep4j.core.executors.GrepTaskExecutor.execute(GrepTaskExecutor.java:25) at org.grep4j.core.task.GrepTask.call(GrepTask.java:51) at org.grep4j.core.task.GrepTask.call(GrepTask.java:31) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: ERROR: Unrecoverable error when performing remote command ERROR: Unrecoverable error when trying to connect to serverDetails : ServerDetails(host=remote.host, user=eanfuser, password=null, port=22, privateKeyLocation=/home/user/.ssh/id_rsa, isPasswordRequired=false) at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.grep4j.core.executors.GrepTaskExecutor.execute(GrepTaskExecutor.java:48) ... 7 more Caused by: java.lang.RuntimeException: ERROR: Unrecoverable error when performing remote command ERROR: Unrecoverable error when trying to connect to serverDetails : ServerDetails(host=remote.host, user=eanfuser, password=null, port=22, privateKeyLocation=/home/user/.ssh/id_rsa, isPasswordRequired=false) at org.grep4j.core.command.linux.JschCommandExecutor.execute(JschCommandExecutor.java:46) at org.grep4j.core.task.CommandExecutorTask.call(CommandExecutorTask.java:35) at org.grep4j.core.task.CommandExecutorTask.call(CommandExecutorTask.java:19) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ... 4 more Caused by: java.lang.RuntimeException: ERROR: Unrecoverable error when trying to connect to serverDetails : ServerDetails(host=remote.host, user=eanfuser, password=null, port=22, privateKeyLocation=/home/user/.ssh/id_rsa, isPasswordRequired=false) at org.grep4j.core.command.linux.SessionFactory.makeObject(SessionFactory.java:39) at org.grep4j.core.command.linux.SessionFactory.makeObject(SessionFactory.java:15) at org.apache.commons.pool.impl.StackKeyedObjectPool.borrowObject(StackKeyedObjectPool.java:165) at org.grep4j.core.command.linux.JschCommandExecutor.execute(JschCommandExecutor.java:37) ... 8 more Caused by: com.jcraft.jsch.JSchException: Auth cancel at com.jcraft.jsch.Session.connect(Session.java:490) at com.jcraft.jsch.Session.connect(Session.java:162) at org.grep4j.core.command.linux.SessionFactory.makeObject(SessionFactory.java:37) ... 11 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    98 more bugmates