Having problems using Rational Application Developer for Websphere

Bug #1734480 reported by Praveen Reddy

This bug report was converted into a question: question #661214: Having problems using Rational Application Developer for Websphere.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Invalid
Undecided
RaiMan

Bug Description

Hi RaiMan,

Since my internal downloads are blocked in my system, i tried an Offline Setup as per below link steps. But still i'm getting below Error when i'm running my code. I've configured my SikuliAPI.jar file into my java project. Please help me on this.

http://sikulix.com/specials/files/c77aee9efb9985e68684cf70bbaa21a9-3.html

Error Logs:

[TestNG] Running:
  C:\Users\Kumar\IBM\rationalsdp\workspace\RoughWork\testng.xml

[error] RunTimeINIT: Java version not detected (using 7): pwi3270sr7fp1-20140712_01 (SR7 FP1)
java ?7?-32 version pwi3270sr7fp1-20140712_01 (SR7 FP1) vm 2.6 class 51.0 arch x86

*** system properties dump
com.ibm.oti.vm.bootstrap.library.path = C:\IBM\SDP\jdk\jre\bin\default;C:\IBM\SDP\jdk\jre\bin
com.ibm.vm.bitmode = 32
com.ibm.zero.version = 2
java.class.path = C:\IBM\SDP\plugins\org.testng.eclipse_6.11.0.201703011520\lib\testng-remote.jar;C:\Users\KUMAR\IBM\rationalsdp\workspace\RoughWork\target\test-classes;C:\Users\KUMAR\IBM\rationalsdp\workspace\RoughWork\target\classes;C:\Downloads\sikulixapi.jar;C:\Users\KUMAR\.m2\repository\org\apache\poi\p
....................
java.class.version = 51.0
java.compiler = j9jit26
java.endorsed.dirs = C:\IBM\SDP\jdk\jre\lib\endorsed
java.ext.dirs = C:\IBM\SDP\jdk\jre\lib\ext
java.fullversion = JRE 1.7.0 IBM J9 2.6 Windows 7 x86-32 20140627_204598 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR7_20140627_0924_B204598
JIT - r11.b06_20140409_61252.04
GC - R26_Java726_SR7_20140627_0924_B204598
J9CL - 20140627_204598
java.home = C:\IBM\SDP\jdk\jre
java.io.tmpdir = C:\Users\KUMAR\AppData\Local\Temp\1\
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = pwi3270sr7fp1-20140712_01 (SR7 FP1)
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.7
java.vendor = IBM Corporation
java.vendor.url = http://www.ibm.com/
java.version = 1.7.0
java.vm.info = JRE 1.7.0 Windows 7 x86-32 20140627_204598 (JIT enabled, AOT enabled)
os.arch = x86
os.encoding = UTF8
os.name = Windows 7
os.version = 6.1
path.separator = ;
sun.arch.data.model = 32
*** system properties dump end

Unhandled exception
Type=Segmentation error vmState=0x00040000
J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 ExceptionAddress=67CC737B ContextFlags=0001003f
Handler1=67CB0120 Handler2=686EEF70 InaccessibleAddress=00000008
EDI=04DA0894 ESI=00000000 EAX=00000000 EBX=0064E300
ECX=00000020 EDX=2FF81398
EIP=67CC737B ESP=034BF1E0 EBP=034BF238 EFLAGS=00010246
GS=002B FS=0053 ES=002B DS=002B
Module=C:\IBM\SDP\jdk\jre\bin\default\j9vm26.dll
Module_base_address=67CA0000 Offset_in_DLL=0002737b
Target=2_60_20140627_204598 (Windows 7 6.1 build 7601 Service Pack 1)
CPU=x86 (2 logical CPUs) (0x15ff8e000 RAM)

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Opinion
assignee: nobody → RaiMan (raimund-hocke)
description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote :

I shortened the java dump info a little.

Please try with an offline setup version 1.1.2 nightly
https://raiman.github.io/SikuliX-2014/nightly.html

Helpful would be a small test just with a basic
Screen scr = new Screen();

as a main program without any extended Java environment (other libraries and stuff) - just Java and sikulixapi.jar.

description: updated
description: updated
Revision history for this message
Praveen Reddy (praveenreddysmarty) wrote :
Download full text (3.4 KiB)

Hi RaiMan,

I have tried in the above manner you have mentioned. Got the below error.
Small test:
Screen scr = new Screen();

Error details:

[error] RunTimeINIT: ***** EXPERIMENTAL: Running on Java 9 *****
Unhandled exception
Type=Segmentation error vmState=0x00040000
J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 ExceptionAddress=68F9737B ContextFlags=0001003f
Handler1=68F80120 Handler2=68F4EF70 InaccessibleAddress=00000008
EDI=059D3094 ESI=00000000 EAX=00000000 EBX=0065E700
ECX=00000020 EDX=1023CBB0
EIP=68F9737B ESP=009EF15C EBP=009EF1B4 EFLAGS=00010246
GS=002B FS=0053 ES=002B DS=002B
Module=C:\IBM\SDP\jdk\jre\bin\default\j9vm26.dll
Module_base_address=68F70000 Offset_in_DLL=0002737b
Target=2_60_20140627_204598 (Windows 7 6.1 build 7601 Service Pack 1)
CPU=x86 (2 logical CPUs) (0x15ff8e000 RAM)
----------- Stack Backtrace -----------
_getIntField@12+0x2b (jnisup.asm:3565, 0x68F9737B [j9vm26+0x2737b])
_Java_org_bridj_JNI_bindJavaMethodsToCFunctions@12+0x291 (0x6A997031 [bridj+0x7031])
VMprJavaSendNative+0x4e1 (jnisend.asm:505, 0x68F94F01 [j9vm26+0x24f01])
java_lang_J9VMInternals_initializeImpl+0xad (internals.asm:1051, 0x67CC694D [jclse7b_26+0x694d])
resolveStaticMethodRefInto+0x121 (resolvesupport.c:331, 0x68FB6C61 [j9vm26+0x46c61])
resolveStaticMethodRef+0x21 (resolvesupport.c:360, 0x68FB6CF1 [j9vm26+0x46cf1])
resolveHelper+0x57f (javamisc.asm:1189, 0x68F8788F [j9vm26+0x1788f])
java_lang_J9VMInternals_initializeImpl+0xad (internals.asm:1051, 0x67CC694D [jclse7b_26+0x694d])
resolveClassRef+0x2d5 (resolvesupport.c:237, 0x68FB69C5 [j9vm26+0x469c5])
resolveHelper+0x439 (javamisc.asm:1113, 0x68F87749 [j9vm26+0x17749])
JVM_InvokeMethod+0x54 (sunvmi.c:246, 0x67D0D834 [jclse7b_26+0x4d834])
_Java_sun_reflect_NativeMethodAccessorImpl_invoke0@20+0x15 (0x67C98AF2 [java+0x8af2])
gpProtectedRunCallInMethod+0x1c (jnicsup.c:307, 0x68F9059C [j9vm26+0x2059c])
signalProtectAndRunGlue+0xc (jniprotect.c:35, 0x68FC67DC [j9vm26+0x567dc])
j9sig_protect+0x44 (j9signal.c:150, 0x68F4F154 [J9PRT26+0xf154])
gpProtectAndRun+0xc3 (jniprotect.c:72, 0x68FC68A3 [j9vm26+0x568a3])
gpCheckCallin+0x61 (jnicsup.c:525, 0x68F90851 [j9vm26+0x20851])
callStaticVoidMethod+0x43 (jnicgen.c:304, 0x68F8FF33 [j9vm26+0x1ff33])
(0x013B3BA2 [javaw+0x3ba2])
(0x013BB4C2 [javaw+0xb4c2])
(0x013BB54C [javaw+0xb54c])
BaseThreadInitThunk+0x12 (0x76F5336A [kernel32+0x1336a])
RtlInitializeExceptionChain+0x63 (0x77E19902 [ntdll+0x39902])
RtlInitializeExceptionChain+0x36 (0x77E198D5 [ntdll+0x398d5])
---------------------------------------
JVMDUMP039I Processing dump event "gpf", detail "" at 2017/11/27 21:48:54 - please wait.
JVMDUMP032I JVM requested System dump using 'C:\Users\KUMAR\IBM\rationalsdp\workspace\RoughWork\core.20171127.214854.11492.0001.dmp' in response to an event
JVMDUMP010I System dump written to C:\Users\KUMAR\IBM\rationalsdp\workspace\RoughWork\core.20171127.214854.11492.0001.dmp
JVMDUMP032I JVM requested Java dump using 'C:\Users\KUMAR\IBM\rationalsdp\workspace\RoughWork\javacore.20171127.214854.11492.0002.txt' in response to an event
JVMDUMP010I Java dump written to C:\Users\KUMAR\IBM\rationalsdp\workspace\RoughWork\javacore.20171127.214854.11492.0002.txt
JVMDUMP032I J...

Read more...

Revision history for this message
RaiMan (raimund-hocke) wrote :

Is it really a Java 9?

Can you try with a Java 1.8?

Revision history for this message
Praveen Reddy (praveenreddysmarty) wrote :

Its Java 1.8 only; available in my machine and i'm getting that Error. Please help me on this.

Revision history for this message
RaiMan (raimund-hocke) wrote :

according to your original bug description it is some IBM Java 1.7

So please make sure, to have a clean Java 1.7 or 1.8 environment for the above SikuliX basic test.

Revision history for this message
Praveen Reddy (praveenreddysmarty) wrote :
  • Java version.docx Edit (46.2 KiB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)

Hey RaiMan,

