Problems Reading SSL  server socket  data stream using readByte()

Hi I'm trying to read an SSL server socket stream using readByte(). I need to use readByte() because my program acts an LDAP proxy (receives LDAP messages from an LDAP client then passes them onto an actual LDAP server. It works fine with normal LDAP data streams but once an SSL data stream is introduced, readByte just hangs! Here is my code.....
help!!! anyone?... anyone?
1. SSL Socket is first read into  " InputStream input"
public void     run()
          Authorization     auth = new Authorization();
          try     {
               InputStream     input     =     client.getInputStream();
               while     (true)
               {     StandLdapCommand command;
                    try
                         command = new StandLdapCommand(input);
                         Authorization     t = command.get_auth();
                         if (t != null )
                              auth = t;
                    catch( SocketException e )
                    {     // If socket error, drop the connection
                         Message.Info( "Client connection closed: " + e );
                         close( e );
                         break;
                    catch( EOFException e )
                    {     // If socket error, drop the connection
                         Message.Info( "Client connection close: " + e );
                         close( e );
                         break;
                    catch( Exception e )
                         //Way too many of these to trace them!
                         Message.Error( "Command not processed due to exception");
                         close( e );
                                        break;
                                        //continue;
                    processor.processBefore(auth,     command);
                                try
                                  Thread.sleep(40); //yield to other threads
                                catch(InterruptedException ie) {}
          catch     (Exception e)
               close(e);
2 Then data is sent to an intermediate function 
from this statement in the function above:   command = new StandLdapCommand(input);
     public StandLdapCommand(InputStream     in)     throws IOException
          message     =     LDAPMessage.receive(in);
          analyze();
Then finally, the read function where it hangs at  "int tag = (int)din.readByte(); "
public static LDAPMessage receive(InputStream is) throws IOException
    *  LDAP Message Format =
    *      1.  LBER_SEQUENCE                           --  1 byte
    *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
    *      3.  ID                                      --  variable length
    *      4.  LDAP_REQ_msg                            --  1 byte
    *      5.  Message specific structure              --  variable length
    DataInputStream din = new DataInputStream(is);
    int tag = public static LDAPMessage receive(InputStream is) throws IOException
    *  LDAP Message Format =
    *      1.  LBER_SEQUENCE                           --  1 byte
    *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
    *      3.  ID                                      --  variable length
    *      4.  LDAP_REQ_msg                            --  1 byte
    *      5.  Message specific structure              --  variable length
    DataInputStream din = new DataInputStream(is);
       int tag = (int)din.readByte();      // sequence tag// sequence tag
    ...

I suspect you are actually getting an Exception and not tracing the cause properly and then doing a sleep and then getting another Exception. Never ever catch an exception without tracing what it actually is somewhere.
Also I don't know what the sleep is supposed to be for. You will block in readByte() until something comes in, and that should be enough yielding for anybody. The sleep is just literally a waste of time.

Similar Messages

  • Problem trying to read an SSL server socket stream using readByte().

    Hi I'm trying to read an SSL server socket stream using readByte(). I need to use readByte() because my program acts an LDAP proxy (receives LDAP messages from an LDAP client then passes them onto an actual LDAP server. It works fine with normal LDAP data streams but once an SSL data stream is introduced, readByte just hangs! Here is my code.....
    help!!! anyone?... anyone?
    1. SSL Socket is first read into  " InputStream input"
    public void     run()
              Authorization     auth = new Authorization();
              try     {
                   InputStream     input     =     client.getInputStream();
                   while     (true)
                   {     StandLdapCommand command;
                        try
                             command = new StandLdapCommand(input);
                             Authorization     t = command.get_auth();
                             if (t != null )
                                  auth = t;
                        catch( SocketException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection closed: " + e );
                             close( e );
                             break;
                        catch( EOFException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection close: " + e );
                             close( e );
                             break;
                        catch( Exception e )
                             //Way too many of these to trace them!
                             Message.Error( "Command not processed due to exception");
                             close( e );
                                            break;
                                            //continue;
                        processor.processBefore(auth,     command);
                                    try
                                      Thread.sleep(40); //yield to other threads
                                    catch(InterruptedException ie) {}
              catch     (Exception e)
                   close(e);
    2 Then data is sent to an intermediate function 
    from this statement in the function above:   command = new StandLdapCommand(input);
         public StandLdapCommand(InputStream     in)     throws IOException
              message     =     LDAPMessage.receive(in);
              analyze();
    Then finally, the read function where it hangs at  "int tag = (int)din.readByte(); "
    public static LDAPMessage receive(InputStream is) throws IOException
        *  LDAP Message Format =
        *      1.  LBER_SEQUENCE                           --  1 byte
        *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
        *      3.  ID                                      --  variable length
        *      4.  LDAP_REQ_msg                            --  1 byte
        *      5.  Message specific structure              --  variable length
        DataInputStream din = new DataInputStream(is);
           int tag = (int)din.readByte();      // sequence tag// sequence tag

    I suspect you are actually getting an Exception and not tracing the cause properly and then doing a sleep and then getting another Exception. Never ever catch an exception without tracing what it actually is somewhere.
    Also I don't know what the sleep is supposed to be for. You will block in readByte() until something comes in, and that should be enough yielding for anybody. The sleep is just literally a waste of time.

  • Problems reading  an SSL server socket stream using readByte()

    Hi I'm trying to read an SSL server socket stream using readByte(). I need to use readByte() because my program acts an LDAP proxy (receives LDAP messages from an LDAP client then passes them onto an actual LDAP server. It works fine with normal LDAP data streams but once an SSL data stream is introduced, readByte just hangs! Here is my code.....
    help!!! anyone?... anyone?
    1. SSL Socket is first read into  " InputStream input"
    public void     run()
              Authorization     auth = new Authorization();
              try     {
                   InputStream     input     =     client.getInputStream();
                   while     (true)
                   {     StandLdapCommand command;
                        try
                             command = new StandLdapCommand(input);
                             Authorization     t = command.get_auth();
                             if (t != null )
                                  auth = t;
                        catch( SocketException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection closed: " + e );
                             close( e );
                             break;
                        catch( EOFException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection close: " + e );
                             close( e );
                             break;
                        catch( Exception e )
                             //Way too many of these to trace them!
                             Message.Error( "Command not processed due to exception");
                             close( e );
                                            break;
                                            //continue;
                        processor.processBefore(auth,     command);
                                    try
                                      Thread.sleep(40); //yield to other threads
                                    catch(InterruptedException ie) {}
              catch     (Exception e)
                   close(e);
    2 Then data is sent to an intermediate function 
    from this statement in the function above:   command = new StandLdapCommand(input);
         public StandLdapCommand(InputStream     in)     throws IOException
              message     =     LDAPMessage.receive(in);
              analyze();
    Then finally, the read function where it hangs at  "int tag = (int)din.readByte(); "
    public static LDAPMessage receive(InputStream is) throws IOException
        *  LDAP Message Format =
        *      1.  LBER_SEQUENCE                           --  1 byte
        *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
        *      3.  ID                                      --  variable length
        *      4.  LDAP_REQ_msg                            --  1 byte
        *      5.  Message specific structure              --  variable length
        DataInputStream din = new DataInputStream(is);
           int tag = (int)din.readByte();      // sequence tag// sequence tag

    I suspect you are actually getting an Exception and not tracing the cause properly and then doing a sleep and then getting another Exception. Never ever catch an exception without tracing what it actually is somewhere.
    Also I don't know what the sleep is supposed to be for. You will block in readByte() until something comes in, and that should be enough yielding for anybody. The sleep is just literally a waste of time.

  • SSL Server Socket and j2me

    I make a SSL Server Socket. I want that a cell connect to it for take data. I have to make Certificate form my server. this is for a Stage so I can't pay for certificate. If I make my self signed cert can I install it to a cell or this operation is blocked?

    Sorry, I make an SSL Server Socket using java and this server stays on a pc.

  • SSL Server socket: controlling the alias for the server certificate ?

    Hi,
    Could anyone please clear up the following ?
    When you create an SSL server socket, it needs a certificate (to prove its identity), and for this it relies on a keystore:
    System.setProperty("javax.net.ssl.keyStore", "c:/mystore");
    My question is, what if the keystore contains several certificates ?
    Eg:
    keytool -import -alias AAA -file cert1.cer -keystore mystore
    keytool -import -alias BBB -file cert2.cer -keystore mystore
    Which certificate would the server use ?
    And is there a way to control the alias it would use ?
    Thanks :)

    This is a very good question and one that should be described in the Guide to Features. See javax.net.ssl.X509KeyManager.chooseServerAlias(). It does a search looking for aliases of a given key type, i.e. one of the ones the peer understands, & which are trusted by the peer. Any alias which the peer can accept will do.

  • SocketException during reads - JVM_recv in socket input stream read

    I am getting a SocketException when a Java applet talks to our
    WebLogic 7.0 server. The catch is that it only occurs at one site
    (that has very high T1 utilization, although latency is only ~60 ms)
    Our setup is such that the calls hit an Alteon load balancer, which
    then sends the request out to one of 4 IIS clustered servers, where it
    then is sent to one of 2 WL clustered servers. I figured latency
    would be the cause, but on IIS and on WL, the timeouts are set to
    several hundred seconds, so I am not quite seeing where the connection
    is being reset. To be honest, I really don't know if it is WL that is
    killing the connection, as nothing abnormal shows up in the WL log. I
    have seen similar problems in this group, though, although the stack
    traces never follow the same path mine does. I do have the following
    call stack from the Java plug-in console, though. Any ideas would be
    greatly appreciated.
    java.net.SocketException: Connection reset by peer: JVM_recv in socket
    input stream read
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(Unknown Source)
         at java.io.BufferedInputStream.fill(Unknown Source)
         at java.io.BufferedInputStream.read1(Unknown Source)
         at java.io.BufferedInputStream.read(Unknown Source)
         at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
         at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
         at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(Unknown
    Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.checkCookieHeader(Unknown
    Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
         at org.xxxx.abstracts.Controller.sendRequest(Controller.java:39)
         at org.xxxx.data.DataMediator.getDataNode(DataMediator.java:46)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Also, here is my code, although I can't see anything on the client
    side that seems off:
    public Object sendRequest( Object request, URL receiver ) throws
    Exception{
    Object response = null;
    URLConnection con = null;
    ObjectOutputStream out = null;
    ObjectInputStream in = null;
    try {
    con = receiver.openConnection();
    con.setDoInput(true);
    con.setDoOutput(true);
    con.setUseCaches(false);
    con.setDefaultUseCaches(false);
    con.setAllowUserInteraction(false);
    out = new ObjectOutputStream(con.getOutputStream());
    out.writeObject(request);
    out.flush();
    out.close();
    in = new ObjectInputStream(con.getInputStream());
    response = in.readObject();
    in.close();
    } catch (ClassCastException e) {
    if( out != null ){
    out.close();
    if( in != null ){
    in.close();
    } catch (Exception e) {
    if( out != null ){
    out.close();
    if( in != null ){
    in.close();
    throw e;
    return response;

    There is a known bug on earlier 1.3.1 releases with sockets on Windows 2k
    and XP. I don't remember all the details.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "Keith Patrick" <[email protected]> wrote in message
    news:[email protected]...
    I'm getting the exception on the client, which is an XP machine, while
    the server is Win2K. I can't recall which, but either the applet or
    the server runs 1.3x while the other runs 1.4. I discounted that
    factor, though, as the problem only occurs on one site, which on all
    others it works fine.
    "Cameron Purdy" <[email protected]> wrote in message
    news:<[email protected]>...
    Exception is in the applet or on the server?
    Would one of those by any chance be running on W2K with JDK 131_01 orolder?
    >>
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "Keith Patrick" <[email protected]> wrote in message
    news:[email protected]...
    I am getting a SocketException when a Java applet talks to our
    WebLogic 7.0 server. The catch is that it only occurs at one site
    (that has very high T1 utilization, although latency is only ~60 ms)
    Our setup is such that the calls hit an Alteon load balancer, which
    then sends the request out to one of 4 IIS clustered servers, where it
    then is sent to one of 2 WL clustered servers. I figured latency
    would be the cause, but on IIS and on WL, the timeouts are set to
    several hundred seconds, so I am not quite seeing where the connection
    is being reset. To be honest, I really don't know if it is WL that is
    killing the connection, as nothing abnormal shows up in the WL log. I
    have seen similar problems in this group, though, although the stack
    traces never follow the same path mine does. I do have the following
    call stack from the Java plug-in console, though. Any ideas would be
    greatly appreciated.
    java.net.SocketException: Connection reset by peer: JVM_recv in socket
    input stream read
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
    at
    sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(Unknown
    Source)
    atsun.plugin.net.protocol.http.HttpURLConnection.checkCookieHeader(Unknown
    Source)
    atsun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
    at org.xxxx.abstracts.Controller.sendRequest(Controller.java:39)
    at org.xxxx.data.DataMediator.getDataNode(DataMediator.java:46)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Also, here is my code, although I can't see anything on the client
    side that seems off:
    public Object sendRequest( Object request, URL receiver ) throws
    Exception{
    Object response = null;
    URLConnection con = null;
    ObjectOutputStream out = null;
    ObjectInputStream in = null;
    try {
    con = receiver.openConnection();
    con.setDoInput(true);
    con.setDoOutput(true);
    con.setUseCaches(false);
    con.setDefaultUseCaches(false);
    con.setAllowUserInteraction(false);
    out = new ObjectOutputStream(con.getOutputStream());
    out.writeObject(request);
    out.flush();
    out.close();
    in = new ObjectInputStream(con.getInputStream());
    response = in.readObject();
    in.close();
    } catch (ClassCastException e) {
    if( out != null ){
    out.close();
    if( in != null ){
    in.close();
    } catch (Exception e) {
    if( out != null ){
    out.close();
    if( in != null ){
    in.close();
    throw e;
    return response;

  • How to I Produce Serial Data Stream Using DIO Channel

    I would like to output to a "serial to parallel" circuit (74HC194 (Universal Shift Register IC)circuit) for the purposes of increasing my digital I/O off of my DAQPad-6020E. Does anybody have an example of outputting a data stream (both a clock and a "data out" stream)? All I would need is a clock edge after every output bit, but since I am new to producing vi's, I was hoping that someone would be able to give an example of an approach to take.
    The closest thread I found on the message board was a request to produce a PWM signal. My signal does not have to be that precise since I will be latching every new data bit with an independent clock edge.
    Thanks to anyone out there considering this problem.
    ThisRock

    Hello,
    Because the DAQPad-6020E does not have hardware timed DIO, you will be forced to output software timed digital data. Are you using LabVIEW 7.1? If so, one approach would be to generate an output counter pulse and use that to time a Timed Loop in LabVIEW. That way, for every output pulse of the counter, the timed loop would iterate. If you place your digital write VIs in that loop, you will output a digital value for every rising/falling edge of the counter output.
    Does this answer your question? If not, please give a little more detail about the Universal Shift Register IC and what it would require from your DO lines.
    Regards,
    Sean C.

  • Large file transfer problems over client/server socket

    Hi,
    I wrote a simple chat problem in which I can send files from client to client. The problem is when I send large files over 101 MB the transfer freezes. I do not even get any error mesages in the console. The files I am sending are of any type (Ex mp3, movies, etc...). I am serializing the data into a "byteArray[packetSize]" and sending the file packet by packet until the whole file has been sent, and reconstructed on the other side. The process works perfectly for files smaller than 101MB, but for some reason freezes after that if the file is larger. I have read many forums and there aren't too many solutions out there. I made sure to use the .reset() method to reset my ObjectOutputStream each time I write to it.
    Here's my file sending code:
    byte[] byteArray = new byte[defaultPacketSize];
    numPacketsRequired = Math.ceil(fileSize / defaultPacketSize);
    try {
    int i = 0;
    reader = new FileInputStream(filePath);
    while (reader.available() > 0) {
    if (reader.available() < defaultPacketSize) {
    byte[] lastPacket = new byte[reader.available()];
    reader.read(lastPacket);
    try {
    if (socket == null || output == null) {
    throw new SocketException("socket does not exist");
    output.writeObject(lastPacket);
    output.reset();
    output.writeObject("DONE");
    output.reset();
    output.close();
    socket.close();
    catch (Exception e) {
    System.out.println("Exception ***: " + e);
    output.close();
    socket.close();
    else {
    reader.read(byteArray);
    try {
    if (socket == null || output == null) {
    throw new SocketException("socket does not exist");
    output.writeObject(byteArray);
    output.reset();
    catch (Exception e) {
    System.out.println("Exception ***: " + e);
    output.close();
    socket.close();
    reader.close();
    catch (Exception e) {
    System.out.println("COULD NOT READ PACKET");
    Here's my file receiving code:
    try {
    // The message from the client
    Object streamInput;
    FileOutputStream writer;
    byte[] packet;
    while (true) {
    streamInput = input.readObject();
    if (streamInput instanceof byte[]) {
    packet = (byte[]) streamInput;
    try {
    writer = new FileOutputStream(outputPath, true);
    writer.write(packet); //Storing the bytes on file
    writer.close();
    catch (Exception e) {
    System.out.println("Exception: " + e);
    else if (streamInput.equals("DONE")) {
    socket.close();
    input.close();
    break;
    catch (Exception e) {
    I'm looking for any way I can possibly send large files from client to client without having it freeze. Are there any better file transfer ways other than socket? I don't really want FTP. I think I want to keep it HTTP.
    Any suggestions would be helpful.Thanks!
    Evan

    I've taken a better look a the code you posted, and
    there is one problem with the receiving code. You
    keep repeatedly opening and closing the
    FileOutputStream. This is not going to be efficient
    as the file will keep needing to be positioned to its
    end.Yes sorry I did change that code so that it leaves the file open until completely done writing. Basically I have a progress bar that records how far along in the writing process the client is, and when the progress bar reaches 100%, meaning the file is complete, the file.close() method is invoked. Sorry about that.
    I also ran some memory tests using the "Runtime.getRuntime().totalMemory()", and "Runtime.getRuntime().freeMemory()" methods. I put these methods inside the loop where I read in the file and send it to the client. here's the output:
    Sender's free memory: 704672
    File reader read 51200 bytes of data.
    767548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 702968
    File reader read 51200 bytes of data.
    716348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 701264
    File reader read 51200 bytes of data.
    665148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 699560
    File reader read 51200 bytes of data.
    613948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 697856
    File reader read 51200 bytes of data.
    562748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 696152
    File reader read 51200 bytes of data.
    511548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 694448
    File reader read 51200 bytes of data.
    460348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 692744
    File reader read 51200 bytes of data.
    409148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 691040
    File reader read 51200 bytes of data.
    357948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 689336
    File reader read 51200 bytes of data.
    306748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 687632
    File reader read 51200 bytes of data.
    255548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 685928
    File reader read 51200 bytes of data.
    204348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 684224
    File reader read 51200 bytes of data.
    153148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 682520
    File reader read 51200 bytes of data.
    101948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 680816
    File reader read 51200 bytes of data.
    50748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 679112
    File reader read 50748 bytes of data.
    0 left to read.
    Creating last packet of size: 50748
    Last packet size after setting it equal to byteArray: 50748
    Here's the memory stats from the receiver:
    Receiver's free memory: 639856
    Receiver's total memory: 2842624
    Receiver's free memory: 638920
    Receiver's total memory: 2842624
    Receiver's free memory: 637984
    Receiver's total memory: 2842624
    Receiver's free memory: 637048
    Receiver's total memory: 2842624
    Receiver's free memory: 636112
    Receiver's total memory: 2842624
    Receiver's free memory: 635176
    Receiver's total memory: 2842624
    Receiver's free memory: 634240
    Receiver's total memory: 2842624
    Receiver's free memory: 633304
    Receiver's total memory: 2842624
    Receiver's free memory: 632368
    Receiver's total memory: 2842624
    Receiver's free memory: 631432
    Receiver's total memory: 2842624
    Receiver's free memory: 630496
    Receiver's total memory: 2842624
    Receiver's free memory: 629560
    Receiver's total memory: 2842624
    Receiver's free memory: 628624
    Receiver's total memory: 2842624
    Receiver's free memory: 627688
    Receiver's total memory: 2842624
    Receiver's free memory: 626752
    Receiver's total memory: 2842624
    Receiver's free memory: 625816
    Receiver's total memory: 2842624
    Receiver's free memory: 624880
    Receiver's total memory: 2842624
    Receiver's free memory: 623944
    Receiver's total memory: 2842624
    Receiver's free memory: 623008
    Receiver's total memory: 2842624
    Receiver's free memory: 622072
    Receiver's total memory: 2842624
    Receiver's free memory: 621136
    Receiver's total memory: 2842624
    Receiver's free memory: 620200
    Receiver's total memory: 2842624
    Receiver's free memory: 619264
    Receiver's total memory: 2842624
    Receiver's free memory: 618328
    Receiver's total memory: 2842624
    Receiver's free memory: 617392
    Receiver's total memory: 2842624
    Receiver's free memory: 616456
    Receiver's total memory: 2842624
    Receiver's free memory: 615520
    Receiver's total memory: 2842624
    Receiver's free memory: 614584
    this is just a sample of both receiver and sender's stats. Everything appears to be fine! Hope this message post isn't too long.
    Thanks!

  • Problem reading a network (Network Data Model)

    Hello,
    I'm trying to create a network for routing. I can create and write this network fine but can't read it.
    Currently I'm using the PL/SQL API but have also tryed the Java API (both present the same problem).
    The following PL/SQL gives the below error:
    EXECUTE SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('P_ROUTING','FALSE');
    ORA-29532: Java call terminated by uncaught Java exception: oracle.jdbc.driver.OracleSQLException: ORA-00600: internal error code, arguments: [kxsGetRuntimeLock2], [0x0D7CF7C38], [1], [1], [1], [], [], []
    ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 284
    ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 114
    ORA-06512: at line 1
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.I assume either I'm missing something fairly simple somewhere or the database is not set up correctly for this.
    The following PL/SQL is used to create the network:
    BEGIN
      SDO_NET_MEM.NETWORK_MANAGER.CREATE_SDO_NETWORK('P_ROUTING',1,'FALSE',8307,2,
        'P_ROUTING_NODE','GEOM','COST',
        'P_ROUTING_LINK','GEOM','COST',
        'P_ROUTING_PATH','GEOM',
        'P_ROUTING_PLINK',
        'P_ROUTING_SUBPATH','GEOM','FALSE');
      SDO_NET_MEM.NETWORK_MANAGER.WRITE_NETWORK('P_ROUTING');
    END;
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING_NODE', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING_LINK', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    CREATE INDEX P_ROUTING_NODES_INDEX ON P_ROUTING_NODE(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING_LINKS_INDEX ON P_ROUTING_LINK(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;Edited by: user4868887 on 23-Jun-2009 05:18

    Thanks for your replies.
    I have not been able to execute SDO_NET.FIND_CONNECTED_COMPONENTS.
    I've tried to populate the network using both inserts and SDO_NET_MEM.NETWORK.ADD_NODE/LINK when creating it.
    On validation, I needed to add metadata for the PATH tables, this now says the network is valid but the same error occurs on read.
    The database version is 11.1.0.6 Enterprise Edition (running on SLES 10).
    Unfortunately the Java code is on another machine so I can't post it at the moment.
    The full code now run on creation is:
    BEGIN
    SDO_NET_MEM.NETWORK_MANAGER.CREATE_SDO_NETWORK('P_ROUTING7',1,'FALSE',8307,2,
      'P_ROUTING7_NODE','GEOM','COST',
      'P_ROUTING7_LINK','GEOM','COST',
      'P_ROUTING7_PATH','GEOM',
      'P_ROUTING7_PLINK',
      'P_ROUTING7_SUBPATH','GEOM','FALSE');
    SDO_NET_MEM.NETWORK.ADD_NODE('P_ROUTING7',1,'NAME1',SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-1.188498,52.954090, NULL),NULL,NULL),0,0);
    SDO_NET_MEM.NETWORK.ADD_NODE('P_ROUTING7',2,'NAME2',SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-1.188127,52.954323, NULL),NULL,NULL),0,0);
    SDO_NET_MEM.NETWORK.ADD_LINK('P_ROUTING7',1,0,1,2,0);
    -- Note: could not get the ADD_LINK with geometry parameter to work
    SDO_NET_MEM.NETWORK_MANAGER.WRITE_NETWORK('P_ROUTING7');
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_NODE', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_LINK', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_PATH', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_SUBPATH', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    END;
    CREATE INDEX P_ROUTING7_NODES_INDEX ON P_ROUTING7_NODE(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_LINKS_INDEX ON P_ROUTING7_LINK(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_PATHS_INDEX ON P_ROUTING7_PATH(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_SUBPATHS_INDEX ON P_ROUTING7_SUBPATH(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    select sdo_net.validate_network('P_ROUTING7') from dual;
    DECLARE
    path NUMBER;
    BEGIN
    -- SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('P_ROUTING7','FALSE');
    path:=SDO_NET_MEM.NETWORK_MANAGER.SHORTEST_PATH('P_ROUTING7',1,2,NULL);
    DBMS_OUTPUT.PUT_LINE('The shortest path from node 1 to node 2 is path ID: ' || path);
    SDO_NET_MEM.NETWORK_MANAGER.DROP_NETWORK('P_ROUTING7');
    END;The last block works fine on creation, but when run on its own (un-commenting the READ_NETWORK call) I get the error from the first post.

  • Problems Reading/Writing Parallel Port Data, Status & control Registers Using In Port.vi and Out port.vi

    Hi,
    Can anyone there help me Please with the problem. I am trying to
    communicate with the parallel port using my program which i have
    attached to the message. I am running LabVIEW 7.0 Professional with
    application builder. All the program does is reads and writes to the
    three parallel port registers. It runs FINE!!! in my computer. But when
    i built an executable (see attached) and tried running on a different
    computer (with LabVIEW Runtime engine 7.0 installed) the program does
    not read/write to the registers. The target PC had the parallel port in
    SPP mode just like mine. I can't seem to understand whats going wrong?
    Can anyone please help me if you know the right answer.
    Thanks
    Attachments:
    Programs.zip ‏119 KB

    Hi Guys,
    I too have a problem using "Out Port.vi", but of a diferent kind. I use this VI to control the  Parallel Port which in  turn controls a small circuit. I use only two data pins, DP-2 and DP-4 for this purpouse. I use LV 7.1 Professional Development version in a Windows 2000 operating system. Now, my main problem is that my code runs fine (both is development and .exe forms) in my development computer, but when I try to run the .exe version in  other computers (Windows XP operating system), it asks for a "protocol file" while starting (look at the attached picture).
    Now, I really have no idea what kind of a protocol file it asks for and just click "ok" and proceed to work, the most interesting part is that the code works well as I expected. So, my only problem is that it asks for a protocl file which I want to avoid. As with the application building, I do all that is  required like including the sub VIs (self developed), creating an installer, enabling the port access, and creating a proper .ini fine. I also use the Out Port.vi from the AccessHW library.
    I have my doubts on two fronts,
    1) With the version conflict, since my development computer runs with Windows 2000 and my target computers all run with Windows XP
    2) With the Out Port.vi which further contains a small VI "Output Word to Port.vi" in it and that further contains Call Library Function Node, which might call soem external files, like what my problem is.(look at the attached picture)
    I don't have answers to these questions and may be my problem is in different place, but I would like to hear from anyone who could give me a helping hand. I am in a situation where I could not disclose my code.
    Thanks in advance,
    mohan
    Attachments:
    protocol file.zip ‏153 KB

  • Problems reading my backed up data on hard drive after using Time Machine

    I have a MacBookPro and had to take it in for servicing. I backed up all my data using Time machine. They had to replace my battery, hard drive, and logic board, basically wiping my slate clean. When I got my computer back and plugged in my hard drive time machine came up asking if I wanted to restore a back up. I chose the drive. Then that drive disappeared from the desktop and changed the disk name from "BACKUP" to "disk1s4" and is unreadable. Cannot get anything off the hard drive.
    Any idea how I can read my data off my hard drive. I have 3+ years of pictures of my 2 kids and all my music. The rest I could take or leave. But I would be devastated to lose my pictures.
    Please help
    Thank you
    Message was edited by: Jlk51496
    Message was edited by: Jlk51496

    Jlk51496 wrote:
    When I got my computer back and plugged in my hard drive time machine came up asking if I wanted to restore a back up.
    Hi, and welcome to the forums.
    Do you mean this window?
    or this one?
    They are very different, obviously.
    Try repairing the drive, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Why was your Mac seviced? What did they replace?

  • Problem: load SQL Server 'varbinary' data

    Source database: SQL Server 2000
    OS: Windows 2003 (SP1)
    Oracle: 10g (R2)
    Datatype Mapping: SQL Server ‘varbinary(1000)’ to oracle ‘BLOB’
    With the help of OMWB, I created the oracle database schema for a SQL Server DB (offline capture). I have problems when I tried to populate the (destination) database with a table with ‘varbinary(1000)’ datatype:
    PlateX.expID (as on http://www.sdss.org.uk/mybestdr5/en/help/browser/description.asp?n=PlateX&t=U) and the with original data is like this: http://dsg.port.ac.uk/~hx/research/sdss/logs/SelectExpidFromPlatex
    The PLATEX.ctl file (generated by OMWB) is like this (http://dsg.port.ac.uk/~hx/research/sdss/logs/PLATEX.ctl):
    load data
    infile 'PLATEX.dat' "str '<er>'"
    into table PLATEX
    fields terminated by '<ec>'
    trailing nullcols
    <SKIP>
    EXPID)
    I failed to load the data with the sql_load_script.sh script, and the log file is like this:
    <SKIP>
    EXPID NEXT * CHARACTER
    Terminator string : '<ec>'
    value used for ROWS parameter changed from 64 to 12
    Record 1: Rejected - Error on table PLATEX, column EXPID.
    Field in data file exceeds maximum length
    <SKIP>
    Record 60: Rejected - Error on table PLATEX, column EXPID.
    Field in data file exceeds maximum length
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table PLATEX:
    9 Rows successfully loaded.
    51 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 238392 bytes(12 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 60
    Total logical records rejected: 51
    Total logical records discarded: 0
    Any help would be extremely appreciated.
    Helen
    P.S. previously, I mapped: SQL Server ‘varbinary(1000)’ to ‘RAW(1000)’ in Oracle but failed to populate the data (http://dsg.port.ac.uk/~hx/research/sdss/logs/PLATEX.log).

    Hi Emile,
    regading extracting data from MSSQL with OWB on Unix platform (using Generic Connectivity):
    Re: SQLServer access from AIX Warehouse builder
    Re: OWB on Solaris Connectivity with SQL SERVER on Windows
    We want to load aprox. 100 million records a day.
    I've read some articles about this and the advise was to dump the data from SQL Server to files and load the files with OWB.100 million records per day is not a problem for daily extracting from MSSQL Server if you have 1-2 hour.
    In my opinion dumping to text file is a bad practice and is unnecessary if customer don't have special requirements (for example for security reason).
    SQL Server source table and a Oracle target table without any difficult transformationsIn my opninion the best way process data from MSSQL is to extract data to staging area (schema) on Oracle DB with mappings as simple as possible (ONLY filters, without any join), and most of data processing prefom in Staging area or during moving from staging to DWH.
    Also look at OWB user guide (how to use Generic Connectivity in OWB)
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e10582/loading_ms_data.htm#i1064950
    Regards,
    Oleg
    Edited by: added link to OWB doc with description of using Generic Connectivity

  • Client / Server Socket Communication - Should use 2 ports?

    If we have a client server architecture using a socket based connection, should there be 2 serperate sockets? One dedicated to sending and one dedictated to receiving? What happens if both the client and server both send at the same time? How does that get handled? Does one of the messages get dropped? Thanks...

    There are of course reasons you might want to use two sockets.
    For instance security. One socket is encrypted and the other isn't. Or because the server initiates a confirmed port connection back it verifies the IP.
    Or because the main socket is used for control and the second one is used for data. That way the client can tell the server to pause or make other adjustments in the data while the data is still flowing.

  • Problem: loading SQL Server 'image' data

    Source database: SQL Server 2000
    OS: Windows 2003 (SP1)
    Oracle: 10g (R2)
    Datatype Mapping: SQL Server ‘image’ to oracle ‘BLOB’
    With the help of OMWB, I created the oracle database schema for a SQL Server DB (offline capture). I have problems when I tried to populate the (destination) database with two tables with ‘image’ datatype:
    Frame.img (as on http://www.sdss.org.uk/mybestdr5/en/help/browser/description.asp?n=Frame&t=U)
    And SpecObjAll.img (as on http://www.sdss.org.uk/mybestdr5/en/help/browser/description.asp?n=SpecObjAll&t=U)
    The part of .ctl files (generated by OMWB) for the two ‘img’ columns is like this:
    IMG CHAR(2000000) "HEXTORAW (:IMG)")
    I failed to load the data with the sql_load_script.sh script, and the log file is like this:
    IMG NEXT ***** CHARACTER
    Maximum field length is 2000000
    Terminator string : '<ec>'
    SQL string for column : "HEXTORAW (:IMG)"
    SQL*Loader-309: No SQL string allowed as part of IMG field specification
    I tried to removed ‘CHAR(2000000)’ in the .ctl files:
    IMG "HEXTORAW (:IMG)")
    But this doesn’t work and the log file is like this:
    IMG NEXT * CHARACTER
    Terminator string : '<ec>'
    SQL string for column : "HEXTORAW (:IMG)"
    SQL*Loader-309: No SQL string allowed as part of IMG field specification
    Any help would be extremely appreciated.
    Helen

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

  • Problems getting a server / client opening Streams between themselves

    I've kept working on my chat program, but now, after the client connects to the server, it won't open the ObjectInputStream and ObjectOutputStream I try to open...
    Here is the current coding of my program..
    NetTalkServer.java
    package Dalzhim.NetTalk;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class NetTalkServer extends Thread implements WindowListener
         JFrame window;
         Container mainPane;
         ServerSocket server = null;
         boolean running = true;
         boolean wait;
         static Vector Users,UsersNames;
         static JList dataList;
         ObjectOutputStream oos;
         ObjectInputStream ois;
         static NetTalkInput[] connections;
         int connectionsAmount = 0;
         public static void main(String args[])
              NetTalkServer nettalkserver = new NetTalkServer();
         public NetTalkServer()
              window = new JFrame("NetTalkServer");
              mainPane = window.getContentPane();
              Users = new Vector();
              UsersNames = new Vector();
              dataList = new JList(UsersNames);
              JScrollPane scroll = new JScrollPane(dataList);
              Dimension dimension = new Dimension(190,90);
              mainPane.add(scroll);
              scroll.setPreferredSize(dimension);
              UsersNames.clear();
              Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource("NetTalkServer.jpg"));
              window.setIconImage(icon);
              connections = new NetTalkInput[255];
              window.addWindowListener(this);
              window.pack();
              window.setVisible(true);
              try
                   server = new ServerSocket(37148);
                   this.start();
              catch(IOException e)
                   System.out.println("Error listening on socket 37148");
         public void run()
              Socket clientsocket = null;
              while(running)
                   try
                        connections[connectionsAmount] = new NetTalkInput(server.accept(),connectionsAmount,"Server");
                        connectionsAmount += 1;
                        connections[connectionsAmount - 1].sendData(new NetTalkData("Login"));
                   catch(IOException e)
                        System.out.println("Connection attempt failed");
         public static void readInput(int connection)
              NetTalkData data = connections[connection].getInput();
              if(data.getDataType().equals("NetTalkUser"))
                   NetTalkUser user = data.getDataUser();
                   Users.add(user);
                   UsersNames.add(user.getUserName());
                   dataList.setListData(UsersNames);
         public void windowActivated(WindowEvent e)
         public void windowClosed(WindowEvent e)
         public void windowClosing(WindowEvent e)
              this.stop();
              try
                   server.close();
              catch(IOException f)
              System.exit(0);
         public void windowDeactivated(WindowEvent e)
         public void windowDeiconified(WindowEvent e)
         public void windowIconified(WindowEvent e)
         public void windowOpened(WindowEvent e)
    NetTalkConnect.java
    package Dalzhim.NetTalk;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class NetTalkConnect
         JFrame window;
         Container mainPane;
         static JTextField serverIP,loginName;
         JButton connect;
         Socket socket;
         static NetTalkInput connection;
         public static void main(String args[])
              NetTalkConnect connection = new NetTalkConnect();
         public NetTalkConnect()
              window = new JFrame("NetTalk");
              mainPane = window.getContentPane();
              mainPane.setLayout(null);
              serverIP = new JTextField("Server IP",20);
              loginName = new JTextField("Login Name",20);
              connect = new JButton("Connect");
              AL al = new AL();
              serverIP.addActionListener(al);
              loginName.addActionListener(al);
              connect.addActionListener(al);
              serverIP.setBounds(5,5,185,20);
              loginName.setBounds(5,30,185,20);
              connect.setBounds(5,55,185,20);
              mainPane.add(serverIP);
              mainPane.add(loginName);
              mainPane.add(connect);
              Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource("NetTalk.jpg"));
              window.setIconImage(icon);
              window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              window.pack();
              window.setVisible(true);
              window.setResizable(false);
              window.setSize(200,105);
              serverIP.requestFocus();
              serverIP.selectAll();
         public static void readInput()
              NetTalkData data = connection.getInput();
              if(data.getDataType().equals("Login"))
                   connection.sendData(new NetTalkData(new NetTalkUser(loginName.getText(),connection.getUserID())));
         class AL implements ActionListener
              public void actionPerformed(ActionEvent e)
                   if(e.getSource()==serverIP)
                        loginName.requestFocus();
                        loginName.selectAll();
                   else if(e.getSource()==loginName)
                        connect.doClick();
                   else if(e.getSource()==connect)
                        connection = new NetTalkInput(serverIP.getText(),"Client");
    NetTalkInput.java
    package Dalzhim.NetTalk;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.util.*;
    public class NetTalkInput extends Thread implements Serializable
         Socket userSocket;
         int userID;
         String userName;
         ObjectInputStream ois;
         ObjectOutputStream oos;
         boolean running = true;
         NetTalkUser user;
         NetTalkData data;
         String creator;
         public NetTalkInput(Socket socket,int ID,String main)
              try
                   userSocket = socket;
                   userID = ID;
                   creator = main;
                   ois = new ObjectInputStream(userSocket.getInputStream());
                   oos = new ObjectOutputStream(userSocket.getOutputStream());
                   System.out.println("Connection attempt succeeded");
                   this.start();
              catch(IOException e)
         public NetTalkInput(String serverIP, String main)
              try
                   userSocket = new Socket(serverIP,37148);
                   creator = main;
                   ois = new ObjectInputStream(userSocket.getInputStream());
                   oos = new ObjectOutputStream(userSocket.getOutputStream());
                   this.start();
              catch(IOException e)
                   System.out.println("Error connecting to server");
         public void run()
              while(running)
                   try
                        data = (NetTalkData)ois.readObject();
                        if(creator.equals("Server"))
                             NetTalkServer.readInput(userID);
                        else if(creator.equals("Client"))
                             NetTalkConnect.readInput();
                   catch(IOException e)
                   catch(ClassNotFoundException e)
         public void sendData(NetTalkData sentData)
              try
                   oos.writeObject(sentData);
              catch(IOException e)
         public NetTalkData getInput()
              return data;
         public int getUserID()
              return this.userID;
    NetTalkData.java
    package Dalzhim.NetTalk;
    import java.io.*;
    public class NetTalkData extends Object implements Serializable
         String dataType;
         String dataArgument;
         NetTalkUser dataUser;
         public NetTalkData()
         public NetTalkData(String type)
              dataType = type;
         public NetTalkData(String type, String argument)
              dataType = type;
              dataArgument = argument;
         public NetTalkData(NetTalkUser user)
              dataType = "NetTalkUser";
              dataUser = user;
         public String getDataType()
              return this.dataType;
         public NetTalkUser getDataUser()
              return this.dataUser;
    NetTalkUser.java
    package Dalzhim.NetTalk;
    import java.io.*;
    import java.net.*;
    public class NetTalkUser extends NetTalkData implements Serializable
         String userName;
         InetAddress userIP;
         int userPort;
         int userID;
         public NetTalkUser(String name)
              userName = name;
         public NetTalkUser(String name,int ID)
              userName = name;
              userID = ID;
         public NetTalkUser(String name,InetAddress IP)
              userName = name;
              userIP = IP;
         public NetTalkUser(String name,InetAddress IP,int Port)
              userName = name;
              userIP = IP;
              userPort = Port;
         public String getUserName()
              return this.userName;
         public InetAddress getUserIP()
              return this.userIP;
         public int getUserPort()
              return this.userPort;
         public boolean equals(Object anObject)
              if(anObject==null)
                   return false;
              if (!(anObject instanceof NetTalkUser))
                   return false;
              NetTalkUser user = (NetTalkUser)anObject;
              if(!user.getUserName().equals(getUserName()))
                   return false;
         return true;
        public int getID()
             return this.userID;
        public void setID(int ID)
             this.userID = ID;
    }If you wish to try it by yourself to see exactly the problem I get, just give me your mail adress so I can send out the Java files..
    Thanks in advance!

    I've put the 5 java source files at those adresses:
    http://www.majinnet.com/ss/Java/Chat/NetTalkServer.java
    http://www.majinnet.com/ss/Java/Chat/NetTalkConnect.java
    http://www.majinnet.com/ss/Java/Chat/NetTalkInput.java
    http://www.majinnet.com/ss/Java/Chat/NetTalkData.java
    http://www.majinnet.com/ss/Java/Chat/NetTalkUser.java

Maybe you are looking for

  • Java error while building tomcat

    Platform :I have Debian on SPARC Blade 150 trying to build tomcat-5.5.10 usning ant 1.6 and jdk 1.4.1_01-b01 tomcat needed javamail and JAVABEANS(tm) ACTIVATION FRAMEWORK 1.0.2 , i have installed them and set CLASSPATH for them this looks like some r

  • Availability monitoring using ccmsping - refresh rate

    So I've configured my solman 3.2 to monitor the availability of other systems via the use of ccmsping.  I can see the other systems well enough, but the problem is the long time it takes for my solman system to become aware that a monitored system is

  • Conditions Need to decided for ASO or BSO cube?

    Hi Could you please tell me on what conditions or business needs we need to decided whether we need to build an ASO or BSO cube?, which dimension needs to be Label only or Stored or Accounts or Multiple Hierarchy Enabled property? Which needs to be D

  • Menu exit for MD04

    Hi all, I have to create two pushbuttons in the MD04 transaction.I found there is exit LMDZU001 available for that.could anybody tell me waht steps are to follow to achieve the same... Thanks in advance

  • Hunspell-sv and hunspell-sv-se install. Access denied[SOLVED]

    When I try to install hunspell for Swedish I get an "access denied" reply from  http://extensions.services.openoffice.o - t_1.44.oxt. I'm using yaourt and have libreoffice writer installed. Running Openbox on an i686 machine. Here's full output from