Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshj exception #34

Open
alanroche opened this issue Jun 29, 2018 · 0 comments
Open

sshj exception #34

alanroche opened this issue Jun 29, 2018 · 0 comments

Comments

@alanroche
Copy link

alanroche commented Jun 29, 2018

I am not sure if this is something anyone else is observing, - getting this a lot (version 1.0.14) running a simulation for > 30 mins or so across a few ec2 instances. Yes, I undertstand it is an error in sshj, but not sure if it has been introduced due to recent version upgrades

09:38:06.483 [ERROR] XSimulation - Expected: [ERROR] Dying because - {}
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] <<chan#0 / close>> 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant