axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kun Yang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5677) javax.xml.ws.WebServiceException: Unable to create AxisService for <WSDL_URI>
Date Thu, 13 Nov 2014 03:05:33 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kun Yang updated AXIS2-5677:
----------------------------
    Description: 
Code:
           Service service =Service.create(getWsdlURL(),getServiceName());
            
            Dispatch<OMElement> dispatch = service.createDispatch(getPortName(), OMElement.class,
Mode.MESSAGE);

Error:
Caused by: javax.xml.ws.WebServiceException: Unable to create AxisService for <WSDL_URI>
    at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(EndpointDescriptionImpl.java:787)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:275)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:223)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:219)
    at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:593)
    at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:386)
    at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:371)
    at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:156)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.createDispatch(ServiceDelegate.java:425)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.createDispatch(ServiceDelegate.java:271)
    at javax.xml.ws.Service.createDispatch(Service.java:332)



Workaround:
Append below lines to etc/sysctl.conf .  Then restart OS.  I have tried in my linux test environment.
looks work well. 
net.ipv4.tcp_tw_reuse    = 1 
net.ipv4.tcp_tw_recycle  = 1 
net.ipv4.tcp_fin_timeout = 30 
net.ipv4.tcp_keepalive_time = 1800 
net.ipv4.tcp_max_syn_backlog = 4096


Desc:
The root cause is axis consume a lot of Linux parts .  And Linux system can not release ports
in time. 


Question:
How to fix it in code level ?

  was:
Code:
           Service service =Service.create(getWsdlURL(),getServiceName());
            
            Dispatch<OMElement> dispatch = service.createDispatch(getPortName(), OMElement.class,
Mode.MESSAGE);

Error:
Caused by: javax.xml.ws.WebServiceException: Unable to create AxisService for CrmServiceSoapExport1_CrmServiceSoapHttpService.CrmServiceSoapExport1_CrmServiceSoapHttpPort
    at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(EndpointDescriptionImpl.java:787)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:275)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:223)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:219)
    at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:593)
    at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:386)
    at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:371)
    at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:156)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.createDispatch(ServiceDelegate.java:425)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.createDispatch(ServiceDelegate.java:271)
    at javax.xml.ws.Service.createDispatch(Service.java:332)



Workaround:
Append below lines to etc/sysctl.conf .  Then restart OS.  I have tried in my linux test environment.
looks work well. 
net.ipv4.tcp_tw_reuse    = 1 
net.ipv4.tcp_tw_recycle  = 1 
net.ipv4.tcp_fin_timeout = 30 
net.ipv4.tcp_keepalive_time = 1800 
net.ipv4.tcp_max_syn_backlog = 4096


Desc:
The root cause is axis consume a lot of Linux parts .  And Linux system can not release ports
in time. 


Question:
How to fix it in code level ?

        Summary: javax.xml.ws.WebServiceException: Unable to create AxisService for <WSDL_URI>
 (was: javax.xml.ws.WebServiceException: Unable to create AxisService for <WSDL_URL>)

> javax.xml.ws.WebServiceException: Unable to create AxisService for <WSDL_URI>
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-5677
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5677
>             Project: Axis2
>          Issue Type: Improvement
>          Components: jaxws
>            Reporter: Kun Yang
>
> Code:
>            Service service =Service.create(getWsdlURL(),getServiceName());
>             
>             Dispatch<OMElement> dispatch = service.createDispatch(getPortName(),
OMElement.class, Mode.MESSAGE);
> Error:
> Caused by: javax.xml.ws.WebServiceException: Unable to create AxisService for <WSDL_URI>
>     at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
>     at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
>     at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118)
>     at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(EndpointDescriptionImpl.java:787)
>     at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:275)
>     at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:223)
>     at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:219)
>     at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:593)
>     at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:386)
>     at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:371)
>     at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:156)
>     at org.apache.axis2.jaxws.spi.ServiceDelegate.createDispatch(ServiceDelegate.java:425)
>     at org.apache.axis2.jaxws.spi.ServiceDelegate.createDispatch(ServiceDelegate.java:271)
>     at javax.xml.ws.Service.createDispatch(Service.java:332)
> Workaround:
> Append below lines to etc/sysctl.conf .  Then restart OS.  I have tried in my linux test
environment. looks work well. 
> net.ipv4.tcp_tw_reuse    = 1 
> net.ipv4.tcp_tw_recycle  = 1 
> net.ipv4.tcp_fin_timeout = 30 
> net.ipv4.tcp_keepalive_time = 1800 
> net.ipv4.tcp_max_syn_backlog = 4096
> Desc:
> The root cause is axis consume a lot of Linux parts .  And Linux system can not release
ports in time. 
> Question:
> How to fix it in code level ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message