vista + java

B

Bumsys

I work on windows vista. When I try to get information from register
using java I have error:

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77722086, pid=1008,
tid=3408
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing
windows-x86)
# Problematic frame:
# C [ntdll.dll+0x62086]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

--------------- T H R E A D ---------------

Current thread (0x041b9800): JavaThread
"Thread-5" [_thread_in_native, id=3408, stack(0x03c00000,0x03c50000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x032d7da4

Registers:
EAX=0x2dfc0ec5, EBX=0x04d211f0, ECX=0x00940000, EDX=0x04d211f0
ESP=0x03c4f830, EBP=0x03c4f864, ESI=0x032d7da0, EDI=0x04d211e8
EIP=0x77722086, EFLAGS=0x00010206

Top of Stack: (sp=0x03c4f830)
0x03c4f830: 00000000 00940000 04d211f0 2775b618
0x03c4f840: 041b0101 6d878d97 2775b618 6d85c48a
0x03c4f850: 041b9800 6d85cac6 041b9800 6d9a5d5c
0x03c4f860: 04d211e8 03c4f878 777218c3 04d211f0
0x03c4f870: 80000001 03c4f900 03c4f88c 761d7a7e
0x03c4f880: 00940000 00000000 04d211e8 03c4f8d8
0x03c4f890: 770fa097 00940000 00000000 04d211f0
0x03c4f8a0: c50b3889 80000001 04d211f0 03c4f900

Instructions: (pc=0x77722086)
0x77722076: c1 ee 03 33 f0 33 35 84 52 78 77 89 7d fc 33 f1
0x77722086: 8b 46 04 89 45 f4 c6 47 07 80 c6 47 06 00 8b 5e


Stack: [0x03c00000,0x03c50000], sp=0x03c4f830, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
C [ntdll.dll+0x62086]
C [ntdll.dll+0x618c3]
C [kernel32.dll+0x47a7e]
C [msvcrt.dll+0xa097]
C [jRegistryKey.dll+0x1add]
C [jRegistryKey.dll+0x1b9a]
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
=>0x041b9800 JavaThread "Thread-5" [_thread_in_native, id=3408,
stack(0x03c00000,0x03c50000)]
0x041e8000 JavaThread "Timer-0" [_thread_blocked, id=1496,
stack(0x03bb0000,0x03c00000)]
0x04c10400 JavaThread "TimerQueue" daemon [_thread_blocked, id=3128,
stack(0x03b60000,0x03bb0000)]
0x0424ec00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3864,
stack(0x03d60000,0x03db0000)]
0x03729000 JavaThread "AWT-Windows" daemon [_thread_in_native,
id=668, stack(0x03b10000,0x03b60000)]
0x03728c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=1316,
stack(0x03a70000,0x03ac0000)]
0x03728800 JavaThread "Java2D Disposer" daemon [_thread_blocked,
id=2240, stack(0x03920000,0x03970000)]
0x009f9000 JavaThread "Low Memory Detector" daemon [_thread_blocked,
id=2692, stack(0x035d0000,0x03620000)]
0x009e3800 JavaThread "CompilerThread0" daemon [_thread_blocked,
id=2908, stack(0x03580000,0x035d0000)]
0x009dac00 JavaThread "Attach Listener" daemon [_thread_blocked,
id=1708, stack(0x03530000,0x03580000)]
0x009d6000 JavaThread "Finalizer" daemon [_thread_blocked, id=3256,
stack(0x00bf0000,0x00c40000)]
0x009d1c00 JavaThread "Reference Handler" daemon [_thread_blocked,
id=2444, stack(0x00ba0000,0x00bf0000)]
0x009b1c00 JavaThread "main" [_thread_blocked, id=3552,
stack(0x001c0000,0x00210000)]

Other Threads:
0x009d0800 VMThread [stack: 0x00b20000,0x00b70000] [id=1216]
0x00a0c400 WatcherThread [stack: 0x03620000,0x03670000] [id=3956]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 960K, used 242K [0x071e0000, 0x072e0000,
0x09940000)
eden space 896K, 20% used [0x071e0000, 0x0720e1e8, 0x072c0000)
from space 64K, 91% used [0x072c0000, 0x072ce958, 0x072d0000)
to space 64K, 0% used [0x072d0000, 0x072d0000, 0x072e0000)
tenured generation total 9248K, used 7384K [0x09940000, 0x0a248000,
0x271e0000)
the space 9248K, 79% used [0x09940000, 0x0a076368, 0x0a076400,
0x0a248000)
compacting perm gen total 12288K, used 5618K [0x271e0000,
0x27de0000, 0x2b1e0000)
the space 12288K, 45% used [0x271e0000, 0x2775c8a8, 0x2775ca00,
0x27de0000)
ro space 8192K, 62% used [0x2b1e0000, 0x2b6e2a28, 0x2b6e2c00,
0x2b9e0000)
rw space 12288K, 52% used [0x2b9e0000, 0x2c0286b8, 0x2c028800,
0x2c5e0000)

