1 2 Previous Next 24 Replies Latest reply: Jul 24, 2014 1:47 AM by Daniel Merchán Go to original post RSS
      • 15. Re: Like and comment for content presenter task flow
        1482776

        Sure Daniel. Will do that.

         

        Thanks,

        Priya

        • 16. Re: Like and comment for content presenter task flow
          Daniel Merchán

          Hi.

           

          Add the following else to the current code:

           

          if (actObj != null) {
              nlc = getCommentsLikesFromActivityObject(actObj, nlc);
          } else {
              // In case of not being registered yet the Id and the Type must to be provided
              // FIXME: Current GUID or default GUID???? to be decided...
              nlc.setScopeGUID(ServiceContext.getContext().getScope().getGUID());
              //nlc.setScopeGUID(ServiceContext.getContext().getDefaultScope().getGUID());
              nlc.setActivityId(activityObject.getId());
              nlc.setActivityType(activityObject.getType().getName());
          }
          

           

          The problem was with the content that never participated in an activity and is not registered in WebCenter Schema.

          When actObj is null we have to still providing scopeGUID, activityID and ActivityType to likes tag.

           

          I'm working in a better solution in performance terms (becuase currently is called all the managed bean each time as is called and recalculated).

          In addition, I'm working in order to add the comments section as well.

           

          By the moment with this change in the Java you can continue using, at least, the like functionality.

           

          I hope this helps.

          Regards.

          • 17. Re: Like and comment for content presenter task flow
            1482776

            Thank you Very much Daniel. This piece of code fixed the issue. Thank you very much.

            • 18. Re: Like and comment for content presenter task flow
              1482776

              Hi Daniel by any chance did you happen to have the comments code for content presenter?

               

              Thanks

              Priya

              • 19. Re: Like and comment for content presenter task flow
                Daniel Merchán

                Hi.

                 

                Not yet, I was very busy and now starting holidays... I hope come back soon 100% completing this component and helping as always .

                 

                Regards.

                • 20. Re: Like and comment for content presenter task flow
                  1482776

                  Thank you for your response Daniel..

                   

                  Likes functionality was working for a while and i am getting this error now

                   

                  ADFc: While attempting to handle this exception the application's exception handler failed.

                  javax.faces.el.EvaluationException: javax.el.PropertyNotFoundException: The class 'com.sfi.portal.source.likesandcomments.LikesCommentsProcessor' does not have the property 'nodeLikeComments'.

                  at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)

                  at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1415)

                  at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)

                  at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

                  at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)

                  at oracle.webcenter.content.internal.view.template.AbstractTemplate.broadcast(AbstractTemplate.java:185)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

                  at oracle.webcenter.content.internal.view.template.AbstractTemplate.broadcast(AbstractTemplate.java:179)

                  at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)

                  at oracle.webcenter.content.internal.view.template.AbstractTemplate.broadcast(AbstractTemplate.java:185)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

                  at oracle.webcenter.content.internal.view.template.AbstractTemplate.broadcast(AbstractTemplate.java:179)

                  at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:181)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

                  at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

                  at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

                  at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)

                  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1086)

                  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:434)

                  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)

                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

                  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

                  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

                  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

                  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:34)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:45)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.webcenter.generalsettings.model.provider.GeneralSettingsProviderFilter.doFilter(GeneralSettingsProviderFilter.java:85)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:342)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:954)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:117)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:71)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:131)

                  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)

                  at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

                  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)

                  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

                  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

                  at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:181)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:369)

                  at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:265)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.adfinternal.view.faces.caching.filter.AdfFacesCachingFilter.doFilter(AdfFacesCachingFilter.java:126)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)

                  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

                  at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

                  at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

                  at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

                  at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)

                  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

                  at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

                  at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

                  at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

                  at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

                  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)

                  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)

                  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)

                  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

                  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

                  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

                  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

                  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

                  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

                  at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

                  Caused by: javax.el.PropertyNotFoundException: The class 'com.sfi.portal.source.likesandcomments.LikesCommentsProcessor' does not have the property 'nodeLikeComments'.

                  at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:579)

                  at javax.el.BeanELResolver.getValue(BeanELResolver.java:281)

                  at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)

                  at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)

                  at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

                  at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)

                  at oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper.getProperty(UIXInclude.java:586)

                  at org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1353)

                  at oracle.webcenter.likes.internal.view.taglib.LikesComponentBase.evalAttr(LikesComponentBase.java:293)

                  at oracle.webcenter.likes.internal.view.taglib.LikesComponentBase._evalObjectId(LikesComponentBase.java:268)

                  at oracle.webcenter.likes.internal.view.taglib.LikesComponentBase.getObjectDetailId(LikesComponentBase.java:242)

                  at oracle.webcenter.likes.internal.view.taglib.LikesLink.submitLike(LikesLink.java:162)

                  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 com.sun.el.parser.AstValue.invoke(AstValue.java:187)

                  at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)

                  at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)

                  ... 98 more

                   

                   

                  but i see the nodeLikeComments in the class

                  • 21. Re: Like and comment for content presenter task flow
                    Daniel Merchán

                    Hi.

                     

                    This just can be a deployment issue. Be sure that the deployed code (shared-lib) contains the nodeLikeComments and it has the getter and setter methods.

                     

                    Regards.

                    • 22. Re: Like and comment for content presenter task flow
                      1482776

                      Sure. I will check it and will update Daniel.

                       

                      Thanks,

                      Priya

                      • 23. Re: Like and comment for content presenter task flow
                        1482776

                        Hi Daniel, I am not able to post a new question but here is another issue I am facing this issue:-

                         

                        'Forums not Accessible' message in the webcenter portal spaces for discussions and errors in webcenter services provisionig

                         

                        I am seeing an issue in services getting provisioned when a AD user group is being added to the portal instead of a single user. Not sure if has something to do with the actual permissions added to that group in AD. But here is the issue that I am facing:-

                         

                        1. Created a Portal (with all the webcenter services enabled)

                         

                        2. Added an AD group to the portal created in the step 1.

                         

                        3. Logged into portal as one of the users from the AD group.

                         

                        4. All the services (Discussions, Announcements, Documents , etc...) show warning messages like, 'Forum not accessible' , 'Documents Service is not enabled for this portal' etc.,,

                         

                        5. I logged into content server and clicked on the user name to see the accounts and roles the user has... I was not able to see the space guid as one of the accounts added to the user.

                         

                        Please suggest in this regard.

                         

                        Thanks,

                         

                        Priya

                        • 24. Re: Like and comment for content presenter task flow
                          Daniel Merchán

                          Hi.


                          Did you configure Discussions for AD as well or just WebCenter Spaces?.

                           

                          If you have AD you have to configure Discussions and Documents as well in order to use the same Identity Store.

                          Please refer: Configuring the Identity Store - 11g Release 1 (11.1.1.8.3)

                           

                          I hope this helps to fix your problem.

                          Regards.

                          1 2 Previous Next