B4J Question Java v9.0.1 causes problems

ThRuST

Well-Known Member
Licensed User
Longtime User
I am having problems to run my project after upgrading to Java v9.0.1
I use alot of libraries and I post the screendump and the error log for you all to comment.
Can anyone locate the problem? Please post your comment in case you figure out what it is.
I cannot use Alt Gr to show the curly braces { } in the HTMLeditor or CodeArea which uses NativeHook and jAWTRobot library, so it's a B4J application. Project Athena, which I've been working on for month.
I have problems with random blue screens of death and reboots. Most annoying.
A solution online should be to remove the keyboard language and add it again, which I did and after that this message is showing when I try to run my project. It worked to start all the time, untill this came up.
{ } chars is an issue as they are not showing while the application was running before.
I'm out of options. Anyone else had similar problems ever since Java v901 was installed.
Post your comments please.

Thanks for your feedback.
// ThRuST


java901error.JPG


Error Log
B4X:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000002951929923c, pid=7968, tid=12944
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.1+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# j  java.lang.Thread.isInterrupted(Z)Z+0 [email protected]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Dapplication.home=C:\Java\jdk9.0.1 --add-modules=ALL-DEFAULT -Xms8m -Xmx1024m -Djdk.module.main=jdk.compiler jdk.compiler/com.sun.tools.javac.Main -d bin\classes -Xmaxerrs 1 -nowarn -Xlint:none -target 1.7 -source 1.7 -version -encoding UTF-8 -cp C:\Dev\B4J\libraries\jcore.jar;C:\Dev\B4J\libraries\jfx.jar;C:\Dev\B4J\Additional Libraries\jawtrobot.jar;C:\Dev\B4J\libraries\cssutils.jar;C:\Dev\B4J\libraries\javaobject.jar;C:\Dev\B4J\libraries\jshell.jar;C:\Dev\B4J\libraries\jsql.jar;C:\Dev\B4J\libraries\jsystemtray.jar;C:\Dev\B4J\Additional Libraries\jreflection.jar;C:\Dev\B4J\Additional Libraries\jhtmleditor.jar;C:\Dev\B4J\libraries\jrandomaccessfile.jar;C:\Dev\B4J\libraries\jstringutils.jar;C:\Dev\B4J\libraries\jhttp.jar;C:\Dev\B4J\Additional Libraries\archiver.jar;C:\Dev\B4J\Additional Libraries\jnativehookb4j.jar;C:\Dev\B4J\Additional Libraries\threading.jar;C:\Dev\B4J\Additional Libraries\controlsfxnotifications.jar;C:\Dev\B4J\libraries\json.jar;C:\Dev\B4J\libraries\httpcore-4.0.jar;C:\Dev\B4J\libraries\commons-logging-1.1.3.jar;C:\Dev\B4J\Additional Libraries\jnativehook.jar;C:\Dev\B4J\libraries\controlsfx-8.jar;C:\Dev\B4J\libraries\sqlite-jdbc-3.7.2.jar;C:\Dev\B4J\libraries\richtextfx-fat-0.8.2.jar;C:\Dev\B4J\libraries\fontawesome.jar;C:\Dev\B4J\libraries\materialicons.jar;C:\Java\jdk9.0.1\bin\../jre/lib/jfxrt.jar; src\athena\duologic\se\b4jutils.java src\athena\duologic\se\codearea.java src\athena\duologic\se\cssmanager.java src\athena\duologic\se\dbutils.java src\athena\duologic\se\diskutils.java src\athena\duologic\se\downloadservice.java src\athena\duologic\se\floatingmenu.java src\athena\duologic\se\fmcallsubutils.java src\athena\duologic\se\fmcheckboxclass.java src\athena\duologic\se\fmitemtextclass.java src\athena\duologic\se\fmkeycombinations.java src\athena\duologic\se\fmutils.java src\athena\duologic\se\httpjob.java src\athena\duologic\se\httputils2service.java src\athena\duologic\se\inititialization.java src\athena\duologic\se\inputbox.java src\athena\duologic\se\keycombolistener.java src\athena\duologic\se\keyvaluestore.java src\athena\duologic\se\main.java src\athena\duologic\se\nativehook_static.java src\athena\duologic\se\sqlite.java src\athena\duologic\se\sqliteutils.java src\athena\duologic\se\tabstopmanager.java src\athena\duologic\se\utils.java src\athena\duologic\se\designerscripts\LS_docs.java src\athena\duologic\se\designerscripts\LS_folderitems2.java src\athena\duologic\se\designerscripts\LS_panelhtmleditor.java src\athena\duologic\se\designerscripts\LS_paneltextarea.java src\athena\duologic\se\designerscripts\LS_panel_folders.java src\athena\duologic\se\designerscripts\LS_panel_menu.java src\athena\duologic\se\designerscripts\LS_xcopy.java

Host: AMD Phenom(tm) II X4 965 Processor, 4 cores, 3G,  Windows 10 , 64 bit Build 16299 (10.0.16299.15)
Time: Mon Mar 19 17:10:38 2018 Västeuropa, normaltid elapsed time: 1 seconds (0d 0h 0m 1s)

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

