1 Reply Latest reply on Jan 21, 2015 3:27 AM by Nuwan Karunathilaka

    ERROR [stderr] (http-localhost-127.0.0.1-8080-1) com.jcraft.jsch.JSchException: Auth fail

    Nuwan Karunathilaka Newbie

      Dear all,

           This is my first post in this forum and so, hi to all   . I'm currently deploying an application in JBOSS AS 7.1 where that application sends commands to unix servers through SSH2 and retrieves the results for monitoring. The library I used is jsch-0.1.49.jar for this. Application was deployed successfully. When I initiated a command through http of the web application(this will invoke an EJB where ssh session is started and results are loaded to H2DB), servers gives below error. Rest of the application is working fine since I initially tested it without using SSH commands and using just some basic http invocations. Not much experience in JBOSS 7 and appreciate your kind support regarding this.

       

       

      07:50:41,540 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) com.jcraft.jsch.JSchException: Auth fail

      07:50:41,540 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at com.jcraft.jsch.Session.connect(Session.java:491)

      07:50:41,540 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at com.jcraft.jsch.Session.connect(Session.java:162)

      07:50:41,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at ccrm.monitoring.businessmethod.ServerConnectBean.ServerLog(ServerConnectBean.java:53)

      07:50:41,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      07:50:41,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      07:50:41,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      07:50:41,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Unknown Source)

      07:50:41,572 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

      07:50:41,572 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,572 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

      07:50:41,572 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

      07:50:41,587 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,587 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

      07:50:41,587 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,587 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

      07:50:41,587 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,603 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      07:50:41,603 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

      07:50:41,603 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,603 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

      07:50:41,603 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,619 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)

      07:50:41,619 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)

      07:50:41,619 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)

      07:50:41,619 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,619 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)

      07:50:41,634 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,634 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

      07:50:41,634 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,634 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

      07:50:41,634 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

      07:50:41,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

      07:50:41,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

      07:50:41,665 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      07:50:41,665 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      07:50:41,665 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

      07:50:41,665 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)

      07:50:41,665 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)

      07:50:41,681 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)

      07:50:41,681 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

      07:50:41,681 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)

      07:50:41,681 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

      07:50:41,681 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)

      07:50:41,681 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

      07:50:41,697 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

      07:50:41,697 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at $Proxy15.ServerLog(Unknown Source)

      07:50:41,697 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at ccrm.monitoring.log.CCRMLOG.doGet(CCRMLOG.java:45)

      07:50:41,697 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      07:50:41,697 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      07:50:41,697 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      07:50:41,712 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      07:50:41,712 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      07:50:41,712 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      07:50:41,712 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

      07:50:41,712 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

      07:50:41,712 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      07:50:41,728 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      07:50:41,728 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

      07:50:41,728 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      07:50:41,728 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

      07:50:41,744 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

      07:50:41,744 ERROR [stderr] (http-localhost-127.0.0.1-

      8080-1)    at java.lang.Thread.run(Unknown Source)

       

      Thanks,

      Nuwan Mahesh