I've checked my machine for JRE in C-Drive and Control panel programs. My system has default JRE-Java 6 Update 20 which will come for windows, I've tried with this but it didn't worked; so recently only i have installed Java 8 update 45, but still its not working. Attaching screenshots of my Java details. Please look into it. Frankly speaking i'm not sure why that 1.7 is coming in error details.

Many Thanks,
Praveen Reddy

Revision history for this message
RaiMan (raimund-hocke) wrote :

what do you get, when you run from a command line:
java -version

Revision history for this message
Praveen Reddy (praveenreddysmarty) wrote :

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode)

Revision history for this message
RaiMan (raimund-hocke) wrote :

ok, then from such a command line run this:

java -Dsikuli.Debug=3 -jar <path-to-sikulixapi.jar>

... just press cancel at the popup

and paste the output

Revision history for this message
Praveen Reddy (praveenreddysmarty) wrote :

Hey RaiMan,

Here is the Output: Also please be informed that I'm able to use successfully sikuli-script.jar(but it doesn't have teserract OCR features. However I'm not able to use any SikuliAPI.Jar; I'm working in Rational Application Developer for Websphere. Let me know if you need any further details.

C:\Users\KUMAR>java -Dsikuli.Debug=3 -jar C:\Users\KUMAR\Documents\Downloads
\sikulixapi.jar
[debug] Debug.init: from sikuli.Debug: on: 3
[debug] RunTimeINIT: loadOptions: check: C:\Users\KUMAR
[debug] RunTimeINIT: loadOptions: check: C:\Users\KUMAR
[debug] RunTimeINIT: loadOptions: check: C:\Users\KUMAR\AppData\Roaming\Sikuli
x\SikulixStore
[debug] RunTimeINIT: global init: entering as: API
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1280 x 720
[debug] RunTimeINIT: runs as sikulixapi.jar in: C:\Users\KUMAR\Documents\Downl
oads
[debug] RunTimeINIT: exists libs folder at: C:\Users\KUMAR\AppData\Roaming\Sik
ulix\SikulixLibs_201711101307
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\KUMAR\AppData\Roaming\Sikulix\SikulixLibs_201711101307
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for API (build 201711101307)
user.home: C:\Users\KUMAR
user.dir (work dir): C:\Users\KUMAR
user.name: KUMAR
java.io.tmpdir: C:\Users\KUMAR\AppData\Local\Temp\1
running 32Bit on Windows (6.1) from a jar
java 8-32 version 1.8.0_45-b14 vm 25.45-b02 class 52.0 arch x86
app data folder: C:\Users\KUMAR\AppData\Roaming\Sikulix
libs folder: C:\Users\KUMAR\AppData\Roaming\Sikulix\SikulixLibs_201711101307
executing jar: C:\Users\KUMAR\Documents\Downloads\sikulixapi.jar
*** classpath dump sikulix
  0: /C:/Users/KUMAR/Documents/Downloads/sikulixapi.jar
*** classpath dump end
***** show environment end
[debug] RunTimeAPI: global init: leaving
[debug] RunTimeAPI: initAPI: entering
[debug] RunTimeAPI: resourceList: enter
[debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sik
uli
[debug] RunTimeAPI: resourceList: having jar: jar:file:/C:/Users/KUMAR/Documen
ts/Downloads/sikulixapi.jar!/Lib/sikuli
[debug] RunTimeAPI: files exported: 7 from: Lib/sikuli to:
 C:\Users\KUMAR\AppData\Roaming\Sikulix\Lib\sikuli
[debug] RunTimeAPI: initAPI: leaving
[debug] RunTimeAPI: final cleanup
[debug] FileManager: deleteFileOrFolder:
C:\Users\KUMAR\AppData\Local\Temp\1\Sikulix_2074887024

C:\Users\KUMAR>

Revision history for this message
RaiMan (raimund-hocke) wrote :

ok, everything is fine on your plain system (Java 8 and SikuliX 1.1.1+)

Your problems seem to be inside your Rational Application Developer for Websphere environment, which is obviously special.

I am sorry: I cannot help you with that.

summary: - [error] RunTimeINIT: Java version not detected (using 7):
- pwi3270sr7fp1-20140712_01 (SR7 FP1) java ?7?-32 version
- pwi3270sr7fp1-20140712_01 (SR7 FP1) vm 2.6 class 51.0 arch x86
+ Having problems using Rational Application Developer for Websphere
Revision history for this message
RaiMan (raimund-hocke) wrote :

I am converting this to a question, since I do not accept it as a SikuliX bug

Changed in sikuli:
status: Opinion → Invalid
Revision history for this message
Praveen Reddy (praveenreddysmarty) wrote :

ok RaiMan fine but, its similar to Eclipse IDE: Java EE not sure how it differs. So will this Question be resolved? If Yes, please let me know ETA, otherwise i may need to find alternatives, because its little urgent for me. Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.