You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2009/03/25 02:41:50 UTC

[jira] Resolved: (SHINDIG-960) Error on removal of canonicaldb json binding in GuiceModule for data service implementation of open social interfaces

     [ https://issues.apache.org/jira/browse/SHINDIG-960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner resolved SHINDIG-960.
----------------------------------

       Resolution: Fixed
    Fix Version/s: trunk

with adam's refactor to SampleModule this issue should be fixed.

Reopen if this is not the case.

Thanks!


> Error on removal of canonicaldb json binding in GuiceModule for data service implementation of open social interfaces
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-960
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-960
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>            Reporter: Pinky Muralidhar
>             Fix For: trunk
>
>
> SEVERE: Exception sending context initialized event to listener instance of class org.apache.shindig.common.servlet.GuiceServletContextListener
> com.google.inject.CreationException: Guice configuration errors:
> 1) Error at org.apache.shindig.social.sample.spi.JsonDbOpensocialService.<init>(JsonDbOpensocialService.java:105):
>  Error while injecting at org.apache.shindig.social.core.oauth.AuthenticationHandlerProvider.<init>(AuthenticationHandlerProvider.java:37): Error while injecting at org.apache.shindig.social.core.oauth.OAuthConsumerRequestAuthenticationHandler.<init>(OAuthConsumerRequestAuthenticationHandler.java:51): Error while injecting at org.apache.shindig.social.core.oauth.OAuthConsumerRequestAuthenticationHandler.<init>(OAuthConsumerRequestAuthenticationHandler.java:51): Error while injecting at org.apache.shindig.social.sample.oauth.SampleOAuthDataStore.<init>(SampleOAuthDataStore.java:46): Binding to java.lang.String annotated with @com.google.inject.name.Named(value=shindig.canonical.json.db) not found. Annotations on other bindings to that type include: [@com.google.inject.name.Named(value=shindig.cache.lru.messageBundles.capacity), @com.google.inject.name.Named(value=shindig.image-rewrite.jpeg-compression), @com.google.inject.name.Named(value=shindig.cache.lru.httpResponses.capacity), @com.google.inject.name.Named(value=shindig.cache.ehcache.config), @com.google.inject.name.Named(value=shindig.content-rewrite.exclude-urls), @com.google.inject.name.Named(value=shindig.content-rewrite.include-tags), @com.google.inject.name.Named(value=shindig.containers.default), @com.google.inject.name.Named(value=shindig.oauth.base-url), @com.google.inject.name.Named(value=shindig.content-rewrite.expires), @com.google.inject.name.Named(value=shindig.oauth.state-key), @com.google.inject.name.Named(value=shindig.image-rewrite.min-threshold-bytes), @com.google.inject.name.Named(value=shindig.http.fast-encoding-detection), @com.google.inject.name.Named(value=shindig.content-rewrite.include-urls), @com.google.inject.name.Named(value=shindig.cache.xml.refreshInterval), @com.google.inject.name.Named(value=shindig.image-rewrite.allow-jpeg-conversion), @com.google.inject.name.Named(value=shindig.oauth.authorize-action), @com.google.inject.name.Named(value=shindig.image-rewrite.max-palette-size), @com.google.inject.name.Named(value=shindig.signing.key-name), @com.google.inject.name.Named(value=shindig.cache.ehcache.jmx.stats), @com.google.inject.name.Named(value=shindig.content-rewrite.proxy-url), @com.google.inject.name.Named(value=shindig.cache.http.defaultTtl), @com.google.inject.name.Named(value=shindig.content-rewrite.concat-url), @com.google.inject.name.Named(value=shindig.cache.ehcache.jmx.enabled), @com.google.inject.name.Named(value=shindig.cache.lru.default.capacity), @com.google.inject.name.Named(value=shindig.blacklist.file), @com.google.inject.name.Named(value=shindig.image-rewrite.max-inmem-bytes), @com.google.inject.name.Named(value=shindig.cache.lru.gadgetSpecs.capacity), @com.google.inject.name.Named(value=shindig.features.default), @com.google.inject.name.Named(value=shindig.locked-domain.enabled), @com.google.inject.name.Named(value=shindig.cache.http.negativeCacheTtl), @com.google.inject.name.Named(value=shindig.signing.key-file)]
> 1 error[s]
> 	at com.google.inject.BinderImpl.createInjector(BinderImpl.java:277)
> 	at com.google.inject.Guice.createInjector(Guice.java:79)
> 	at org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:64)
> 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> -----Original Message-----
> From: Louis Ryan [mailto:lryan@google.com] 
> Sent: Tuesday, March 03, 2009 10:26 PM
> To: shindig-dev@incubator.apache.org
> Subject: Re: GuiceModule for open social
> Pinky,
> Can you file a bug with the error you see when you remove the canonicaldb json binding.
> -Louis
> On Tue, Mar 3, 2009 at 4:01 AM, <pi...@wipro.com> wrote:
> >
> > Hi,
> >
> > I am a newbie in shindig. I am trying to configure GuiceModule class 
> > for implementing data service of shindig open social interfaces.
> > I have attached my GuiceModule class for reference which I able to 
> > access my database.  The only problem I am facing is I am not able to 
> > get rid of the following line which throws error on removing.
> >
> > bind(String.class).annotatedWith(Names.named("shindig.canonical.json.db"))
> >          .toInstance("sampledata/canonicaldb.json");
> >
> > Can anyone guide me for the same. Thanks in Advance.
> >
> > Regards,
> > *Pinky Muralidhar**.*

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.