Current thread (0x000002950d358000):  JavaThread "main" [_thread_in_Java, id=12944, stack(0x000000a94fb00000,0x000000a94fc00000)]

Stack: [0x000000a94fb00000,0x000000a94fc00000],  sp=0x000000a94fbfea50,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x000002951929923c

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.lang.Thread.isInterrupted(Z)Z+0 [email protected]
j  java.lang.Thread.isInterrupted()Z+2 [email protected]
j  java.nio.channels.spi.AbstractInterruptibleChannel.begin()V+31 [email protected]
j  sun.nio.ch.FileChannelImpl.read(Ljava/nio/ByteBuffer;)I+32 [email protected]
j  sun.nio.ch.ChannelInputStream.read(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/ByteBuffer;Z)I+89 [email protected]
j  sun.nio.ch.ChannelInputStream.read(Ljava/nio/ByteBuffer;)I+6 [email protected]
j  sun.nio.ch.ChannelInputStream.read([BII)I+101 [email protected]
j  com.sun.tools.javac.file.BaseFileManager.makeByteBuffer(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;+68 [email protected]
j  com.sun.tools.javac.file.PathFileObject.getCharContent(Z)Ljava/lang/CharSequence;+26 [email protected]
j  com.sun.tools.javac.main.JavaCompiler.readSource(Ljavax/tools/JavaFileObject;)Ljava/lang/CharSequence;+13 [email protected]
j  com.sun.tools.javac.main.JavaCompiler.parse(Ljavax/tools/JavaFileObject;)Lcom/sun/tools/javac/tree/JCTree$JCCompilationUnit;+13 [email protected]
j  com.sun.tools.javac.main.JavaCompiler.parseFiles(Ljava/lang/Iterable;)Lcom/sun/tools/javac/util/List;+84 [email protected]
j  com.sun.tools.javac.main.JavaCompiler.compile(Ljava/util/Collection;Ljava/util/Collection;Ljava/lang/Iterable;Ljava/util/Collection;)V+292 [email protected]
j  com.sun.tools.javac.main.Main.compile([Ljava/lang/String;Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/main/Main$Result;+600 [email protected]
j  com.sun.tools.javac.main.Main.compile([Ljava/lang/String;)Lcom/sun/tools/javac/main/Main$Result;+15 [email protected]
j  com.sun.tools.javac.Main.compile([Ljava/lang/String;)I+12 [email protected]
j  com.sun.tools.javac.Main.main([Ljava/lang/String;)V+1 [email protected]
v  ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0xffffffffffffffff


Register to memory mapping:

RIP=0x000002951929923c is at code_begin+1180 in an Interpreter codelet
method entry point (kind = native)  [0x0000029519298da0, 0x0000029519299900]  2912 bytes
RAX=0x0000000000000000 is an unknown value
RBX={method} {0x000002952d589070} 'isInterrupted' '(Z)Z' in 'java/lang/Thread'
RCX=0x0000000000000800 is an unknown value
RDX=0x000000a94fbfeb00 is pointing into the stack for thread: 0x000002950d358000
RSP=0x000000a94fbfea50 is pointing into the stack for thread: 0x000002950d358000
RBP=0x000000a94fbfeaf0 is pointing into the stack for thread: 0x000002950d358000
RSI=0x0000000000000540 is an unknown value
RDI=0x000002952d9f2cd8 is pointing into metadata
R8 =0x0000000000000000 is an unknown value
R9 =0x00000000c015ca60 is an oop
java.lang.Object
{0x00000000c015ca60} - klass: 'java/lang/Object'
R10=0x0000000000000000 is an unknown value
R11=0x0000000000000102 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000002952d589060 is pointing into metadata
R14=0x000000a94fbfeb18 is pointing into the stack for thread: 0x000002950d358000
R15=0x000002950d358000 is a thread


Registers:
RAX=0x0000000000000000, RBX=0x000002952d589068, RCX=0x0000000000000800, RDX=0x000000a94fbfeb00
RSP=0x000000a94fbfea50, RBP=0x000000a94fbfeaf0, RSI=0x0000000000000540, RDI=0x000002952d9f2cd8
R8 =0x0000000000000000, R9 =0x00000000c015ca60, R10=0x0000000000000000, R11=0x0000000000000102
R12=0x0000000000000000, R13=0x000002952d589060, R14=0x000000a94fbfeb18, R15=0x000002950d358000
RIP=0x000002951929923c, EFLAGS=0x0000000000010246

Top of Stack: (sp=0x000000a94fbfea50)
0x000000a94fbfea50:   0000000000000000 0000000000000000
0x000000a94fbfea60:   0000000000000000 000002951929919c
0x000000a94fbfea70:   000002952d589068 000000a94fbfeaf0
0x000000a94fbfea80:   0000000000000540 000002951928b603
0x000000a94fbfea90:   0000000000000000 00000000c015ca60
0x000000a94fbfeaa0:   00000000c092cad8 000000a94fbfeaa8
0x000000a94fbfeab0:   0000000000000000 000000a94fbfeb18
0x000000a94fbfeac0:   000002952d65d4b8 0000000000000000
0x000000a94fbfead0:   00000000c00bcb78 000002952d589068
0x000000a94fbfeae0:   0000000000000000 000000a94fbfeb10
0x000000a94fbfeaf0:   000000a94fbfeb68 000002951928add0
0x000000a94fbfeb00:   0000000000000000 0000029519296100
0x000000a94fbfeb10:   0000000000000000 00000000c00bce60
0x000000a94fbfeb20:   000000a94fbfeb20 000002952d588fba
0x000000a94fbfeb30:   000000a94fbfeb78 000002952d65d4b8
0x000000a94fbfeb40:   0000000000000000 00000000c00bcb78

Instructions: (pc=0x000002951929923c)
0x000002951929921c:   00 00 41 ff d2 49 8b e4 4d 33 e4 41 c7 87 90 02
0x000002951929922c:   00 00 08 00 00 00 49 ba 00 00 00 00 00 00 00 00
0x000002951929923c:   4d 89 97 f8 01 00 00 49 ba 00 00 00 00 00 00 00
0x000002951929924c:   00 4d 89 97 08 02 00 00 49 ba 00 00 00 00 00 00


method entry point (kind = native)  [0x0000029519298da0, 0x0000029519299900]  2912 bytes

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

Java Threads: ( => current thread )
  0x000002952e1e2800 JavaThread "Service Thread" daemon [_thread_blocked, id=12940, stack(0x000000a951100000,0x000000a951200000)]
  0x000002952dfaf800 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=10028, stack(0x000000a951000000,0x000000a951100000)]
  0x000002952df10800 JavaThread "Sweeper thread" daemon [_thread_blocked, id=504, stack(0x000000a950f00000,0x000000a951000000)]
  0x000002952df0c800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=4872, stack(0x000000a950e00000,0x000000a950f00000)]
  0x000002952df0b800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=10500, stack(0x000000a950d00000,0x000000a950e00000)]
  0x000002952df00000 JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=3356, stack(0x000000a950c00000,0x000000a950d00000)]
  0x000002952defc000 JavaThread "Attach Listener" daemon [_thread_blocked, id=12724, stack(0x000000a950b00000,0x000000a950c00000)]
  0x000002952def8800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11472, stack(0x000000a950a00000,0x000000a950b00000)]
  0x000002952deab000 JavaThread "Finalizer" daemon [_thread_blocked, id=5420, stack(0x000000a950900000,0x000000a950a00000)]
  0x000002952dea2000 JavaThread "Reference Handler" daemon [_thread_blocked, id=10404, stack(0x000000a950800000,0x000000a950900000)]
=>0x000002950d358000 JavaThread "main" [_thread_in_Java, id=12944, stack(0x000000a94fb00000,0x000000a94fc00000)]

Other Threads:
  0x000002952dea0000 VMThread "VM Thread" [stack: 0x000000a950700000,0x000000a950800000] [id=11552]
  0x000002952e1e8800 WatcherThread [stack: 0x000000a951200000,0x000000a951300000] [id=13280]
  0x000002950d36e000 GCTaskThread "GC Thread#0" [stack: 0x000000a94fc00000,0x000000a94fd00000] [id=1424]
  0x000002950d36f000 GCTaskThread "GC Thread#1" [stack: 0x000000a94fd00000,0x000000a94fe00000] [id=12568]
  0x000002950d371800 GCTaskThread "GC Thread#2" [stack: 0x000000a94fe00000,0x000000a94ff00000] [id=13116]
  0x000002950d373000 GCTaskThread "GC Thread#3" [stack: 0x000000a94ff00000,0x000000a950000000] [id=10400]
  0x000002950d3cf800 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000a950500000,0x000000a950600000] [id=4920]
  0x000002950d3d9800 ConcurrentGCThread "G1 Marker#0" [stack: 0x000000a950600000,0x000000a950700000] [id=9600]
  0x000002950d384800 ConcurrentGCThread "G1 Refine#0" [stack: 0x000000a950300000,0x000000a950400000] [id=1836]
  0x000002950d385800 ConcurrentGCThread "G1 Refine#1" [stack: 0x000000a950200000,0x000000a950300000] [id=1700]
  0x000002950d38b000 ConcurrentGCThread "G1 Refine#2" [stack: 0x000000a950100000,0x000000a950200000] [id=12712]
  0x000002950d379800 ConcurrentGCThread "G1 Refine#3" [stack: 0x000000a950000000,0x000000a950100000] [id=10100]
  0x000002950d390000 ConcurrentGCThread "G1 Young RemSet Sampling" [stack: 0x000000a950400000,0x000000a950500000] [id=1920]

Threads with active compile tasks:
C2 CompilerThread1 728   !   4       com.sun.tools.javac.parser.JavaTokenizer::readToken (2231 bytes)
C2 CompilerThread0 778 %     4       sun.nio.cs.UTF_8$Decoder::decodeArrayLoop @ 73 (691 bytes)

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap address: 0x00000000c0000000, size: 1024 MB, Compressed Oops mode: 32-bit
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x0000000100000000

Heap:
 garbage-first heap   total 10240K, used 4397K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 2 young (2048K), 1 survivors (1024K)
 Metaspace       used 13219K, capacity 13522K, committed 13824K, reserved 1060864K
  class space    used 1401K, capacity 1483K, committed 1536K, reserved 1048576K
Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, A=archive, TS=gc time stamp, AC=allocation context, TAMS=top-at-mark-start (previous, next)
|   0|0x00000000c0000000, 0x00000000c0100000, 0x00000000c0100000|100%| O|  |TS  3|AC  0|TAMS 0x00000000c0000000, 0x00000000c0000000|
|   1|0x00000000c0100000, 0x00000000c0200000, 0x00000000c0200000|100%| O|  |TS  9|AC  0|TAMS 0x00000000c0100000, 0x00000000c0100000|
|   2|0x00000000c0200000, 0x00000000c0300000, 0x00000000c0300000|100%| O|  |TS 13|AC  0|TAMS 0x00000000c0200000, 0x00000000c0200000|
|   3|0x00000000c0300000, 0x00000000c03c5000, 0x00000000c0400000| 76%| O|  |TS 19|AC  0|TAMS 0x00000000c0300000, 0x00000000c0300000|
|   4|0x00000000c0400000, 0x00000000c0400000, 0x00000000c0500000|  0%| F|  |TS  3|AC  0|TAMS 0x00000000c0400000, 0x00000000c0400000|
|   5|0x00000000c0500000, 0x00000000c0500000, 0x00000000c0600000|  0%| F|  |TS 15|AC  0|TAMS 0x00000000c0500000, 0x00000000c0500000|
|   6|0x00000000c0600000, 0x00000000c0600000, 0x00000000c0700000|  0%| F|  |TS 13|AC  0|TAMS 0x00000000c0600000, 0x00000000c0600000|
|   7|0x00000000c0700000, 0x00000000c0700000, 0x00000000c0800000|  0%| F|  |TS 19|AC  0|TAMS 0x00000000c0700000, 0x00000000c0700000|
|   8|0x00000000c0800000, 0x00000000c0886688, 0x00000000c0900000| 52%| S|CS|TS 19|AC  0|TAMS 0x00000000c0800000, 0x00000000c0800000|
|   9|0x00000000c0900000, 0x00000000c0931988, 0x00000000c0a00000| 19%| E|  |TS 19|AC  0|TAMS 0x00000000c0900000, 0x00000000c0900000|

Card table byte_map: [0x0000029528cc0000,0x0000029528ec0000] byte_map_base: 0x00000295286c0000

Marking Bits (Prev, Next): (CMBitMap*) 0x000002950d3cee50, (CMBitMap*) 0x000002950d3cee88
 Prev Bits: [0x00000295290c0000, 0x000002952a0c0000)
 Next Bits: [0x000002952a0c0000, 0x000002952b0c0000)

Polling page: 0x000002950b1b0000

CodeHeap 'non-profiled nmethods': size=120064Kb used=253Kb max_used=253Kb free=119810Kb
 bounds [0x0000029520d40000, 0x0000029520fb0000, 0x0000029528280000]
CodeHeap 'profiled nmethods': size=120000Kb used=1925Kb max_used=1925Kb free=118074Kb
 bounds [0x0000029519810000, 0x0000029519a80000, 0x0000029520d40000]
CodeHeap 'non-nmethods': size=5696Kb used=1220Kb max_used=1236Kb free=4475Kb
 bounds [0x0000029519280000, 0x00000295194f0000, 0x0000029519810000]
 total_blobs=1375 nmethods=829 adapters=287
 compilation: enabled

Compilation events (10 events):
Event: 1.520 Thread 0x000002952df0c800 nmethod 826 0x00000295199e2190 code [0x00000295199e2340, 0x00000295199e2598]
Event: 1.520 Thread 0x000002952df0c800  827       3       java.util.Arrays::copyOf (19 bytes)
Event: 1.520 Thread 0x000002952df0c800 nmethod 827 0x00000295199e2690 code [0x00000295199e2860, 0x00000295199e2b90]
Event: 1.520 Thread 0x000002952df0c800  818       3       com.sun.tools.javac.tree.JCTree::hasTag (14 bytes)
Event: 1.520 Thread 0x000002952df0c800 nmethod 818 0x00000295199e2c90 code [0x00000295199e2e40, 0x00000295199e30b0]
Event: 1.520 Thread 0x000002952df0c800  812       3       com.sun.tools.javac.parser.JavacParser::arguments (37 bytes)
Event: 1.521 Thread 0x000002952df0c800 nmethod 812 0x00000295199e3190 code [0x00000295199e33c0, 0x00000295199e3c80]
Event: 1.521 Thread 0x000002952df0c800  823       3       com.sun.tools.javac.tree.TreeMaker::Apply (24 bytes)
Event: 1.521 Thread 0x000002952df0c800 nmethod 823 0x00000295199e3f90 code [0x00000295199e4180, 0x00000295199e46f8]
Event: 1.521 Thread 0x000002952df0c800  835       3       com.sun.tools.javac.tree.JCTree$JCVariableDecl::<init> (32 bytes)

GC Heap History (10 events):
Event: 1.282 GC heap before
{Heap before GC invocations=5 (full 0):
 garbage-first heap   total 8192K, used 3847K [0x00000000c0000000, 0x00000000c0100040, 0x0000000100000000)
  region size 1024K, 2 young (2048K), 1 survivors (1024K)
 Metaspace       used 13016K, capacity 13314K, committed 13568K, reserved 1060864K
  class space    used 1394K, capacity 1477K, committed 1536K, reserved 1048576K
}
Event: 1.289 GC heap after
{Heap after GC invocations=6 (full 0):
 garbage-first heap   total 8192K, used 3378K [0x00000000c0000000, 0x00000000c0100040, 0x0000000100000000)
  region size 1024K, 1 young (1024K), 1 survivors (1024K)
 Metaspace       used 13016K, capacity 13314K, committed 13568K, reserved 1060864K
  class space    used 1394K, capacity 1477K, committed 1536K, reserved 1048576K
}
Event: 1.440 GC heap before
{Heap before GC invocations=6 (full 0):
 garbage-first heap   total 8192K, used 4402K [0x00000000c0000000, 0x00000000c0100040, 0x0000000100000000)
  region size 1024K, 2 young (2048K), 1 survivors (1024K)
 Metaspace       used 13091K, capacity 13382K, committed 13568K, reserved 1060864K
  class space    used 1394K, capacity 1477K, committed 1536K, reserved 1048576K
}
Event: 1.448 GC heap after
{Heap after GC invocations=7 (full 0):
 garbage-first heap   total 10240K, used 3650K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 1 young (1024K), 1 survivors (1024K)
 Metaspace       used 13091K, capacity 13382K, committed 13568K, reserved 1060864K
  class space    used 1394K, capacity 1477K, committed 1536K, reserved 1048576K
}
Event: 1.476 GC heap before
{Heap before GC invocations=7 (full 0):
 garbage-first heap   total 10240K, used 4674K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 2 young (2048K), 1 survivors (1024K)
 Metaspace       used 13163K, capacity 13458K, committed 13568K, reserved 1060864K
  class space    used 1399K, capacity 1483K, committed 1536K, reserved 1048576K
}
Event: 1.479 GC heap after
{Heap after GC invocations=8 (full 0):
 garbage-first heap   total 10240K, used 3935K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 1 young (1024K), 1 survivors (1024K)
 Metaspace       used 13163K, capacity 13458K, committed 13568K, reserved 1060864K
  class space    used 1399K, capacity 1483K, committed 1536K, reserved 1048576K
}
Event: 1.497 GC heap before
{Heap before GC invocations=8 (full 0):
 garbage-first heap   total 10240K, used 4959K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 2 young (2048K), 1 survivors (1024K)
 Metaspace       used 13191K, capacity 13522K, committed 13824K, reserved 1060864K
  class space    used 1400K, capacity 1483K, committed 1536K, reserved 1048576K
}
Event: 1.498 GC heap after
{Heap after GC invocations=9 (full 0):
 garbage-first heap   total 10240K, used 4157K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 1 young (1024K), 1 survivors (1024K)
 Metaspace       used 13191K, capacity 13522K, committed 13824K, reserved 1060864K
  class space    used 1400K, capacity 1483K, committed 1536K, reserved 1048576K
}
Event: 1.517 GC heap before
{Heap before GC invocations=9 (full 0):
 garbage-first heap   total 10240K, used 5181K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 2 young (2048K), 1 survivors (1024K)
 Metaspace       used 13206K, capacity 13522K, committed 13824K, reserved 1060864K
  class space    used 1401K, capacity 1483K, committed 1536K, reserved 1048576K
}
Event: 1.518 GC heap after
{Heap after GC invocations=10 (full 0):
 garbage-first heap   total 10240K, used 4397K [0x00000000c0000000, 0x00000000c0100050, 0x0000000100000000)
  region size 1024K, 1 young (1024K), 1 survivors (1024K)
 Metaspace       used 13206K, capacity 13522K, committed 13824K, reserved 1060864K
  class space    used 1401K, capacity 1483K, committed 1536K, reserved 1048576K
}

Deoptimization events (2 events):
Event: 0.545 Thread 0x000002950d358000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000029520d5127c method=java.nio.Buffer.hasRemaining()Z @ 8 c2
Event: 0.992 Thread 0x000002950d358000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000029520d64650 method=java.lang.StringLatin1.replace([BCC)Ljava/lang/String; @ 19 c2

Classes redefined (0 events):
No events

Internal exceptions (10 events):
Event: 0.704 Thread 0x000002950d358000 Exception <a 'sun/nio/fs/WindowsException'{0x00000000c07af1c0}> (0x00000000c07af1c0) thrown at [t:/workspace/hotspot/src/share/vm/prims/jni.cpp, line 604]
Event: 0.704 Thread 0x000002950d358000 Exception <a 'sun/nio/fs/WindowsException'{0x00000000c07af358}> (0x00000000c07af358) thrown at [t:/workspace/hotspot/src/share/vm/prims/jni.cpp, line 604]
Event: 0.708 Thread 0x000002950d358000 Exception <a 'java/lang/NoSuchMethodError'{0x00000000c07b9040}: method resolution failed> (0x00000000c07b9040) thrown at [t:/workspace/hotspot/src/share/vm/prims/methodHandles.cpp, line 1256]
Event: 0.709 Thread 0x000002950d358000 Exception <a 'java/lang/NoSuchMethodError'{0x00000000c07c2a10}: java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)I> (0x00000000c07c2a10) thrown at [t:/workspace/hotspot/src/share/vm/interprete
Event: 0.710 Thread 0x000002950d358000 Exception <a 'java/lang/NoSuchMethodError'{0x00000000c07c9288}: java.lang.invoke.DirectMethodHandle$Holder.invokeInterface(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V> (0x00000000c07c9288) thrown at [t:/workspace/hotspot/src/share/vm/interpre
Event: 0.755 Thread 0x000002950d358000 Exception <a 'java/lang/NoSuchMethodError'{0x00000000c07a56c8}: java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(Ljava/lang/Object;Ljava/lang/Object;)I> (0x00000000c07a56c8) thrown at [t:/workspace/hotspot/src/share/vm/interpreter/linkResolver.
Event: 0.988 Thread 0x000002950d358000 Exception <a 'java/lang/NoSuchMethodError'{0x00000000c079ed48}: java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;)I> (0x00000000c079ed48) thrown at [t:/workspace/hotspot/src/share/vm/interpreter/linkResolver.cpp
Event: 1.182 Thread 0x000002950d358000 Exception <a 'java/lang/NoSuchMethodError'{0x00000000c07ce590}: java.lang.Object.lambda$negate$3(I)Z> (0x00000000c07ce590) thrown at [t:/workspace/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 731]
Event: 1.217 Thread 0x000002950d358000 Exception <a 'java/security/PrivilegedActionException'{0x00000000c0756850}> (0x00000000c0756850) thrown at [t:/workspace/hotspot/src/share/vm/prims/jvm.cpp, line 1310]
Event: 1.217 Thread 0x000002950d358000 Exception <a 'java/security/PrivilegedActionException'{0x00000000c0756c48}> (0x00000000c0756c48) thrown at [t:/workspace/hotspot/src/share/vm/prims/jvm.cpp, line 1310]

Events (10 events):
Event: 1.496 Executing VM operation: G1IncCollectionPause
Event: 1.498 Executing VM operation: G1IncCollectionPause done
Event: 1.499 loading class jdk/internal/math/FloatingDecimal$ASCIIToBinaryBuffer
Event: 1.499 loading class jdk/internal/math/FloatingDecimal$ASCIIToBinaryBuffer done
Event: 1.499 Executing VM operation: Deoptimize
Event: 1.499 Executing VM operation: Deoptimize done
Event: 1.500 Thread 0x000002950d358000 DEOPT PACKING pc=0x00000295199994ac sp=0x000000a94fbfc880
Event: 1.500 Thread 0x000002950d358000 DEOPT UNPACKING pc=0x00000295192cd83f sp=0x000000a94fbfbe80 mode 0
Event: 1.516 Executing VM operation: G1IncCollectionPause
Event: 1.518 Executing VM operation: G1IncCollectionPause done


Dynamic libraries:
0x00007ff69beb0000 - 0x00007ff69beb7000     C:\Java\jdk9.0.1\bin\javac.exe
0x00007ffca7730000 - 0x00007ffca7910000     C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffca5a50000 - 0x00007ffca5afe000     C:\WINDOWS\System32\KERNEL32.DLL
0x00007ffca3e80000 - 0x00007ffca40e6000     C:\WINDOWS\System32\KERNELBASE.dll
0x00007ffc99450000 - 0x00007ffc99485000     C:\Java\jdk9.0.1\bin\jli.dll
0x00007ffc99490000 - 0x00007ffc9957f000     C:\Java\jdk9.0.1\bin\MSVCR120.dll
0x00007ffca5c50000 - 0x00007ffca5cf1000     C:\WINDOWS\System32\ADVAPI32.dll
0x00007ffca4e80000 - 0x00007ffca4f1d000     C:\WINDOWS\System32\msvcrt.dll
0x00007ffca4cc0000 - 0x00007ffca4d1b000     C:\WINDOWS\System32\sechost.dll
0x00007ffca5670000 - 0x00007ffca578f000     C:\WINDOWS\System32\RPCRT4.dll
0x00007ffca57b0000 - 0x00007ffca593f000     C:\WINDOWS\System32\USER32.dll
0x00007ffca4910000 - 0x00007ffca4930000     C:\WINDOWS\System32\win32u.dll
0x00007ffca4c90000 - 0x00007ffca4cb8000     C:\WINDOWS\System32\GDI32.dll
0x00007ffca3ce0000 - 0x00007ffca3e73000     C:\WINDOWS\System32\gdi32full.dll
0x00007ffc9caa0000 - 0x00007ffc9cd09000     C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.309_none_15cfd4c4935e6b11\COMCTL32.dll
0x00007ffca4b60000 - 0x00007ffca4bfb000     C:\WINDOWS\System32\msvcp_win.dll
0x00007ffca73f0000 - 0x00007ffca76f8000     C:\WINDOWS\System32\combase.dll
0x00007ffca3be0000 - 0x00007ffca3cd6000     C:\WINDOWS\System32\ucrtbase.dll
0x00007ffca4140000 - 0x00007ffca41b2000     C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007ffc9cd20000 - 0x00007ffc9cd2a000     C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ffca4c00000 - 0x00007ffca4c2d000     C:\WINDOWS\System32\IMM32.DLL
0x00007ffc77fe0000 - 0x00007ffc78086000     C:\Java\jdk9.0.1\bin\msvcp120.dll
0x000000006cce0000 - 0x000000006d704000     C:\Java\jdk9.0.1\bin\server\jvm.dll
0x00007ffca5bd0000 - 0x00007ffca5bd8000     C:\WINDOWS\System32\PSAPI.DLL
0x00007ffca0a10000 - 0x00007ffca0a33000     C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffc8ce60000 - 0x00007ffc8ce69000     C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffca5be0000 - 0x00007ffca5c4c000     C:\WINDOWS\System32\WS2_32.dll
0x00007ffca09e0000 - 0x00007ffca0a0a000     C:\WINDOWS\SYSTEM32\WINMMBASE.dll
0x00007ffca40f0000 - 0x00007ffca413a000     C:\WINDOWS\System32\cfgmgr32.dll
0x00007ffc99440000 - 0x00007ffc9944f000     C:\Java\jdk9.0.1\bin\verify.dll
0x00007ffc99410000 - 0x00007ffc99437000     C:\Java\jdk9.0.1\bin\java.dll
0x00007ffc993f0000 - 0x00007ffc99406000     C:\Java\jdk9.0.1\bin\zip.dll
0x00007ffc993e0000 - 0x00007ffc993ea000     C:\Java\jdk9.0.1\bin\jimage.dll
0x00007ffca5fb0000 - 0x00007ffca73e6000     C:\WINDOWS\System32\SHELL32.dll
0x00007ffca55c0000 - 0x00007ffca5666000     C:\WINDOWS\System32\shcore.dll
0x00007ffca41c0000 - 0x00007ffca4907000     C:\WINDOWS\System32\windows.storage.dll
0x00007ffca5950000 - 0x00007ffca59a1000     C:\WINDOWS\System32\shlwapi.dll
0x00007ffca3b10000 - 0x00007ffca3b21000     C:\WINDOWS\System32\kernel.appcore.dll
0x00007ffca3aa0000 - 0x00007ffca3aec000     C:\WINDOWS\System32\powrprof.dll
0x00007ffca3a80000 - 0x00007ffca3a9b000     C:\WINDOWS\System32\profapi.dll
0x00007ffc993c0000 - 0x00007ffc993da000     C:\Java\jdk9.0.1\bin\net.dll
0x00007ffc9fdb0000 - 0x00007ffc9fe8e000     C:\WINDOWS\SYSTEM32\WINHTTP.dll
0x00007ffca3300000 - 0x00007ffca3366000     C:\WINDOWS\system32\mswsock.dll
0x00007ffc8aeb0000 - 0x00007ffc8aec1000     C:\Java\jdk9.0.1\bin\nio.dll
0x00007ffc94eb0000 - 0x00007ffc95078000     C:\WINDOWS\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -Dapplication.home=C:\Java\jdk9.0.1 --add-modules=ALL-DEFAULT -Xms8m -Xmx1024m -Djdk.module.main=jdk.compiler
java_command: jdk.compiler/com.sun.tools.javac.Main -d bin\classes -Xmaxerrs 1 -nowarn -Xlint:none -target 1.7 -source 1.7 -version -encoding UTF-8 -cp C:\Dev\B4J\libraries\jcore.jar;C:\Dev\B4J\libraries\jfx.jar;C:\Dev\B4J\Additional Libraries\jawtrobot.jar;C:\Dev\B4J\libraries\cssutils.jar;C:\Dev\B4J\libraries\javaobject.jar;C:\Dev\B4J\libraries\jshell.jar;C:\Dev\B4J\libraries\jsql.jar;C:\Dev\B4J\libraries\jsystemtray.jar;C:\Dev\B4J\Additional Libraries\jreflection.jar;C:\Dev\B4J\Additional Libraries\jhtmleditor.jar;C:\Dev\B4J\libraries\jrandomaccessfile.jar;C:\Dev\B4J\libraries\jstringutils.jar;C:\Dev\B4J\libraries\jhttp.jar;C:\Dev\B4J\Additional Libraries\archiver.jar;C:\Dev\B4J\Additional Libraries\jnativehookb4j.jar;C:\Dev\B4J\Additional Libraries\threading.jar;C:\Dev\B4J\Additional Libraries\controlsfxnotifications.jar;C:\Dev\B4J\libraries\json.jar;C:\Dev\B4J\libraries\httpcore-4.0.jar;C:\Dev\B4J\libraries\commons-logging-1.1.3.jar;C:\Dev\B4J\Additional Libraries\jnativehook.jar;C:\Dev\B4J\libraries\controlsfx-8.jar;C:\Dev\B4J\libraries\sqlite-jdbc-3.7.2.jar;C:\Dev\B4J\libraries\richtextfx-fat-0.8.2.jar;C:\Dev\B4J\libraries\fontawesome.jar;C:\Dev\B4J\libraries\materialicons.jar;C:\Java\jdk9.0.1\bin\../jre/lib/jfxrt.jar; src\athena\duologic\se\b4jutils.java src\athena\duologic\se\codearea.java src\athena\duologic\se\cssmanager.java src\athena\duologic\se\dbutils.java src\athena\duologic\se\diskutils.java src\athena\duologic\se\downloadservice.java src\athena\duologic\se\floatingmenu.java src\athena\duologic\se\fmcallsubutils.java src\athena\duologic\se\fmcheckboxclass.java src\athena\duologic\se\fmitemtextclass.java src\athena\duologic\se\fmkeycombinations.java src\athena\duologic\se\fmutils.java src\athena\duologic\se\httpjob.java src\athena\duologic\se\httputils2service.java src\athena\duologic\se\inititialization.java src\athena\duologic\se\inputbox.java src\athena\duologic\se\keycombolistener.java src\athena\duologic\se\keyvaluestore.java src\athena\duolo
java_class_path (initial): <not set>
Launcher Type: SUN_STANDARD

Logging:
Log output configuration:
#0: stdout all=warning uptime,level,tags
#1: stderr all=off uptime,level,tags

Environment Variables:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Users\Roger_PC\AppData\Local\Microsoft\WindowsApps;C:\Users\Roger_PC\AppData\Local\atom\bin
USERNAME=Roger_PC
OS=Windows_NT
PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 4 Stepping 3, AuthenticAMD



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

OS: Windows 10 , 64 bit Build 16299 (10.0.16299.15)

CPU:total 4 (initial active 4) (4 cores per cpu, 1 threads per core) family 16 model 4 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext, 3dnowpref, lzcnt, sse4a, tsc, tscinvbit, tscinv

Memory: 4k page, physical 4105892k(1517116k free), swap 10397348k(7246920k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11) for windows-amd64 JRE (9.0.1+11), built on Sep 28 2017 04:54:03 by "mach5one" with MS VC++ 12.0 (VS2013)

END.
 

tufanv

Expert
Licensed User
Longtime User
We are not thinking inside a box or against your cool idea, this is what we have now and it is the only way until if Erel wants to add a feature like that. You can create a wish request for that and i will be happy to use that feature too because sometimes i need to compile with java 8 and sometimes with 9
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
yeah that's what we will be forced to do because as the Java updates affects us all. Glad to know I happened to come up with a good idea. I should post it in the wishes forum. It seems like Java 9.0.4 is not compatible with the jNativeHook wrapper by Roycefer? Can someone of you experts please check that out if it works for you.
That's why I am looking for v9.0.1 since it worked but gave the error message. My project is asking for adding each library again that dones not come as default with IDE.
NativeHook's startNativeKeyListener seems to be the issue. Have to be confirmed though. It's easy to forget something. So sorry @tufanv, I don't mean to question your experience. I am sure you're smarter than most people. Even myself , at times :)
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
nope I am not an expert or smarter than other people , it is just a forum title :) hope Erel adds what you want.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Everyone go here to vote which browse method you prefer so Erel can add it in to a new B4J release. yay :)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
As I previously wrote there are 0 known issues with Java 9 and B4J. The error you reported here doesn't look related to Java 9 but rather to an old debug library in your B4J internal libraries folder.

This thread is too messy for me to follow. If you think that there is any issue then please start a new thread and explain the specific issue you encountered.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Dear @Erel you are correct. After reinstalling my system once again because of extreme malware problems, I notice that B4J now runs without problems. I must have copied an old library backup over the new libraries folder, which caused the error in debug mode. Thanks to great teamwork in this forum individual libraries gets corrected to work with the new Java 9 updates. However we should be observative for the red warnings in the IDE log with new Java 9, but I assume this is not an issue yet and that you will maintain this if it affects the IDE itself.
 
Last edited:
Upvote 0
Top