-
Bug
-
Resolution: Fixed
-
P2
-
1.4.1
-
hopper
-
x86
-
windows_nt
-
Verified
Name: icR10030 Date: 04/04/2002
Filed By : J2SE-SQA [###@###.###
JDK : jdk1.4.1-b07
JCK : JCK1.4
Platform[s] : Windows NT 4.0
switch/Mode : -client -Xmixed
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : api/javax_print/CancelablePrintJob/index.html#Cancel
api/javax_print/DocPrintJob/index.html#AttributeListener
api/javax_print/DocPrintJob/index.html#Get
api/javax_print/DocPrintJob/index.html#JobListener
api/javax_print/PrintService/index.html#addRmPSAttrListener
api/javax_print/PrintService/index.html#createPrintJob
api/javax_print/PrintService/index.html#equals
api/javax_print/PrintService/index.html#getAttribute
api/javax_print/PrintService/index.html#getAttributes
api/javax_print/PrintService/index.html#getDefaultAttrValue
api/javax_print/PrintService/index.html#getName
api/javax_print/PrintService/index.html#getServiceUIFactory
api/javax_print/PrintService/index.html#getSuppAttrCategories
api/javax_print/PrintService/index.html#getSuppAttrValues
api/javax_print/PrintService/index.html#getSuppDocFlavors
api/javax_print/PrintService/index.html#getUnsuppAttr
api/javax_print/PrintService/index.html#hashCode
api/javax_print/PrintService/index.html#isAttrCatSupported
api/javax_print/PrintService/index.html#isAttrValueSupported
api/javax_print/PrintServiceLookup/index.html#lookup
api/javax_print/ServiceUIFactory/index.html#fields
api/javax_print/ServiceUIFactory/index.html#getUI
api/javax_print/ServiceUIFactory/index.html#getUIClass
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/CancelablePrintJob/CancelTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/DocPrintJob/AttributeListenerTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/DocPrintJob/GetTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/DocPrintJob/JobListenerTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/addRmPSAttrListenerTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/createPrintJobTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/equalsTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getAttributeTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getAttributesTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getDefaultAttrValueTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getNameTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getServiceUIFactoryTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getSuppAttrCategoriesTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getSuppAttrValuesTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getSuppDocFlavorsTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/getUnsuppAttrTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/hashCodeTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/isAttrCatSupportedTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintService/isAttrValueSupportedTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/PrintServiceLookup/lookupTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/ServiceUIFactory/fieldsTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/ServiceUIFactory/getUITests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_print/ServiceUIFactory/getUIClassTests.java
jtr file location:
==================
How to reproduce:
=================
1. Logging in WinNT as ordinary user and connect to Samba server with installed printer.
2. Create new network printer:
2.1 My Computer->Printers->Add Printer
2.2 Select "Network printer server" and press "Next"
2.3 Select Samba printer and press OK
2.4 Install driver for new printer
3. Run following script
All is OK, test passes
4. Logout
5. Provide conditions when added printer is NOT accessable
For example logging in as Administrator and change local(WinNT) user password
6. Logging in as ordinary user again
7. Run script
Tests fails - java crash.
--------Script START---------------------
#!/bin/sh
JCK=k:/jck1.4/JCK-runtime-14
JDK=c:/jdk1.4.1
export JCK
export JDK
$JDK/bin/java -showversion -client -Xmixed -Xfuture -cp $JCK/classes -Djava.security.policy=$JCK/lib/jck.policy -Djava.security.auth.policy=$JCK/lib/java.auth.policy -Djava.security.auth.login.config=$JCK/lib/java.login.config javasoft.sqe.tests.api.javax.print.DocPrintJob.GetTests
--------Script END----------------------
Test output:
============
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D2148CC
Function=JNU_NewStringPlatform+0x1F9
Library=c:\\jdk1.4.1\\jre\\bin\\java.dll
Current Java thread:
at sun.print.Win32PrintService.getPrinterPort(Native Method)
at sun.print.Win32PrintService.<init>(Win32PrintService.java:206)
at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Win32PrintServiceLookup.java:200)
at sun.print.Win32PrintServiceLookup.getPrintServices(Win32PrintServiceLookup.java:61)
at javax.print.PrintServiceLookup.getServices(PrintServiceLookup.java:355)
at javax.print.PrintServiceLookup.lookupPrintServices(PrintServiceLookup.java:105)
at javasoft.sqe.tests.api.javax.print.DocPrintJob.GetTests.Get001(GetTests.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:397)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:193)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:125)
at javasoft.sqe.tests.api.javax.print.DocPrintJob.GetTests.main(GetTests.java:24)
Dynamic libraries:
0x00400000 - 0x00406000 c:\\jdk1.4.1\\bin\\java.exe
0x77F60000 - 0x77FBE000 C:\\WINDOWS\\System32\\ntdll.dll
0x77DC0000 - 0x77DFF000 C:\\WINDOWS\\system32\\ADVAPI32.dll
0x77F00000 - 0x77F5E000 C:\\WINDOWS\\system32\\KERNEL32.dll
0x77E70000 - 0x77EC5000 C:\\WINDOWS\\system32\\USER32.dll
0x77ED0000 - 0x77EFC000 C:\\WINDOWS\\system32\\GDI32.dll
0x77E10000 - 0x77E67000 C:\\WINDOWS\\system32\\RPCRT4.dll
0x78000000 - 0x78040000 C:\\WINDOWS\\system32\\MSVCRT.dll
0x10000000 - 0x10019000 C:\\WINDOWS\\System32\\NVDESK32.DLL
0x6D330000 - 0x6D443000 c:\\jdk1.4.1\\jre\\bin\\client\\jvm.dll
0x77FD0000 - 0x77FFA000 C:\\WINDOWS\\System32\\WINMM.dll
0x6D1D0000 - 0x6D1D7000 c:\\jdk1.4.1\\jre\\bin\\hpi.dll
0x6D300000 - 0x6D30D000 c:\\jdk1.4.1\\jre\\bin\\verify.dll
0x6D210000 - 0x6D228000 c:\\jdk1.4.1\\jre\\bin\\java.dll
0x6D320000 - 0x6D32D000 c:\\jdk1.4.1\\jre\\bin\\zip.dll
0x77BF0000 - 0x77BF7000 C:\\WINDOWS\\System32\\rpcltc1.dll
0x6D000000 - 0x6D0F6000 C:\\jdk1.4.1\\jre\\bin\\awt.dll
0x77C00000 - 0x77C18000 C:\\WINDOWS\\System32\\WINSPOOL.DRV
0x76AB0000 - 0x76AB5000 C:\\WINDOWS\\System32\\IMM32.dll
0x77B20000 - 0x77BD7000 C:\\WINDOWS\\system32\\ole32.dll
0x76AC0000 - 0x76ADD000 C:\\WINDOWS\\System32\\imagehlp.dll
0x731B0000 - 0x731BA000 C:\\WINDOWS\\System32\\PSAPI.DLL
Local Time = Thu Mar 21 18:33:09 2002
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-beta-b06 mixed mode)
#
# An error report file has been saved as hs_err_pid200.log.
# Please refer to the file for further information.
#
----------log:(0/0)----------
result: Failed. unexpected exit code: exit code 1
Specific Machine Info:
======================
Hostname: linux-21
Os: Windows NT 4.0
======================================================================