Dynamic libraries:
0x00400000 - 0x00423000 C:\auto\jre1.6\bin\java.exe
0x776c0000 - 0x777de000 C:\Windows\system32\ntdll.dll
0x76190000 - 0x76268000 C:\Windows\system32\kernel32.dll
0x76560000 - 0x7661f000 C:\Windows\system32\ADVAPI32.dll
0x76350000 - 0x76413000 C:\Windows\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 C:\auto\jre1.6\bin\msvcr71.dll
0x6d7c0000 - 0x6da10000 C:\auto\jre1.6\bin\client\jvm.dll
0x760a0000 - 0x7613e000 C:\Windows\system32\USER32.dll
0x76050000 - 0x7609b000 C:\Windows\system32\GDI32.dll
0x74c60000 - 0x74c93000 C:\Windows\system32\WINMM.dll
0x770f0000 - 0x7719a000 C:\Windows\system32\msvcrt.dll
0x771a0000 - 0x772e4000 C:\Windows\system32\ole32.dll
0x76270000 - 0x762fc000 C:\Windows\system32\OLEAUT32.dll
0x74c20000 - 0x74c58000 C:\Windows\system32\OLEACC.dll
0x77860000 - 0x7787e000 C:\Windows\system32\IMM32.DLL
0x76490000 - 0x76557000 C:\Windows\system32\MSCTF.dll
0x75db0000 - 0x75ddc000 C:\Windows\system32\apphelp.dll
0x76420000 - 0x76429000 C:\Windows\system32\LPK.DLL
0x77380000 - 0x773fd000 C:\Windows\system32\USP10.dll
0x6d270000 - 0x6d278000 C:\auto\jre1.6\bin\hpi.dll
0x75f70000 - 0x75f77000 C:\Windows\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\auto\jre1.6\bin\verify.dll
0x6d310000 - 0x6d32f000 C:\auto\jre1.6\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\auto\jre1.6\bin\zip.dll
0x6d000000 - 0x6d12e000 C:\auto\jre1.6\bin\awt.dll
0x71390000 - 0x713d1000 C:\Windows\system32\WINSPOOL.DRV
0x74fc0000 - 0x74fff000 C:\Windows\system32\uxtheme.dll
0x00950000 - 0x00965000 C:\Program Files\TightVNC\VNCHooks.dll
0x76620000 - 0x770ee000 C:\Windows\system32\shell32.dll
0x76430000 - 0x76485000 C:\Windows\system32\SHLWAPI.dll
0x74d00000 - 0x74e94000 C:\Windows\WinSxS
\x86_microsoft.windows.common-
controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll
0x6d210000 - 0x6d263000 C:\auto\jre1.6\bin\fontmanager.dll
0x6d3b0000 - 0x6d3d4000 C:\auto\jre1.6\bin\jpeg.dll
0x6d570000 - 0x6d583000 C:\auto\jre1.6\bin\net.dll
0x777e0000 - 0x7780d000 C:\Windows\system32\WS2_32.dll
0x77850000 - 0x77856000 C:\Windows\system32\NSI.dll
0x755d0000 - 0x7560b000 C:\Windows\system32\mswsock.dll
0x75610000 - 0x75616000 C:\Windows\System32\wship6.dll
0x6d590000 - 0x6d599000 C:\auto\jre1.6\bin\nio.dll
0x752b0000 - 0x752b6000 C:\Windows\System32\wshtcpip.dll
0x750f0000 - 0x750ff000 C:\Windows\system32\NLAapi.dll
0x75840000 - 0x75859000 C:\Windows\system32\IPHLPAPI.DLL
0x75800000 - 0x75835000 C:\Windows\system32\dhcpcsvc.DLL
0x75a70000 - 0x75a9b000 C:\Windows\system32\DNSAPI.dll
0x75e10000 - 0x75e24000 C:\Windows\system32\Secur32.dll
0x757f0000 - 0x757f7000 C:\Windows\system32\WINNSI.DLL
0x757d0000 - 0x757f0000 C:\Windows\system32\dhcpcsvc6.DLL
0x71da0000 - 0x71da8000 C:\Windows\System32\winrnr.dll
0x76300000 - 0x76349000 C:\Windows\system32\WLDAP32.dll
0x71d90000 - 0x71d9f000 C:\Windows\system32\napinsp.dll
0x71c50000 - 0x71c62000 C:\Windows\system32\pnrpnsp.dll
0x03fa0000 - 0x03fb9000 C:\Program Files\Bonjour\mdnsNSP.dll
0x71c80000 - 0x71c86000 C:\Windows\system32\rasadhlp.dll
0x6d180000 - 0x6d1a3000 C:\auto\jre1.6\bin\dcpr.dll
0x62380000 - 0x6238a000 C:\auto\lib-work\jRegistryKey.dll

VM Arguments:
jvm_args: -Xmx512m -Xrs
java_command: de.alfa.autoupdate.AutoUpdateUI -HAUTOUPD -Salfa01 -
Uautoupd -Pautoupd -A NEWSSUITE -Uautoupd -P autoupd -T -Gde
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=lib-work;C:\Windows\system32;C:\Windows;C:\Windows
\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:
\oracle\bin;C:\Program Files\cvsnt;C:\mksnt;C:\usr\local\wbin;C:\vim
\vim55;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;C:\Program
Files\Microsoft Visual Studio 9.0\Common7\IDE;
USERNAME=alfa
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 8, GenuineIntel



--------------- S Y S T E M ---------------

OS: Windows Vista Build 6000

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 14
stepping 8, cmov, cx8, fxsr, mmx, sse, sse2, sse3

Memory: 4k page, physical 1562176k(889212k free), swap
3371916k(2404056k free)

vm_info: Java HotSpot(TM) Client VM (10.0-b19) for windows-x86 JRE
(1.6.0_05-b13), built on Feb 22 2008 01:16:53 by "java_re" with MS VC+
+ 7.1

time: Thu Aug 21 16:11:46 2008
elapsed time: 88 seconds


I run the following code:

private static boolean isRegistryToolsDisabled() {
Logger.getLogger(RegUtil.class).debug("are registry tools
disabled");
boolean retValue = false;
final int disabledNumber = 2;
final String keyPath = "SOFTWARE\\Microsoft\\Windows\
\CurrentVersion\\Policies\\System";
Logger.getLogger(RegUtil.class).debug("key: " + keyPath);
RegistryKey rk = new RegistryKey(RootKey.HKEY_CURRENT_USER,
keyPath);
Logger.getLogger(RegUtil.class).debug("checking exists:");
boolean exists = rk.exists();
Logger.getLogger(RegUtil.class).debug("key exists: " +
exists);
if (exists) {
boolean hasValue = rk.hasValue("DisableRegistryTools");
Logger.getLogger(RegUtil.class).debug("has value: " +
hasValue);
if (hasValue) {
RegistryValue value =
rk.getValue("DisableRegistryTools");
Object obj = value.getData();
Logger.getLogger(RegUtil.class).debug(
"DisableRegistryTools: " + obj);
if (obj instanceof Number) {
Number n = (Number) obj;
int v = n.intValue();
retValue = v == disabledNumber;
}
}
}
Logger.getLogger(RegUtil.class).debug("disabled: " +
retValue);
return retValue;
}

What is the reason of error?
 
L

Lothar Kimmeringer

C [jRegistryKey.dll+0x1add] [,,,[

What is the reason of error?

According to http://sourceforge.net/projects/jregistrykey/
the supported operating systems are
All 32-bit MS Windows (95/98/NT/2000/XP)
No Vista is metioned, so you should contact the developers
of this library to get this fixed.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 
H

Hal Rosser

This may not fix it, but one guy I know fixed it by removing the first Java
installation and reinstalling using the 32-bit version instead of the 64-bit
version.
 
R

Roedy Green

What is the reason of error?

I don't think there are any Sun-supplied classes to poke the Windows
registry. Where did you get that code? It will have JNI/C++. The
problem is likely in THAT code, or perhaps that code not being
defensive enough against your error using it.

You might want to show your program to its author.
 
R

Roedy Green

When you send your code to the author, I suggest using a different
email address. With a name like that, you are likely to be treated as
spam without even being read.
 
A

Andrew Thompson

I work on windows vista. When I try to get information from register
using java I have error:

There is an ongoing problem with Java and Vista that restricts even
'trusted' applications from reading or writing files outside a very
limited subset of directories in user.home.

I suspect that is the problem here.

Using webstart to launch the applet will *not* solve that problem,
since webstart apps. are affected the same way.
 
A

Arne Vajhøj

Andrew said:
There is an ongoing problem with Java and Vista that restricts even
'trusted' applications from reading or writing files outside a very
limited subset of directories in user.home.

I suspect that is the problem here.

I don't think it is an applet - there were a command line
given.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top