0

我尝试从代理服务登录到 WSO 2 ESB 管理服务。我的 ESB 版本是 4.6.0。我创建了以下代理服务,但是当我尝试调用 getProxy 操作时出现系统故障错误。

以下是我的代理服务:

    <proxy xmlns="http://ws.apache.org/ns/synapse" name="GenerateWebServiceFromXsd" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
       <target>
          <inSequence>
             <enrich>
                <source type="inline" clone="true">
                   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://service.proxyadmin.carbon.wso2.org">                                                                                             
                      <soapenv:Header/>                                                                                             
                      <soapenv:Body>                                                                                                               

                   <aut:getProxy>

                   <aut:proxyName>Echo</aut:proxyName>   


                   </aut:getProxy>                                                                                                                           
                            </soapenv:Body>                                                                                                         
                         </soapenv:Envelope>
                      </source>
                      <target type="envelope"/>
                   </enrich>
                   <property name="Authorization" expression="fn:concat('Basic ', base64Encode('admin:admin'))" scope="transport" type="STRING"/>
                   <log level="full"/>
                </inSequence>
                <outSequence>
                   <send/>
                </outSequence>
                <endpoint>
                   <address uri="https://localhost:8243/services/ProxyServiceAdmin.ProxyServiceAdminHttpsSoap11Endpoint"/>
                   <property name="HostnameVerifier" value="AllowAll" scope="axis2-client"/>
                </endpoint>
             </target>
             <description></description>
          </proxy>

这是我得到的例外:

[2013-06-05 09:45:40,287] ERROR - Class System failure.null
java.lang.NullPointerException
    at org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.doAuthorization(AuthorizationHandler.java:112)
    at org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:95)
    at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
    at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:434)
    at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:219)
    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)
[2013-06-05 09:45:40,288] ERROR - AxisEngine System failure.
org.apache.axis2.AxisFault: System failure.
    at org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:101)

我可以毫无问题地调用 AuthenticationAdmin.login,ProxyService 失败。

提前感谢您的帮助

4

0 回答 0