I'm getting this error when trying to use this lib on a shared server with quite a lot of users:
java.lang.ArrayIndexOutOfBoundsException: 1024
at com.jcraft.jsch.agentproxy.Buffer.getByte(Buffer.java:142)
at com.jcraft.jsch.agentproxy.Buffer.getShort(Buffer.java:138)
at com.jcraft.jsch.agentproxy.Buffer.getInt(Buffer.java:123)
at com.jcraft.jsch.agentproxy.Buffer.getString(Buffer.java:181)
at com.jcraft.jsch.agentproxy.AgentProxy.getIdentities(AgentProxy.java:112)
at com.jcraft.jsch.agentproxy.RemoteIdentityRepository.getIdentities(RemoteIdentityRepository.java:47)
at com.jcraft.jsch.UserAuthPublicKey.start(UserAuthPublicKey.java:39)
at com.jcraft.jsch.Session.connect(Session.java:463)
at com.jcraft.jsch.Session.connect(Session.java:183)
If this can help, in AgentProxy.getIdentities(), I get:
- rcode=0
- count=267
- it crashes at i=127
The factory is NCUSocketFactory.
The version of netcat is 1.84 (on CentOS 6.X).
I'm getting this error when trying to use this lib on a shared server with quite a lot of users:
If this can help, in
AgentProxy.getIdentities(), I get:The factory is
NCUSocketFactory.The version of netcat is 1.84 (on CentOS 6.X).