2013-05-09 92 views
1

我正嘗試使用Apache ODE編排部署在Windows Azure中的Web服務。我正在使用Eclipse集成的Web Service Explorer測試這些服務。 Azure的WS工作正常,但是當我測試Artifacts.wsdl它引發以下錯誤:使用Apache ODE在azure中部署Web服務時出錯錯誤

14:41:38,777 INFO [DeploymentPoller] Deployment of artifact BPEL_process successful: [{http://artifacts}process-132] 
14:41:49,474 WARN [SimpleScheduler] Dispatching jobs with more than 5 minutes delay. Either the server was down for some time or the job load is greater than available capacity 
14:41:57,594 WARN [ExternalService] Fault response: faultType=(unkown) 
<?xml version='1.0' encoding='utf-8'?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="en-US">The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</faultstring></s:Fault></s:Body></s:Envelope> 
14:41:57,620 ERROR [INVOKE] Failure during invoke: 
14:41:57,623 INFO [BpelRuntimeContextImpl] ActivityRecovery: Registering activity 15, failure reason: on channel 27 

以下是文件:

process.bpel

Artifacts.wsdl

mod2.wsdl

mod2.xsd

編輯這是我所得到的,當我在Web服務中添加IncludeExceptionDetailInFaults

17:51:49,762 WARN [ExternalService] Fault response: faultType=(unkown) 
<?xml version='1.0' encoding='utf-8'?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="en-US">Object reference not set to an instance of an object.</faultstring><detail><axis2ns1:ExceptionDetail xmlns:axis2ns1="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><axis2ns1:HelpLink i:nil="true" /><axis2ns1:InnerException i:nil="true" /><axis2ns1:Message>Object reference not set to an instance of an object.</axis2ns1:Message><axis2ns1:StackTrace> at WCFServiceWebRole1.AzureImpl.mod2(String arg0)&#xd; 
    at SyncInvokemod2(Object , Object[] , Object[])&#xd; 
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)&#xd; 
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)&#xd; 
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)&#xd; 
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc)&#xd; 
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</axis2ns1:StackTrace><axis2ns1:Type>System.NullReferenceException</axis2ns1:Type></axis2ns1:ExceptionDetail></detail></s:Fault></s:Body></s:Envelope> 
17:51:49,798 ERROR [INVOKE] Failure during invoke: 
17:51:49,801 INFO [BpelRuntimeContextImpl] ActivityRecovery: Registering activity 15, failure reason: on channel 27 

仍然沒有意味着什麼線索。 Eclipse指出我的bpel文件有錯誤。 <assign><copy>標籤拋出:

The from-spec of "<xs:simpleType "string">" is not compatible with to-spec of "<xs:complexType>"但我忽略了它,因爲下面的XSD架構它沒有意義的,我有時甚至消失。

編輯II:

正如@vanto的<assign>活動是錯誤的提及。我有我的WSDL的命名空間的前綴添加到CDATA標籤:

<bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> 
    <![CDATA[mod2:mod2Result]]> 
</bpel:query> 

仍然沒有完全understantand命名空間,但現在看來,這是關係到事實我不得不添加elementFormDefault="qualified"由進口的XSD Azure服務的wsdl。

回答

1

該錯誤意味着ODE得到了肥皂故障作爲響應。這表明被調用的Web服務引發了異常。請檢查您的Web服務的日誌或打開IncludeExceptionDetailInFaults功能,以獲取有關錯誤的詳細信息。請注意,ODE不會驗證傳出的消息,因此如果您的活動未創建正確的請求,ODE將不會注意到,但被調用的服務可能會投訴。

+0

謝謝@vanto,我已經將IncludeExceptionDetailInFaults添加到了我的WS中,但仍然沒有任何線索。請看編輯的問題。 – eskalera 2013-05-14 16:01:38