Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 40175 invoked from network); 31 Oct 2007 08:01:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 08:01:44 -0000 Received: (qmail 42060 invoked by uid 500); 31 Oct 2007 08:01:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 41385 invoked by uid 500); 31 Oct 2007 08:01:29 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 41374 invoked by uid 99); 31 Oct 2007 08:01:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 01:01:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 08:01:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3301714187 for ; Wed, 31 Oct 2007 01:01:06 -0700 (PDT) Message-ID: <8762463.1193817666665.JavaMail.jira@brutus> Date: Wed, 31 Oct 2007 01:01:06 -0700 (PDT) From: "Adrian Lang (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3293) NPE in AxisEngine when trying to use TCP transport In-Reply-To: <30383279.1193062490897.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539023 ] Adrian Lang commented on AXIS2-3293: ------------------------------------ I got the same problem: ---- import org.apache.axis2.Constants; import org.apache.axis2.description.TransportOutDescription; import org.apache.log4j.Appender; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import pcograb.service_wsdl.ServiceStub; import pcograb.service_wsdl.ServiceStub.GetImage; import pcograb.service_wsdl.ServiceStub.GetImageResponse; public class pcoGrabClient { public static void main(String[] args) throws Exception { Appender newAppender = new ConsoleAppender(new PatternLayout("%r [%t] %-5p %c - %m%n")); Logger.getRootLogger().addAppender(newAppender); ServiceStub stub = new ServiceStub("tcp://pcograbber:5000"); stub._getServiceClient().getOptions().setTransportOut(new TransportOutDescription(Constants.TRANSPORT_TCP)); //Create the request GetImage request = new GetImage(); //Invoke the service GetImageResponse response = stub.getImage(request); } } ---- ---- Service definition of function pcoGrab__getImage Service definition of function pcoGrab__setROI gSOAP 2.7.9d generated service definition ---- > NPE in AxisEngine when trying to use TCP transport > -------------------------------------------------- > > Key: AXIS2-3293 > URL: https://issues.apache.org/jira/browse/AXIS2-3293 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: client-api > Affects Versions: 1.3 > Reporter: dror yaffe > > Here is the excpetion: > java.lang.NullPointerException > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > at org.tempuri.KongServerHttpEndpointStub.Send(KongServerHttpEndpointStub.java:184) > at org.tempuri.Main.doWork(Main.java:45) > at org.tempuri.Main.main(Main.java:57) > client code: > public void doWork() throws Exception{ > String TARGET_END_POINT="tcp://127.0.0.1:8080/KongServerWebApplication/KongServerHttpEndpoint.asmx"; > KongServerHttpEndpointStub stub = new KongServerHttpEndpointStub(TARGET_END_POINT); > EndpointReference target = new EndpointReference(TARGET_END_POINT); > Options options = new Options(); > options.setTo(target); > options.setSenderTransport(Constants.TRANSPORT_TCP, cfg); > options.setTransportInProtocol(Constants.TRANSPORT_TCP); > TransportOutDescription x = new TransportOutDescription(Constants.TRANSPORT_TCP); > options.setTransportOut(x); > stub._getServiceClient().setOptions(options); > > > Send send = new Send(); > KongMessage msg= new KongMessage(); > send.setMessage(msg); > SendResponse res = stub.Send(send); > System.out.println("got res = "+res.getSendResult()); > > } > I used AXIS2 eclipse plugin code generator, here is the KongServerHttpEndpoint.wsdl > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org