Unable to get Watij running

226 views
Skip to first unread message

Shantanu Kumar

unread,
Aug 26, 2012, 1:49:06 PM8/26/12
to watij
Hi,

This is the first time I am trying Watij, so please bear with me. I
have added the required JARs to the CLASSPATH (via local Maven repo)
and I am trying to run the demo code via Eclipse on 32-bit Linux on 32-
bit laptop. The JRE is crashing -- I enabled the logs and I can see
the following:

---------- BEGIN: crash log ----------
START
0 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
DefaultLibraryLoader.generateTmpFolderName: /tmp/
jxbrowser-1.3.1.Build.Unknown
2 [main] DEBUG com.jniwrapper.DefaultLibraryLoader - Finding
library libjniwrap.so
2 [main] DEBUG com.jniwrapper.DefaultLibraryLoader - Looking for
library in JAR jar:file:/home/shantanu/.m2/repository/watij/jniwrap-
native/1.3.1/jniwrap-native-1.3.1.jar!/libjniwrap.so
2 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
DefaultLibraryLoader.findLibraryInJars. Loading resources to: /tmp/
jxbrowser-1.3.1.Build.Unknown
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 3866870866
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 472875345
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 1649832605
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 2471583116
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 2510309190
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 2312075831
73 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 27462397
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 1262279373
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 3978389472
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 2308815678
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 824833137
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 149757488
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 778880671
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 1684113083
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 1179173453
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 1503190018
74 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 1979711703
75 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 2289182836
75 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 3828163878
75 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 871439848
75 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 342893562
75 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 175695640
75 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
checksumLongValue = 2852329394
77 [main] DEBUG com.jniwrapper.DefaultLibraryLoader -
candidateChecksum = 472875345
Allowed to load = true
380 [XpcMessageLoop] INFO com.teamdev.xpcom.a.b.a - XULRunner is
already extracted to /home/shantanu/.JxBrowser/xulrunner-linux-
version-1.9.2/xulrunner-linux
389 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - XULRunner GRE
Path: /home/shantanu/.JxBrowser/xulrunner-linux-version-1.9.2/
xulrunner-linux
390 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - LocationProvider
is null, so create a new one...
390 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - User home
directory: /home/shantanu
390 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a -
jxbrowser.xulrunner.dir property set to null
390 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - XULRunner
directory: /home/shantanu/.JxBrowser
391 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - XULRunner
version: xulrunner-linux-version-1.9.2
391 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - XULRunner profile
directory: /home/shantanu/.JxBrowser/xulrunner-linux-version-1.9.2-
profile
391 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - XULRunner profile
directory exists: true
391 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - Temp directory: /
tmp
391 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - Temp directory
exists: true
393 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - Initialize Mozilla
with GRE home: /home/shantanu/.JxBrowser/xulrunner-linux-version-1.9.2/
xulrunner-linux
419 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - Initialize
embedding...
449 [XpcMessageLoop] DEBUG com.teamdev.xpcom.a - Notifying Mozilla
profile...

(process:18175): GLib-GObject-CRITICAL **: /build/buildd/
glib2.0-2.32.3/./gobject/gtype.c:2722: You forgot to call
g_type_init()
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0335fb79, pid=18175, tid=2113465152
#
# JRE version: 7.0_05-b06
# Java VM: Java HotSpot(TM) Server VM (23.1-b03 mixed mode linux-x86 )
# Problematic frame:
# C [libgconf-2.so.4+0x15b79] gconf_enum_to_string+0xd59
#
# Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/shantanu/projects/workspace/watij-test/hs_err_pid18175.log

(process:18175): GLib-GObject-CRITICAL **: g_object_new: assertion
`G_TYPE_IS_OBJECT (object_type)' failed

(process:18175): GLib-GObject-CRITICAL **: g_object_ref: assertion
`G_IS_OBJECT (object)' failed
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
---------- END: crash log ----------

Shantanu
Reply all
Reply to author
Forward
0 new messages