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.

Reply via email to