wso2 esb 发送带有空白输入的 dss NumberFormatException

问题描述 投票:0回答:2

我在 wso2 esb 中有一个代理。我使用了 call,我想将 call 的响应发送到我的 outSequence。但它给了我 Dss 错误。我根本不使用 dss 。谁能告诉我为什么会发生这个错误以及我该如何解决这个问题? 这是我的代理代码:

<proxy xmlns="http://ws.apache.org/ns/synapse"
   name="FinaltestProxy"
   startOnLoad="true"
   statistics="disable"
   trace="enable"
   transports="https,http,vfs">
<target>
  <inSequence>
        <input type="text"/>
        <output type="xml"/>
     </smooks>
     <iterate attachPath="//csv-set"
              continueParent="true"
              expression="//csv-set/search"
              preservePayload="true"
              sequential="true">
        <target>
           <sequence>
              <call>
                 <endpoint>
                    <address format="soap11"
                             uri="MyEndpoint"/>
                 </endpoint>
              </call>
              <respond/>
           </sequence>
        </target>
     </iterate>
  </inSequence>
  <outSequence>
     <property name="OUT_ONLY" value="true"/>
     <aggregate>
        <completeCondition>
           <messageCount max="100000" min="0"/>
        </completeCondition>
        <onComplete xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope"
                    expression="//Guest">
           <log level="full"/>
           <send>
              <endpoint name="FileEpr">
                 <address format="soap11"
                          uri="MyEndpoint"/>
                 <property name="ContentType" scope="axis2" value="text/xml"/>
              </endpoint>
           </send>
        </onComplete>
     </aggregate>
  </outSequence>
</target>
 /* some code*/
</proxy>

这是我的错误:

DS Code: DATABASE_ERROR
Nested Exception:-
javax.xml.stream.XMLStreamException: DS Fault Message: Error in    'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: GuestIdentityService
Location: /ss.dbs
Description: N/A
Default Namespace: http://soa.ut.ac.ir/GuestIdentityService
Current Request Name: searchGuestIdentity
Current Params: {ID=}
Nested Exception:-
java.lang.NumberFormatException: For input string: ""
wso2 esb wso2-data-services-server
2个回答
0
投票

看起来您有一个名为

ss
的数据服务,并且正在以某种方式调用它。如果您不需要,请将其删除。您可以从 UI 或文件系统中将其删除。它位于
repository/deployment/server/dataservices/


0
投票

我的输入中有一个空行,这导致了问题。

© www.soinside.com 2019 - 2024. All rights reserved.