-
Notifications
You must be signed in to change notification settings - Fork 370
Exception in Neighbor Router after upgrade vfrom 1.7.1 to 1.8.0 #1508
Comments
What version of java are you on? This is a Java 9 change. A quick fix is to update to 9 as well. We can make this runnable on 8 by casting before flipping like so: |
@GalRogozinski According to this guy; we couldve still compiled it to a java 9 feature. I didnt test it myself, but lots of people seem to agree: plasma-umass/doppio#497 (comment) |
@kwek20 |
@GalRogozinski Ah i figured maybe you had a higher java, but set compile target as 1.8. |
I think we should take some time when we feel like it to go over all the changes we need to do so it works on java 11 (or even 9), and do them. Then we should officially compile on that version. Otherwise we are fixing one thing for java 9/10/11 and then a commit later we will be breaking another thing. |
All neighbors after upügrade are shown as "connected: false"
I think that has to do with this error.
With 1.7.1 all worked fine and i only replaced iri.
Bug description
Exception in 1.8.0 after uügrade from 1.7.1
IRI version
1.8.0
Steps To Reproduce
Errors
07/10 19:40:58.174 [Neighbor Router] INFO NeighborRouter:336 - established connection to neighbor ***, now performing handshake...
07/10 19:40:58.176 [Neighbor Router] INFO NeighborRouter:262 - neighbor router stopped
Exception in thread "Neighbor Router" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at com.iota.iri.network.protocol.Handshake.createHandshakePacket(Handshake.java:48)
at com.iota.iri.network.NeighborRouter.handleConnect(NeighborRouter.java:341)
at com.iota.iri.network.NeighborRouter.route(NeighborRouter.java:228)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
The text was updated successfully, but these errors were encountered: