Thanks for all the help. I worked out a different fix (committed and pushed as revision 07e0ae3086) using Vega's suggestion.
On Sat, Dec 4, 2010 at 9:31 AM, James Purser <[email protected]> wrote: > Adding the following allowed it to build: > public DeltaStoreBasedWaveletStore(){ > this.deltaStore = null; > } > James > On Sat, Dec 4, 2010 at 9:04 AM, Soren Lassen <[email protected]> wrote: >> >> Sorry, I'm sure my changes yesterday were to blame. I'll try to write >> a fix now or else will roll back the changes. >> >> Soren >> >> On Sat, Dec 4, 2010 at 8:45 AM, Matt Richards <[email protected]> wrote: >> > +1 (have this problem as well..) >> > >> > On Fri, Dec 3, 2010 at 6:31 AM, Vega <[email protected]> wrote: >> >> >> >> I just synced the last Wiab version and I have problems running it. >> >> >> >> >> >> Dec 3, 2010 2:25:40 PM >> >> org.waveprotocol.box.server.persistence.mongodb.MongoDbProvider start >> >> INFO: Started MongoDb persistence >> >> Exception in thread "main" com.google.inject.CreationException: Guice >> >> creation errors: >> >> >> >> 1) Could not find a suitable constructor in >> >> org.waveprotocol.box.server.waveserver.DeltaStoreBasedWaveletStore. >> >> Classes must have either one (and only one) constructor annotated with >> >> @Inject or a zero-argument constructor that is not private. >> >> at >> >> >> >> >> >> org.waveprotocol.box.server.waveserver.DeltaStoreBasedWaveletStore.class(DeltaStoreBasedWaveletStore.java: >> >> 215) >> >> at >> >> >> >> >> >> org.waveprotocol.box.server.waveserver.WaveServerModule.configure(WaveServerModule.java: >> >> 94) >> >> >> >> 1 error >> >> at >> >> >> >> >> >> com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java: >> >> 385) >> >> at >> >> >> >> >> >> com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java: >> >> 164) >> >> at >> >> >> >> >> >> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java: >> >> 116) >> >> at >> >> >> >> >> >> com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java: >> >> 186) >> >> at >> >> >> >> >> >> com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java: >> >> 193) >> >> at >> >> org.waveprotocol.box.server.ServerMain.run(ServerMain.java:98) >> >> at >> >> org.waveprotocol.box.server.ServerMain.main(ServerMain.java:69) >> >> >> >> When I add @Inject annotation to the DeltaStoreBasedWaveletStore and >> >> rebuild, I get the following error: >> >> >> >> Dec 3, 2010 2:28:35 PM >> >> org.waveprotocol.box.server.persistence.mongodb.MongoDbProvider start >> >> INFO: Started MongoDb persistence >> >> Exception in thread "main" com.google.inject.CreationException: Guice >> >> creation errors: >> >> >> >> 1) No implementation for >> >> org.waveprotocol.box.server.waveserver.DeltaStore was bound. >> >> while locating org.waveprotocol.box.server.waveserver.DeltaStore >> >> for parameter 0 at >> >> >> >> >> >> org.waveprotocol.box.server.waveserver.DeltaStoreBasedWaveletStore.<init>(DeltaStoreBasedWaveletStore.java: >> >> 215) >> >> at >> >> >> >> >> >> org.waveprotocol.box.server.waveserver.WaveServerModule.configure(WaveServerModule.java: >> >> 94) >> >> >> >> 1 error >> >> at >> >> >> >> >> >> com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java: >> >> 385) >> >> at >> >> >> >> >> >> com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java: >> >> 164) >> >> at >> >> >> >> >> >> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java: >> >> 116) >> >> at >> >> >> >> >> >> com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java: >> >> 186) >> >> at >> >> >> >> >> >> com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java: >> >> 193) >> >> at >> >> org.waveprotocol.box.server.ServerMain.run(ServerMain.java:98) >> >> at >> >> org.waveprotocol.box.server.ServerMain.main(ServerMain.java:69) >> >> >> >> I guess it's because the code that creates PerstanceModule that bounds >> >> DeltaStore to implementation class runs later in the run() method. >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Wave Protocol" group. >> >> To post to this group, send email to [email protected]. >> >> To unsubscribe from this group, send email to >> >> [email protected]. >> >> For more options, visit this group at >> >> http://groups.google.com/group/wave-protocol?hl=en. >> >> >> > >> > >> > >> > -- >> > --Matt >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Wave Protocol" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/wave-protocol?hl=en. >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Wave Protocol" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/wave-protocol?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Wave Protocol" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/wave-protocol?hl=en. > -- You received this message because you are subscribed to the Google Groups "Wave Protocol" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/wave-protocol?hl=en.
