From xmlrpcmartinnancy@example.net Thu Apr 03 16:38:15 2003
Return-Path: <xmlrpcmartinnancy@example.net>
Delivered-To: martinnancy@example.net
Received: (qmail 52434 invoked by uid 500); 3 Apr 2003 16:38:13 -0000
Mailing-List: contact martinnancy@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:martinnancy@example.net>
list-unsubscribe: <mailto:martinnancy@example.net>
list-post: <mailto:martinnancy@example.net>
Reply-To: martinnancy@example.net
Delivered-To: mailing list martinnancy@example.net
Received: (qmail 52357 invoked from network); 3 Apr 2003 16:38:13 -0000
Received: from mail.openet-telecom.com (83.161.120.155)
  by daedalus.apache.org with SMTP; 3 Apr 2003 16:38:13 -0000
Received: from mail.openet-telecom.com (gpo.openet-telecom.lan) by mail.openet-telecom.com
 (Content Technologies SMTPRS 4.2.10) with ESMTP id <martinnancy@example.net> for <martinnancy@example.net>;
 Thu, 3 Apr 2003 17:37:53 +0100
Received: from ALEX (83.161.120.155) by mail.openet-telecom.com (NPlex 6.5.027)
        id 3E82B24600007E9C for martinnancy@example.net; Thu, 3 Apr 2003 17:40:33 +0100
Reply-To: <martinnancy@example.net>
From: "Alex Earnshaw" <martinnancy@example.net>
To: <martinnancy@example.net>
Subject: EmptyStackException when parsing response
Date: Thu, 3 Apr 2003 17:39:20 +0100
Organization: Openet Telecom
Message-ID: <004c01c2f9ff$93e7e4a0$7001000a@openetdublin>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_004D_01C2FA07.F5AC4CA0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Importance: Normal
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

This is a multi-part message in MIME format.

------=_NextPart_000_004D_01C2FA07.F5AC4CA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi all, hope someone can help
 
I have a java client using xmlrpc1.1. This sends the following xmlrpc
request to a c++ server (our own implementation of xmlrpc):
 
<?xml version="1.0"
encoding="ISO-8859-1"?><methodCall><methodName>ScriptsHandler.getCreditB
alance</methodName><params><param><value><struct><member><name>currencyC
ode</name><value>EUR</value></member><member><name>transactionId</name><
value><int>1</int></value></member></struct></value></param></params></m
ethodCall>
 
Excuse the line length but I didn't want to add any \n\r 's in case it
has something to with the problem.
 
The response being sent back to the java client is:
 
<?xml
version="1.0"?><methodResponse><params><param><value><struct><member><na
me>Amount</name><int>4</int></member></struct></value></param></params><
/methodResponse>
 
With XmlRpc.debug turned on I get the following output:
 
Client calling procedure 'ScriptsHandler.getCreditBalance' with
parameters [{currencyCode=EUR, transactionId=1}]
Beginning parsing XML input stream
startElement: methodResponse
startElement: params
startElement: param
startElement: value
startElement: struct
startElement: member
startElement: name
endElement: name
startElement: int
endElement: int
endElement: member
java.util.EmptyStackException
        at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
        at org.apache.xmlrpc.XmlRpc.parse(XmlRpc.java)
        at
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)
        at
com.openet_telecom.ActiveCharge.eai.testcases.PurseMgrNegativeTest.testG
etCreditBalance(PurseMgrNegativeTest.java:91)
        at java.lang.reflect.Method.invoke(Native Method)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.textui.TestRunner.doRun(TestRunner.java:116)
        at junit.textui.TestRunner.doRun(TestRunner.java:109)
        at junit.textui.TestRunner.run(TestRunner.java:72)
        at junit.textui.TestRunner.run(TestRunner.java:57)
        at
com.openet_telecom.ActiveCharge.eai.testcases.PurseMgrNegativeTest.main(
PurseMgrNegativeTest.java:296)

Can anyone tell me what is wrong??? How to fix it?
 
Thanks
 
Alex
 
==========================================
Alex Earnshaw
Sun Certified Java Programmer
Software Design Engineer
Openet Telecom
 
Email: martinnancy@example.net
Phone: 01 6204641
==========================================
 

