JDK-4514853 : b83: simple Runtime.getRuntime().exec fails on Win NT
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2001-10-15
  • Updated: 2001-10-18
  • Resolved: 2001-10-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta3Fixed
Related Reports
Duplicate :  
Relates :  
Description
The simplest exec (see attachment) failed on Win NT 4.0 (SP 6).

To reproduce:

1. compile Exec.java
2. Run "java Exec <program to exec>" to test.
   E.g. java Exec C:\Winnt\System32\Calc.exe

On my NT box, the process Calc.exe is created, but you cannot see a window
for the calculator.  It just doesn't come up.

I tried the test with b75 and it works fine, so apparently the problem was
introduced fairly recently.

---------- Exec.java -------------
import java.io.IOException;

public class Exec {
	public static void main(String args[]) {
	   new Exec(args);
	}

	Exec(String args[]) {
	   try {
		Runtime.getRuntime().exec(args[0]);
	   } catch (Exception e) {
		e.printStackTrace();
	   }
	}
}

/////////////////////////////
###@###.### 2001-10-23

This is the regression test results from the duplicate bug.

Name: as83306			Date: 10/18/2001

Regression tests
java/awt/dnd/Win32DropTYMEDSelectionTest/Win32DropTYMEDSelectionTest.html 
java/awt/dnd/Win32TYMEDSelectionTest/Win32TYMEDSelectionTest.html
are failing with Merlin build 83 on windows_2000, host australis. 

It looks like the drag part of the test is not reaching it's target and as a result, cannot drop. The test times out waiting for two 
minutes.

 For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
#Test Results (version 2)
#Sat Oct 13 23:09:18 PDT 2001
#checksum:7781b93a00f1ac0b
#-----testdescription-----
$file=X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b83\\java\\awt\\dnd\\Win32DropTYMEDSelectionTest\\Win32DropTYMEDSelectionTest.htm
l
$root=X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b83
author=###@###.### area=dnd
keywords=bug4495845
run=USER_SPECIFIED applet Win32DropTYMEDSelectionTest.html\r\n
source=Win32DropTYMEDSelectionTest.html
title=tests that drop target requests data only in one tymed at a time in native-to-java drag-and-drop operation on Win32

#-----environment-----

#-----testresult-----
description=file:///X:/st1/regression/merlin/jdk1.4Tests/tests/b83/java/awt/dnd/Win32DropTYMEDSelectionTest/Win32DropTYMEDSelectionTest.
html
end=Sat Oct 13 23:09:18 PDT 2001
environment=regtest
execStatus=Error. test was interrupted! (timeout?)
javatestOS=Windows 2000 5.0 (x86)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile applet
start=Sat Oct 13 23:07:15 PDT 2001
status=Error. test was interrupted! (timeout?)
test=java/awt/dnd/Win32DropTYMEDSelectionTest/Win32DropTYMEDSelectionTest.html
work=C:\\Results\\Regression\\merlin\\b83\\AUSTRALIS-Windows_NT-jth13-jdk14b83.10-13.22-31-ALL\\java\\awt\\dnd\\Win32DropTYMEDSelectionT
est

#section:script_messages
----------messages:(5/241)----------
JDK under test: (C:/Java/jdk14b83)
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b83)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b83, mixed mode)
Timeout signalled after 120.0 seconds

#section:build
----------messages:(3/116)----------
command: build Win32DropTYMEDSelectionTest 
reason: Named class compiled on demand
elapsed time (seconds): 2.297
result: Passed. Compilation successful

#section:compile
----------messages:(3/233)*----------
command: compile 
X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b83\\java\\awt\\dnd\\Win32DropTYMEDSelectionTest\\Win32DropTYMEDSelectionTest.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 2.282
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:applet
----------messages:(3/160)----------
command: applet Win32DropTYMEDSelectionTest.html
reason: User specified action: run applet Win32DropTYMEDSelectionTest.html 
elapsed time (seconds): 120.156
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Failed. Execution failed: Program `C:/Java/jdk14b83\bin\java' interrupted! (timed out?)


test result: Error. test was interrupted! (timeout?)

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: merlin-beta3 INTEGRATED IN: merlin-beta3
14-06-2004

EVALUATION Introduced in b82, possibly as a result of the fix for bug 4244515. -- iag@sfbay 2001-10-15
15-10-2001