WSO2 org.apache.axis2.AxisFault:传输错误:412错误:前提条件失败

时间:2016-12-27 13:46:06

标签: web-services soap wso2 wso2esb

我使用WSO2 ESB并使用WSDL创建了自定义代理服务。我将InSequence定义为一个日志中介,将端点定义为一个地址端点,并在我尝试服务时将OutSequence定义为Send mediator我得到了这个错误:



org.apache.axis2.AxisFault
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at consultardatosmaestros.CU677ConsultarDatosMaestrosServiceMessageReceiverInOut.fromOM(CU677ConsultarDatosMaestrosServiceMessageReceiverInOut.java:599)
    at consultardatosmaestros.CU677ConsultarDatosMaestrosServiceMessageReceiverInOut.invokeBusinessLogic(CU677ConsultarDatosMaestrosServiceMessageReceiverInOut.java:44)
    at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
    at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:403)
    at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:151)
    at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
    at consultardatosmaestros.CU677ConsultarDatosMaestrosServiceMessageReceiverInOut.fromOM(CU677ConsultarDatosMaestrosServiceMessageReceiverInOut.java:472)




我该如何解决此错误?我不知道。谢谢:))

_onLoad(state) {
    //I check the url to see if everything goes right
    if (state.url.indexOf(BASEURL + '/auth/success') != -1) {
      let token = state.url.split("token=")[1];
      token = token.substring(0, token.length - 4);
      //Here I'm caming back
      NavigationsActions.back();
      //In your case you might do something like this:
      NavigationsActions.replaceRoute({
          id: 'your route id'
      });
      SessionActions.setSession(token);
    }
}

0 个答案:

没有答案