Results 1 to 2 of 2
  1. #1
    nmvictor is offline Member
    Join Date
    Oct 2009
    Posts
    31
    Rep Power
    0

    Unhappy two log statements record for a single action, is it something with threads

    I am creating an application to bind to an SMPP and I have enabled logging such with both FileHandler and ConsoleHandler, At the console, a log record appears twice as if their are two threads executing the same classes concurrently, i have pasted the a section of the log output below, please help:

    Mar 8, 2010 10:52:14 AM estudentServer.EstudentServer initialiseProperties
    WARNING: NumberFromatException on , using 2775 as the smsc
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: Attempting to bind to host at 127.0.0.1 on port 2775 ...
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: Attempting to bind to host at 127.0.0.1 on port 2775 ...
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: failed!
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: failed!
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: Attempting to Close the SMPP session...
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: Attempting to Close the SMPP session...
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: Session closed :exiting with exit status (88) : Connection refused ...
    Mar 8, 2010 10:52:15 AM estudentServer.EstudentServer run
    INFO: Session closed :exiting with exit status (88) : Connection refused ...
    nmvictor@nmvictors-linuxbox:~$

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,244
    Rep Power
    19

    Default

    Must be your luck, since you managed to start two threads here with the same question.

    db

Similar Threads

  1. Record Button
    By nicezam in forum NetBeans
    Replies: 3
    Last Post: 04-27-2009, 03:53 AM
  2. pointing to 1st record in a file
    By swati.jyoti in forum New To Java
    Replies: 1
    Last Post: 04-25-2009, 08:38 AM
  3. how to delete record from db using jsp
    By Manas Das in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 01-31-2009, 07:36 PM
  4. Can't record sound
    By bozovilla in forum Java Applets
    Replies: 12
    Last Post: 08-04-2008, 03:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •