Topic
  • 4 replies
  • Latest Post - ‏2013-03-26T15:47:21Z by SystemAdmin
SystemAdmin
SystemAdmin
8614 Posts

Pinned topic my new controller command is not working. please help

‏2013-03-25T15:33:59Z |
I am getting the following exception as shown below

The following section is intended to aid store developers in debugging problems in the sample store.
Error information is listed below. For further details, increase the logging for your WebSphere Commerce system, and check the log file. Exception Type: 0
Message Key: _ERR_GENERIC
Message: CMN3101E The system is unavailable due to "{0}".
System Message: The following error occurred during processing: "{0}".
Originating Command:
Corrective Action:

I am actually trying to create/configure my new controller command
interface name : com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd
implementation class : com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmdImpl

please find my policy xml

<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE Policies SYSTEM "../dtd/accesscontrolpolicies.dtd">
<Policies>
<Action Name="aga_UserView" CommandName="UserView" />
<Action Name="ra_ExecuteCommand" CommandName="Execute"/>
<ActionGroup Name="AllSiteUsersViews" OwnerID="RootOrganization">
<ActionGroupAction Name="aga_UserView"/>
</ActionGroup>
<ResourceCategory Name="rgr_com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd" ResourceBeanClass="com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd">
<ResourceAction Name="ra_ExecuteCommand"/>
</ResourceCategory>
<ResourceGroup Name="AllSiteUserCmdResourceGroup" OwnerID="RootOrganization">
<ResourceGroupResource Name="rgr_com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd" />
</ResourceGroup>
</Policies>

acpload D:\WorkBench\IBM\WCDE_ENT70\xml\policies\xml\_UserViewPolicy.xml
Running XMLTransform...
Running Id Resolver...
Running MassLoader...

I also checked acpload.log there is no exception

I have checked the database . here are the findings
ORGENTITY_ID = 7000000000000000101
POLICYNAME = AllUsersExecuteAllSiteUserCmdResourceGroup
MBRGRP_ID = -2
ACTION_GROUPNAME = ExecuteCommandActionGroup
ACTION = Execute
RESOURCE_GROUPNAME = AllSiteUserCmdResourceGroup
RESCLASSNAME = com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd
Updated on 2013-03-26T15:47:21Z at 2013-03-26T15:47:21Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    8614 Posts

    Re: my new controller command is not working. please help

    ‏2013-03-26T05:40:31Z  
    If the problem was with access control policies you would have got an error saying 'User does not have authority to run this command'. Your issue is something else. I hope you have made the proper entries in CMDREG table and Struts config file.
  • Raj.S
    Raj.S
    533 Posts

    Re: my new controller command is not working. please help

    ‏2013-03-26T06:39:37Z  
    Was this command registered for a specific store ? Is this command being accessed directly through browser? If so does the url have storeId parameter ?
    Rgds,Raj.
  • SystemAdmin
    SystemAdmin
    8614 Posts

    Re: my new controller command is not working. please help

    ‏2013-03-26T15:42:38Z  
    If the problem was with access control policies you would have got an error saying 'User does not have authority to run this command'. Your issue is something else. I hope you have made the proper entries in CMDREG table and Struts config file.
    Thank for your replay

    my CMDREG looks like

    Query: SELECT * FROM CMDREG WHERE INTERFACENAME='com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd'

    STOREENT_ID
    0

    INTERFACENAME
    'com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd'

    DESCRIPTION
    NULL

    CLASSNAME
    'com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmdImpl'

    PROPERTIES
    NULL

    LASTUPDATE
    NULL

    TARGET
    'Local '

    OPTCOUNTER
    NULL
    My Struts Config looks like

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>

    <global-forwards>
    <forward name="UserView/10051" path="/UserMgmt/UserView.jsp"
    className="com.ibm.commerce.struts.ECActionForward"></forward>
    </global-forwards>

    <action-mappings type="com.ibm.commerce.struts.ECActionMapping">
    <action type="com.ibm.commerce.struts.BaseAction" path="/UserView"/>
    <action type="com.ibm.commerce.struts.BaseAction" path="/AddUser" parameter="com.ibm.commerce.madisons.usrmgmt.command.AddUserCtrlCmd" />
    </action-mappings>

    </struts-config>
  • SystemAdmin
    SystemAdmin
    8614 Posts

    Re: my new controller command is not working. please help

    ‏2013-03-26T15:47:21Z  
    • Raj.S
    • ‏2013-03-26T06:39:37Z
    Was this command registered for a specific store ? Is this command being accessed directly through browser? If so does the url have storeId parameter ?
    Rgds,Raj.
    Thanks a lot.

    I have missed ?catalogId=10051&langId=-1&storeId=10051

    after adding it in action attribute i am able to view my page successfully :)