Go Back   SmartClient Forums > Installation
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20th Feb 2008, 17:44
wcook wcook is offline
Registered Developer
 
Join Date: Oct 2007
Posts: 26
Default Problems with servlet

I copied the code from a sample JSP into a servlet and changed it to always delegate to RPCManager, but it's throwing errors:

XRP7:WARN:RPCManager:Error evaling structured RPC response: SyntaxError: invalid label response text: [ ...

Any help would be greatly appreciated.

Here's the code:

rpc = new RPCManager(this, request, response);

for(Iterator i = rpc.getRequests().iterator(); i.hasNext();) {
Object req = i.next();
if(req instanceof RPCRequest)
throw new ServletException("This example expects only DSRequests");

dsRequest = (DSRequest)req;
rpc.send(dsRequest, dsRequest.execute());
}


And here's the full error output:

19:35:13.130:XRP7:WARN:RPCManager:Error evaling structured RPC response: SyntaxError: invalid label response text: [
{
invalidateCache:false,
data:{CUSTOMER_NAME:"MICHAEL SANFORD DINGAKE", POSTAL_CODE:"55942", NATIONALITY_CODE:"NT0225",
MIDDLE_NAMES:"SANFORD",LAST_NAME:"DINGAKE", ZONE:"COOPERDALE", CUSTOMER_ID:"1031845033",
FIRST_NAME:"MICHAEL",COUNTRY_OF_RESIDENCE:"CR", COUNTRY_OF_ORIGIN:"KN",
COMPANY_NAME:"A. AHLSTROM OY",ADDRESS:"9254 CHARTA STREET",
DATE_OF_BIRTH:Date.parseServerDate(1940,1,2)},
status:0,
isDSResponse:true
}
]//isc_RPCResponseEnd//isc_RPCResponseStart-->[
{
invalidateCache:false,
endRow:11,
data:[
{CUSTOMER_NAME:"MICHAEL SANFORD DINGAKE", POSTAL_CODE:"55942", NATIONALITY_CODE:"NT0225",
MIDDLE_NAMES:"SANFORD",LAST_NAME:"DINGAKE", ZONE:"COOPERDALE", CUSTOMER_ID:"1031845033",
FIRST_NAME:"MICHAEL",COUNTRY_OF_RESIDENCE:"CR", COUNTRY_OF_ORIGIN:"KN",
COMPANY_NAME:"A. AHLSTROM OY",ADDRESS:"9254 CHARTA STREET",
DATE_OF_BIRTH:Date.parseServerDate(1940,1,2)},
... rows removed to shorten forum message ...
{CUSTOMER_NAME:"AUSTIN EZRA ILLODIBE", POSTAL_CODE:"89713", NATIONALITY_CODE:"NT0038",
MIDDLE_NAMES:"EZRA",LAST_NAME:"ILLODIBE", ZONE:"RIO PIEDRAS", CUSTOMER_ID:"1031845043",
FIRST_NAME:"AUSTIN",COUNTRY_OF_RESIDENCE:"GN", COUNTRY_OF_ORIGIN:"EC",
COMPANY_NAME:"A.I.R. HOLDING NV",ADDRESS:"1961 EGGSHELL TURNPIKE",
DATE_OF_BIRTH:Date.parseServerDate(1940,1,12)}
],
status:0,
startRow:0,
totalRows:1012,
isDSResponse:true
}
]
Reply With Quote
  #2  
Old 20th Feb 2008, 17:59
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,563
Default

If this part of your output is definitely accurate:

Quote:
]//isc_RPCResponseEnd//isc_RPCResponseStart-->[
.. then the problem is that you are running the code you showed twice, creating two instances of RPCManager and processing all the requests twice, producing a double response.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved