Hi, The same code is working perfectly fine on Windows but not on Linux. I am using a Tomcat with a XmlRpcServlet for Handling requests in windows XP, and I am running the client in Eclipse, the communication is happening as expected, but the same prebuilt request is giving error when run on Linux. Only the Server IP and Port number are changed, which ideally should give no problems.....
please help.... Thankx in Advance Gopal Georg Sauer-Limbach <[EMAIL PROTECTED]> wrote: Hi, the XML you are trying to parse is not well-formed, it contains an invalid Character Entity. These are these constructs like or . The first is the decimal form, the latter the hex form. Be sure to include only allowed digits (hex may be upper- and lowercase) and to conclude the entity with a semicolon. The number must be the Unicode code point of the character that you want to represent. Georg D. Gopala Krishna Murthy wrote: > Hi, > I am using xmlrpc-2.0.1.jar and am getting this exception when i try to > connect to a server. Please find my client code below the exception: > I am using a server which is xmlrpc-1.2.jar > > > Fatal error parsing XML: org.xml.sax.SAXParseException: invalid Character > Entitiy > org.apache.xmlrpc.XmlRpcClientE xception: Error decoding XML-RPC response > at org.apache.xmlrpc.XmlRpcClientR > esponseProcessor.decodeResponse(XmlRpcClientResponseProcessor .java:80) > at org.apache.xmlrpc.XmlRpcClientW > orker.execute(XmlRpcClientWorker.java:73) > at org.apache.xmlrpc.XmlRpcClient .execute(XmlRpcClient.java:194) > at com.sixdee.rpc.RpcRequest .sendRequest(RpcRequest.java:41) > at com.sixdee.rpc.XmlRpcClientInte > rface.sendRpcRequest(XmlRpcClientInterface.java:42) > at com.sixdee.rpc.ClientMain .GetAccountDetailsT(ClientMain.java:153) > at com.sixdee.rpc.ClientMain .GetAccountDetailsT(ClientMain.java:223) > at com.sixdee.ETopupObject .performINOperation(ETopupObject.java:1326) > at com.sixdee.ETopupObject > .processDealerRecharge(ETopupObject.java:640) > at com.sixdee.ETopupObject .processESMEMessage(ETopupObject.java:318) > at com.sixdee.ESMEHandler.run(ESMEHandler.java:272) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.StringIndexOutOfBound sException: String index out of > range: 255 > at java.lang.String.charAt(String.java:558) > at uk.co.wilson.xml.MinML.parse(MinML.java:371) > at uk.co.wilson.xml.MinML.parse(MinML.java:487) > at org.apache.xmlrpc.XmlRpc.parse(XmlRpc.java:472) > at org.apache.xmlrpc.XmlRpcClientR > esponseProcessor.decodeResponse(XmlRpcClientResponseProcessor .java:68) > ... 11 more > > XmlRpcClient client = new XmlRpcClient(url); > CommonsXmlRpcTransport transport = new CommonsXmlRpcTransport(new > URL(url)); > HashMap result=new HashMap(); > Hashtable resultData = new Hashtable(); > Vector args = new Vector(); > args.add(hm); > String username= "abc"; > String password = "xyz"; > transport.setBasicAuthentication(username,password); > transport.setHttp11(true); > transport.setUserAgent("UGw Server/2.0/1.0"); > XmlRpcRequest req=new XmlRpcRequest(command,args); > try > { > Object obj=(Hashtable)client.execute(req,transport); > System.out.println("The Type of Object > returned:"+obj.getClass().getName()); > resultData=(Hashtable)obj; > System.out.println("Converted to HashTable"); > } > catch(Exception e) > { > e.printStackTrace(); > System.out.println("Error occured while execution"); > throw e; > } > > Thankx in Advance, > > Gopal > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]