Hi, Recently the shindig version was changed to an older version (1.1.0.wso2v5). This issue might be caused due to the current version of 'org.json'. Using an older version of json may solve the issue. Will further look into this in order to find a proper fix.
Thanks, Achala On Mon, May 7, 2012 at 4:53 PM, Achala Aponso <[email protected]> wrote: > Hi KasunW, > > I am looking into this. > > Thanks, > Achala > > > On Mon, May 7, 2012 at 3:11 PM, Kasun Weranga <[email protected]> wrote: > >> Hi Achala, >> >> Now dashboard is working, but I am getting the following exception when >> starting the bam. >> >> [2012-05-07 15:06:13,552] ERROR >> {org.wso2.carbon.dashboard.ui.internal.DashboardUiServiceComponent} - >> Guice creation errors: >> >> 1) Error injecting constructor, org.json.JSONException: A JSONObject text >> must begin with '{' at character 1 >> at >> org.apache.shindig.social.sample.spi.JsonDbOpensocialService.<init>(JsonDbOpensocialService.java:121) >> while locating >> org.apache.shindig.social.sample.spi.JsonDbOpensocialService >> for field at >> org.apache.shindig.social.sample.oauth.SampleRealm.jsonDbService(SampleRealm.java:43) >> >> 1 error >> com.google.inject.CreationException: Guice creation errors: >> >> 1) Error injecting constructor, org.json.JSONException: A JSONObject text >> must begin with '{' at character 1 >> at >> org.apache.shindig.social.sample.spi.JsonDbOpensocialService.<init>(JsonDbOpensocialService.java:121) >> while locating >> org.apache.shindig.social.sample.spi.JsonDbOpensocialService >> for field at >> org.apache.shindig.social.sample.oauth.SampleRealm.jsonDbService(SampleRealm.java:43) >> >> 1 error >> at >> com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354) >> at >> com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:173) >> at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:113) >> at com.google.inject.Guice.createInjector(Guice.java:92) >> at >> org.wso2.carbon.dashboard.ui.internal.DashboardUiServiceComponent.initShindig(DashboardUiServiceComponent.java:149) >> at >> org.wso2.carbon.dashboard.ui.internal.DashboardUiServiceComponent.activate(DashboardUiServiceComponent.java:87) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196) >> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328) >> at >> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221) >> at >> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >> at >> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >> at >> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >> at >> org.wso2.carbon.ui.internal.CarbonUIServiceComponent.start(CarbonUIServiceComponent.java:300) >> at >> org.wso2.carbon.ui.internal.CarbonUIServiceComponent.activate(CarbonUIServiceComponent.java:121) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196) >> at >> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328) >> at >> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221) >> at >> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >> at >> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >> at >> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >> at >> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:497) >> at >> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:288) >> at >> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118) >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) >> at >> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >> at >> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) >> Caused by: org.json.JSONException: A JSONObject text must begin with '{' >> at character 1 >> at org.json.JSONTokener.syntaxError(JSONTokener.java:410) >> at org.json.JSONObject.<init>(JSONObject.java:179) >> at org.json.JSONObject.<init>(JSONObject.java:402) >> at >> org.apache.shindig.social.sample.spi.JsonDbOpensocialService.<init>(JsonDbOpensocialService.java:123) >> at >> org.apache.shindig.social.sample.spi.JsonDbOpensocialService$$FastClassByGuice$$114b7d7.newInstance(<generated>) >> at >> com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40) >> at >> com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) >> at >> com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:85) >> at >> com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111) >> at >> com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45) >> at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811) >> at >> com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42) >> at com.google.inject.Scopes$1$1.get(Scopes.java:54) >> at >> com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48) >> at >> com.google.inject.SingleFieldInjector.inject(SingleFieldInjector.java:56) >> at >> com.google.inject.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:109) >> at >> com.google.inject.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:106) >> at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804) >> at >> com.google.inject.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor.java:106) >> at >> com.google.inject.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:74) >> at >> com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:168) >> ... 54 more >> >> >> >> Thanks, >> KasunW. >> >> >> On Fri, May 4, 2012 at 1:21 PM, Tharindu Mathew <[email protected]>wrote: >> >>> Thanks Achala for the comprehensive update. I will svn up and check now. >>> >>> >>> On Fri, May 4, 2012 at 12:41 PM, Nuwan Bandara <[email protected]> wrote: >>> >>>> Who has made r125454 ? If such changes are made, please >>>> be careful enough to do a full products build and see if they work okey. >>>> >>>> >>>> On Fri, May 4, 2012 at 12:38 PM, Achala Aponso <[email protected]> wrote: >>>> >>>>> Hi Tharindu, >>>>> >>>>> I checked this issue in GS also and the shindig bundle is not in >>>>> ACTIVE state due to a package conflict. (com.google.common.collect). Due >>>>> to >>>>> that reason the dashboard is not working. This is caused by the commit >>>>> r125454. >>>>> When I changed the version to >>>>> com.google.common.*;version="[1.0.0.wso2v2,2)"., the issue is solved and >>>>> the gadgets are loaded to the dashboard. >>>>> >>>>> the diff is >>>>> >>>>> - >>>>> com.google.common.*;version="[11.0.1.wso2v1,11.0.1.wso2v1]", >>>>> + >>>>> com.google.common.*;version="[1.0.0.wso2v2,2)", >>>>> >>>>> r125454 was done to fix an issue in the Manager. Will commit the >>>>> above change, once the Manager build is successful. >>>>> >>>>> Thanks, >>>>> Achala >>>>> >>>>> >>>>> On Fri, May 4, 2012 at 11:57 AM, Tharindu Mathew <[email protected]>wrote: >>>>> >>>>>> Achala, >>>>>> >>>>>> Please give us an update on this. This is a major blocker for any >>>>>> work with the dashboard. >>>>>> >>>>>> >>>>>> On Fri, May 4, 2012 at 9:39 AM, Achala Aponso <[email protected]>wrote: >>>>>> >>>>>>> Hi >>>>>>> >>>>>>> We are looking into it. >>>>>>> >>>>>>> Thanks, >>>>>>> Achala >>>>>>> >>>>>>> On Thu, May 3, 2012 at 6:42 PM, Kasun Weranga <[email protected]>wrote: >>>>>>> >>>>>>>> Hi all, >>>>>>>> >>>>>>>> I am getting a dead page when going to the dashboard in latest >>>>>>>> trunk build of bam2. Also it doesn't report any exception in the >>>>>>>> backend. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> KasunW >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Dev mailing list >>>>>>>> [email protected] >>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Achala Aponso >>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com, >>>>>>> Email: [email protected] Mobile: +94 (77) 5234925 >>>>>>> Blog: http://achala11.blogspot.com/ >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Dev mailing list >>>>>>> [email protected] >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> >>>>>> Tharindu >>>>>> >>>>>> blog: http://mackiemathew.com/ >>>>>> M: +94777759908 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Achala Aponso >>>>> Software Engineer; WSO2 Inc.; http://wso2.com, >>>>> Email: [email protected] Mobile: +94 (77) 5234925 >>>>> Blog: http://achala11.blogspot.com/ >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Thanks & Regards, >>>> >>>> Nuwan Bandara >>>> Associate Technical Lead & Member, MC, Development Technologies >>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 >>>> 9629 >>>> * >>>> <http://www.nuwanbando.com/> >>>> >>> >>> >>> >>> -- >>> Regards, >>> >>> Tharindu >>> >>> blog: http://mackiemathew.com/ >>> M: +94777759908 >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> > > > -- > Achala Aponso > Software Engineer; WSO2 Inc.; http://wso2.com, > Email: [email protected] Mobile: +94 (77) 5234925 > Blog: http://achala11.blogspot.com/ > > > -- Achala Aponso Software Engineer; WSO2 Inc.; http://wso2.com, Email: [email protected] Mobile: +94 (77) 5234925 Blog: http://achala11.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
