DbStateException when a connection is opened
@grote observed this on three phones that had been used to test the introduction protocol. In all cases the exception happened at the first connection attempt after startup. The exception was thrown for both incoming and outgoing connections, when trying to increment the stream counter for the outgoing stream.
The exception prevents the phones from connecting, so this is a release blocker.
04-28 08:42:31.852 I/TcpPlugin: Connected to /192.168.1.3
04-28 08:42:31.859 W/ConnectionManagerImpl: org.briarproject.bramble.api.db.DbException: org.briarproject.bramble.db.DbStateException
org.briarproject.bramble.api.db.DbException: org.briarproject.bramble.db.DbStateException
at org.briarproject.bramble.db.JdbcDatabase.incrementStreamCounter(JdbcDatabase.java:2215)
at org.briarproject.bramble.db.JdbcDatabase.incrementStreamCounter(JdbcDatabase.java:73)
at org.briarproject.bramble.db.DatabaseComponentImpl.incrementStreamCounter(DatabaseComponentImpl.java:616)
at org.briarproject.bramble.transport.TransportKeyManagerImpl.getStreamContext(TransportKeyManagerImpl.java:314)
at org.briarproject.bramble.transport.KeyManagerImpl.getStreamContext(KeyManagerImpl.java:182)
at org.briarproject.bramble.plugin.ConnectionManagerImpl$ManageOutgoingDuplexConnection.run(ConnectionManagerImpl.java:346)