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
}
]
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
}
]
Comment