Topic
13 replies Latest Post - ‏2013-10-15T01:02:35Z by Stephen·Tan
SystemAdmin
SystemAdmin
445 Posts
ACCEPTED ANSWER

Pinned topic CloseAccountAction Plugin in ICN 2.0.1

‏2013-02-26T11:47:37Z |
Hi All,

We implemented Sample Plugin - CloseAccountAction in ICN 2.0.1.

Everything is OK, until we select close date. After that, when we press "OK", it gives following error.

What can be the reason.

Regards
Mujdat

CIWEB2002

A connection to the web client cannot be established by using the following URL: /navigator.

This error can be caused by a configuration problem on the web application server or by a problem with the web client.

Try to log in again. If the problem persists, report this error to your system administrator.

The following error was returned: .
Updated on 2013-03-09T02:14:55Z at 2013-03-09T02:14:55Z by SystemAdmin
  • damorris
    damorris
    765 Posts
    ACCEPTED ANSWER

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-02-26T14:05:22Z  in response to SystemAdmin
    You probably have a JavaScript error or a Java error on the server side. Use browser debugging tools such as Chrome's developer tools or Firebug for Firefox and look at the console there. Also check the server logs in WebSphere or WebLogic.
    • SystemAdmin
      SystemAdmin
      445 Posts
      ACCEPTED ANSWER

      Re: CloseAccountAction Plugin in ICN 2.0.1

      ‏2013-02-26T14:47:10Z  in response to damorris
      Hi Dana,

      I looked at WAS logs. It says

      com.ibm.ecm.struts.actions.PluginAction.isSecureService() Invalid plugin id: CloseAccountPlugin. This is likely a logic error in the plugin itself.

      What does cause this error?

      Regards
      Mujdat
  • SystemAdmin
    SystemAdmin
    445 Posts
    ACCEPTED ANSWER

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-02-27T20:09:47Z  in response to SystemAdmin
    Any help?
    • Nicoolas
      Nicoolas
      21 Posts
      ACCEPTED ANSWER

      Re: CloseAccountAction Plugin in ICN 2.0.1

      ‏2013-02-27T21:30:33Z  in response to SystemAdmin
      Just an observation - in the first post you say the plugin is CloseAccountAction" but the error indicates "CloseAccountPlugin"

      Maybe there is a mismatch somewhere?
  • SystemAdmin
    SystemAdmin
    445 Posts
    ACCEPTED ANSWER

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-03-08T16:10:02Z  in response to SystemAdmin
    Hello,
    did you manage to solve the issue? If yes, could you please describe the solution? I am getting the same error (CIWEB2002) when I press CloseAccountAction button on the toolbar (For me not even possible to input date). I tried to deploy to both 2.0.1 and 2.0.0 ICN with the same result.
    • SystemAdmin
      SystemAdmin
      445 Posts
      ACCEPTED ANSWER

      Re: CloseAccountAction Plugin in ICN 2.0.1

      ‏2013-03-09T02:14:55Z  in response to SystemAdmin
      Same error here - It's not locating the service by Id.

      3/8/13 21:15:56:489 EST 0000002d SystemOut O CIWEB Error: lcsadmin @ LCS.devlighthouse.com com.ibm.ecm.struts.actions.PluginAction.isSecureService() Invalid plugin id: myPluginId. This is likely a logic error in the plugin itself.

      You can get better logging detail if you go into Content Navigator->Settings->Logging and enable all debug logging.

      I'll post again when I figure out why it can't find the plugin
      • Khilnani
        Khilnani
        2 Posts
        ACCEPTED ANSWER

        Re: CloseAccountAction Plugin in ICN 2.0.1

        ‏2013-08-29T20:34:49Z  in response to SystemAdmin

        Hi,

        Did you figure out why it can't find the plugin?

        Thanks

        • RealKazakh
          RealKazakh
          1 Post
          ACCEPTED ANSWER

          Re: CloseAccountAction Plugin in ICN 2.0.1

          ‏2013-10-11T05:34:52Z  in response to Khilnani

          Thanks

          I solve this problem

          • Stephen·Tan
            Stephen·Tan
            4 Posts
            ACCEPTED ANSWER

            Re: CloseAccountAction Plugin in ICN 2.0.1

            ‏2013-10-11T05:54:33Z  in response to RealKazakh
            Hello, I now is in this issue, could you tell me how do you solve?
             
            • RealKazakh02
              RealKazakh02
              2 Posts
              ACCEPTED ANSWER

              Re: CloseAccountAction Plugin in ICN 2.0.1

              ‏2013-10-12T04:12:59Z  in response to Stephen·Tan

              can you write me Service class. Cause of error in service class

               

              • Stephen·Tan
                Stephen·Tan
                4 Posts
                ACCEPTED ANSWER

                Re: CloseAccountAction Plugin in ICN 2.0.1

                ‏2013-10-12T15:13:42Z  in response to RealKazakh02
                CloseAccountService.java of 83 line throw a NullPointException...
                • RealKazakh02
                  RealKazakh02
                  2 Posts
                  ACCEPTED ANSWER

                  Re: CloseAccountAction Plugin in ICN 2.0.1

                  ‏2013-10-14T06:43:58Z  in response to Stephen·Tan

                  First replace service class to

                  import java.io.PrintWriter;
                  import java.util.Iterator;

                  import javax.servlet.http.HttpServletRequest;
                  import javax.servlet.http.HttpServletResponse;

                  import com.filenet.api.constants.AutoClassify;
                  import com.filenet.api.constants.CheckinType;
                  import com.filenet.api.constants.RefreshMode;
                  import com.filenet.api.core.Factory;
                  import com.filenet.api.core.ObjectStore;
                  //import com.filenet.api.core.Factory.Domain;
                  //import com.filenet.api.core.Factory;
                  import com.filenet.api.core.Domain;
                  import com.ibm.ecm.extension.PluginService;
                  import com.ibm.ecm.extension.PluginServiceCallbacks;
                  import com.filenet.api.core.Document;

                  public class CloseAccountService extends PluginService {

                      @Override
                      public String getId() {
                          // TODO Auto-generated method stub
                          return "CloseAccountService";
                      }
                      
                      @Override
                      public void execute(PluginServiceCallbacks callbacks, HttpServletRequest request, HttpServletResponse response) throws Exception {
                          String doc = request.getParameter("serverType");
                          
                          try{
                              
                               
                          }catch(Exception e){
                              System.out.println("Oops: " + e);
                          }
                          
                          PrintWriter pr = response.getWriter();
                          pr.print("{\"results\":{\"numUpdated\":\"" + doc + "\"}}");

                      }


                  }

                  Then, you can escape at errors