2 Replies Latest reply on Jul 16, 2010 2:38 AM by s.hussain

    Issues with WS-Eventing and JBoss-4.2.3

    riveradon

      Hey all,

      I am having issues running under JBoss-4.2.3 with regards to WS-Eventing. The same code and configuration worked between JBoss-4.2.1 and JBoss-4.2.2. Now I am hitting a snag trying to execute the same code either standalone or within the JBoss environment. Listed below is the stack trace.

      javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
       at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
       at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
       at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
       at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
       at $Proxy13.registerService(Unknown Source)
       at com.issinc.atd.situationadvisory.eventing.Test.registerService(Test.java:102)
       at com.issinc.atd.situationadvisory.eventing.Test.main(Test.java:120)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      Caused by: java.io.IOException: Could not transmit message
       at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:255)
       at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73)
       at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:339)
       at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
       ... 10 more
      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connection refused: connect.
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
       at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
       at org.jboss.remoting.Client.invoke(Client.java:1634)
       at org.jboss.remoting.Client.invoke(Client.java:548)
       at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233)
       ... 13 more
      Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.Socket.connect(Socket.java:520)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
       at sun.net.www.http.HttpClient.New(HttpClient.java:304)
       at sun.net.www.http.HttpClient.New(HttpClient.java:321)
       at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
       at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
       at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:277)
       ... 18 more
      


      Any ideas on what the cause for the above exception would be greatly appreciated.

      Thanks!


        • 1. Re: Issues with WS-Eventing and JBoss-4.2.3
          riveradon

          The following is an example of the code I am trying to execute using the JBoss-4.2.3 libraries. This is a simple main program and interface:

          Client

          public class Test {
          
           private static Logger mLogger = Logger.getLogger(Test.class);
          
           public void registerService() {
           final String METHOD_NAME = "registerService";
           mLogger.debug(METHOD_NAME + " - ENTRY");
           boolean result = false;
           try {
           // Running the getCurrent function
           Service service = Service.create(
           new URL("http://ssdr_server:8080/ssdi-ssdr/ssdi-ssdr?wsdl"),
           new QName("http://ssdr.webservices.com/", "SsdrRegistryService"));
           ISsdr servicePort = service.getPort(ISsdr.class);
          
           String registerRDF = "payload";
          
           // Registering the ssdr via the SSDR Web Service
           result = servicePort.registerService(registerRDF);
           mLogger.info("Register results are:" + result);
          
           } catch (Exception e) {
           mLogger.error(METHOD_NAME + " : Exception: ", e);
           }
           mLogger.debug(METHOD_NAME + " - EXIT");
           }
          
           public static void main(String[] args) {
           Test test = new Test();
           test.registerService();
           }
          }
          



          Interface

          @WebService
          @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
           parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
          public interface ISsdr {
          @WebMethod
           public boolean registerService(@WebParam(name = "serviceRDF") String serviceRDF);
          
           @WebMethod
           public boolean unregisterService(@WebParam(name = "serviceRDF") String serviceRDF);
          
           @WebMethod
           public ArrayList<String> serviceLookup(@WebParam(name="serviceRequestRDF")
           String serviceRequestRDF);
          }
          


          • 2. Re: Issues with WS-Eventing and JBoss-4.2.3
            s.hussain

            i have also same exception. i deploye web services in service mix. its work perfect when i invoke it using java stand alone application but wehn use web client i get exactly same exception. can any one plz tell whats the actual issue.

             

            Thanks in Advanc,

             

            Hussain