Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
-
Debian sid.
Description
One of my waves has a corrupt delta (somehow) which is preventing the server from starting at all due to an exception not being handled.
The stacktrace is:
Exception in thread "main" java.lang.NegativeArraySizeException
at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.readTransformedWaveletDelta(FileDeltaCollection.java:510)
at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.readTransformedDeltaFromRecord(FileDeltaCollection.java:435)
at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.access$100(FileDeltaCollection.java:64)
at org.waveprotocol.box.server.persistence.file.FileDeltaCollection$1$1.hasNext(FileDeltaCollection.java:308)
at org.waveprotocol.box.server.persistence.file.DeltaIndex.rebuildIndexFromDeltas(DeltaIndex.java:100)
at org.waveprotocol.box.server.persistence.file.DeltaIndex.openForCollection(DeltaIndex.java:75)
at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.open(FileDeltaCollection.java:128)
at org.waveprotocol.box.server.persistence.file.FileDeltaStore.open(FileDeltaStore.java:69)
at org.waveprotocol.box.server.persistence.file.FileDeltaStore.lookup(FileDeltaStore.java:101)
at org.waveprotocol.box.server.persistence.file.FileDeltaStore$3.fetchNext(FileDeltaStore.java:149)
at org.waveprotocol.box.server.persistence.file.FileDeltaStore$3.hasNext(FileDeltaStore.java:161)
at org.waveprotocol.box.server.waveserver.WaveMap.loadAllWavelets(WaveMap.java:682)
at org.waveprotocol.box.server.waveserver.WaveServerImpl.initialize(WaveServerImpl.java:283)
at org.waveprotocol.box.server.ServerMain.initializeServer(ServerMain.java:210)
at org.waveprotocol.box.server.ServerMain.run(ServerMain.java:174)
at org.waveprotocol.box.server.ServerMain.main(ServerMain.java:127)
I am now working on a patch to enable the server to boot, simply ignoring the corrupt delta.