You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by James Carman <ja...@carmanconsulting.com> on 2003/01/09 20:23:34 UTC

AxisClientProxy causes NullPointerException

I have a situation where I am getting a NullPointerException in the
AxisClientProxy.  In the proxyParams2CallParams method, there is no null
check on the proxyParams argument.  So, when it tries to iterate through the
array of objects, it gets a NullPointerException on the proxyParams.length
reference.  However, when I added in the logic to merely return null when
the argument was null, the application just hung completely.  Here's my
stack trace.  I built this version from the current CVS tree.

ava.lang.NullPointerException

 at
org.apache.axis.client.AxisClientProxy.proxyParams2CallParams(AxisClientProx
y.java:119)

 at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:186)

 at $Proxy0.listAvailablePathways(Unknown Source)

 at
org.cchmc.pathmaker.dao.impl.PathwayDaoImpl.listAvailablePathways(PathwayDao
Impl.java:40)

 at
org.cchmc.pathmaker.controller.action.PathwayOpenAction.actionPerformed(Path
wayOpenAction.java:40)

 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)

 at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1817)

 at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
19)

 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)

 at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

 at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)

 at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
MenuItemUI.java:943)

 at java.awt.Component.processMouseEvent(Component.java:5093)

 at java.awt.Component.processEvent(Component.java:4890)

 at java.awt.Container.processEvent(Container.java:1566)

 at java.awt.Component.dispatchEventImpl(Component.java:3598)

 at java.awt.Container.dispatchEventImpl(Container.java:1623)

 at java.awt.Component.dispatchEvent(Component.java:3439)

 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:1585)

 at java.awt.Component.dispatchEvent(Component.java:3439)

 at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)

 at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:197)

 at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:150)

 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

 at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)


James Carman, President
Carman Consulting, Inc.
1218 Bob White Ct.
Edgewood, KY 41018
(513) 325-7977