Topic
  • 14 replies
  • Latest Post - ‏2015-05-11T21:25:24Z by BUW5_Scott_Jones
SystemAdmin
SystemAdmin
445 Posts

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
    796 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-02-26T14:05:22Z  
    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

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-02-26T14:47:10Z  
    • damorris
    • ‏2013-02-26T14:05:22Z
    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.
    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

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-02-27T20:09:47Z  
    Any help?
  • Nicoolas
    Nicoolas
    21 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-02-27T21:30:33Z  
    Any help?
    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

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-03-08T16:10:02Z  
    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

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-03-09T02:14:55Z  
    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.
    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

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-08-29T20:34:49Z  
    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

    Hi,

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

    Thanks

  • RealKazakh
    RealKazakh
    1 Post

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-10-11T05:34:52Z  
    • Khilnani
    • ‏2013-08-29T20:34:49Z

    Hi,

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

    Thanks

    Thanks

    I solve this problem

  • Stephen·Tan
    Stephen·Tan
    4 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-10-11T05:54:33Z  

    Thanks

    I solve this problem

    Hello, I now is in this issue, could you tell me how do you solve?
     
  • RealKazakh02
    RealKazakh02
    2 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-10-12T04:12:59Z  
    Hello, I now is in this issue, could you tell me how do you solve?
     

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

     

  • Stephen·Tan
    Stephen·Tan
    4 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-10-12T15:13:42Z  

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

     

    CloseAccountService.java of 83 line throw a NullPointException...
  • RealKazakh02
    RealKazakh02
    2 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-10-14T06:43:58Z  
    CloseAccountService.java of 83 line throw a NullPointException...

    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

  • Stephen·Tan
    Stephen·Tan
    4 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2013-10-15T01:02:35Z  

    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

    Thanks
  • BUW5_Scott_Jones
    BUW5_Scott_Jones
    2 Posts

    Re: CloseAccountAction Plugin in ICN 2.0.1

    ‏2015-05-11T21:25:24Z  
    Thanks

    I read this post, and it was still not clear to me what the root cause was.  I found the root cause on my project, and wanted to share, to save the next person the trouble.   The root cause is mismatch in naming of the plugin getId call/ service Id getId call, and those Ids used to invoke the service.  Fortunately it did not take that long to solve.

    In my case I refactored the service class name because of a typo after the class was crated, and the Id is static at that point so it was not also  refactored.  I.e. The class name was changed, but the return Id was not.   The service appears to go by what is in getId, not the class name.

    I hope this helps someone out in the future  ...