Ookma-Kyi
04/27/2023, 2:07 AMConfiguring CommandBox home: C:\Users\ookma\.CommandBox (change with -CommandBox_home=/path/to/dir)
Library path: C:\Users\ookma\.CommandBox\lib
Initializing libraries -- this will only happen once, and takes a few seconds...
...
Libraries initialized
√ | Installing ALL dependencies
| √ | Installing package [forgebox:coldbox@^6.0.0]
| √ | Installing package [forgebox:quick@^4.0.0]
| √ | Installing package [forgebox:cbsecurity@^2.0.0]
| √ | Installing package [forgebox:BCrypt@^3.0.0]
| √ | Installing package [forgebox:cbvalidation@^3.0.0]
| √ | Installing package [forgebox:redirectBack@^1.2.2]
| √ | Installing package [forgebox:testbox@^4.0.0]
| √ | Installing package [forgebox:commandbox-dotenv@*]
| | √ | Installing package [forgebox:propertyFile@^1.1.0]
| √ | Installing package [forgebox:commandbox-migrations@*]
| | √ | Installing package [forgebox:cfmigrations@^3.0.6]
| | | √ | Installing package [forgebox:qb@^8.0.0]
| | | | √ | Installing package [forgebox:cbpaginator@^2.4.0]
| | √ | Installing package [forgebox:sqlformatter@^1.1.3+31]
| | | √ | Installing package [forgebox:cbjavaloader@^2.1.0+5]
| √ | Installing package [forgebox:commandbox-cfconfig@*]
| | √ | Installing package [forgebox:cfconfig-services@be]
| | | √ | Installing package [forgebox:lucee-password-util@^1.0.0]
| | | √ | Installing package [forgebox:adobe-password-util@^1.0.0]
| | | | √ | Installing package [forgebox:propertyFile@^1.0.0]
| | | √ | Installing package [forgebox:propertyFile@^1.0.7]
| | | √ | Installing package [forgebox:semver@^1.0.0]
| | | √ | Installing package [forgebox:JSONPrettyPrint@^1.2.6]
| √ | Installing package [forgebox:commandbox-cfformat@*]
| | √ | cftokens executable not found. Please wait for a moment while it is downloaded.
| √ | Installing package [forgebox:cfmigrations@^2.0.0]
PS D:\ookma-kyi-core> box start
√ | Starting Server
| √ | Setting Server Profile to [development]
| √ | Loading CFConfig into server
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Starting RunWAR 4.7.7
[INFO ] Runwar: Binding HTTP on 127.0.0.1:8080
[INFO ] Runwar: Enabling HTTP/2
[INFO ] Runwar: Starting background ookma-kyi-core [lucee 5.3.10+120] from: /C:/Users/ookma/.CommandBox/lib/runwar-4.7.7.jar
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by runwar.LaunchUtil (file:/C:/Users/ookma/.CommandBox/lib/runwar-4.7.7.jar) to method java.lang.ProcessImpl.pid()
WARNING: Please consider reporting this to the maintainers of runwar.LaunchUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO ] Starting in background -
I don't understand what this means?Adam Cameron
bdw429s
04/27/2023, 3:02 PMbox install
and server start
to me. No errors detected. Like Adam said, what specific part do you have questions about?Ookma-Kyi
04/27/2023, 5:55 PMWARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by runwar.LaunchUtil (file:/C:/Users/ookma/.CommandBox/lib/runwar-4.7.7.jar) to method java.lang.ProcessImpl.pid()
WARNING: Please consider reporting this to the maintainers of runwar.LaunchUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO ] Starting in background -
I googled it and it stated that it was an exception being raised and that there wasn't any fix. It mentions Felix
a lot though.bdw429s
04/27/2023, 5:56 PMbdw429s
04/27/2023, 5:56 PMbdw429s
04/27/2023, 5:57 PMOokma-Kyi
04/27/2023, 5:57 PMbdw429s
04/27/2023, 5:57 PMOokma-Kyi
04/27/2023, 5:57 PMFelix
?
https://luceeserver.atlassian.net/browse/LDEV-2300bdw429s
04/27/2023, 5:57 PMbdw429s
04/27/2023, 5:58 PMbdw429s
04/27/2023, 5:59 PMThed illegal reflective access is the exceptionAgain, that is not an exception. It's a warning, as evidenced by the word "warning" to the left of each line! 🙂
bdw429s
04/27/2023, 5:59 PMOokma-Kyi
04/27/2023, 6:00 PMOokma-Kyi
04/27/2023, 6:02 PMOokma-Kyi
04/27/2023, 6:02 PMbdw429s
04/27/2023, 6:02 PMlong PID = 0;
// PID is only accessable on Java 9+
Method pidMethod = method(process.getClass(), "pid");
if (pidMethod != null) {
pidMethod.setAccessible(true);
PID = (long) invoke(pidMethod, process);
}
CommandBox still supports Java 8 (which does not have a pid()
method on the Process
class, but i wanted to be able to get that for anyone on Java 9 or later, so I used Java Reflection to do so. Oracle is changing how Java works to prevent this sort of thing by default.bdw429s
04/27/2023, 6:03 PMbdw429s
04/27/2023, 6:04 PMbdw429s
04/27/2023, 6:05 PM