Unable to start a new browser: Access violation

27 views
Skip to first unread message

Stan

unread,
Aug 25, 2006, 2:12:51 PM8/25/06
to watij
I have a problem opening a new IE browser window using BeanShell
desktop

I used these installation instructions
1) Download Watij 3.0.1 Beta
2) Unzip it into C:\Program Files\Watij\ folder
3) Copy jniwrap.dll from C:\Program Files\Watij\ to C:\Windows\System32
(as said in instructions on page http://www.watij.com/wiki:quick_start)
4) Execute 'launchWatijBeanShell.bat'
5) Type in two commands:
a) IE ie = new IE();
b) ie.start("www.google.com");

- I hava jdk1.5 installed
- I get an error, in the BeanShell Desktop
// Error: // Uncaught Exception: Method Invocation ie.start : at Line:
1 : in file: <unknown file> : ie .start ( "www.google.com" )

Target exception: java.lang.NullPointerException

java.lang.NullPointerException
at
com.jniwrapper.win32.automation.OleMessageLoop.bindObject(SourceFile:220)
at watij.utilities.IUnknownBinder.bind(IUnknownBinder.java:27)
at watij.runtime.ie.IEUtil.bind(IEUtil.java:30)
at watij.runtime.ie.IE.setupListener(IE.java:139)
at watij.runtime.ie.IE.setupListener(IE.java:92)
at watij.runtime.ie.IE.init(IE.java:77)
at watij.runtime.ie.IE.start(IE.java:462)
at watij.runtime.ie.IE.start(IE.java:456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.bsh % run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

- Console window shows an error:
Access violation: attempting to write memory at address 02D645D8
Native function stack data:
0,2d76818,20003,20c0150,0,1006ec,2e04458,16d

Interestingly enough, I tried exactly the same installation steps on
PC#2 at home and had no problems at all. The only difference between
PC#1 and PC#2 that I can think of is that I don't have admin
priveledges on PC#1, which is a corporate computer. PC#2 is my home
computer where I am always logged in as an admin.
Both are running WinXP SP2.

Any help is greatly appreciated, since we see a great potential in
Watij :)

Brian Knorr

unread,
Aug 25, 2006, 2:38:06 PM8/25/06
to wa...@googlegroups.com
Stan,
 
We are releasing a 3.0.2 Beta this weekend...please try this version out - it should remove the issues you are seeing.  Also you can get the latest from SVN and build Watij manually if you would like to try it out now.  Here is a link on how to do this http://www.watij.com/wiki:build_instructions
 
Thanks,
 
Brian

 
On 8/25/06, Stan <stan....@gmail.com> wrote:

I have a problem opening a new IE browser window using BeanShell
desktop

I used these installation instructions
1) Download Watij 3.0.1 Beta
2) Unzip it into C:\Program Files\Watij\ folder
3) Copy jniwrap.dll from C:\Program Files\Watij\ to C:\Windows\System32
(as said in instructions on page http://www.watij.com/wiki:quick_start)
4) Execute 'launchWatijBeanShell.bat'
5) Type in two commands:
a) IE ie = new IE();
b) ie.start("www.google.com");

- I hava jdk1.5 installed
- I get an error, in the BeanShell Desktop
// Error: // Uncaught Exception: Method Invocation ie.start : at Line:
1 : in file: <unknown file> : ie .start ( " www.google.com" )

Target exception: java.lang.NullPointerException

java.lang.NullPointerException
       at
com.jniwrapper.win32.automation.OleMessageLoop.bindObject(SourceFile:220)
       at watij.utilities.IUnknownBinder.bind(IUnknownBinder.java:27)
       at watij.runtime.ie.IEUtil.bind(IEUtil.java:30)
       at watij.runtime.ie.IE.setupListener(IE.java:139)
       at watij.runtime.ie.IE.setupListener (IE.java:92)

       at watij.runtime.ie.IE.init(IE.java:77)
       at watij.runtime.ie.IE.start(IE.java:462)
       at watij.runtime.ie.IE.start(IE.java:456)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at bsh.Reflect.invokeMethod(Unknown Source)
       at bsh.Reflect.invokeObjectMethod(Unknown Source)
       at bsh.Name.invokeMethod(Unknown Source)
       at bsh.BSHMethodInvocation.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.Interpreter.bsh % run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)

