JDK-4288791 : NT 4 SP 6 results in Socket problems with Jigsaw web server
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-11-08
  • Updated: 1999-11-10
  • Resolved: 1999-11-10
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 11/07/99


java version "1.3beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)
I am using W3C's Jigsaw web-server. Upon installation of NT SP6 I can no
  longer establish web connections. I have upgraded both JRE and Jigsaw
  to the latest versions but the problem remains. Below the screen dump
  of the error. The problem keeps the web-server from functioning, so a
  quick resolution of the problem would be great.

when trying to get data over Netscape I get this error:

java.net.SocketException: JVM_SetSockOpt() TCP_NODELAY (code=10055)
        at java.net.PlainSocketImpl.socketSetOption(Native Method)
        at java.net.PlainSocketImpl.setOption(Unknown Source)
        at java.net.Socket.setTcpNoDelay(Unknown Source)
        at org.w3c.jigsaw.http.httpd.run(httpd.java:1546)
        at java.lang.Thread.run(Unknown Source)

The code module where the error occured is attached:

    public void run () {
	// Emit some traces before starting up:
	System.out.println(getBanner()+": serving at "+getURL());
	System.out.flush() ;
	errlog("started at: "+new Date()+".");
	// Enter the evil loop:
	while ( ( ! finishing) && ( socket != null ) ) {
	    Socket ns = null ;
	    try {
		ns = socket.accept() ;
		ns.setTcpNoDelay(true);     <<<<<< this line the exception
occurs (line 1546)
	    } catch (IOException e) {
		if (debug)
		    e.printStackTrace() ;
		errlog ("failed to accept incoming connection on "+socket) ;
		// just in case, as it may have been created.
		try { ns.close(); } catch (Exception ex) {};
		ns = null;
	    }
	    if ( (socket != null) && (ns != null) && (factory != null) )
		factory.handleConnection (ns) ;
	}
	// Our socket has been closed, perform associated cleanup.
	cleanup(restarting) ;
    }
(Review ID: 97566) 
======================================================================

Comments
PUBLIC COMMENTS Here is a piece of news regarding a bug in WinNT SP 6: http://news.cnet.com/news/0-1003-200-1439342.html?tag=st.ne.1002.thed.1003-200-1439342 The contents: Windows NT update carries bug By Joe Wilcox Staff Writer, CNET News.com November 15, 1999, 12:25 p.m. PT A software update for Microsoft's Windows NT operating system introduced a bug that could potentially cripple Lotus Notes unless companies compromise network security. The bug in Windows NT Service Pack 6 prevents users from accessing Lotus Notes without administrator rights--the highest and broadest level of access typically reserved for network managers. Companies generally restrict user access to prevent security breaches or catastrophic accidental changes to PCs or servers. The bug puts companies that have applied the service pack in a bind, possibly forcing them to grant users temporary administrator privileges in order to use Lotus Notes. Microsoft periodically releases service packs as a way of adding features to Windows NT 4 or fixing bugs. The Redmond, Washington-based software maker is advising customers using Lotus Notes not to apply Service Pack 6 until a fix is released later this week.
10-06-2004

EVALUATION I installed all the required pieces, including NT4.0 service pack 6, and ran jigsaw 2.1.0, on top of JDK1.3beta-O, with Netscape 4.7 as client. It works fine. Thus I contacted the customer for further information. The following is his response: "It seems as if this problem is a microsoft-made one... I logged in as Administrator and ran jigsaw, and it worked just fine. Whenever I'm logged in as a User, it doesn't work.... So for now, I just changed my user profile and added Administrative rights and magically all problems disappear. It seems as if it's a service-pack 6 screwup that is caused by some unrelated piece of software such that it is impossible to track down. I.e. the standard MS problem..." By the way, when I tested the jigsaw server, I do have Administrator permission. It looks like NT4.0 service pack 6 has introduced a bug. yingxian.wang@eng 1999-11-09 We suspect that this bug in service pack 6 might be related to and therefore fixed by http://support.microsoft.com/support/kb/articles/Q245/6/78.asp. However, we have not verified that this patch to service pack 6 actually resolved this bug report. jeff.nisewanger@Eng 1999-11-17
17-11-1999