cancel
Showing results for 
Search instead for 
Did you mean: 

Exception during call webservice from Web Dyn Pro application

Former Member
0 Kudos

I receive exception when execute call to webservice. I found place where it fall, it is in stub classmdp\company\wd\_comp\src\packages\com\accenture\mdp\company\model\companybasic\proxies\Config1BindingStub.java

in method below, in line

this.transportBinding.call(this.stubConfiguration,this.globalProtocols,_getOperationProtocols("filterCompany"));


public com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse filterCompany(com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompany parameters) throws java.rmi.RemoteException,com.accenture.mdp.company.model.companybasic.proxies.Exception,com.accenture.mdp.company.model.companybasic.proxies.MDPException {
    try {
      super._beginLogFrame();
      // Operation input params initialization
      this.inputParams = new ServiceParam[1];
      this.inputParams[0] = new ServiceParam();
      this.inputParams[0].isElement = true;
      this.inputParams[0].schemaName = new QName("urn:CompanyServiceVi","filterCompany");
      this.inputParams[0].name = "parameters";
      this.inputParams[0].contentClass = com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompany.class;
      this.inputParams[0].content = parameters;
      // Operation output params initialization
      this.outputParams = new ServiceParam[1];
      this.outputParams[0] = new ServiceParam();
      this.outputParams[0].isElement = true;
      this.outputParams[0].schemaName = new QName("urn:CompanyServiceVi","filterCompanyResponse");
      this.outputParams[0].name = "parameters";
      this.outputParams[0].contentClass = com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse.class;
      // Operation faults initialization
      this.faultParams = new ServiceParam[2];
      this.faultParams[0] = new ServiceParam();
      this.faultParams[0].isElement = true;
      this.faultParams[0].schemaName = new QName("urn:CompanyServiceWsd/CompanyServiceVi","filterCompany_java.lang.Exception");
      this.faultParams[0].name = "errorPart";
      this.faultParams[0].contentClass = com.accenture.mdp.company.model.companybasic.proxies.Exception.class;
      this.faultParams[1] = new ServiceParam();
      this.faultParams[1].isElement = true;
      this.faultParams[1].schemaName = new QName("urn:CompanyServiceWsd/CompanyServiceVi","filterCompany_com.accenture.mdp.common.exceptions.MDPException");
      this.faultParams[1].name = "errorPart";
      this.faultParams[1].contentClass = com.accenture.mdp.company.model.companybasic.proxies.MDPException.class;
      com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse parametersTemp;
      this.transportBinding.setTypeMappingRegistry(this.typeRegistry);
      this.transportBinding.startOperation(this.inputParams,this.outputParams,this.faultParams);
      // Binding Context initialization
      this.bindingConfiguration.clear();
      bindingConfiguration.setProperty("soapAction","");
      bindingConfiguration.setProperty("style","document");
      bindingConfiguration.setProperty("transport","http://schemas.xmlsoap.org/soap/http");
      PropertyContext bindingConfigurationX;
      bindingConfigurationX = bindingConfiguration.getSubContext("output");
      bindingConfigurationX.setProperty("operationName","filterCompany");
      bindingConfigurationX.setProperty("use","literal");
      bindingConfigurationX = bindingConfiguration.getSubContext("input");
      bindingConfigurationX.setProperty("operationName","filterCompany");
      bindingConfigurationX.setProperty("use","literal");
      bindingConfigurationX.setProperty("parts","parameters");
      super._fillEndpoint(bindingConfiguration);
      _buildOperationContext("filterCompany",this.transportBinding);
      this.transportBinding.call(this.stubConfiguration,this.globalProtocols,_getOperationProtocols("filterCompany"));
      _setEndpoint((String) bindingConfiguration.getProperty(com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientTransportBinding.ENDPOINT));
      if (this.faultParams[0].content != null) {
        throw (com.accenture.mdp.company.model.companybasic.proxies.Exception) this.faultParams[0].content;
      }
      if (this.faultParams[1].content != null) {
        throw (com.accenture.mdp.company.model.companybasic.proxies.MDPException) this.faultParams[1].content;
      }
      parametersTemp = (com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse) this.outputParams[0].content;
      return parametersTemp;
    } catch (com.accenture.mdp.company.model.companybasic.proxies.Exception e) {
      throw e;
    } catch (com.accenture.mdp.company.model.companybasic.proxies.MDPException e) {
      throw e;
    } catch (javax.xml.rpc.soap.SOAPFaultException e) {
      throw e;
    } catch (java.lang.Exception e) {
      throw new RemoteException("Service call exception",e);
    } finally {
      super._endLogFrame("filterCompany");
    }
  }


I receive Service call exception; nested exception is: java.lang.NullPointerException

May be anybody could suggest me how can I get more information about of reason of this exceprion ?

How to repair it ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Did you check the defaultStackTrace.trc file for the error stack trace?

Former Member
0 Kudos

No, but there the file defaultStackTrace.trc is ?

Former Member
0 Kudos

Check the following path in your server:

If you are using NW04s: :\usr\sap\<InstanceName>\JC00\j2ee\cluster\server0\log\

If you are using CE: :\usr\sap\<InstanceName>\J00\j2ee\cluster\server0\log.

If you are using CE: [Log Viewing with the SAP MC|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f71b59e38e2462e10000000a1553f7/content.htm]

Bala

Former Member
0 Kudos

Thank you very much

Former Member
0 Kudos

My pleasure. Kindly post the stackTrace from defaultTrace.trc file, in case if it not resolved..

Bala

Former Member
0 Kudos

Thank you for assistance. All works now. Problem was in classpath issues. I used one version of webservices_lib.jar for development but another version was running on the server.

Answers (0)