- Console window shows an error:
Access violation: attempting to write memory at address 02D645D8
Native function stack data:
0,2d76818,20003,20c0150,0,1006ec,2e04458,16d

Interestingly enough, I tried exactly the same installation steps on
PC#2 at home and had no problems at all. The only difference between
PC#1 and PC#2 that I can think of is that I don't have admin
priveledges on PC#1, which is a corporate computer. PC#2 is my home
computer where I am always logged in as an admin.
Both are running WinXP SP2.

Any help is greatly appreciated, since we see a great potential in
Watij :)




--
Brian Knorr
www.watij.com

Stan

unread,
Aug 28, 2006, 1:15:38 PM8/28/06
to watij
Brian,

I downloaded Watij 3.0.2 Beta and replaced all Watij files. The problem
still exists. Any thoughts on that?

Thank you,

Stan

Brian Knorr

unread,
Aug 28, 2006, 2:13:07 PM8/28/06
to wa...@googlegroups.com
Would you mind reposting the stack trace you are seeing.  Also can you run any of the unit tests in your IDE?
 
Thanks,
 
Brian

 

Stan

unread,
Aug 29, 2006, 1:49:56 PM8/29/06
to watij
Brian Knorr wrote:
> Would you mind reposting the stack trace you are seeing. Also can you run
> any of the unit tests in your IDE?

Hi Brian
Sure, here is the new stack:

bsh % IE ie = new IE();
bsh % ie.start("http://www.google.com");


// Error: // Uncaught Exception: Method Invocation ie.start : at Line:

1 : in file: <unknown file> : ie .start ( "http://www.google.com" )

Target exception: java.lang.NullPointerException

bsh % java.lang.NullPointerException
at com.jniwrapper.win32.ie.m.<init>(SourceFile:25)
at com.jniwrapper.win32.ie.BrowserSupport.init(SourceFile:329)
at watij.runtime.ie.IESupport.<init>(IESupport.java:54)
at watij.runtime.ie.IESupport.<init>(IESupport.java:58)
at watij.runtime.ie.IE.start(IE.java:254)
at watij.runtime.ie.IE.start(IE.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)

at bsh.Interpreter.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I tried creating a new project in Eclipse with a basic source code:
import watij.runtime.ie.*;
import junit.framework.TestCase;
public class foo extends TestCase{
public static void main(String[] args) throws Exception{


IE ie = new IE();

ie.start("http://www.google.com");
}
}

I added junit.jar and watij.jar files into Eclipse Properties --> Java
Build path --> Libraries so that the Libraries page now has three
elements:
1) JRE System Library [jre1.5.0_06]
2) junit
3) watij

I get this error when trying to run project 'foo':
<terminated> foo [Java Application] C:\Program
Files\Java\jre1.5.0_06\bin\javaw.exe
Exception in thread "main" java.lang.NoClassDefFoundError:
com/jniwrapper/win32/ie/WebBrowser
at foo.main(foo.java:6)

Jake Dempsey

unread,
Aug 29, 2006, 2:31:33 PM8/29/06
to wa...@googlegroups.com
I think you are seeing two separate issues.  The eclipse problem is due to you not having some additional jar files that are needed. (watijcom.jar, jniwrap-3.1.jar, jexplorer-1.6.jar,comfyj-2.1.jar).

Not sure about the beanshell issue.

Just as a side note, there is a bug in the Eclipse compiler that may prevent you from running watij tests in the IDE.

Jake Dempsey
www.watij.com

On 8/29/06, Stan <stan....@gmail.com> wrote:

Brian Knorr wrote:
> Would you mind reposting the stack trace you are seeing.  Also can you run
> any of the unit tests in your IDE?

Hi Brian
Sure, here is the new stack:

bsh % IE ie = new IE();
bsh % ie.start("http://www.google.com");
// Error: // Uncaught Exception: Method Invocation ie.start : at Line:
1 : in file: <unknown file> : ie .start ( " http://www.google.com" )

Target exception: java.lang.NullPointerException

bsh % java.lang.NullPointerException
        at com.jniwrapper.win32.ie.m.<init>(SourceFile:25)
        at com.jniwrapper.win32.ie.BrowserSupport.init(SourceFile:329)
        at watij.runtime.ie.IESupport.<init>(IESupport.java:54)
        at watij.runtime.ie.IESupport.<init>(IESupport.java:58)
        at watij.runtime.ie.IE.start(IE.java:254)
        at watij.runtime.ie.IE.start(IE.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
--
Jake Dempsey
www.watij.com

Jake Dempsey

unread,
Aug 29, 2006, 2:34:36 PM8/29/06
to wa...@googlegroups.com
If you want to get the code in your post running you will need the jar files in my previous post.  You will eventually need to add all the jar files in the lib directory to your classpath.

Jake Dempsey
www.watij.com
--
Jake Dempsey
www.watij.com

Stan

unread,
Aug 29, 2006, 3:14:18 PM8/29/06
to watij
Jake,
I did add comfyj-2.1.jar, jexplorer-1.6.jar, jniwrap-3.1.jar and
watijcom.jar to the project's "External JARs section". Now I have a new
error in the Eclipse (version 3.2):

Exception in thread "main" java.lang.NoClassDefFoundError:

com/jniwrapper/win32/MessageLoopThread
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at watij.runtime.ie.IESupport.createOleMessageLoop(IESupport.java:78)


at watij.runtime.ie.IESupport.<init>(IESupport.java:58)
at watij.runtime.ie.IE.start(IE.java:254)
at watij.runtime.ie.IE.start(IE.java:249)

at foo.main(foo.java:7)

Regards,
Stan

Brian Knorr

unread,
Aug 29, 2006, 5:12:25 PM8/29/06
to wa...@googlegroups.com
Please add all the jars from the lib folder into your project....thanks,
 
Brian

 
On 8/29/06, Stan <stan....@gmail.com> wrote:

Jake,
I did add comfyj-2.1.jar, jexplorer-1.6.jar, jniwrap-3.1.jar and
watijcom.jar to the project's "External JARs section". Now I have a new
error in the Eclipse (version 3.2):

Exception in thread "main" java.lang.NoClassDefFoundError:
com/jniwrapper/win32/MessageLoopThread
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(Unknown Source)
       at java.security.SecureClassLoader.defineClass(Unknown Source)
       at java.net.URLClassLoader.defineClass(Unknown Source)
       at java.net.URLClassLoader.access$100 (Unknown Source)

       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClassInternal (Unknown Source)

Stan

unread,
Aug 29, 2006, 5:27:39 PM8/29/06
to watij
Brian,
I did as you suggested. Now I see access violation error from Eclipse
IDE:

Exception c0000005, at 0085B010
Access violation: attempting to write memory at address 0085B010
Native function stack data: 0,85bad0,11,21,0,0,c0,46000000
Exception in thread "main" java.lang.NullPointerException


at com.jniwrapper.win32.ie.m.<init>(SourceFile:25)
at com.jniwrapper.win32.ie.BrowserSupport.init(SourceFile:329)
at watij.runtime.ie.IESupport.<init>(IESupport.java:54)

at watij.runtime.ie.IESupport.<init>(IESupport.java:58)
at watij.runtime.ie.IE.start(IE.java:254)
at watij.runtime.ie.IE.start(IE.java:249)

at foo.main(foo.java:6)


# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10001a41, pid=2640,
tid=2120
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode,
sharing)
# Problematic frame:
# C [jniwrap.dll+0x1a41]
#
Exception c0000005, at 0085BE50
Access violation: attempting to write memory at address 0085BE50
# An error report file with more information is saved as
hs_err_pid2640.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

Stan

unread,
Aug 29, 2006, 5:36:49 PM8/29/06
to watij
Here is the log file hs_err_pid2640.log

#


# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10001a41, pid=2640,
tid=2120
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode,
sharing)
# Problematic frame:
# C [jniwrap.dll+0x1a41]
#