------=_NextPart_000_004D_01C2FA07.F5AC4CA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D759013016-03042003><FONT face=3DArial size=3D2>Hi =
all, hope someone=20
can help</FONT></SPAN></DIV>
<DIV><SPAN class=3D759013016-03042003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D759013016-03042003><FONT face=3DArial size=3D2>I have =
a java client=20
using xmlrpc1.1. This sends the following xmlrpc request to a c++ server =
(our=20
own implementation of xmlrpc):</FONT></SPAN></DIV>
<DIV><SPAN class=3D759013016-03042003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;?xml version=3D"1.0"=20
encoding=3D"ISO-8859-1"?&gt;&lt;methodCall&gt;&lt;methodName&gt;ScriptsHa=
ndler.getCreditBalance&lt;/methodName&gt;&lt;params&gt;&lt;param&gt;&lt;v=
alue&gt;&lt;struct&gt;&lt;member&gt;&lt;name&gt;currencyCode&lt;/name&gt;=
&lt;value&gt;EUR&lt;/value&gt;&lt;/member&gt;&lt;member&gt;&lt;name&gt;tr=
ansactionId&lt;/name&gt;&lt;value&gt;&lt;int&gt;1&lt;/int&gt;&lt;/value&g=
t;&lt;/member&gt;&lt;/struct&gt;&lt;/value&gt;&lt;/param&gt;&lt;/params&g=
t;&lt;/methodCall&gt;</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D759013016-03042003>Excuse=20
the line length but I didn't want to add any \n\r 's&nbsp;in case it has =

something to with the problem.</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003></SPAN></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D759013016-03042003>The=20
response being sent back to the java client is:</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003></SPAN></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D759013016-03042003>&lt;?xml=20
version=3D"1.0"?&gt;&lt;methodResponse&gt;&lt;params&gt;&lt;param&gt;&lt;=
value&gt;&lt;struct&gt;&lt;member&gt;&lt;name&gt;Amount&lt;/name&gt;&lt;i=
nt&gt;4&lt;/int&gt;&lt;/member&gt;&lt;/struct&gt;&lt;/value&gt;&lt;/param=
&gt;&lt;/params&gt;&lt;/methodResponse&gt;</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D759013016-03042003>With=20
XmlRpc.debug turned on I get the following output:</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003></SPAN></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D759013016-03042003>Client=20
calling procedure 'ScriptsHandler.getCreditBalance' with parameters=20
[{currencyCode=3DEUR, transactionId=3D1}]<BR>Beginning parsing XML input =

stream<BR>startElement: methodResponse<BR>startElement: =
params<BR>startElement:=20
param<BR>startElement: value<BR>startElement: struct<BR>startElement:=20
member<BR>startElement: name<BR>endElement: name<BR>startElement:=20
int<BR>endElement: int<BR>endElement:=20
member<BR>java.util.EmptyStackException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
at=20
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)<BR>&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.xmlrpc.XmlRpc.parse(XmlRpc.java)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
at=20
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)<BR>&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)<BR>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
com.openet_telecom.ActiveCharge.eai.testcases.PurseMgrNegativeTest.testGe=
tCreditBalance(PurseMgrNegativeTest.java:91)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=martinnancy@example.net(Native=20
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
junit.framework.TestCase.runTest(TestCase.java:154)<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestCase.runBare(TestCase.java:127)<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestResult$1.protect(TestResult.java:106)<BR>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestResult.runProtected(TestResult.java:124)<BR>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestResult.run(TestResult.java:109)<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestCase.run(TestCase.java:118)<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestSuite.runTest(TestSuite.java:208)<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.framework.TestSuite.run(TestSuite.java:203)<BR>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.textui.TestRunner.doRun(TestRunner.java:116)<BR>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.textui.TestRunner.doRun(TestRunner.java:109)<BR>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
junit.textui.TestRunner.run(TestRunner.java:72)<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
at=20
junit.textui.TestRunner.run(TestRunner.java:57)<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
at=20
com.openet_telecom.ActiveCharge.eai.testcases.PurseMgrNegativeTest.main(P=
urseMgrNegativeTest.java:296)<BR></SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D759013016-03042003>Can=20
anyone tell me what is wrong??? How to fix it?</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003></SPAN></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003>Thanks</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003></SPAN></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN=20
class=3D759013016-03042003>Alex</DIV></SPAN></FONT>
<DIV align=3Dleft><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial=20
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>=

<DIV align=3Dleft><FONT face=3DArial size=3D2>Alex Earnshaw</FONT></DIV>
<DIV align=3Dleft>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Sun Certified Java=20
Programmer</FONT></DIV></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Software Design =
Engineer</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Openet =
Telecom</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Email: <A=20
href=3D"mailto:martinnancy@example.net">alex.earnshaw@openet-tel=
ecom.com</A></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Phone: 01 =
6204641</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial=20
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>=

<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_004D_01C2FA07.F5AC4CA0--



{'source': 'Apache Software Foundation Public Mail Archives'}