HTTP error
Hi I get the following error : [Tue Mar 24 09:58:01 2009] [error] http_client.c(191) Error creating a socket. Most probably error returned by OS [Tue Mar 24 09:58:01 2009] [error] http_client.c(192) Socket Creation failed. [Tue Mar 24 09:58:01 2009] [error] http_client.c(430) client data stream null or socket error for host localhost and 80 port [Tue Mar 24 09:58:01 2009] [error] http_client.c(434) A read attempt(HTTP) for the reply without sending the request [Tue Mar 24 09:58:01 2009] [error] http_sender.c(1344) status_code 0 In my setup , AXIS2C act as both client and server. This occurs only a few times ,so i am trying to retry.Is there any other option? Thanks in Advance Balaji
Re: HTTP error
Are you running with a heavy load? Supun On Tue, Mar 24, 2009 at 7:15 PM, balajikumara T balajikum...@gmail.comwrote: Hi I get the following error : [Tue Mar 24 09:58:01 2009] [error] http_client.c(191) Error creating a socket. Most probably error returned by OS [Tue Mar 24 09:58:01 2009] [error] http_client.c(192) Socket Creation failed. [Tue Mar 24 09:58:01 2009] [error] http_client.c(430) client data stream null or socket error for host localhost and 80 port [Tue Mar 24 09:58:01 2009] [error] http_client.c(434) A read attempt(HTTP) for the reply without sending the request [Tue Mar 24 09:58:01 2009] [error] http_sender.c(1344) status_code 0 In my setup , AXIS2C act as both client and server. This occurs only a few times ,so i am trying to retry.Is there any other option? Thanks in Advance Balaji -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com
Re: HTTP error
Hi Supun No ,i am just sending 5 -10 request at the max. Basically server receives some request ,then does something and now it act as a client and sends 4 -5 request back again to the server and waits for reply. On the whole not more than 15 request at any point of time. I tried ulimit -n as well on the place where i start apache. But invain. Thanks Balaji On Tue, Mar 24, 2009 at 11:44 AM, Supun Kamburugamuva supu...@gmail.comwrote: Are you running with a heavy load? Supun On Tue, Mar 24, 2009 at 7:15 PM, balajikumara T balajikum...@gmail.comwrote: Hi I get the following error : [Tue Mar 24 09:58:01 2009] [error] http_client.c(191) Error creating a socket. Most probably error returned by OS [Tue Mar 24 09:58:01 2009] [error] http_client.c(192) Socket Creation failed. [Tue Mar 24 09:58:01 2009] [error] http_client.c(430) client data stream null or socket error for host localhost and 80 port [Tue Mar 24 09:58:01 2009] [error] http_client.c(434) A read attempt(HTTP) for the reply without sending the request [Tue Mar 24 09:58:01 2009] [error] http_sender.c(1344) status_code 0 In my setup , AXIS2C act as both client and server. This occurs only a few times ,so i am trying to retry.Is there any other option? Thanks in Advance Balaji -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com
Re: HTTP error
If you are in Windows and has access to the Axis2/C source try to do the following. In network_handler.c of axutil library there is a function called axutil_network_handler_open_socket. In the bottom of that function there are two socket options set. Remove the TCP_NODELAY option. Then for the SO_LINGER, set 0 as the onoff value. This may fix the problem. If this fixes the problem please let us know. We can do the neccessary changes in the code.. Supun.. On Tue, Mar 24, 2009 at 8:51 PM, balajikumara T balajikum...@gmail.comwrote: Hi Supun No ,i am just sending 5 -10 request at the max. Basically server receives some request ,then does something and now it act as a client and sends 4 -5 request back again to the server and waits for reply. On the whole not more than 15 request at any point of time. I tried ulimit -n as well on the place where i start apache. But invain. Thanks Balaji On Tue, Mar 24, 2009 at 11:44 AM, Supun Kamburugamuva supu...@gmail.comwrote: Are you running with a heavy load? Supun On Tue, Mar 24, 2009 at 7:15 PM, balajikumara T balajikum...@gmail.comwrote: Hi I get the following error : [Tue Mar 24 09:58:01 2009] [error] http_client.c(191) Error creating a socket. Most probably error returned by OS [Tue Mar 24 09:58:01 2009] [error] http_client.c(192) Socket Creation failed. [Tue Mar 24 09:58:01 2009] [error] http_client.c(430) client data stream null or socket error for host localhost and 80 port [Tue Mar 24 09:58:01 2009] [error] http_client.c(434) A read attempt(HTTP) for the reply without sending the request [Tue Mar 24 09:58:01 2009] [error] http_sender.c(1344) status_code 0 In my setup , AXIS2C act as both client and server. This occurs only a few times ,so i am trying to retry.Is there any other option? Thanks in Advance Balaji -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com
Web Service with Query String
Hi , I am new to WebService .Kindly reply me is there a way to develop a webservice which accepts quert string value in Java .If so kindly give me a sample code or document which shows how the webservice to be developed Thank you Regards Jailani -- View this message in context: http://www.nabble.com/Web-Service-with-Query-String-tp22676265p22676265.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Web Service with Query String
HI Jailani, May be Axis2 REST model (HTTP GET) will fix with your requirements , please see the following url. [1]-http://ws.apache.org/axis2/1_4_1/rest-ws.html Thanks, On Tue, Mar 24, 2009 at 2:26 PM, Jai_aXIS jaib...@gmail.com wrote: Hi , I am new to WebService .Kindly reply me is there a way to develop a webservice which accepts quert string value in Java .If so kindly give me a sample code or document which shows how the webservice to be developed Thank you Regards Jailani -- View this message in context: http://www.nabble.com/Web-Service-with-Query-String-tp22676265p22676265.html Sent from the Axis - User mailing list archive at Nabble.com. -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
axis2 stops making https connections randomly... HELP!
We have some java code that uses axis2 to connect to a webservice away from our network. The code runs fine for an undetermined amount of time (1 minute to 4 hours) then axis reports in the catalina.out it cannot make the web connection. We are using java 6 update 12, the latest tomcat 5.5. and axis 1.4.1. when setting the log level to DEBUG, you can see that axis seems to want to use a proxyHost setting when the error occurs, where as it was fine beore: connection that occured correctly: DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod) DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod,HttpState) DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long) DEBUG iThreadedHttpConnectionManager - HttpConnectionManager.getConnection: config = HostConfiguration [host=https://somedomain.com], timeout = 0 DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration) DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration) DEBUG iThreadedHttpConnectionManager - Allocating new connection, hostConfig=HostConfiguration[host=https://somedomain.com] DEBUG HttpMethodDirector - Attempt number 1 to process request DEBUG HttpConnection - enter HttpConnection.open() DEBUG HttpConnection - Open connection to somedomain.com:443 It seems to want to add a proxyHost=http://:0 to the config when it attemtps to connect. here is a later connection that failed: DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod) DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod,HttpState) DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long) DEBUG iThreadedHttpConnectionManager - HttpConnectionManager.getConnection: config = HostConfiguration [host=https://somedomain.com, proxyHost=http://:0], timeout = 0 DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration) DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration) DEBUG iThreadedHttpConnectionManager - Allocating new connection, hostConfig=HostConfiguration[host=https://somedomain.com, proxyHost=http://:0] DEBUG HttpMethodDirector - Attempt number 1 to process request DEBUG HttpConnection - enter HttpConnection.open() DEBUG HttpConnection - Open connection to :0 DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Closing the connection. DEBUG HttpConnection - enter HttpConnection.close() DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Connection refused DEBUG HttpMethodDirector - Attempt number 2 to process request DEBUG HttpConnection - enter HttpConnection.open() DEBUG HttpConnection - Open connection to :0 DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Closing the connection. DEBUG HttpConnection - enter HttpConnection.close() DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Connection refused DEBUG HttpMethodDirector - Attempt number 3 to process request DEBUG HttpConnection - enter HttpConnection.open() DEBUG HttpConnection - Open connection to :0 DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Closing the connection. DEBUG HttpConnection - enter HttpConnection.close() DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Connection refused DEBUG HttpMethodDirector - Attempt number 4 to process request DEBUG HttpConnection - enter HttpConnection.open() DEBUG HttpConnection - Open connection to :0 DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Closing the connection. DEBUG HttpConnection - enter HttpConnection.close() DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams() DEBUG HttpMethodDirector - Method retry handler returned false. Automatic recovery will not be attempted DEBUG HttpConnection - enter HttpConnection.releaseConnection() DEBUG HttpConnection
AW: scope=soapsession what causes destroy() to be called
Dear axis2 ServiceGroupId and scope=sopasession community In absence of support for this my hot hot topic In mode scope=soapsession be aware that the ConfigContextTimeoutInterval in axis2.xml is set to a value high enougth as shown i.e. 360 = 1h !-- This will give out the timout of the configuration contexts, in milliseconds -- parameter name=ConfigContextTimeoutInterval360/parameter If this value is set to only 3 that means, the user has a maximum of 30 seconds in a long-lasting session to have its client application send the next request to the axis2 server. Even the next request is sent with a a proper ServiceGroupId after this time, it would not prevent that destroy() is triggered by this time-out; this however makes the used ServiceGroupId invalid and this is then sent as an exception back to the client; but the ServiceGroupId is valid only the time-out has occured. So the falt raised should potentially inform about the true cause, not letting users in the dark. Since I have adjusted this time out to 1 hour, a client can suspend a next request for that time and still reach the waiting instance of a service-object and through this object potentially a long waiting process. Josef.Stadelmann @axa-winterthur.ch -Ursprüngliche Nachricht- Von: Stadelmann Josef [mailto:josef.stadelm...@axa-winterthur.ch] Gesendet: Mittwoch, 18. März 2009 10:39 An: axis-user@ws.apache.org Betreff: AW: scope=soapsession what causes destroy() to be called Hi all It seams that no-one of the axis2 developers, mainly the one introducing scope=soapsession are able to deliver me an answer to my questions below. a while ago, two years ago in fact I run still axis2-1.2 on OpenVMS, I was 100% confident that I have a thread/session safe configuration when I run in scope=soapsession; mode however this is only true for java axis2 based service clients; this is the out-come of the past months! The various stories say - that one has to return the ServicegroupId's with each request, in a soap-header. OK I beleaved this. And I garantee you, all my wcf clients do it. Meanwhile, I am 100% confident, as I am currently struggle arroun to make Vista clients using .NET, C#, WCF work toward an axis2 server running in scope=soapsession; THAT THIS IS SIMPLY NOT TRUE! what I learned and have detected so far using tcpmon is Every axis2 java service client accepts cookies and hence the server returns on its initial request (when the sessiion is new) a Set-Cookie; JSESSIONID= id ; Path=/axis2 This as a web http header in its reply when a first request is made, which calls init() and then my own login() (when the session is new:) and with this first response, as said in documentation; I get the awaited ServiceGroupId back. This ServicegroupId is said to be the identifier one has to return with each follow-request to the server to reach the same instance of a service, to talk to the same object; to have in fact sessions /threads implemented; however - that is not true - without the coockie it does not work. The quite reader might have assumed that I run via HttpTransport not via TcpTransports; We do so. Now; I have 3 Java axis2 service clients running; and each is reaching its own object/service, each sends its own garanteed unique JSESSIONID at the http-request-header-level and its own garanteed unique ServiceGroupId at the soap-request-header-level And it works; I start my first wcf client and well it works; This wcf client sends garanteed unique its JSESSION and its garanteed unique ServicveGroupId with each request; see below; we have init() login() fktmap() fktmap() fktmap() init() login() ... and please take notice the when the ServiceContext ID changes; And it works; I start my second wcf client an well it receives with its initial request (it calls init() ( it's garanteed unique JSESSIONID and its garanteed unique ServicegroupId; But when I look at my log in AXP1ty APACHE$SPECIFIC:[00]APACHE$JAKARTA_SERVER_OUTPUT.LOG/out=x.x I can find the following sequence of calls; and as you can see, when my third vista wcf client starts destroy() gets called twice for my two previous still in use ServiceContext, and that is the deadly end of the unique services serving wcf client 1 and 2 AXP1search x.x - init(),- login(),- fktmap,- logout(),- destroy() - init()called at : Wed Mar 18 08:38:40 MET 2009 using mailto:org.apache.axis2.context.servicecont...@fe418d28 org.apache.axis2.context.servicecont...@fe418d28 i=0 - login() called at : Wed Mar 18 08:38:40 MET 2009 using mailto:org.apache.axis2.context.servicecont...@fe418d28 org.apache.axis2.context.servicecont...@fe418d28 i=1 and session is NEW - fktmap() called at : Wed Mar 18 08:38:48 MET 2009 using
Re: Where to find old bugs (from http://nagoya.apache.org/bugzilla/)?
Anyone? BoD BoD wrote: Hi! I'm experiencing a problem with axis1 and googling gives lots of results that point to old bug reports on http://nagoya.apache.org/bugzilla/. Now it is my understanding that this server does not exist anymore, and that JIRA is used instead. But was there a migration of the bugzilla bugs to JIRA when this was done? If so, given a bugzilla bug id, how can I find the bug on JIRA? Thanks a lot. BoD
Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
Hi Pradeep, We've gotten to the point now where we are going to have to have the WSDL2.0 version of wsdl2java write policy information from the WSDL2.0 file into the services.xml file and the client stub. We've been doing it by hand on a trial basis so that we can do some testing and understand what is needed in the way of policy. But now we need to do this for all of our clients and services and doing it by hand is not practical. We talked about ways to get by until JIRA issue AXIS2-4272 is resolved but none seem to be reasonable for various reasons. One possibility is to go ahead and try to resolve AXIS2-4272 ourselves. We don't want to duplicate any effort that is already going on though. So before we start I want to check to see if anyone was already working on this and if so what the expected time frame would be? If no one is working on this yet and if there is no one ready to take it on then we'll take a crack at it. We are hoping that someone else has already started on it though. Thanks Leon - Original Message - From: Pradeep Fernando pradee...@gmail.com To: axis-user@ws.apache.org Sent: Monday, March 16, 2009 12:38:35 AM GMT -06:00 US/Canada Central Subject: Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility Hi leon, I raised a JIRA issue on behalf of you. you can track it here[1]. thanks, Pradeep Fernando. [1] https://issues.apache.org/jira/browse/AXIS2-4272 -- Leon S. Searl, Software/Hardware Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu
Axis2 Code Generator Plug-In 1.4.1 - An error occurred while completing process
Greetings, Do you folks have any suggestions? I see the following error when I try to build Java from a simple WSDL. An error occurred while completing process - java.lang.reflect.Invocation TargetException It occured while working through a simple example from Tong's book. http://www.agileskills2.org/DWSAA/index.html I also tried version 1.3 of the plug-in as Tong suggested as well as the 1.4 version. I notice that even the 1.4* versions of the file contain, the directory, Axis2_Codegen_Wizard_1.3.0. Is that expected? As a note, I have followed the directions in the following reference, and that only caused the problem to occur earlier in the process. https://issues.apache.org/jira/browse/AXIS2-3792 I am working with Eclipse 3.4 and AXIS2 v. 1.4.1 Zip File Source: http://www.ibiblio.org/pub/mirrors/apache/ws/axis2/tools/1_4_1/axis2-eclipse-codegen-wizard.zip, Best regards, Scott Vigil
Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
Hi leaon, if anyone was already working on this yes leon I ve been working on this. so what the expected time frame would be? had a problem with policy element retrieving had discussion with the woden-dev list. Sagara came up with a answer I'm yet to try it out. later in the day I would be able to update on you about this and with a estimated time frame. cheers, Pradeep Fernando