Difference in DataInputStream.ReadFully under Linux and Windows

Hello
I wrote a client application that needs to run in a Windows and Linux client.
My client involves communication with the server on socket.

The key code that is involved in this issue is:
DataInputStream.readFully (byte [])

One of the tests is:
While the client is connected to the tester pulled server the network cable from the server, so the communication between the client and the server fell.

This gives a Windows client and the same code running on Linux (RHEL 5.5) client throws exceptions.
I need ge thtis work under Linux.

What should I do? clues as to why the Windows client throws an IOexception and Linux client does not work?

What follows is the exception that is thrown in the Windows client: java .net .SocketException: connection reset
at java.net.SocketInputStream.read (unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully (unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read (unknown Source) 13/01/2011 10:49:37:254: AVSP called closeConnection.

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord (unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord (unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read (unknown Source)
at java.io.DataInputStream.read (unknown Source)
at java.io.DataInputStream.readFully (unknown Source)
at java.io.DataInputStream.readFully (unknown Source)

Socket.setSoTimeout (), or HttpURLConnection.whatever this is the case, see the Javadoc.

Tags: Java

Similar Questions

  • Secondary disk between Linux and Windows guests share

    Hi guys,.

    I have a requirement to have a guest Windows and Linux comments share the same disk (formatted in NTFS) and the two systems need full access to the shared file system.

    What I've read, it is possible in some cases, such as the Windows Server cluster.

    Has anyone tried this with Linux and Windows?


    Thank you

    What I've read, it is possible in some cases, such as the Windows Server cluster.

    Windows uses a cluster without sharing, wherever a single node has access on the drive shared at the same time. Microsoft does not support concurrent access to an NTFS file system, with the exception of Hyper-V.

    André

  • Mysterious FF 5.0.1 for Linux and Windows

    Hello.

    Mozilla has released, on 11 July, FF 5.0.1 to bring increased compatibility with Mac OS X Lion. You said:

    Please note: users on Windows and Linux do not need and will not see the updated offer.

    Yesterday, I noticed that FF 5.0.1 for Linux and Windows are available.

    However, I can't find any credible information on the Internet which is all about. "Notice of security for Firefox", "The Mozilla Foundation security advisories" and 'US-CERT current activity' pages did not mention of FF 5.0.1 for Linux and Windows at all.

    Could you please shed some light on this particular and still mysterious version?

    Thanks in advance.

    So that all OSs have the same version number of Firefox. Something on the update server, I think. You seem to have already Firefox installed 5.0.1. See find your version of Firefox

  • Difference between software malicious removal tool and Windows Defender

    What is the difference between the difference between software malware removal tool and Windows Defender?

    Windows Defender is a program that you install on your computer.  It runs automatically and continuously, prevention of new infections of spyware and the removal of the 'old'.

    Microsoft Malicious Software Removal Tool is not installed and does not work automatically.  You can run it manually to remove specific malicious software it is seeking.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • EliteBook 8560w: 8560w w / external projector does not not under Linux or Windows 8.1

    I recently bought an Elitebook 8560w opportunity and installed 8.1 for WIndows and Linux in a dual-boot configuration.  Using the laptop for weeks caused no problems at all.

    I used the display port on the screen on a TV 720 p to Samsung to mirror, so the kids can play games and it works perfectly, but when I try to connect to a home theater receiver as a passage to a projector 1080 p, the projected screen turn black for a few seconds, and then correctly show the desktop. This trend will continue indefinitely.

    I hooked it goes back to the 720 p TV and it works perfectly.  The problem exists in Linux and Windows.  I uninstalled the drivers and reinstalled a different version in each operating system.

    Ideas?

    The Elitebook works and no hardware or software problem.

    You may need to have an active DisplayPort to HDMI adapter since signal must pass the home theater receiver.

  • PeopleTools 8.55 DPKs for Linux and Windows first

    The new PeopleSoft cloud Architecture comes with 8.55 PeopleTools.

    The first Oracle as delivered DPKs (deployment Packages) for Linux and Windows platforms of Oracle database.

    It will be delivered later for other platforms:

    • DB2 for z/OS and Linux
    • UNIX
    • Windows and SQL Server

    If you want to learn more about DPK there is a FAQ on the PCA (PeopleSoft cloud Architecture) and DPK (Deployment Package):

    http://docs.Oracle.com/CD/E69776_01/pca_faq/index.html

  • EPM 11.1.2.3: deployment of java web applications on environment Mix Linux and windows

    Hi all

    I intend to install and configure EMP 11.1.2.3.

    We have 2 of linux and windows server 1.

    on linux, I am planning to install foundation, Essbase and planning.

    and in windows I intend to install HFM and FDMEE.

    now my question is when you perform the configuration for HFM and FDMEE, I need to deploy the java web application for HFM and FDMEE on windows.

    so everything by deploying web applications in java on windows that I put a different name for "domain name".

    as linux domain name will be 'EPMSystem', so for windows it would be different as 'EPMSystem1'.

    There will be no problem if the domain names are the same for both linux and windows?


    and for weblogic server port must be different as 7001 on linux and 7002 on HFM?


    Kind regards

    Dattatray Mate

    Untitled.jpg

    Yes, please keep another domain name...

    Port is not a problem, you can use the same port as well

    See you soon!

    SH! going

  • Oracle on Linux and Windows Client question database server: NetMgr Windows and Linux NetMgr

    People,

    Hello. I have installed Oracle Database 11 g 2 server in the Oracle Linux 5 Starter PT853 Instance of database virtual machine. Then I installed Oracle Database 11 g 2 client for 32-bit Windows XP 64 - bit Windows virtual machine. Now I face the problem of connection of the VMs 2 as below:


    In Manager Net Linux Server Machine:

    Service name: PT853
    Connection type: default database
    "TCP/IP Protocol".
    Host name: localhost
    Port name: 1521

    Listener: LISTENER
    Protocol: TCP/IP
    Host: localhost
    Port: 1521


    I test the Service PT853 with "SYSADM" username and password "SYSADM". The connection is successful.
    In the Windows XP Client computer, the information in the Net Manager is the same, but the connection is not successful. Its details are as below:


    NET Service Name: PT853
    Protocol: TCP/IP
    The database Machine host name: localhost
    Port number: 1521
    Name of the Basic Service: PT853
    Connection type: default database


    I have test the Service using "SYSADM" UserID and password to 'SYSADM' which are the same with Linux, but this error: TNS: listener does not currently of service requested in connect descriptor.


    I followed this tutorial http://www.vmware.com/support/ws5/doc/ws_devices_serial_2vms.html to configure 2 virtual machines in Windows 7 host machine.

    In Windows XP Oracle database Client Installer directory, the "tnsnames.ora" file has an entry that matches the name Service in Net Manager. Directory of database server installation Oracle Linux, the file 'tnsnames.ora' has no entry because I installed the server of Oracle database with the instance of database startup PT853.


    I tried to test 2 virtual machines in the way as below:

    In Linux, [user@localhost ~] $ping WindowsXP_HostName
    Release: Unknown host WindowsXP_HostName


    At the Windows XP command prompt:
    C:\ping localhost.localdomain
    Its release: ping localhost 127.0.0.1 with 32 bytes of data...
    Reply from 127.0.0.1: bytes = 32 time = 2ms TTL = 128


    He meets a few times and then disconnected by itself. It seems that Windows XP is ping itself and not Linux server. The host name of the Linux server is 'localhost' as well. It is a kind of confusion for me.


    From the information above, we can see that 2 VMs cannot connect between them. Net Manager in Windows XP Oracle Client unable to connect its Service PT853 with the Oracle Linux database server.

    My question is:

    Can any folk tell me how to connect Oracle Client in Windows XP with the Oracle Linux database server?


    Very grateful in advance.

    user8860348 wrote:

    People,

    Hello. Thanks much for the reply. I am very grateful for your help.

    In Manager Net Linux Server Machine:

    Service name: PT853
    Connection type: default database
    "TCP/IP Protocol".
    Host name: 192.168.196.102
    Port name: 1521

    Listener: LISTENER
    Protocol: TCP/IP
    Host: 192.168.196.102
    Port: 1521

    I test the Service PT853 with "SYSADM" username and password "SYSADM". The connection is successful.

    In the Windows XP Client computer, the information in the Net Manager is the same as below:

    NET Service Name: PT853
    Protocol: TCP/IP
    The host of the database Machine name: 192.168.196.102
    Port number: 1521
    Name of the Basic Service: PT853
    Connection type: default database

    I test the Service using the "SYSADM" username and password "SYSADM" which are the same with Linux and the connection is successful as well.

    IP 192.168.196.102 is Linux. This means that oracle database Client in Windows XP may log into Oracle Database Server under Linux. Don't you think I'm not mistaken? If so, I'm very happy and very grateful to you.

    "Do you think I'm not mistaken?

    By definition, if you can establish a connection, then you are correct.

  • Dual Boot Linux and Windows with HDDRecovery problem

    Hello

    I use the dual operating system Windows Vista and Linux open SUSE distribution on Toshiba Satellite A350-10z, everything works great except Windows Recovery. I have Linux (start: dev / sda6) and Windows Vista (starting: dev / sda2). Windows has 2 partitions, C and D drive, D drive I have folder HDDRecovery. After F8 I using the option of repair and waiting, then massage is displayed "the installed program cannot start. Click OK to turn off the computer.

    Before I installed Linux recovery worked well. Is there a chance to use the HDDRecovery of Windows Disk D or I have to boot from the recovery DVD?

    In my opinion, Linux messed with partitions or the MBR and maybe that is the reason why HARD drive recovery does not seems the DVD recover is your order of ion option to restore the laptop to factory settings.
    By the way: I didn't install Linux on my laptop, but I use Linux using the Knoppix Live CD

  • Comparison of installation of HCM and Solution Campus 9.0 with Linux and Windows

    People,

    Hello. I install PeopleTools 8,53 HCM with Campus Solution 9.0 review 5.
    PeopleSoft Internet Architecture is WebLogic11g/Tuxedo11g/OracleDatabase11g with OS Oracle Linux 5.10.

    In the process of seting up to its instance named "HRCS90" using opt/PT8.53/setup/PsMpDbInstall/setup.sh database, there is a step like below:

    Database create Type:

    (1) demo
    (2) system of
    (3) system of PeopleTools

    Select Demo or system, the next step "select PeopleSoft Applications" has only a single element:

    (1) PeopleSoft HRCS Demo Database - US English.


    When set up "HRCS90" with SQL Server 2005 and Windows Server 2003, there is another element: PeopleSoft HRCS Database - English American.

    I need not demo database. I need HRCS database only because the demo database is much more disk space.

    The document "PeopleSoft Human Capital Management and Campus Solutions 9.0 revision 5 Installation Guide" does not specify the detailed process to implement an instance of database HRCS.
    I can't find other documents from PeopleSoft to set up an instance of database HRCS.


    My questions are:

    First of all, how much more space "HRCS Demo database" occupies only the "HRCS database"? Are there "Database HRCS' for Linux and Oracle database?
    Second, you will find the PeopleSoft document about the process of seting HRCS 9.0 database on Linux and Oracle database instance?


    Thank you.

    It could be how you have installed the software itself (options checked). Take a look at this thread, it may help.

    Nicolas.

  • Problems with forms created with LC Designer, Adobe Reader 10.1 and Windows 7 7.1

    Hello

    I have an application that runs on Flex 3.5 and some xdp created with LC Designer 7.1.

    FRAMEWORK

    The application should work in Windows XP and Windows 7.

    It allows the user to submit an order and view/print the order confirmation.

    The order confirmation is a pdf file generated by a xdp created with LC Designer 7.1 (and a connection via an xml data file).

    Some pdf need to display Japanese fonts, others not (let's call them jpPDF and usPDF).

    The XP and 7 environments have Japanese fonts installed.

    USING XP

    When you use a XP environment, there is no problem to create and display the pdf, the jpPDF and the usPDF. Everything works fine and as expected.

    WITH THE HELP OF 7

    When you use a windows environment 7, I have different issues according to the generated pdf:

    jpPDF: Adobe Reader tells me that I don't have the fonts installed. When I accept to install the fonts, nothing happens and the pdf file appears completely empty.

    usPDF: Adobe Reader tells me that the created pdf file is not compatible with the latest version of Adobe Reader, so I need to upgrade. But I have the latest version available...

    Someone of you have encountered similar problems? Is there really something wrong between LC Designer 7.1 and Windows 7?

    Thanks in advance for your time and help.

    Kind regards

    BS_C31

    Hello

    I had problems with the installation at the request of the language packs, which I presented something on our portal of the company.  Seems to work fine if I download them manually, I think that there are five, it's one, Japanese http://www.adobe.com/support/downloads/detail.jsp?ftpID=4881.

    I had no problems using Windows 7 however.

    Concerning

    Bruce

  • Difference b/w reading synchronous file and read the file adapter Service

    Can someone tell me the difference between synchronous file read the service and the service of simple reading of the file adapter functions.

    where exactly do we use the synchronous file service? Please give me some example of scenario where we can use file synchronous read characteristic of service...

    Synchronous reading is used for playback of files mid process. People tend to use for consuming files based on a business rule. You can specify which files you want to read. An example of this would be an an email is sent telling the faile abc.csv has been downloaded. The BPEL process shuts down gets it. You can also cheange the location of the file dynamically in the process as well.

    Using the file adapter is used to call a process so when a file is placed in a place the BPEL process is called. It is most commonly used.

    see you soon
    James

  • M30X-124: can not find the drivers for linux and windows 2000

    I want to know how I can linux Redhat 9.0 on my computer. Wenn, do check the hardware, the screen goes black.
    And I want to install windows 2000, windows 2003 or later. But the important point is that I can´t find all the drivers on the site.
    Thank you

    [Edited by: admin 7 May 05 08:36]

    Hello

    Sorry, Toshiba provides only the drivers and tools for the OS liveries (M30X: WinXP). But you can search with google for drivers of W2k adapted. I think you will find them!

    Win2003 drivers can be a problem because it is a server operating system and there is not so much drivers for laptop available!

    For Linux, I found 3 interesting sites for you!
    http://newsletter.toshiba-tro.de/main/index.html
    http://Linux.Toshiba-DME.co.jp/Linux/index.htm
    and
    http://www.Linux-on-laptops.com/

    Tanya Bye

  • Dual boot Linux and Windows on Acer Aspire E5 - 573G 10.

    Hello

    My laptop has 10 Windows installed, and I would also install Kubuntu dualboot.

    I already disable secure boot and quick start for Windows 10.

    The test with Kubuntu LIve on USB is ok, so I installed Kubuntu. Installation of Kubuntu ended well.

    But when the pc restarts does not Grub menu and restart Windows 10.

    I have Boot Repair, nothing has changed.

    Thank you.

    I solved it.

    I followed the advice in this topic, after that he appeared in the startup list, but to restart the computer displays this error message

    . A step forward... but I move forward without understanding...

    I had given up in favour of Ubuntu on a usb media. Finally, I decided to reistall Kubuntu.

    In the boot list is still kubuntushimx64efi (created by me, as suggested in the section above)

    but now... appear the Grub.

    Now, I have another problem... I opened a new post more.

    Thank you very much for your help.

  • How to remove a computer from my working group under XP and Windows 7?

    We have recently implemented a network composed of our three computers (2 XP) Home Office and 1 Windows 7 to share files and printers.

    However, we found its malfunction and could not share what we expect.  One of the reasons, we can see it, could be one of the computers have been infected.

    So, we try to remove this computer from the working group.

    However, no matter how hard I searched on Internet, there is no way to remove the infected computer's existing working group.

    There that experts can help us?

    Thank you very much!

    Hello

    You cannot remove a computer from a working group, but you can change the name of the working group.

    http://support.Microsoft.com/kb/295017

    http://www.SevenForums.com/tutorials/51711-workgroup-name-view-change.html

    But that will not necessarily mean that they are not accessible by other computers on the network, or it will necessarily make the other less likely to be infected through this PC computers.

    The only way to "withdrawal" of a computer on a network is to unplug the network cable or remove the name of the wireless network.

    If you are concerned about a possible infection, you must get the malware to day and scan for malware protection.

    However, I suspect it's more likley your problems are caused by the lack of knowledge in the topic network different Windows operating system. This can help...

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows

    If you are having specific problems post back with details and someone will almost certainly try to help.

    Tricky

Maybe you are looking for

  • Scanning problem

    I recently bought a Macbook Pro 13 "retina. I have HP Laser Jet MFP M1005. He acknowledged for the first time when I connected my printer on my mac with USB cable & I am able to take fingerprints. It is scanning. The Mac does not have the ability to

  • How to restore the toolbars

    When I click on a shortcut on my desktop when the page opens all the toolbars and the address bar disappeared. The page appears at the top of the Web page. This does not happen when I open Internet Explorer. In fact the top of this page is at the top

  • Firefox is (and isn't) my default browser

    Firefox is designated as my default browser. When I go to Options/advanced/system default Options in Firefox, "Always check to see if Firefox is the default browser on startup" is checked. When I click on the button "Check now", he confirms that "Fir

  • Removing partial downloads in El Capitan

    I have a few partially downloaded files that cannot be deleted, renamed, you name it. I've never had this problem before. How can I get rid of these annoying files? Thank you!

  • Locate the screw example on different Windows computers

    I get an error when I try to run screws on different Windows machines, due to the different parts of a built-in Subvi.  More specifically, I have a few screws that call create_ramp.vi, which is in... \LabVIEW 2011\examples\analysis\intpxmpl. LLB.  On