Skip to main content
tags editadas
Link
Maniero
  • 484,4mil
  • 94
  • 1,3mil
  • 2,2mil
Tradução da pergunta
Fonte Link

NullPointerException inno WSO2 DSS 3.0.0

We are having a problem in aEstou tendo problemas em um Data Service onno WSO2 DSS 3.0.0. If I execute directly theSe executar a query on the database I getdiretamente no errorbanco de dados nenhum erro acontece. The database is aO banco de dados é um Sybase version 12. Alguém poderia ajudar?

* Data changed for confidencialityAlterei os dados do Web Service por confidencialidade

NullPointerException in WSO2 DSS 3.0.0

We are having a problem in a Data Service on WSO2 DSS 3.0.0. If I execute directly the query on the database I get no error. The database is a Sybase version 12.

* Data changed for confidenciality

NullPointerException no WSO2 DSS 3.0.0

Estou tendo problemas em um Data Service no WSO2 DSS 3.0.0. Se executar a query diretamente no banco de dados nenhum erro acontece. O banco de dados é um Sybase 12. Alguém poderia ajudar?

* Alterei os dados do Web Service por confidencialidade

Fonte Link

NullPointerException in WSO2 DSS 3.0.0

We are having a problem in a Data Service on WSO2 DSS 3.0.0. If I execute directly the query on the database I get no error. The database is a Sybase version 12.

DBS

<data name="DSProgram" serviceNamespace="http://myschema.org.br">
<config id="ProgramDS">
  <property name="carbon_datasource_name">ProgramDS</property>
</config>
<query id="updateProgram" useConfig="ProgramDS">
  <sql>update aca..program set name = :name, endingdate = (case when :endingdate = '' then null else :endingdate) where course = :course</sql>
  <param name="name" sqlType="STRING"/>
  <param name="endingdate" sqlType="STRING"/>
  <param name="course" sqlType="INTEGER"/>
</query>
<operation name="updateProgram">
  <call-query href="updateProgram">
     <with-param name="name" query-param="name"/>
     <with-param name="endingdate" query-param="endingdate"/>
     <with-param name="course" query-param="course"/>
  </call-query>
</operation>
</data>

SOAP Envelope

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://myschema.org.br">
<soapenv:Header/>
<soapenv:Body>
  <int:updateProgram>
     <int:name>Course name</int:name>
     <int:endingdate></int:endingdate>
     <int:course>999</int:course>
  </int:updateProgram>
</soapenv:Body>
</soapenv:Envelope>

SOAP Fault

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <soapenv:Fault xmlns:axis2ns1820="http://ws.wso2.org/dataservice">
     <faultcode>axis2ns1820:DATABASE_ERROR</faultcode>
     <faultstring>DS Fault Message: Error in DS non result invoke.
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: DSProgram
Location: /DSProgram.dbs
Description: N/A
Default Namespace: http://myschema.org.br
Current Request Name: updateProgram
Current Params: {endingdate=, course=999, name=Course name}
Nested Exception:-
java.lang.NullPointerException</faultstring>
     <detail>
        <axis2ns1819:DataServiceFault xmlns:axis2ns1819="http://ws.wso2.org/dataservice">DS Fault Message: Error in DS non result invoke.
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: DSProgram
Location: /DSProgram.dbs
Description: N/A
Default Namespace: http://myschema.org.br
Current Request Name: updateProgram
Current Params: {endingdate=, course=999, name=Course name}
Nested Exception:-
java.lang.NullPointerException</axis2ns1819:DataServiceFault>
     </detail>
  </soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

* Data changed for confidenciality