--------------- T H R E A D ---------------
Current thread (0x00823850): JavaThread "main" [_thread_in_native,
id=2120]
siginfo: ExceptionCode=0xc0000005, reading address 0x00860000

Registers:
EAX=0x0006f4b0, EBX=0x00000004, ECX=0x00860000, EDX=0x00000002
ESP=0x0006f47c, EBP=0x0006f614, ESI=0x100080ee, EDI=0x0006f4da
EIP=0x10001a41, EFLAGS=0x00010202

Top of Stack: (sp=0x0006f47c)
0x0006f47c: 0006f4b0 00000010 00823910 0085fff0
0x0006f48c: 00000008 00860000 2b389900 00000000
0x0006f49c: 0006f0a0 0006f194 00000000 c0000005
0x0006f4ac: 0006f734 66666666 66666666 00823400
0x0006f4bc: 00823010 0082304c 35382c30 30316562
0x0006f4cc: 2c31312c 66666666 66666666 0000002c
0x0006f4dc: 00000000 00000000 00000000 00000000
0x0006f4ec: 00000000 00000000 00000000 00000000

Instructions: (pc=0x10001a41)
0x10001a31: a4 6a 10 8d 85 9c fe ff ff 50 8b 8d 7c fe ff ff
0x10001a41: 8b 11 52 ff 15 40 60 00 10 83 c4 0c 8d 95 b0 fe

