rajubalan's Profile
Agile User
7
Points

Questions
1

Answers
1

  • Agile User Asked on March 29, 2023 in Software Development Kit (API).

    Thanks for the response – Now i could move the status from pending to release – when i try to move the status one more i.e Implemented – Is there any changes could be made from changestatus(), I am getting the below error- Attaching the latest code snippets and Errors…please guide Ref : ApproveECO.java code from the SDK sample code reference

    m_session.disableAllWarnings();
    eco.changeStatus(submitted, false, “submit ECO”, false, false, null,
    null, null, false);
    eco.changeStatus(ccb, false, “route to CCB”, false, false, null, null,
    null, false);

    eco.addApprovers(ccb, approverList, observerList, false,
    “add approver/observer”);
    eco.addApprovers(released, approverList, observerList, false,
    “add approver/observer”);

    eco.setValue(ChangeConstants.ATT_COVER_PAGE_REASON_FOR_CHANGE,
    “Replacement”);
    eco.setValue(ChangeConstants.ATT_COVER_PAGE_DESCRIPTION_OF_CHANGE,
    “replace motherboard”);

    eco.approve(args[2], “Approve!!”);

    m_session.disableWarning(new Integer(426));
    m_session.disableWarning(new Integer(344));
    eco.changeStatus(released, false, “release ECO”, false, false, null,
    null, null, false);

    m_session.disableAllWarnings();

    eco.changeStatus(complete, false, “complete ECO”, false, false, null,
    null, null, false);

    } catch (APIException e) {

    System.out.println(“Sample did not execute successfully!!!”);
    e.printStackTrace();

     

    Error:

    Sample did not execute successfully!!!
    com.agile.pc.cmserver.base.AuditException
    at weblogic.utils.StackTraceDisabled.unknownMethod()
    com.agile.pc.cmserver.base.AuditException
    at weblogic.utils.StackTraceDisabled.unknownMethod()
    Error code : 60104
    Error message : See multiple root causes.
    Root Cause exception : com.agile.pc.cmserver.base.AuditException

    at com.agile.api.pc.APIObject.createError(APIObject.java:121)
    at com.agile.api.pc.RouteObject$ChangeStatusAction.doSdkAction(RouteObject.java:2483)
    at com.agile.api.common.SDKAction.run(SDKAction.java:23)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
    at weblogic.security.Security.runAs(Security.java:61)
    at com.agile.api.common.WebLogicAuthenticator.doAs(WebLogicAuthenticator.java:111)
    at com.agile.api.common.Security.doAs(Security.java:54)
    at com.agile.api.common.Security.doAs(Security.java:109)
    at com.agile.api.pc.RouteObject.doChangeStatus(RouteObject.java:835)
    at com.agile.api.pc.RouteObject.changeStatus(RouteObject.java:812)
    at agile.Addaffecteditem.main(Addaffecteditem.java:66)

    • 705 views
    • 3 answers
    • 0 votes