UDPClient socket.receive() problem

I have a slight problem.... while receiving the packets.....
          /***  DECLARE AND INSTANCIATE DATAGRAM TO RECEIVE ***/
          /* buffer for holding the incoming datagram*/          
          byte[] buffer = new byte[size];
          DatagramPacket reply[] = new DatagramPacket[size];     
               start = System.currentTimeMillis();
                                         /***  SEND DATAGRAM PACKETS  (THIS SECTION WORKS FINE)***/
          for(counter = 0; counter < size; counter++)
           request[counter] = new DatagramPacket(m, m.length, aHost, serverPort);
           aSocket.send(request[counter]);               
          System.out.println("Sent all");
          /***  RECEIVE DATAGRAM PACKETS  (   PROBLEM SECTION   )***/
          for (Getcount = 0; Getcount < size ; Getcount++)
               System.out.println("Receving " +Getcount);
               reply[Getcount] = new DatagramPacket(buffer, buffer.length);     
               System.out.println("got pack in array");
SPECIFICALLY PROBLEM IS HERE >>>>aSocket.receive(reply);
HOW DO I receive the package?
I cannot try to recieve individual because I doono which one is going to show up first... so I cant put in a lopp saying that aSocket.receive(reply[Getcount]); also I cannot get it using aSocket.receive(reply);
because the receieve needs a datagram packet.....
               System.out.println("Received by socket");
          end = System.currentTimeMillis();
          difference = end - start;
          System.out.println("Reply: " + new String(reply[0].getData()));     
          System.out.println("Difference in time was "+difference+" milliseconds");

I am setting the size as 100 in the arg[0] but the problem is that
import java.net.*;
import java.io.*;
import java.text.*;
import java.util.*;
public class UDPClientTest
     public static void main(String args[])
          DatagramSocket aSocket = null;
       try
          aSocket = new DatagramSocket();   
          InetAddress aHost = InetAddress.getByName(args[1]);
          int serverPort = 6789;
          int counter;
          int Getcount;
          /***  SET ARRAY SIZE FROM COMMAND PROMPT  ***/
          int size = Integer.parseInt(args[0]);
          byte[] m = new byte[size];
          /***  FILL ARRAY WITH RANDOM NUMBERS  ***/
          for(int count = 0; count < size; count ++)
               m[count] = (byte)(Math.random()*1000);
          /***  INITIALIZE EVERYTHING HERE (BEFORE TIMER STARTS COUNTING TIME)  ***/
          /***  DECLARE AND INSTANCIATE DATAGRAM TO SEND ***/
          DatagramPacket request[] = new DatagramPacket[size];
          /***  DECLARE AND INSTANCIATE DATAGRAM TO RECEIVE ***/
          /* buffer for holding the incoming datagram*/          
          byte[] buffer = new byte[10000];
          DatagramPacket reply = new DatagramPacket(buffer,buffer.length);
          /***  VARIABLES FOR TIMERS  ***/
          long start = 0, end = 0, difference = 0;
          /*** START TIMER (USING SYSTEM TIMER NOT DATE OBJECT FOR MORE ACCURACY)***/
          start = System.currentTimeMillis();
          /***  SEND DATAGRAM PACKETS  ***/
          for(counter = 0; counter < size; counter++)
           request[counter] = new DatagramPacket(m, m.length, aHost, serverPort);
           aSocket.send(request[counter]);               
          System.out.println("Sent all");
          /***  RECEIVE DATAGRAM PACKETS  ***/
               >>>>>>>>>PROBLEM BELOW<<<<<<<<<<<<<<<
          aSocket.setSoTimeout(1000000000);
