ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tanya Brethour <breth...@ncsa.uiuc.edu>
Subject XmlRpc.parse problems
Date Mon, 03 Nov 2003 16:51:05 GMT

Hello. I am getting a java.lang.NumberFormatException when calling execute
on my client with specific parameters (the stack trace and debug output is
below).  I am trying to call execute with 5 parameters. Each of them is a
string, but for some reason the parser is trying to convert the two date
strings to integers. I need them to be strings and not integers or the
date type, in order for the xml-rpc server to process the call. Here is
the call (from debug output).

Client calling procedure 'PIPES.NetworkMeasurement' with parameters [V4,
STTL, DNVR, 20031102000000, 20031103000000]

Anyone have any idea how I can force it to not convert the date strings to
integers? 


Stack Trace and Debug:
Client calling procedure 'PIPES.NetworkMeasurement' with parameters [V4,
STTL, DNVR, 20031102000000, 20031103000000]
Beginning parsing XML input stream
startElement: methodResponse
startElement: params
startElement: param
startElement: value
startElement: struct
startElement: member
startElement: name
endElement: name
startElement: value
startElement: struct
startElement: member
startElement: name
endElement: name
startElement: value
startElement: int
endElement: int
java.lang.NumberFormatException: For input string: "20031103000000"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:438)
        at java.lang.Integer.<init>(Integer.java:567)
        at org.apache.xmlrpc.XmlRpc$Value.characterData(Unknown Source)
        at org.apache.xmlrpc.XmlRpc.endElement(Unknown Source)
        at uk.co.wilson.xml.MinML.parse(Unknown Source)
        at uk.co.wilson.xml.MinML.parse(Unknown Source)
        at org.apache.xmlrpc.XmlRpc.parse(Unknown Source)
        at org.apache.xmlrpc.XmlRpcClient$Worker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source)
        at
net.nlanr.dast.advisor.gui.AdvisorThread.getPipesData(AdvisorThread.java:149)
        at
net.nlanr.dast.advisor.gui.AdvisorGUI.actionPerformed(AdvisorGUI.java:251)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
        at java.awt.Component.processMouseEvent(Component.java:5134)
        at java.awt.Component.processEvent(Component.java:4931)
        at java.awt.Container.processEvent(Container.java:1566)
        at java.awt.Component.dispatchEventImpl(Component.java:3639)
        at java.awt.Container.dispatchEventImpl(Container.java:1623)
        at java.awt.Component.dispatchEvent(Component.java:3480)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
        at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
        at java.awt.Container.dispatchEventImpl(Container.java:1609)
        at java.awt.Window.dispatchEventImpl(Window.java:1590)
        at java.awt.Component.dispatchEvent(Component.java:3480)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
(snip)


TIA,
Tanya





Mime
View raw message