axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Luthra (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1742) Null Pointer Exception when calling any method of the code generated with WSD2Java on terraservice.xml file
Date Fri, 01 Dec 2006 19:45:21 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1742?page=comments#action_12454977 ] 
            
Ravi Luthra commented on AXIS2-1742:
------------------------------------

OK I solved my issue. The apparent cause was a lack of Axis2.xml configuration before running
the software.

I think a proper way to fix the NPE is to change ClientUtils.java from this

            if (transport != null) {
                return ac.getTransportOut(new QName(transport));
            } else {

to something like:
            if (transport != null) {
                 TransportOutDescription transportOut = ac.getTransportOut(new QName(transport));
                 if (transportOut == null) {
                      throw new SomeKindOfException("A transport handler for transport type
'" + transport + '" was not found, is your configuration set property?");
                 }
                 return transportOut;
            } else {


Something to that effect anyway.

> Null Pointer Exception when calling any method of the code generated with WSD2Java on
terraservice.xml file
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1742
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1742
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, JRE 1.5
>            Reporter: Frank Aljbour
>         Assigned To: Deepal Jayasinghe
>         Attachments: TerraService.xml
>
>
> Has anyone got the generated code for the terraservice to work with any of the Axis implementations
(1.4 or 2.0), Axis2 throws exceptions inside the generated code and Axis 1.4 hangs on the
call.invoke method.   The Exception that I am getting with Axis 2.0 is the following,
> java.lang.NullPointerException
>         at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils
> .java:85)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
> isOperation.java:253)
>         at com.terraservice_usa.TerraServiceStub.GetPlaceFacts(TerraServiceStub.
> java:825)
>         at DrawPanel.drawMap(DrawPanel.java:143)
>         at DrawPanel.actionPerformed(DrawPanel.java:122)
>         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
> 49)
>         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
> a:2169)
>         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
> .java:420)
>         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
> )
>         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
> istener.java:234)
>         at java.awt.Component.processMouseEvent(Component.java:5488)
>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>         at java.awt.Component.processEvent(Component.java:5253)
>         at java.awt.Container.processEvent(Container.java:1966)
>         at java.awt.Component.dispatchEventImpl(Component.java:3955)
>         at java.awt.Container.dispatchEventImpl(Container.java:2024)
>         at java.awt.Component.dispatchEvent(Component.java:3803)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
> )
>         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
>         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
>         at java.awt.Container.dispatchEventImpl(Container.java:2010)
>         at java.awt.Window.dispatchEventImpl(Window.java:1774)
>         at java.awt.Component.dispatchEvent(Component.java:3803)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
> read.java:242)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
> ad.java:163)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message