Endyno

Java job, error in the class

Discussion created by Endyno on Dec 17, 2013
Latest reply on Dec 20, 2013 by Chris_Hackett

Hello all,

At first, I cannot find tags to tag code in message.

I've got one Java job which I need to repair, because it doesn't work. This job is a part of one big job and it is started by sub-process. We use Clarity "v12.1 Service Pack 1".

In general, purpose of this job is to create closing cost plan and budget plan.

When I run the job (from my local or directly from Clarity) I got this error:

AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (302)Moved Temporarily
 faultActor:
 faultNode:
 faultDetail:
    {}string: return code:  302


(302)Moved Temporarily
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:631)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at com.niku.www.xog.Object.CostPlansSoapBindingStub.writeCostPlan(CostPlansSoapBindingStub.java:227)
    at de.itdesign.projects.henkel.projectclosing.CreateProjectClosingBudget.jobRun(CreateProjectClosingBudget.java:444)
    at de.itdesign.projects.henkel.projectclosing.CreateProjectClosingBudget.runTest(CreateProjectClosingBudget.java:649)
    at de.itdesign.projects.henkel.projectclosing.CreateProjectClosingBudget.main(CreateProjectClosingBudget.java:663)

 

CostPlansSoapBindingStub is a class, which I decompiled by JAD, where is defined following and Error from console is pointing to writecostplan:

public XOGOutput writeCostPlan(NikuDataBus body, _Auth header)
        throws RemoteException
    {
        Object _resp;
        if(super.cachedEndpoint == null)
            throw new NoEndPointException();
        Call _call = createCall();
        _call.setOperation(_operations[1]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("http://www.niku.com/xog/Object/WriteCostPlan");
        _call.setEncodingStyle(null);
        _call.setProperty("send_type_attr", Boolean.FALSE);
        _call.setProperty("sendMultiRefs", Boolean.FALSE);
        _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new QName("", "WriteCostPlan"));
        setRequestHeaders(_call);
        setAttachments(_call);
        _resp = _call.invoke(new Object[] {
            body, header
        });
        if(_resp instanceof RemoteException)
            throw (RemoteException)_resp;
        extractAttachments(_call);
        return (XOGOutput)_resp;
        Exception _exception;
        _exception;
        return (XOGOutput)JavaUtils.convert(_resp, com.niku.www.xog.Object.XOGOutput.class);
    }

My question is if CostPlansSoapBindingStub.class is standart or customized (actually just to check that this is customized) and if this link is correct "_call.setSOAPActionURI("http://www.niku.com/xog/Object/WriteCostPlan");", what is WriteCostPlan, how can I check what is inside.

Thanks for your responses.

Outcomes