Cannot get next power of 2 - exception
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
Getting the following on v 0.21.1
java.lang.IllegalArgumentException: Cannot get next power of 2; 1073745513 is too large
at net.schmizz.sshj.common.Buffer.getNextPowerOf2 (Buffer.java:69)
at net.schmizz.sshj.common.Buffer.ensureCapacity (Buffer.java:142)
at net.schmizz.sshj.common.Buffer.putRawBytes (Buffer.java:270)
at net.schmizz.sshj.connection.channel.ChannelInputStream.receive (ChannelInputStream.java:126)
at net.schmizz.sshj.connection.channel.AbstractChannel.receiveInto (AbstractChannel.java:369)
at net.schmizz.sshj.connection.channel.AbstractChannel.handle (AbstractChannel.java:171)
at net.schmizz.sshj.connection.ConnectionImpl.handle (ConnectionImpl.java:130)
at net.schmizz.sshj.transport.TransportImpl.handle (TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decode (Decoder.java:102)
at net.schmizz.sshj.transport.Decoder.received (Decoder.java:170)
at net.schmizz.sshj.transport.Reader.run (Reader.java:59)
[INFO] Disconnected - UNKNOWN
[ERROR] <> woke to: net.schmizz.sshj.connection.ConnectionException: Cannot get next power of 2; 1073745513 is too large
net.schmizz.sshj.connection.ConnectionException: Cannot get next power of 2; 1073745513 is too large
at net.schmizz.sshj.connection.ConnectionException$1.chain(ConnectionException.java:32)
at net.schmizz.sshj.connection.ConnectionException$1.chain(ConnectionException.java:26)
at net.schmizz.concurrent.Promise.deliverError(Promise.java:96)
at net.schmizz.concurrent.Event.deliverError(Event.java:74)
at net.schmizz.concurrent.ErrorDeliveryUtil.alertEvents(ErrorDeliveryUtil.java:34)
at net.schmizz.sshj.connection.channel.AbstractChannel.notifyError(AbstractChannel.java:238)
at net.schmizz.sshj.connection.channel.direct.SessionChannel.notifyError(SessionChannel.java:229)
at net.schmizz.sshj.common.ErrorNotifiable$Util.alertAll(ErrorNotifiable.java:35)
at net.schmizz.sshj.connection.ConnectionImpl.notifyError(ConnectionImpl.java:258)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:601)
at net.schmizz.sshj.transport.Reader.run(Reader.java:67)
Caused by: net.schmizz.sshj.common.SSHException: Cannot get next power of 2; 1073745513 is too large
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:36)
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:29)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:595)
... 1 more
Caused by: java.lang.IllegalArgumentException: Cannot get next power of 2; 1073745513 is too large
at net.schmizz.sshj.common.Buffer.getNextPowerOf2(Buffer.java:69)
at net.schmizz.sshj.common.Buffer.ensureCapacity(Buffer.java:142)
at net.schmizz.sshj.common.Buffer.putRawBytes(Buffer.java:270)
at net.schmizz.sshj.connection.channel.ChannelInputStream.receive(ChannelInputStream.java:126)
at net.schmizz.sshj.connection.channel.AbstractChannel.receiveInto(AbstractChannel.java:369)
at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:171)
at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:130)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:102)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:170)
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.