Closing socket as no data read

Hi,
I am using weblogic 10.3 application server. I am frequently facing the below warning in log file
<BEA-000449> <Closing socket as no data read from it during the configured idle timeout of *0 secs*>
As a response, "Page cannot be displayed" error is seen in browser for that request. I checked the config.xml, nowhere it is configured as 0 seconds.
Please help me with your suggestions.
Regards
Purushoth
Edited by: user13299431 on Nov 29, 2010 2:01 AM

[Refer to this link|http://forums.oracle.com/forums/thread.jspa?messageID=9114422]

Similar Messages

  • Weblogic 11G error = BEA-000449  Closing socket as no data read from it

    In My Weblogic 11G, i am getting Warning msg in my log file saying Closing socket as no data read from it
    ####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs>
    ####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,088 during the configured idle timeout of 25 secs>
    ####<Nov 2, 2010 12:21:37 AM IST> <Info> <JDBC> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288637497701> <BEA-001128> <Connection for pool "IB_JDBC_Data_Source" closed.>
    I have follow the following step
    If you want to follow this solution. Go to Admin console -> Click on Domain->Configuration->Log Filters->create new Log filter.
    I added this line in expression "(MESSAGE !='Closing socket as no data read from it during the configured idle timeout of 5 secs')"
    Go to your server-(for each server you have to set it individually)->Logging->Advanced->Select this log filter for Standard Out or log file.
    My Filter is "(MESSAGE !=Closing socket as no data read from it ')"
    this is not working in weblogic 11G, any one have the solution to stop this msg.
    Edited by: Amar_Shaw on Nov 3, 2010 1:40 PM

    Hi Amar,
    I think you have given the wrong string in the filter, you are getting "*Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs*" and you have given in the filter "*Closing socket as no data read from it during the configured idle timeout of 5 secs*".
    You can change it and see if that works for you.
    Also the above option is just to suppress the issue which are getting which in this case is fine as its just a warning message, however you can even try to tune few of the follwoing parameters that too would help you to remove this warning message.
    1. Set the parameter -Dweblogic.client.socket.ConnectTimeout=XXX, in the start-up script of the server which you are seeing this issue under JAVA_OPTIONS
    Note: Where "XXX" is the value in ms.
    Example:
    -Dweblogic.client.socket.ConnectTimeout=500
    2. Try tuning the duration time to a higher value from the below Console path
    Server -> Protocols (tab) -> HTTP (sub-tab) -> Duration
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Middleware Magic | Come, Join Us and Experience The Magic…

  • BEA-000449  Closing socket as no data read from it

    This error message is filling up the server log files. It looks like some network problem. How can I find the cause ? This does not create a functional problem, but I am sure there will be a performance problem. Also, since this message is filling up the logs rapidly, I cannot see my regular application debug statements.
    <Warning> <Socket> <myserver.mydomain.net> <my_managedserver_01> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1218554019557> <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of 30 secs>
    The timeout of 30 seconds is the value set in Login Timeout in server tuning tab.
    Environment:
    WebLogic Portal 10.0 MP1 (The domain is a server domain, not portal domain)
    Red Hat linux 4
    Intel Xeon
    Message was edited by:
    prakashp

    In My Weblogic 11G, i am getting Warning msg in my log file saying Closing socket as no data read from it
    ####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs>
    ####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,088 during the configured idle timeout of 25 secs>
    ####<Nov 2, 2010 12:21:37 AM IST> <Info> <JDBC> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288637497701> <BEA-001128> <Connection for pool "IB_JDBC_Data_Source" closed.>
    I have follow the following step
    If you want to follow this solution. Go to Admin console -> Click on Domain->Configuration->Log Filters->create new Log filter.
    I added this line in expression "(MESSAGE !='Closing socket as no data read from it during the configured idle timeout of 5 secs')"
    Go to your server-(for each server you have to set it individually)->Logging->Advanced->Select this log filter for Standard Out or log file.
    this is not working in weblogic 11G, any one have the solution to stop this msg.

  • Windows7 64-bit causes BEA-000449 Closing socket as no data read

    Hi,
    I have a new Windows7 64-bit laptop and copied my ADF and other FMW apps to the new laptop from my windows XP. I am using Jdev 11.1.1.5 on the prior XP and the new Windows7.
    The applications ran fine in XP and I am able to run the the JSPX pages in the windows7 but for one critical issue.
    I have a page that issues a query to a web service and is able to display the results in a table. The table rows have links to call a managed bean to prepare then uses an Action to display the results in a new form page. The two pages are in an unbounded task flow. When I click on the link I don't see any debug messages from the bean and don't see the Form page but I see in the logs:
    <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 127.0.0.1:49,319 during the configured idle timeout of 5 secs>
    I never had such issue with XP. (note I used the same Jdev 11.1.1.5 software for both)
    Also I have the same application running on a Linx server and when I tested to click on the link from the result table also I never see the Form page when using Windows7 but works fine with XP !?
    Can we use Windows 7 with ADF and WebCenter applications? This critical since my client users are planning to upgrade to Windows7.
    Is there a special configurations to resolve such issue and others that I still didn't test.
    Thanks

    Update,
    I was using IE 9 on windows7 and IE 8 on XP. I now tested with Firefox 64-bit, which is named Namoroka since that was the 64-bit version I found, and I didn't have such issue, surpised.
    My client must use IE since we also have Siebel which uses ActiveX and many government agencies are certified on IE.
    (Note: when using Namoroka, I keep getting a popup when move from one page to another that: "You are using an unsupported browser. The supported browsers are Interner Explorer 7 and higher, Firefox 2.0.0.2 and higher, Safari 3.1.2 and higher, and Google Chrome 1.0 or higher. )
    From what I see now can't upgrade to windows7, but I did see that many are using it. So please help in what you already solved this issue.
    Thanks

  • Closing Socket within 0 Seconds

    Hi,
    I am using weblogic 10.3 application server. I am frequently facing the below warning in log file
    <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of *0 secs*>
    As a response, "Page cannot be displayed" error is seen in browser for that request. I checked the config.xml, nowhere it is configured as 0 seconds.
    Please help me with your suggestions.
    Regards
    Edited by: user13299431 on Nov 29, 2010 4:36 AM

    Hi
    This is message you can filter it thru LogFilter
    You can set the Logfileter on your Admin console -> Click on Domain->Configuration->Log Filters->create new Log filter.
    I added this line in expression "(MESSAGE !='Closing socket as no data read from it during the configured idle timeout of 0 secs')"
    Go to your server-(for each server you have to set it individually)->Logging->Advanced->Select this log filter for Standard Out or log file
    Ref:
    BEA-000449  Closing socket as no data read from it
    http://download.oracle.com/docs/cd/E15051_01/wls/docs103/ConsoleHelp/taskhelp/domain_log_filters/CreateLogFilters.html
    Hope this will helps you.

  • CTRL-M (^M) characters in data read from sockets

    Hi,
    We have developed a software applications which opens upto 300 TCP connections and 4000 UDP sockets. The data from the TCP application is multiplexed to UDP sockets and viceversa.
    We connect to the application using a TCP socket and send certain data to the application which in turns sends this data to all the 4000 UDP sockets. The data received from 4000 UDP sockets is in turn sent back to the TCP socket as responses.
    We used telnet to connecct to thespecific TCP port on our application, sent a request to be sent to all 4000 UDP sockets and noticed ctrl-M characters in the data received from TCP socket. However we are sure we are not appending or adding this ctrl-m character while sending the data on TCP socket.
    telnet host port >/tmp/abc
    send a request
    send next request
    (after 10 mins, close connection)
    cat -vet /tmp/abc >/tmp/xyz
    There are ctrl-m characters in /tmp/xyz.
    ^M is observed only at the end of few lines and not on all lines. Successive repeatition of this test generates ^M in different lines but at the end of the line always.
    Can anybody help me to know why these ^M characters are getting generated?
    Note: We are completely working on Solaris and do not move contents across Windows and Unix. Our application is completely written on C++
    Thanks.
    Message was edited by:
    shekhnam

    I think I've misunderstood something here. The problem you're having is with the response being filtered by Telnet or your client, not what telnet is sending to the server?
    In that case I think the explanation is clear. Telnet is trying to display what comes back on a screen, and it is deleting and inserting newlines every now and then according to its internal whim so as to make the data wrap. I don't know if you can control that, but I also don't know if it matters as long as you have your own client application. You just have to stop treating Telnet as a viable test client.

  • Sun Ray Connector proxy : Child closed socket prematurely, session shutdown

    Dear All,
    I'm using SRS 5 & SRWC 2.2 :
    $ pkginfo -l SUNWuttsc
       PKGINST:  SUNWuttsc
          NAME:  Sun Ray Connector for Microsoft Windows Operating Systems (opt)
      CATEGORY:  system,sunray
          ARCH:  i386
       VERSION:  2.2_32
       BASEDIR:  /opt
        VENDOR:  Sun Microsystems, Inc.
          DESC:  Commands, configuration, resources and Man Pages
        PSTAMP:  SunOS_5.10_20091021175007
      INSTDATE:  févr 05 2010 10:34
       HOTLINE:  Please contact your local service provider
        STATUS:  Installation complète.
         FILES:       26 chemins d'accès installés
                       9 répertoires
                      10 exécutables
                       1 exécutables setuid/setgid
                    9037 blocs utilisés (env.)
    The SRWC crash and restart immediately...
    As you can see I've some log like this :
    Feb  7 03:03:15 SRS Sun Ray Connector proxy:[18056]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    Feb  7 03:03:15 SRS Sun Ray Connector proxy:[18089]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    Feb  7 03:03:23 SRS Sun Ray Connector proxy:[18254]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    Feb  7 03:03:23 SRS Sun Ray Connector proxy:[18214]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    Feb  7 03:03:23 SRS Sun Ray Connector proxy:[18219]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    Feb  7 03:03:23 SRS Sun Ray Connector proxy:[18221]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    Feb  7 03:03:23 SRS Sun Ray Connector proxy:[18220]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    ...I'm using a separate DHCP on LAN. DTU & TSE (W2K8) are working 95% of time and sometime and randomly, one DTU has a full black screen. The only way to get the login screen of win 2K8 is to reset his own session.
    Help will be really appreciated.
    Florent.

    I have the same issue . . .
    1. Sun Ray 5 (Sun Ray 4.2)
    2. SRWC 2.2
    3. Solaris 10 u9 X86 on two x2200
    4. Terminal Server on Win2K3 R2 Standard x64 Edition SP2
    I have a handful of users and they all logon the same way, which is to enter username & password then I have the following lines at the end of the users' individual .dtprofile file . . .
    <begin snip>
    DTSOURCEPROFILE=true
    /opt/SUNWuttsc/bin/uttsc -b -m -O -u uname 192.168.100.29
    exit
    <end snip>
    Of course 'uname' is actually the user name followed by the Terminal Server IP address and as you can see I am using the '-O' option, but every morning all the users on a server have their Sun Ray sessions reset and I find this in the messages file . . .
    Mar 16 09:38:31 sunraya Sun Ray Connector proxy:[12941]: [ID 855542 user.error] Child closed socket prematurely, session shutdown
    . . . . Using cron, I reset the Sun Ray service twice a day on both servers at 7AM and 7PM . . .
    # cat /sunray-restart.script
    # This is to restart SunRay 5 service due to
    # what I think may be a memory leak that disconnects
    # the SunRay Windows Connector every day
    /opt/SUNWut/sbin/utrestart -c
    echo "#" >> /var/adm/messages
    date >> /var/adm/messages
    echo "#" >> /var/adm/messages
    echo " RESTARTING SUNRAY SERVICE " >> /var/adm/messages
    echo "#" >> /var/adm/messages
    echo "#" >> /var/adm/messages
    . . . But this does not appear to having an affect.
    I will be looking around the forums for any other bits of information about this. The "Known Issues" can probably be found in the Release Notes.

  • Functional Specification For Opening And closing stock On Particular Date

    Dear Gurus,
    I am creating report for opening and closing stock on particular date in which batch and storage location should also be included. I want to know the tables and fields for the same.I have searched the forum and got report on month basis but I want this report on posting day basis.kindly suggest tables and fields. Thanks in Advance

    Dear sir,
    There are many other colums that client wants to add which are not present in MB5B transaction.columns which client wants to add are as follows...
    Material Number                                                   
    Material Description                                       
    Material Type                                                                        
    Material Group                                                                     
    External material Group                                                            
    Movement Type     
    Plant     
    Storage Location     
    Customer Number     
    Customer Name     
    Vendor Number     
    Vendor Name     
    Posting Date     Receipt Doc. Number
    Issue Doc. Number     
    Reference Issue Document Number     
    Opening Stock Quanity     
    Material Receipt Quantity     
    Material Issue Quantity     
    Material Closing Stock Quantity      
    Value Of Closing Stock
    And for this I want  tables and logic for the same. kindly provide the solution for the same.

  • Opening and closing balance between 2 dates

    hi.
    i am facing a problem while fetching the opening and closing balance for a particular G/L account.
    In my  program  i am entering G/L account for a date range i.e, between two dates and i want opening and closing balance for these 2 date ranges.
    So, please tell me is there any function module to fetch opening and closing balance between two dates.
    Regards,
    ROHINI.K.

    Hi Rohini,
                 Check this FM :   BAPI_GL_GETGLACCPERIODBALANCES.
    If we use this functional module, we will get opening and closing balance of corresponding G/L Acc.
    (e.g)
    CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'
        EXPORTING
          companycode                   =  '1000'
          glacct                              = '0000548101'
          fiscalyear                         = '2007'    
         currencytype                      = '10'
       IMPORTING
    BALANCE_CARRIED_FORWARD       =  gs_bal-balance
         RETURN                                        =  v_return
        TABLES
          account_balances                            = gt_bal.

  • Opening stock will be the closing stock of previous date

    Hi All,
    Good day. I am developing an ALV report that will show opening stock(LABST) as well as closing stock(Calculated) for a range of date and materials. Problem here is that from MARD table I am getting only the last opening stock, because it has no common date field with MSEG table. So, I have to calculate the opening stock as the closing stock of previous date. How can I calculate this? Is there any FM to get the opening stock ?
    Date          Material            Opening St       Closing St
    27.03.2009     2100002          91.000          191.00
    28.03.2009     2100002          191.000          123.00
    29.03.2009     2100002          123.000          103.00
    With regards,
    Tripod.
    Edited by: Tripod on Aug 23, 2011 12:13 PM

    Try not only to use MARD and MKPF/MSEG but also MARDH which contains closing stock of period preceding periods where movements happened. (ie. there is a record for May if a movement happened in June, and none for June if there was no movement in July, and no record exists for August as this is current period) - First look for MARD, MARDH records; and then only read MKPF/MSEG from last MARDH record found. (created back to 4.5A - [Material Master (Industry/Retail): Enhancements to Period Closing|http://help.sap.com/saphelp_45b/helpdata/en/35/b0e7ef87a62488e10000009b38f9b7/content.htm])
    Regards,
    Raymond

  • Negative closing stock on back date

    All SAP Gurus,
    We have made GR (MIGO) on todays posting date.
    And issued the material on yesterday's posting date (past date), (where there was no stock on that date).
    System allowed us to issue the material on past date, on which there was no stock.
    And now showing closing stock on previous date as negative.
    We want to avoid such negative closing stock.
    What configuarational changes we need to do?
    Regards,

    hi
    This is standard functionality .. u can not do anything in std. as there is no error message available for this
    u can do one thing In OMSY u can remove  remove the check mark in the ABp (Allow Back Posting) check box for your Company Code, to stop postings in the closed periods.
    or in MMRV  do not tick posting in previous period
    Vishal.....

  • Itunes error. the data execution prevention pops up and says "to protect your computer, windows has closed this program. Data execution prevention helps protect against damage from viruses and other threat.

    I have a windows Xp computer. and i needed to download the newest itunes to support my ipod touch. but now my computer doesn't let me open itunes. The the data execution prevention pops up and says "to protect your computer, windows has closed this program. Data execution prevention (DEP) helps protect against damage from viruses and other threat." I tried excluding itunes from DEP on settings but it still doesn't work. I don't know what to do. please help me!!!
    thanks 

    try to select the computer cd/dvd autorun off.
    I had the same problem, then Kaspersky software found a conflict suggesting me this solution.
    Itunes now works...even if it always asks to set the cd/dvd autorun on when lunched.

  • Closing Sockets

    Hi all,
    Im having a big problem with the closing of sockets.
    I have a simple program which handles the sending / receiving and monitoring of HTTP traffic.
    My program has a 'sender' part which opens a socket, writes a request (using the socket output stream), reads the response (using the socket input stream, until read() == -1 ) and then closes the streams and socket.
    The 'receiver' part simply receives socket connections, reads the content (until read() == -1), writes a response, and then closes the streams and socket.
    The monitor part is a simple 'tunnel'. For each received socket connection, a connection is made to a server.
    Two threads then operate like this:
    T1) While read from client != -1, write to server
    T2) While read from server != -1, write to client
    Seems simple enough, and sort of works.
    The problem I have is cleanly closing all sockets without screwing up either the tunnel or a client.
    I try not to close the streams / sockets at the 'logical' times, but for some reason any combination I try results in Socket Closed exceptions during a read in either the tunnel or the client.
    There is a fair amount of code - so I dont expect anyone to wade thru it to find the problem, but Im just wondering if anyone has:
    1) Had similar problems and found a solution
    2) Can point me in the direction for more details on the mechanics and implications of closing socket streams
    The java docs seem very sketchy on this subject!!
    Thanks for your help!

    Thanks for the response (2 dukes for the fast reply - plenty more available on this one though!)....
    Does this mean that there is no 'clean' way to accomplish the transfer task?
    I think both examples will work, but I have a couple of issues:
    This exception is quite normal and indicates that another thread abruptly forced your socket closed or you tried to read or write after closing it yourself. You must catch it.The problem I have with this is that under these circumstances, it is a 'SocketException' which is thrown. The API says that this is thrown if 'there is an error in the underlying protocol, such as a TCP error'. So to be sure I was dealing with the right problem, I'd have to start parsing the exception text looking for "Socket Closed".
    Im keener on option 2:
    providing signalling between your threads Sounds like this is what I need.... Again there is a catch though.
    See, the thread handling the client will be in a blocking read (it will have read everything from the client, and written it to the server. However, as the client socket isn't closed yet, it doesn't know its time to stop). So, Im back to using exceptions again (Im assuming I'd have to do an interrupt?).
    I thought I could get round this on the client side by closing the output stream after writing everything (would signify to the reader thread that all is done).
    This, however, just results in the socket getting closed (my ignorance of the underlying mechanics of sockets showing through here...).
    Further, I want my 'monitor' to work with all request / response based systems - so I cant write a termination sequence on the client side to indicate end of input.
    So - Im really stuck with using exceptions as flags then??

  • Socket Channel Connection - Continuous read

    Hi all,
    I am new to socket programming. This is where I am stuck...I need to read from a channel 'continuously', i.e messages are continuous published and I need to keep on reading it. Below is my code for review....I am just getting the 1st line of the message. please suggest..Thanks in advance
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.InetSocketAddress;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.channels.ReadableByteChannel;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.nio.charset.Charset;
    import java.nio.charset.CharsetDecoder;
    import java.util.Iterator;
    import java.util.Set;
    public class TestConnection {
         private static Charset charset = Charset.forName("ISO-8859-1");
         private static CharsetDecoder decoder = charset.newDecoder();
         public static void main(String[] args) throws IOException {
              SocketChannel sc = null;
              String desthost = "172.19.67.33";
              int port = 5002;
              InetSocketAddress isa = new InetSocketAddress(InetAddress.getByName(desthost), port);
              try {
                   sc = SocketChannel.open();
                   sc.connect(isa);
                   System.out.println(" Message--> " + readFromChannel(sc, 4096));
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   if (sc != null)
                        sc.close();
         public static String readFromChannel(SocketChannel sChannel, final int size) throws IOException {
              int numBytes = 0;
              boolean hasRead = false;
              ByteBuffer inBuffer = ByteBuffer.allocateDirect(size);
              CharBuffer charBuffer = CharBuffer.allocate(size + 100);
              StringBuffer dataRead = new StringBuffer();
              Selector selector = Selector.open();
              System.out.println(" Is Connected--> " + sChannel.isConnected());
              System.out.println(" sChannel.isBlocking()--> " + sChannel.isBlocking());
              sChannel.configureBlocking(false);
              System.out.println(" sChannel.isBlocking()--> " + sChannel.isBlocking());
              sChannel.register(selector, SelectionKey.OP_READ);
              try {
                   while (selector.select(20000) > 0) {
                        Set readyKeys = selector.selectedKeys();
                        Iterator readyItor = readyKeys.iterator();
                        while (readyItor.hasNext()) {
                             SelectionKey key = (SelectionKey) readyItor.next();
                             readyItor.remove();
                             ReadableByteChannel keyChannel = (SocketChannel) key.channel();
                             if (key.isReadable()) {
                                  for (int i = 0;; i++) {
                                       int count = 0;
                                       if ((count = keyChannel.read(inBuffer)) < 0) // EOF
                                            keyChannel.close();
                                            throw new IOException("Socket lost connection during read operation");
                                       numBytes += count;
                                       if (!inBuffer.hasRemaining()) {
                                            hasRead = true;
                                            System.out.println("has read");
                                            System.out.println("SUCCESSFUL, length of data read:" + numBytes);
                                            inBuffer.flip();
                                            decoder.decode(inBuffer, charBuffer, false);
                                            charBuffer.flip();
                                            selector.close();
                                            return dataRead.append(charBuffer).toString();
                                       if (i >= 2) {
                                            break;
                   if (false == hasRead) {
                        System.err.println("has _NOT_ read");
                        System.err.println("length of data read: " + numBytes);
                        System.err.println("length of data read: " + numBytes);
                        if (numBytes > 0) {
                             inBuffer.flip();
                             decoder.decode(inBuffer, charBuffer, false);
                             charBuffer.flip();
                             System.err.println("ERROR, data read: " + dataRead.append(charBuffer).toString());
                        throw new IOException("Socket read operation timed out");
                   } else {
                        throw new IOException("Invalid Read Socket state");
              } finally {
                   selector.close();
    }

    The output is -->
    Is Connected--> true
    sChannel.isBlocking()--> true
    sChannel.isBlocking()--> false
    has read
    SUCCESSFUL, length of data read:4096
    Message--> 000c100000300000007f100700302E12008071104060400 Lane Communication Is OK 004d100500300302E0100000027000000000000000000000000000010845800000000000000000000000c100000302E01007f100700303E12008071104140200 Lane Communication Is OK 004d100500300303E0402350427000000000000000000000000000119107300000008500000000000000c100000303E00007f100700304E12008070704085600 Lane Communication Is OK 004d100500300304E0201521427000000000000000000000000000081090700000003640000000000000c100000304E00007f100700305X12008071104111600 Lane Communication Is OK 004d100500300305X0801411215000000000000000000000000000048892600000000810000000001000c100000305X00007f100700306X12008071104102600 Lane Communication Is OK 004d100500300306X0800660815000000000000000000000000000046838800000000760000000000000c100000306X00007f100700307X12008063003542200 Lane Communication Is OK 004d100500300307X1000445315000000000000000000000000000125509000000017220000000127000c100000307X000104100300300307X200807111727309311015004453030200000000000000000000000000000527000001020102000000001154210344501304E2008071116072500EZPASS TAG# 022 - 04522780 STATUS = VALID TYPE = INTERIOR FPT Program Status = Success 00012550910000001723000000012820104100300300305X200807111727325610815014112010200000000000000000000000000000000010201020102000000005146360015500121E2008071117010800MANUAL CASH IN EXIT MANUAL 00004889270000000082000000000100104100300300307X200807111727353911015004453030200000000000000000000000000000072000001020102000000001154220344700103E2008071117070600EZPASS TAG# 008 - 03623801 STATUS = VALID TYPE = INTERIOR FPT Program Status = Success 00012550920000001724000000012800104100300300307X200807111727379411015004453030200000000000000000000000000000072000001020102000000001154230344900401E2008071117181300EZPASS TAG# 006 - 00468916 STATUS = VALID TYPE = INTERIOR FPT Program Status = Success 00012550930000001725000000012800104100300300306X200807111727399610815006608010200000000000000000000000000000000010201020102000000000075910013300613E2008071117032500MANUAL
    The out actually gives multiple line...but what should be the approach to read line by line continuously and keep parsing them......
    kind regards

  • Does closing socket with close() also closes the outputStream and inputStre

    hi i have a simple query
    does closing socket with close() also closes the outputStream and inputStream() associated with the socket

    Yes.

Maybe you are looking for