Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4514853
Votes 0
Synopsis b83: simple Runtime.getRuntime().exec fails on Win NT
Category java:classes_lang
Reported Against merlin , merlin-beta3
Release Fixed 1.4(merlin-beta3)
State 10-Fix Delivered, bug
Priority: 1-Very High
Related Bugs 4244515 , 4516587
Submit Date 15-OCT-2001
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();
	   }
	}
}

/////////////////////////////
  xxxxx@xxxxx   2001-10-23

This is the regression test results from the duplicate bug.



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=  xxxxx@xxxxx   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?)
Work Around
N/A
Evaluation
Introduced in b82, possibly as a result of the fix for bug 4244515.

--   xxxxx@xxxxx   2001-10-15
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang