Skip to Content
0
Former Member
Apr 18, 2007 at 01:12 PM

CAF Application is not running, as soon as it consumped by a webService

314 Views

Hi,

my CAF Application is still running in the CAF test browser, and i get the right response and so on.

As soon as I create a webservice it doesn't run. Every time I've got an error msg (below), but I can't find the mistake.

I attached the error message of the webservice Navigator:

Serializing object [Lcom.sap.test.compxloc.appsrv.datatypes.strucVarianteAverage_R;@c5e070 fails. Nested message: XML Serialization Error. Object of Class [com.sap.test.compxloc.appsrv.datatypes.strucVarianteAverage_R] does not have property [AverTimeCanceled] of type [java.lang.Long]. Check if the right object is passed to the serialization routine..

I attached a part of my quellcode.

QueryFilter qf = new com.sap.caf.rt.bol.util.QueryFilter();

qf.condition = QueryFilter.CONDITION_BETWEEN;

qf.isDate = true;

qf.dateValueHigh = l_endDate;

qf.dateValueLow = l_startDate;

qf.datatype = com.sap.caf.rt.bol.util.QueryFilter.DATATYPE_DATE;

filterMapIssue.put("date", qf);

// -


TOPICS -


for(int a = 0; a<=numberOFentries-1; a++)

{

String l_topic = l_topics[a];

allFromThisTopic.setTopic(l_topic);

// -


Topic nach Status auslesen -


for(int i=0; i<=2; i++)

{

String l_status = v<i>;

filterMapIssue.put("firstLevel", l_topic);

filterMapIssue.put("status", l_status);

// -


Liste aller Entities zu Topic + Status----


List entrie = new ArrayList();

try{

entrie = this.getIssueService().findByMultipleParameters(filterMapIssue, true, ""); // HERE THE EXCEPTION IS THROWN ... with the error message above

}

catch(Exception e)

{

System.out.println(e);

}

finally{........

Did anybody know problems like this?

Thanks in advance,

kind regards,

Kathrin

Message was edited by:

Kathrin Gossmann

Message was edited by:

Kathrin Gossmann

Message was edited by:

Kathrin Gossmann