Stack: [0x00030000,0x00070000), sp=0x0006f47c, free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
C [jniwrap.dll+0x1a41]
C [jniwrap.dll+0x1c3d]
j com.jniwrapper.Function.invokeVirtualFunc(IIB[BII[II)I+0
j
com.jniwrapper.FunctionCall.a(ZIIIIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+253
j
com.jniwrapper.FunctionCall.callVirtual(IIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+11
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)V+98
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;)V+8
j
com.jniwrapper.win32.com.impl.IUnknownImpl.addRef()Lcom/jniwrapper/ULongInt;+12
j
com.jniwrapper.win32.com.server.IUnknownServer.doQueryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)Z+46
j
com.jniwrapper.win32.com.server.IUnknownServer.queryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+3
j
com.jniwrapper.win32.com.server.IUnknownServer.create(Lcom/jniwrapper/win32/com/IUnknown;Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+70
j
com.jniwrapper.win32.com.server.IClassFactoryServer.createIClassFactory()Lcom/jniwrapper/win32/com/IClassFactory;+22
j com.jniwrapper.win32.ie.m.<init>(Lcom/jniwrapper/win32/ie/z;)V+30
j com.jniwrapper.win32.ie.BrowserSupport.init()V+6
j
watij.runtime.ie.IESupport.<init>(Lcom/jniwrapper/win32/automation/OleMessageLoop;)V+6
j watij.runtime.ie.IESupport.<init>()V+4
j watij.runtime.ie.IE.start()V+5
j watij.runtime.ie.IE.start(Ljava/lang/String;)V+1
j foo.main([Ljava/lang/String;)V+11
v ~StubRoutines::call_stub
V [jvm.dll+0x845a9]
V [jvm.dll+0xd9317]
V [jvm.dll+0x8447a]
V [jvm.dll+0x8b44a]
C [javaw.exe+0x14c5]
C [javaw.exe+0x3151]
C [kernel32.dll+0x16d4f]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.jniwrapper.Function.invokeVirtualFunc(IIB[BII[II)I+0
j
com.jniwrapper.FunctionCall.a(ZIIIIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+253
j
com.jniwrapper.FunctionCall.callVirtual(IIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+11
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)V+98
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;)V+8
j
com.jniwrapper.win32.com.impl.IUnknownImpl.addRef()Lcom/jniwrapper/ULongInt;+12
j
com.jniwrapper.win32.com.server.IUnknownServer.doQueryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)Z+46
j
com.jniwrapper.win32.com.server.IUnknownServer.queryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+3
j
com.jniwrapper.win32.com.server.IUnknownServer.create(Lcom/jniwrapper/win32/com/IUnknown;Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+70
j
com.jniwrapper.win32.com.server.IClassFactoryServer.createIClassFactory()Lcom/jniwrapper/win32/com/IClassFactory;+22
j com.jniwrapper.win32.ie.m.<init>(Lcom/jniwrapper/win32/ie/z;)V+30
j com.jniwrapper.win32.ie.BrowserSupport.init()V+6
j
watij.runtime.ie.IESupport.<init>(Lcom/jniwrapper/win32/automation/OleMessageLoop;)V+6
j watij.runtime.ie.IESupport.<init>()V+4
j watij.runtime.ie.IE.start()V+5
j watij.runtime.ie.IE.start(Ljava/lang/String;)V+1
j foo.main([Ljava/lang/String;)V+11
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00855210 JavaThread "IESupportLoop.0" daemon [_thread_blocked,
id=2072]
0x00853b60 JavaThread "com.jniwrapper.NativeResourceCollector" daemon
[_thread_blocked, id=2348]
0x00830510 JavaThread "Low Memory Detector" daemon [_thread_blocked,
id=3048]
0x0082f890 JavaThread "CompilerThread0" daemon [_thread_blocked,
id=1512]
0x0082e700 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=2160]
0x0082d9d0 JavaThread "Finalizer" daemon [_thread_blocked, id=2108]
0x0082c750 JavaThread "Reference Handler" daemon [_thread_blocked,
id=1036]
=>0x00823850 JavaThread "main" [_thread_in_native, id=2120]

Other Threads:
0x0082b9c0 VMThread [id=1228]
0x008310c0 WatcherThread [id=884]

VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 576K, used 413K [0x22b80000, 0x22c20000,
0x23060000)
eden space 512K, 70% used [0x22b80000, 0x22bda140, 0x22c00000)
from space 64K, 82% used [0x22c10000, 0x22c1d300, 0x22c20000)
to space 64K, 0% used [0x22c00000, 0x22c00000, 0x22c10000)
tenured generation total 2020K, used 2002K [0x23060000, 0x23259000,
0x26b80000)
the space 2020K, 99% used [0x23060000, 0x23254ba0, 0x23254c00,
0x23259000)
compacting perm gen total 8192K, used 1107K [0x26b80000, 0x27380000,
0x2ab80000)
the space 8192K, 13% used [0x26b80000, 0x26c94fa0, 0x26c95000,
0x27380000)
ro space 8192K, 63% used [0x2ab80000, 0x2b08b178, 0x2b08b200,
0x2b380000)
rw space 12288K, 46% used [0x2b380000, 0x2b919fa8, 0x2b91a000,
0x2bf80000)

Dynamic libraries:
0x00400000 - 0x0040c000 C:\Program


Files\Java\jre1.5.0_06\bin\javaw.exe

0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x6d670000 - 0x6d804000 C:\Program
Files\Java\jre1.5.0_06\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre1.5.0_06\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d640000 - 0x6d64c000 C:\Program
Files\Java\jre1.5.0_06\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\Program Files\Java\jre1.5.0_06\bin\java.dll
0x6d660000 - 0x6d66f000 C:\Program Files\Java\jre1.5.0_06\bin\zip.dll
0x10000000 - 0x1000b000 C:\WINDOWS\system32\jniwrap.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x77120000 - 0x771ac000 C:\WINDOWS\system32\oleaut32.dll

VM Arguments:
java_command: foo
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=c:\Program Files\java\bin;c:\program
files\Watij;c:\WINDOWS\system32;c:\program files\Watij\lib
PATH=c:\program
files\ruby\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel
USERNAME=(deleted_by_stan)
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel


--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1047924k(398264k free), swap
2519492k(1907480k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86,
built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0

Brian Knorr

unread,
Aug 29, 2006, 5:49:22 PM8/29/06
to wa...@googlegroups.com
Would you mind recopying the jniwrap.dll from the 3.02 beta distribution to the your system32 folder and try again...thanks,
 
Brian

 
On 8/29/06, Stan <stan....@gmail.com> wrote:
j  com.jniwrapper.Function.invokeVirtualFunc (IIB[BII[II)I+0

j
com.jniwrapper.FunctionCall.a(ZIIIIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+253
j
com.jniwrapper.FunctionCall.callVirtual(IIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+11
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)V+98
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;)V+8
j
com.jniwrapper.win32.com.impl.IUnknownImpl.addRef()Lcom/jniwrapper/ULongInt;+12
j
com.jniwrapper.win32.com.server.IUnknownServer.doQueryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)Z+46
j
com.jniwrapper.win32.com.server.IUnknownServer.queryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+3
j
com.jniwrapper.win32.com.server.IUnknownServer.create(Lcom/jniwrapper/win32/com/IUnknown;Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+70
j
com.jniwrapper.win32.com.server.IClassFactoryServer.createIClassFactory()Lcom/jniwrapper/win32/com/IClassFactory;+22
j  com.jniwrapper.win32.ie.m.<init>(Lcom/jniwrapper/win32/ie/z;)V+30
j  com.jniwrapper.win32.ie.BrowserSupport.init ()V+6
j
watij.runtime.ie.IESupport.<init>(Lcom/jniwrapper/win32/automation/OleMessageLoop;)V+6
j  watij.runtime.ie.IESupport.<init>()V+4
j  watij.runtime.ie.IE.start()V+5
j  watij.runtime.ie.IE.start (Ljava/lang/String;)V+1

j  foo.main([Ljava/lang/String;)V+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0x845a9]
V  [jvm.dll+0xd9317]
V  [jvm.dll+0x8447a]
V  [jvm.dll+0x8b44a]
C  [javaw.exe+0x14c5]
C  [ javaw.exe+0x3151]
C  [kernel32.dll+0x16d4f]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.jniwrapper.Function.invokeVirtualFunc(IIB[BII[II)I+0
j
com.jniwrapper.FunctionCall.a(ZIIIIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+253
j
com.jniwrapper.FunctionCall.callVirtual(IIBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)J+11
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;[Lcom/jniwrapper/Parameter;)V+98
j
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeVirtualMethod(IBLcom/jniwrapper/Parameter;)V+8
j
com.jniwrapper.win32.com.impl.IUnknownImpl.addRef()Lcom/jniwrapper/ULongInt;+12
j
com.jniwrapper.win32.com.server.IUnknownServer.doQueryInterface (Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)Z+46

j
com.jniwrapper.win32.com.server.IUnknownServer.queryInterface(Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+3
j
com.jniwrapper.win32.com.server.IUnknownServer.create(Lcom/jniwrapper/win32/com/IUnknown;Lcom/jniwrapper/win32/com/types/IID;Lcom/jniwrapper/win32/com/IUnknown;)V+70
j
com.jniwrapper.win32.com.server.IClassFactoryServer.createIClassFactory ()Lcom/jniwrapper/win32/com/IClassFactory;+22
--
Brian Knorr
www.watij.com

Stan

unread,
Aug 29, 2006, 6:22:06 PM8/29/06
to watij
The jniwrapper.dll from 3.0.2 distribution have been already copied
into system32 folder before my last three posts. I just re-downloaded
watij and re-copied the library just in case. The errors stay the same.
The version of this library shipped with watij 3.0.2 distribution is
3.0.0.0, size 45056 bytes. Is it the correct version/size of the
library?

Anson

unread,
Sep 12, 2006, 3:45:06 PM9/12/06
to watij
Perhaps a different tack: Brian, what mechanism does Watij/JExplorer
use to start a new browser?

-aB

Anson

unread,
Sep 14, 2006, 1:41:26 PM9/14/06
to watij
And another data point: I pulled the latest Watij from SVN, including
the new ComfyJ version, and one of the two machines that refused to
start browsers was finally able to do so. I have not yet been able to
test the other machine, but it looks like Watij 3.0.3 may resolve this
issue.

-aB

Lipton

unread,
Oct 3, 2006, 4:46:58 PM10/3/06
to watij
So, I was facing the same problem, and adding the jniwrap.dll to the
system32 folder cleared it up.

TG

Stan

unread,
Oct 4, 2006, 10:46:35 AM10/4/06
to watij
I had jniwrap.dll in system32 folder before. BTW, with Watij 3.1.0 the
issue doesn't exist anymore. Thank you!

Reply all
Reply to author
Forward
0 new messages