Topic
9 replies Latest Post - ‏2012-03-15T09:11:05Z by MKSaravanan
MKSaravanan
MKSaravanan
24 Posts
ACCEPTED ANSWER

Pinned topic Search service in wcm

‏2012-02-22T07:53:58Z |
hi,
I get the following exception for the code
'*SearchProvider searchProvider = (SearchProvider) portletServiceHome.getPortletService(com.ibm.portal.portlet.service.search.SearchProvider.class);

SiapiManagementFactory siapiManagementFactory = searchProvider.getSiapiManagementFactory("com.ibm.lotus.search.siapi.SiapiManagementFactory", new Properties());

FactoryInfo searchFactoryInfo = siapiManagementFactory.getSearchFactoryInfo("com.ibm.lotus.search.plugins.pse.PSESearchFactoryImp");

searchFactory = siapiManagementFactory.getSearchFactory(searchFactoryInfo);

Properties prop = new Properties();
prop.put("USER_ID", userDN);
searchService = searchFactory.getSearchService(prop);
appInfo = searchFactory.createApplicationInfo(userDN);
Searchable[] portalCollections = searchService.getAvailableSearchables(appInfo);*;'
using siapi service

PortalCollectionsService EJPJO0119E: Failed to initialize portal collections services.
com.ibm.hrl.portlets.WsPse.PortalWebScannerException: EJPJO0118E: Failed to initialize security manager.
at com.ibm.hrl.portlets.WsPse.SecurityManager.<init>(SecurityManager.java:136)
at com.ibm.hrl.portlets.WsPse.PortalCollectionsService.<init>(PortalCollectionsService.java:380)
at com.ibm.hrl.wp.siapi.pseAdapter.util.PSEutil.getPse(Unknown Source)
at com.ibm.hrl.wp.siapi.pseAdapter.util.PSEutil.getPse(Unknown Source)
at com.ibm.hrl.wp.siapi.pseAdapter.search.SearchAdapterImp.connect(Unknown Source)
at com.ibm.hrl.wp.siapi.generic.common.BaseFactoryImp.createAdapter(Unknown Source)
at com.ibm.hrl.wp.siapi.generic.common.BasicService.createAdapter(Unknown Source)

Is there any changes to be made on admin side.. Its urgent
Updated on 2012-03-15T09:11:05Z at 2012-03-15T09:11:05Z by MKSaravanan
  • SystemAdmin
    SystemAdmin
    30899 Posts
    ACCEPTED ANSWER

    Re: Search service in wcm

    ‏2012-02-22T11:30:19Z  in response to MKSaravanan
    Hi,

    any other exceptions in the log, especially at startup?

    If not, enable trace com.ibm.hrl.*=all=enabled, try again and check the log files for more details.

    Sven

    The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
    • MKSaravanan
      MKSaravanan
      24 Posts
      ACCEPTED ANSWER

      Re: Search service in wcm

      ‏2012-02-23T05:33:39Z  in response to SystemAdmin
      Hi Stueven, thanks for your quick reply.
      I enabled the trace there also geting the same exception.
      please help me to resolve this problem.I stuck with this problem for long time.
      provide some reference.
      • SystemAdmin
        SystemAdmin
        30899 Posts
        ACCEPTED ANSWER

        Re: Search service in wcm

        ‏2012-02-23T07:44:02Z  in response to MKSaravanan
        Hi MKSaravanan,

        please attach SystemErr.log and trace.log from <PortalServerHome>/wp_profile/logs/WebSphere_Portal to the forum. We can then have a look, at the end a PMR might be needed.

        Sven

        The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
        • MKSaravanan
          MKSaravanan
          24 Posts
          ACCEPTED ANSWER

          Re: Search service in wcm

          ‏2012-02-23T08:27:04Z  in response to SystemAdmin
          Hi Stueven,
          I have attached the trace.log.
          kindly suggest.

          Attachments

        • MKSaravanan
          MKSaravanan
          24 Posts
          ACCEPTED ANSWER

          Re: Search service in wcm

          ‏2012-02-23T08:28:25Z  in response to SystemAdmin
          Hi Stueven,
          I have attached the systemErr.log.
          kindly suggest.
          • SystemAdmin
            SystemAdmin
            30899 Posts
            ACCEPTED ANSWER

            Re: Search service in wcm

            ‏2012-02-23T08:55:42Z  in response to MKSaravanan
            OK, error is this:
            Caused by: com.ibm.wps.um.exceptions.impl.MemberNotFoundExceptionImpl: com.ibm.portal.puma.MemberNotFoundException: EJPSG0002E: Requested Member does not exist.wasadmin/null
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.um.VMMExceptionHelper.rethrowSystemMNF(VMMExceptionHelper.java:227)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.um.PumaEngineHelper.loadWithBaseAttributes(PumaEngineHelper.java:768)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.um.PumaLocatorImpl.findUserByIdentifier(PumaLocatorImpl.java:129)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.services.puma.PumaServiceImpl$4.run(PumaServiceImpl.java:441)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.services.puma.PumaServiceImpl$4.run(PumaServiceImpl.java:438)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.um.PumaEngineHelper.runWithoutPAC(PumaEngineHelper.java:1361)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.services.puma.PumaServiceImpl.executeWithoutPAC(PumaServiceImpl.java:2503)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R at com.ibm.wps.services.puma.PumaServiceImpl.findUserById(PumaServiceImpl.java:437)
            2/23/12 14:01:08:625 IST 00000034 SystemErr R ... 173 more
            2/23/12 14:01:08:625 IST 00000034 SystemErr R Caused by: com.ibm.portal.puma.MemberNotFoundException: EJPSG0002E: Requested Member does not exist.wasadmin/null
            2/23/12 14:01:08:625 IST 00000034 SystemErr R ... 181 more
            So either your portlet (seems like a Web Experience Factory portlet) or the search administration in WebSphere Portal take the user "wasadmin" to execute the action. And that user is not found in your user repository.

            Either because it really does not exist or because the WMM(if V6) or VMM(V6.1 and up) is configured incorrect.

            Check for that user or change the place, where wasadmin is set where it should not be.

            Sven

            The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
            • MKSaravanan
              MKSaravanan
              24 Posts
              ACCEPTED ANSWER

              Re: Search service in wcm

              ‏2012-02-23T09:44:25Z  in response to SystemAdmin
              Hi stueven,
              "wasadmin" is the primary admin user id for both portal and WAS.
              Here we are using portal server v 7.0.0.11.
              it should be working right?.
  • SystemAdmin
    SystemAdmin
    30899 Posts
    ACCEPTED ANSWER

    Re: Search service in wcm

    ‏2012-02-23T13:35:32Z  in response to MKSaravanan
    Hi,

    what info do you pass in as USERID in your code as property? It needs to be a valid user ID (note: ID, not alyways the same as DN).

    If you are not sure about the userID for wasadmin, you could check out by running the following code:
    //get the user logged in
    com.ibm.wps.puma.User portalUser = (com.ibm.wps.puma.User)
    request.getUser();

    String userID = portalUser.getID();

    Execute that when being loggin in as wasadmin. Print the value of "userID" to the output, so you can see what it is you need to pass as property then.

    Sven

    The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
    • MKSaravanan
      MKSaravanan
      24 Posts
      ACCEPTED ANSWER

      Re: Search service in wcm

      ‏2012-03-15T09:11:05Z  in response to SystemAdmin
      hi Stueven ,

      both ID and DN are same,
      here i enclosed my portalseracrchService.java

      here i am calling the doSearch(String queryText, String searchCollection,String userDN) method
      it will return the search result.

      I am not sure where I went wrong.
      please suggest.