/****PROBLEM: EVEN THOUGH I HAVE SIZE WHICH IS 100 when I start program in arg[0] the program just starts from 99 but stops at 17 and prints what I have displayed after code and waits ****/
          while(--size >= 0)
               reply = new DatagramPacket(buffer,buffer.length);   
          try{
               System.out.println(size);
               aSocket.receive(reply);   
               System.out.println("After receive");
          } catch(SocketException e){System.out.println("Socket Exception "+e.getMessage());}
          /***  END TIMER  ***/
          end = System.currentTimeMillis();
          difference = end - start;
          System.out.println("Reply: " + new String(reply.getData()));     
          System.out.println("Difference in time was "+difference+" milliseconds");
          catch (SocketException e){System.out.println("Socket: " + e.getMessage());}
          catch (IOException e){System.out.println("IO: " + e.getMessage());}
          finally {if(aSocket != null) aSocket.close();}
}.........STARTS WITH 99 and prints this below
After receive
27
After receive
26
After receive
25
After receive
24
After receive
23
After receive
22
After receive
21
After receive
20
After receive
19
After receive
18
After receive
17
then it justs waits............
Please help me.........

Similar Messages

  • Socket.receive not picking up large packets

    I have found that the socket.receive method on some systems has trouble picking up large multicast packets from the network (i.e. 50k). Running ethereal, the packets are making it to the machine but the receive method continues to block as if nothing was there. It seems to be an issue with redhat linux since the software I have been told works fine on a windows machine. I am currently running the software on core 2 and I believe we are experiencing a similiar problem on redhat 9. Has anyone experienced this problem before and possibly know how to fix it? Any suggestions would be greatly appreciated. Thank You.

    No answer for you, I'm afraid, but some possibly illuminatory questions.
    Are you able to determine the boundary between the sizes of packets that can be received and those that can't? Is the boundary precise, or fuzzy (ie, do packets get lost intermittently when sizes are near the boundary) ?
    Are you running firewalling software (iptables?) on your LInux system?
    Is your Linux system configured always to defragment packets prior to firewalling? If so, if you reconfigure it not to, does it start working?
    Does it work if the packets are simply broadcast rather than multicast?

  • MulticastSocket Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
              I need some help.
              Product=weblogic5.1.0
              Revision=(Release Level)=
              Problem Description=
              I am doing cluster of weblogic server, I have no problem to set up the
              cluster and to run servlet and EJB examples.
              However, on my command line for startcluster I got a lot of message as
              followed:
              Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error opening JAR file from
              file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java, Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              The message freshed about every 20 seconds.
              Another question, I used a iplanet web server as a proxy server with a
              cluster of two weblogic servers pluged in, although I set
              weblogic.properties to round-robin, however, when I run a fibonacci servlet,
              it does not do the round-robin. It always go to one machine for a lot of
              times. Any idea?
              Thank you for your help.
              Tom
              

    May i presume that your cluster is configured on a shared file system?.
              I have seen this problem only if you cluster is configured on different machines
              and if the directory structure is not identical.
              let us know..
              Kumar
              Cameron Purdy wrote:
              > First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
              > instructions on setting up deployments for a cluster. The only
              > implementation that I have used is the single shared location that all the
              > servers load from.
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              > "Tom Gan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > > I need some help.
              > >
              > > Product=weblogic5.1.0
              > > Revision=(Release Level)=
              > > Problem Description=
              > > I am doing cluster of weblogic server, I have no problem to set up the
              > > cluster and to run servlet and EJB examples.
              > > However, on my command line for startcluster I got a lot of message as
              > > followed:
              > > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
              > receive
              > > error: java.lang.RuntimeException: I/O error opening JAR file from
              > > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              > > java.util.zip.ZipException: error in opening zip file
              > > at java.util.zip.ZipFile.open(Native Method)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              > > Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > > .java, Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > > , Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > > StreamBase.java, Compiled Code)
              > > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              > > Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              > >
              > > The message freshed about every 20 seconds.
              > >
              > > Another question, I used a iplanet web server as a proxy server with a
              > > cluster of two weblogic servers pluged in, although I set
              > > weblogic.properties to round-robin, however, when I run a fibonacci
              > servlet,
              > > it does not do the round-robin. It always go to one machine for a lot of
              > > times. Any idea?
              > > Thank you for your help.
              > > Tom
              > >
              > >
              > >
              

  • Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
    I need some help.
    Product=weblogic5.1.0
    Revision=(Release Level)=
    Problem Description=
    I am doing cluster of weblogic server, I have no problem to set up the
    cluster and to run servlet and EJB examples.
    However, on my command line for startcluster I got a lot of message as
    followed:
    Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
    error: java.lang.RuntimeException: I/O error ope
    ning JAR file from
    file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
    Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
    .java, Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
    , Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
    StreamBase.java, Compiled Code)
    at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
    Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    The message freshed about every 20 seconds.
    Another question, I used a iplanet web server as a proxy server with a
    cluster of two weblogic servers pluged in, although I set
    weblogic.properties to round-robin, however, when I run a fibonacci servlet,
    it does not do the round-robin. It always go to one machine for a lot of
    times. Any idea?
    Thank you for your help.
    Tom

    Hi,
    I need some help.
    Product=weblogic5.1.0
    Revision=(Release Level)=
    Problem Description=
    I am doing cluster of weblogic server, I have no problem to set up the
    cluster and to run servlet and EJB examples.
    However, on my command line for startcluster I got a lot of message as
    followed:
    Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
    error: java.lang.RuntimeException: I/O error ope
    ning JAR file from
    file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
    Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
    .java, Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
    , Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
    StreamBase.java, Compiled Code)
    at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
    Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    The message freshed about every 20 seconds.
    Another question, I used a iplanet web server as a proxy server with a
    cluster of two weblogic servers pluged in, although I set
    weblogic.properties to round-robin, however, when I run a fibonacci servlet,
    it does not do the round-robin. It always go to one machine for a lot of
    times. Any idea?
    Thank you for your help.
    Tom

  • FTP receiver problem

    Hello,
    I have read lots of threads for FTP receiver problems wiht overwriting files....
    But I am not sure which is the correct solution.
    We have:
    - Cluster (6nodes), PI711  (SP03)
    - a time stamp shoudl be in the file name
    - there is dynamice filename, because first char of the filename must be set from mapping
    - each mesasge must be put in a single file (not APPEND mode)
    After few test it seems that files are overwriten.
    I tried ADD MESSAGEID, which seems to work correctly, but with dynamic filenametimestampmsgid the filename is to long for the next application.
    I saw in a note, that the cluster can be the problem....
    Any idea how I can solve my problem?
    Does "use temporaly filename" help?
    How is it used correctly????
    best reagrds
    Werner

    Hi Werner,
    In Processing Parameters tab, keep the file construction mode as "Add timestamp" and in the Putfile use" Use Temporary file". This should help you...
    Refer the below link regarding Configuring the Receiver FTP Adapter 
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/69d7cfa4b633eae10000000a1553f6/content.htm
    Thanks,

  • Multicast socket receive error: java.io.InterruptedIOException: Receive timed out

    Hello
              We have One Admin and 2 Mananged server on same machine.
              It is a quad server.
              With 2 NICs.
              Managed Server is giving this error.
              <Jul 22, 2002 10:55:54 AM CDT> <Error> <Cluster> <Multicast socket
              receive error
              : java.io.InterruptedIOException: Receive timed out
              java.io.InterruptedIOException: Receive timed out
              at java.net.PlainDatagramSocketImpl.receive(Native Method)
              at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java
              :90)
              at java.net.DatagramSocket.receive(DatagramSocket.java:404)
              at weblogic.cluster.FragmentSocket.receive(FragmentSocket.java:145)
              at weblogic.cluster.MulticastManager.execute(MulticastManager.java:298)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              Also on weblogic console
              Cluster - > Monitoring - > Monitor Server Participation Panel
              shows that both our managed servers are part of the cluster..
              But only Sent Frames has data.. Receive frame does not seem to be
              working.
              I tried MultiCastTest Utility in 2 different dos prompts and seems to
              be working. (both windows shows send/receive).
              Though i am not sure if it will work for a quad / 2NIC machine..
              As utility does not take IP address of the server.
              thanks
              

    that is right.
              we fixed it.. we tried running multicast test and it failed
              so we had to fix our network settings and got multicast working.
              also due to multiple NIC card we had to set "interface" address
              which we had not done while working with single NIC machines
              in clustered mode.
              thanks
              Kumar Allamraju <[email protected]> wrote in message news:<[email protected]>...
              > I have seen this error once when the multicastddress is not properly setup.
              > Can you try a different multicastAddress and see if that makes any difference?
              >
              >
              > zevit wrote:
              >
              > > Hello
              > >
              > > We have One Admin and 2 Mananged server on same machine.
              > > It is a quad server.
              > > With 2 NICs.
              > >
              > > Managed Server is giving this error.
              > >
              > > <Jul 22, 2002 10:55:54 AM CDT> <Error> <Cluster> <Multicast socket
              > > receive error
              > > : java.io.InterruptedIOException: Receive timed out
              > > java.io.InterruptedIOException: Receive timed out
              > > at java.net.PlainDatagramSocketImpl.receive(Native Method)
              > > at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java
              > > :90)
              > > at java.net.DatagramSocket.receive(DatagramSocket.java:404)
              > > at weblogic.cluster.FragmentSocket.receive(FragmentSocket.java:145)
              > > at weblogic.cluster.MulticastManager.execute(MulticastManager.java:298)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > > >
              > >
              > > Also on weblogic console
              > >
              > > Cluster - > Monitoring - > Monitor Server Participation Panel
              > > shows that both our managed servers are part of the cluster..
              > > But only Sent Frames has data.. Receive frame does not seem to be
              > > working.
              > >
              > > I tried MultiCastTest Utility in 2 different dos prompts and seems to
              > > be working. (both windows shows send/receive).
              > > Though i am not sure if it will work for a quad / 2NIC machine..
              > > As utility does not take IP address of the server.
              > >
              > > thanks
              

  • Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file

    I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
              The error message I received lkie this:
              Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
              

    Yuping,
              What release of WLS w/ service pack are you using? Make sure, if you are using a non-shared file system, to have the same absolute paths to your application on your file systems.
              yuping xu wrote:
              > I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
              > The error message I received lkie this:
              > Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
              

  • Nokia 112 Signal Receiver Problem

    I am Using Nokia 112 (New Mobile).So many time tower is getting hide..And automatically tower is coming.In main cities also this problem is coming.I have cleaned my sim then inserted.But till that problem is coming.Actually Nokia 112 Having this type of Signal Receiver Problem? For new mobile i want to service?

    You may try another SIM (borrow from your friends / family members) . Preferably you may try SIMs from different operators. This will tell you whether its the problem with your Phone, your Operator or your particular SIM. If all SIMs give same result, it may be an issue with the phone..If other Operators SIM work fine but the other SIM from the same Operator as yours do not then its Network issue. If all othe SIMs work then get your SIM repalced ..           

  • Socket data send-receive problem

    I hv J2ME client application and vb.net socket server application communicating over sockets. Client connection is made successfully but cant send data to server. When I exit from client application then server application receives those data. (application works pretty fine on emulator but on real device gives above problem)
    WTK Sample application gives same problem when I tried.
    Any idea abt this problem ? gr8 ful if u have some working code.

    yeah your idea works..
    I hv used flush() method and now it works (Live on Nokia E62) nicely.
    But to keep connection opened during whole application I dont close InputStream/OutputStream connection. I close it only at EXIT of application so that I get optimum performace in transactions.

  • Flash socket receive data problem?!!!

    Hey guys, i am using flash socket communicate with a server( which coded by c++)  that use binary protocols . at first, it works well! but when the server send data more than 1024 bytes one time, the flash socket client got a  ioError Event and disconnect with the server immediately! why?does the flash socket can only receive at most 1024 bytes one time???
    Thanks in advance for any help

    Hey guys, i am using flash socket communicate with a server( which coded by c++)  that use binary protocols . at first, it works well! but when the server send data more than 1024 bytes one time, the flash socket client got a  ioError Event and disconnect with the server immediately! why?does the flash socket can only receive at most 1024 bytes one time???
    Thanks in advance for any help

  • BT Faster slow - lack of master socket the problem...

    My new BT Faster FTTC broadband is not delivering the promised speed, and I hoped someone here might have some knowledgable suggestions.
    I was promised a speed of 12-18Mbps down, but it's actually delivering (on first day) just over 8Mbps. 
    (The promised speed matches that returned by the dslchecker for my number, and the actual speed has been measured using speedtest.net as well as BT Wholesale speedtest).
    Wondering if at least part of the problem is that the premises doesn't have a proper master socket. The only live sockets are "extension" sockets. I've plugged into the one of these nearest the small BT junction (?) box just inside the house to try to optimise speed.
    I did warn BT that the house didn't have a proper master socket and requested an engineer install for this reason, but they insisted I try a self install of the HH5 and "see how it goes". I wonder if the speed wouldn't be improved to something closer to that promised if there was a master socket installed (an NTE5 or even a SSFP Infinity).
    Any advice on how I should proceed and/or whether I should go back to BT to request they install a master socket? Any and all help would be much appreciated!
    In case of any help, here are the hub stats from the "Helpdesk" view:
    Product name: BT Home Hub
    Serial number:
    Firmware version: Software version 4.7.5.1.83.8.173.1.6 (Type A) Last updated Unknown
    Board version: BT Hub 5A
    VDSL uptime: 0 days, 03:02:33
    Data rate: 1257 / 9395
    Maximum data rate: 1257 / 8953
    Noise margin: 6.1 / 6.0
    Line attenuation: 0.0 / 35.2
    Signal attenuation: 0.0 / 27.6
    Data sent/received: 39.0 MB / 229.6 MB

    Thanks for the reply John. The checkers are still giving me the same results as yesterday, screengrabs now attached:
    1. Product name:    BT Home Hub
    2. Serial number:    +
    3. Firmware version:    Software version 4.7.5.1.83.8.204 (Type A) Last updated 28/02/15
    4. Board version:    BT Hub 5A
    5. DSL uptime:    0 days, 00:33:28
    6. Data rate:    1261 / 9260
    7. Maximum data rate:    1269 / 9293
    8. Noise margin:    6.2 / 6.1
    9. Line attenuation:    14.9 / 36.5
    10. Signal attenuation:    14.9 / 28.6
    11. Data sent/received:    13.4 MB / 188.7 MB

  • Socket Programming Problem

    I am using multi threading with socket programming. One thread uses socket's output stream to send the data and the other thread keeps waiting for the data to arrive from that socket's input stream.
    Now when the readLine or readObject is excuting on the receiver thread it will be blocked untill data arrives. In which case sending thread will not be able to send the data.
    Now is there any way to make the readLine or readObject method non blocking?
    Please advise ASAP
    thnks

    Below is an example of a simple blocking multi-threaded client program that connects to google. I don't believe I've ever experienced a problem like you're describing before while dealing with Java sockets; perhaps this will give you an idea about what's going wrong. One thread reads from stdin, the other (the main-thread of execution) reads from the socket and writes to the screen.
    java Test
    Then do a GET request to the HTTP server:
    "GET / HTTP/1.0"
    Then press return again and watch it send you google's root page.
    import java.net.*;
    import java.io.*;
    class Test
        Test()
         try
              Socket mySocket = new Socket("www.google.com", 80);
              BufferedReader myReader;
              final BufferedWriter myWriter;
              myWriter = new BufferedWriter(new OutputStreamWriter(mySocket.getOutputStream()));
              Thread myThread = new Thread()
                   public void run()
                       System.out.println("here");
                       try
                       BufferedReader inputReader = new BufferedReader(new InputStreamReader(System.in));
                       String str;
                       while((str = inputReader.readLine()) != null)
                            myWriter.write(str);
                            myWriter.write("\n");
                            myWriter.flush();
                       catch(IOException e)
                        System.err.println("Error reading from stdin.");
                        System.exit(-1);
              myThread.start();
                       System.out.println("there");
              myReader = new BufferedReader(new InputStreamReader(mySocket.getInputStream()));
              String str;
              while((str = myReader.readLine()) != null)
                   System.out.println(str);
         catch(IOException hostExcep)
              System.out.println("Host terminated the connection!");
              hostExcep.printStackTrace();
        public static void main(String args[])
         new Test();
    }

  • Socket Listening problem in Netbeans

    Hello All
    I am using "Netbeans Version 6.8" and i am making a client chat application. and it is not receiving messages from the Server Application. the code is posted bellow, Can any body rectify or solve the problem.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * ChatClient.java
    * Created on May 7, 2010, 4:23:42 PM
    package chatclient;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    //import java.awt.*;
    * @author Adeel
    public class ChatClient extends javax.swing.JFrame {
        /** Creates new form ChatClient */
            Socket s;
         BufferedReader br;
         BufferedWriter bw;
         List list;
        public ChatClient() {
            initComponents();
                    try{
                   /*Put the current IP address for current machine
                   if you didn't have an actual server and clients
                   if you have an actual server and clients put the client IP address*/
    ////               s = new Socket("localhost",100);
                            s = new Socket("127.0.0.1",100);
                   br = new BufferedReader(new InputStreamReader(
                             s.getInputStream()));
                   bw = new BufferedWriter(new OutputStreamWriter(
                             s.getOutputStream()));
                   Thread th;
                   th = new Thread();
                   th.start();
              }catch(Exception e){}
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jTextField1 = new javax.swing.JTextField();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("Send");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setText("Logout");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addGap(59, 59, 59)
                            .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(28, 28, 28)
                            .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton1)
                        .addComponent(jButton2))
                    .addContainerGap())
            pack();
        }// </editor-fold>
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
            System.exit(0);
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            String chatText;
            String newline = "\n";    // for new line in jTextArea
            chatText=jTextField1.getText();
            jTextArea1.append(chatText + newline);
            try{
                bw.write(chatText);
                bw.newLine();
                bw.flush();
            }catch(Exception m){}
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new ChatClient().setVisible(true);
               public void run()
              try{s.setSoTimeout(1);}catch(Exception e){}
              while (true)
                   try{list.add(br.readLine());
                   }catch (Exception h){}
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTextArea jTextArea1;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration
    }Waiting for your response
    Regards
    Adeel

    thank you for your feedback,
    but it is still not showing any problem or throwing any Exception. The sending code is working properly but it is not listening/receiving any message from server application. i think, there is a void run() method which is not reacting properly.. i have commented that area in the code.. other rest of code is 100% working, i have checked that...
    There are 2 run() methods in the code, Can you please check it for me, may you understand/rectify the problem why it is not listening.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * ChatClient.java
    * Created on May 7, 2010, 4:23:42 PM
    package chatclient;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    //import java.awt.*;
    * @author Adeel
    public class ChatClient extends javax.swing.JFrame {
        /** Creates new form ChatClient */
            Socket s;
         BufferedReader br;
         BufferedWriter bw;
         List list;
        public ChatClient() {
            initComponents();
                    try{
                   /*Put the current IP address for current machine
                   if you didn't have an actual server and clients
                   if you have an actual server and clients put the client IP address*/
    ////               s = new Socket("localhost",100);
                            s = new Socket("127.0.0.1",100);
                   br = new BufferedReader(new InputStreamReader(
                             s.getInputStream()));
                   bw = new BufferedWriter(new OutputStreamWriter(
                             s.getOutputStream()));
                   Thread th;
                   th = new Thread();
                   th.start();
              }catch(Exception e){
                    e.printStackTrace();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jTextField1 = new javax.swing.JTextField();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("Send");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setText("Logout");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addGap(59, 59, 59)
                            .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(28, 28, 28)
                            .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton1)
                        .addComponent(jButton2))
                    .addContainerGap())
            pack();
        }// </editor-fold>
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
            System.exit(0);
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            String chatText;
            String newline = "\n";    // for new line in jTextArea
            chatText=jTextField1.getText();
            jTextArea1.append(chatText + newline);
            try{
                bw.write(chatText);
                bw.newLine();
                bw.flush();
            }catch(Exception m){
            m.printStackTrace();
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
    /////////////////////////////////////////////  2nd RUN METHOD,  ///////////////////////////////////////////
                public void run() {
                    new ChatClient().setVisible(true);
    ////////////////////////////////////////////  2nd RUN METHOD,  //////////////////////////////////////////
    /////////////////////////////   RUN METHOD, which may have prob  /////////////////////////////
               public void run()
              try{s.setSoTimeout(1);}catch(Exception e){
                    e.printStackTrace();
              while (true)
                   try{list.add(br.readLine());
                   }catch (Exception h){}
    /////////////////////////////   RUN METHOD, which may have prob  /////////////////////////////
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTextArea jTextArea1;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration
    }Thanks again for you attention.
    Regards
    Adeel

  • Socket.send() and Socket.receive()

    Using multi threads
    Is it possible to send packet from DatagramSocket while the same Socket is waiting to receive packets?
    Do i have to protect this situation?

    Send and receive are separate system calls, so as long as you supply different DatagramPackets I don't think you should have a problem. Checking the Solaris docs, these calls are indicated as thread-safe.
    Of course, there's no way to guarantee that your particular OS won't do anything strange, so it's a good idea to create some test programs beforehand.

  • Exchange 2013 - Mail receive problem -Help!

    Exchange 2013 SP1 -fresh install -test environment with one test mailbox setup in addition to the Administrator account. Using default Receive Connectors and it is set for Anonymous. Using OWA and Outlook 2010 for testing.
    We can send/receive mail INTERNALLY in both Outlook & OWA between our test user and the Administrator user.
    We can send mail externally from both accounts.
    We are not receiving mail into the Inbox of either OWA or Outlook.
    We are not seeing any authentication issues with Outlook -always shows connected to Exchange. But if we have same problem in OWA then we are just testing with it for now.
    We ran the Microsoft Connectivity Analyzer for both Inbound and Outbound SMTP and it passed with no errors/warnings L
    We did NSLOOKUP, from a Command prompt at the server wtith this result -not sure why it shows server as unknown?:

    Thank you for replying. Yes the mailbox is at Time Warner and I can use their webmail interface and see the messages I sent to the test user are there.
    No, our domain name is companyname.com  (if you need the actual name..I am not sure if I should send it to you?) and we use
    [email protected] for email.
    Our external A records and MX records are at Network solutions and that is posted here-- but decided to start another thread with more concise information as I learned of it:
    http://social.technet.microsoft.com/Forums/office/en-US/0b18e928-0207-4ab9-bc12-c00a75088bdc/new-deployment-outlook-can-send-but-not-receiving-messages?forum=exchangesvrsecuremessaging
    When I do NSLOOKUP of our domain I get just the two MX records at Time Warner. Not anything with our actual domain name for email in it. I just added the A records for mail.companyname.com and autodiscover at Network Solutions yesterday...but though those
    were only for use externally for OWA, ActiveSync, etc
    Note we do not use Split-DNS on our internal domain either. Our AD name is different than our public domain name - The AD is named with a subdomain: qs.companyname.com
    Lastly, I did not create an MX record at network solutions for mail.domainname.com. Should I do that and set it to a higher priority?

Maybe you are looking for

  • Problem Automating FPOP

    Hi, Iu2019m new to SAP (and BW), so please bear with me.  We went live with CRB and BW about four months ago.  At that time we could not automate our Sales Statistics and Business Partner data extractors because of various issues.  Weu2019ve since re

  • Trouble deleting block in Word X

    I hope this is the right place to put this. I've used Word - and now Word X - for years. All of a sudden I am having trouble with the delete key not deleting a block of text. Does anyone have any idea what has happened, and what I might do to restore

  • Why is the new email count inaccurate?

    Mail is not accurately reporting how many new emails are available. For example, I can read all of my new email, and it will still report that I have unread emails.  Also, if I do have unread emails, it won't display that is the case.  I notice the i

  • Can I move adobe acrobat 8 to a new pc without the original cd?

    Can I move adobe acrobat 8 to a new pc without the original cd?

  • HT2452 When using Facetime why do I go mute after 3 or 4 minutes

    When using Facetime or Skype why do I go mute after 3 or 4 minutes?