users@jax-ws.java.net

for error information of multicat socket in web servce implementation

From: yuyin Song <yuyinsong_at_yahoo.com>
Date: Tue, 22 Aug 2006 08:48:58 -0700 (PDT)

All,

I tried to implement web service. In the
implemnetation of web service, I use Java
MulticastSocket to do publish-subscribe communication.
Service is subscriber, the third part, not wervice
client, is publisher.
So in service side, I use a groupIpAddres and port to
create a MulticastSocket to do subscibing. When I test
service function, there existed some following errors
for MulticastSocket. The java source code are as
follows:

try{
    groupAddress =
InetAddress.getByName(MULTICAST_ADDR);
   }catch (IOException e){
        System.out.println("error in getting group
address by Name:\t");
   }
        
                   
try{
       multiSocket = new
MulticastSocket(MULTICAST_PORT);
       System.out.println("Successfully create a
MulticastSocket:\t");
    }catch (IOException e){
        System.out.println("error in defining
MulticastSocket:\t");
        System.out.println("MultiSocket Error.");
 }



The error information:

 InvocationTargetException
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Next Exception Layer null
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:506)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Next Exception Layer JAXRPCSERVLET28: Missing port
information
com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:510)
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)
webservice.smarttransducerservices.SmartTransducerServicePortType_Stub.timDiscovery(SmartTransducerServicePortType_Stub.java:121)
webservice.smarttransducerservices.SmartTransducerServices1Client.smarttransducerserviceporttypeportTimDiscovery(SmartTransducerServices1Client.java:34)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:506)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)

What is the problem? Thank you so much.
Regards,

Yin


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com