You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "daves (Jira)" <ji...@apache.org> on 2026/09/29 12:35:00 UTC
[jira] [Updated] (ARTEMIS-6276) artemis.cmd fails with error 'NO_ARTEMIS_OOME_DUMP' is not recognized as an internal or external command
[ https://issues.apache.org/jira/browse/ARTEMIS-6276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
daves updated ARTEMIS-6276:
---------------------------
Description:
Executing this command:
{code:java}
artemis.cmd user add --user-command-user admin --user-command-password adminPassword --role admin
{code}
Results in the following error:
{code:java}
'NO_ARTEMIS_OOME_DUMP' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/C:/Artemis/apache-artemis-2.57.0/lib/netty-common-4.1.137.Final.jar)
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
Connection brokerURL = tcp://localhost:61616
Connection failed::AMQ229031: Unable to validate user from 127.0.0.1:40987. Username: null; SSL certificate subject DN: unavailable
{code}
Tested on Windows 11, with Artemis 2.57.0
Content of the artemis.cmd script:
{code:java}
@echo off
SET JAVA_HOME=C:\Artemis\apache-artemis-2.57.0\jdk\jdk-27
rem Licensed to the Apache Software Foundation (ASF) under one
rem or more contributor license agreements. See the NOTICE file
rem distributed with this work for additional information
rem regarding copyright ownership. The ASF licenses this file
rem to you under the Apache License, Version 2.0 (the
rem "License"); you may not use this file except in compliance
rem with the License. You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing,
rem software distributed under the License is distributed on an
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
rem KIND, either express or implied. See the License for the
rem specific language governing permissions and limitations
rem under the License.
setlocal
if NOT "%ARTEMIS_INSTANCE%"=="" goto CHECK_ARTEMIS_INSTANCE
set ARTEMIS_INSTANCE="%~dp0.."
:CHECK_ARTEMIS_INSTANCE
if exist %ARTEMIS_INSTANCE%\bin\artemis.cmd goto CHECK_JAVA
:NO_HOME
echo ARTEMIS_INSTANCE environment variable is set incorrectly. Please set ARTEMIS_INSTANCE.
goto END
:CHECK_JAVA
set _JAVACMD=%JAVACMD%
if "%JAVA_HOME%" == "" goto NO_JAVA_HOME
if not exist "%JAVA_HOME%\bin\java.exe" goto NO_JAVA_HOME
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto RUN_JAVA
:NO_JAVA_HOME
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo.
echo Warning: JAVA_HOME environment variable is not set.
echo.
:RUN_JAVA
rem "Load Profile Config"
set ARTEMIS_INSTANCE_ETC="C:\Artemis\MyBroker\etc"
if not "%ARTEMIS_PROFILE%"=="" goto LOAD_ARTEMIS_PROFILE
set ARTEMIS_PROFILE=artemis-utility.profile.cmd
if "%1"=="run" set ARTEMIS_PROFILE=artemis.profile.cmd
:LOAD_ARTEMIS_PROFILE
IF NOT EXIST %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% (
echo ********************************************************************************
echo Error: %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% does not exist.
echo.
echo This file should have been created as part of you upgrading from a previous version
echo Please use 'artemis upgrade' or make sure you create the file.
echo ********************************************************************************
exit /b 1
)
call %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% %*
if not exist %ARTEMIS_OOME_DUMP% goto NO_ARTEMIS_OOME_DUMP
rem "Backup the last OOME heap dump"
move /Y %ARTEMIS_OOME_DUMP% %ARTEMIS_OOME_DUMP%.bkp
:NO_ARTEMIS_OOME_DUMP
rem "Create full JVM Args"
set JVM_ARGS=%LOGGING_ARGS%
set JVM_ARGS=%JVM_ARGS% %JAVA_ARGS%
if not "%ARTEMIS_CLUSTER_PROPS%"=="" set JVM_ARGS=%JVM_ARGS% %ARTEMIS_CLUSTER_PROPS%
set JVM_ARGS=%JVM_ARGS% -classpath %ARTEMIS_HOME%\lib\artemis-boot.jar
set JVM_ARGS=%JVM_ARGS% -Dartemis.home=%ARTEMIS_HOME%
set JVM_ARGS=%JVM_ARGS% -Dartemis.instance=%ARTEMIS_INSTANCE%
set JVM_ARGS=%JVM_ARGS% -Ddata.dir=%ARTEMIS_DATA_DIR%
set JVM_ARGS=%JVM_ARGS% -Dartemis.instance.etc=%ARTEMIS_INSTANCE_ETC%
set JVM_ARGS=%JVM_ARGS% -Djava.security.auth.login.config=%ARTEMIS_INSTANCE_ETC%\login.config
if not "%DEBUG_ARGS%"=="" set JVM_ARGS=%JVM_ARGS% %DEBUG_ARGS%
if not "%$JAVA_ARGS_APPEND%"=="" set JVM_ARGS=%JVM_ARGS% %$JAVA_ARGS_APPEND%
"%_JAVACMD%" %JVM_ARGS% org.apache.activemq.artemis.boot.Artemis %*
:END
endlocal
GOTO :EOF
:EOF
{code}
was:
Executing this command:
```
artemis.cmd user add --user-command-user admin --user-command-password adminPassword --role admin
```
Results in the following error:
```
'NO_ARTEMIS_OOME_DUMP' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/C:/Artemis/apache-artemis-2.57.0/lib/netty-common-4.1.137.Final.jar)
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
Connection brokerURL = tcp://localhost:61616
Connection failed::AMQ229031: Unable to validate user from 127.0.0.1:40987. Username: null; SSL certificate subject DN: unavailable
````
Tested on Windows 11, with Artemis 2.57.0
Content of the artemis.cmd script:
```
@echo off
SET JAVA_HOME=C:\Artemis\apache-artemis-2.57.0\jdk\jdk-27
rem Licensed to the Apache Software Foundation (ASF) under one
rem or more contributor license agreements. See the NOTICE file
rem distributed with this work for additional information
rem regarding copyright ownership. The ASF licenses this file
rem to you under the Apache License, Version 2.0 (the
rem "License"); you may not use this file except in compliance
rem with the License. You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing,
rem software distributed under the License is distributed on an
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
rem KIND, either express or implied. See the License for the
rem specific language governing permissions and limitations
rem under the License.
setlocal
if NOT "%ARTEMIS_INSTANCE%"=="" goto CHECK_ARTEMIS_INSTANCE
set ARTEMIS_INSTANCE="%~dp0.."
:CHECK_ARTEMIS_INSTANCE
if exist %ARTEMIS_INSTANCE%\bin\artemis.cmd goto CHECK_JAVA
:NO_HOME
echo ARTEMIS_INSTANCE environment variable is set incorrectly. Please set ARTEMIS_INSTANCE.
goto END
:CHECK_JAVA
set _JAVACMD=%JAVACMD%
if "%JAVA_HOME%" == "" goto NO_JAVA_HOME
if not exist "%JAVA_HOME%\bin\java.exe" goto NO_JAVA_HOME
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto RUN_JAVA
:NO_JAVA_HOME
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
echo.
echo Warning: JAVA_HOME environment variable is not set.
echo.
:RUN_JAVA
rem "Load Profile Config"
set ARTEMIS_INSTANCE_ETC="C:\Artemis\MyBroker\etc"
if not "%ARTEMIS_PROFILE%"=="" goto LOAD_ARTEMIS_PROFILE
set ARTEMIS_PROFILE=artemis-utility.profile.cmd
if "%1"=="run" set ARTEMIS_PROFILE=artemis.profile.cmd
:LOAD_ARTEMIS_PROFILE
IF NOT EXIST %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% (
echo ********************************************************************************
echo Error: %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% does not exist.
echo.
echo This file should have been created as part of you upgrading from a previous version
echo Please use 'artemis upgrade' or make sure you create the file.
echo ********************************************************************************
exit /b 1
)
call %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% %*
if not exist %ARTEMIS_OOME_DUMP% goto NO_ARTEMIS_OOME_DUMP
rem "Backup the last OOME heap dump"
move /Y %ARTEMIS_OOME_DUMP% %ARTEMIS_OOME_DUMP%.bkp
:NO_ARTEMIS_OOME_DUMP
rem "Create full JVM Args"
set JVM_ARGS=%LOGGING_ARGS%
set JVM_ARGS=%JVM_ARGS% %JAVA_ARGS%
if not "%ARTEMIS_CLUSTER_PROPS%"=="" set JVM_ARGS=%JVM_ARGS% %ARTEMIS_CLUSTER_PROPS%
set JVM_ARGS=%JVM_ARGS% -classpath %ARTEMIS_HOME%\lib\artemis-boot.jar
set JVM_ARGS=%JVM_ARGS% -Dartemis.home=%ARTEMIS_HOME%
set JVM_ARGS=%JVM_ARGS% -Dartemis.instance=%ARTEMIS_INSTANCE%
set JVM_ARGS=%JVM_ARGS% -Ddata.dir=%ARTEMIS_DATA_DIR%
set JVM_ARGS=%JVM_ARGS% -Dartemis.instance.etc=%ARTEMIS_INSTANCE_ETC%
set JVM_ARGS=%JVM_ARGS% -Djava.security.auth.login.config=%ARTEMIS_INSTANCE_ETC%\login.config
if not "%DEBUG_ARGS%"=="" set JVM_ARGS=%JVM_ARGS% %DEBUG_ARGS%
if not "%$JAVA_ARGS_APPEND%"=="" set JVM_ARGS=%JVM_ARGS% %$JAVA_ARGS_APPEND%
"%_JAVACMD%" %JVM_ARGS% org.apache.activemq.artemis.boot.Artemis %*
:END
endlocal
GOTO :EOF
:EOF
```
> artemis.cmd fails with error 'NO_ARTEMIS_OOME_DUMP' is not recognized as an internal or external command
> --------------------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-6276
> URL: https://issues.apache.org/jira/browse/ARTEMIS-6276
> Project: Artemis
> Issue Type: Bug
> Affects Versions: 2.57.0
> Reporter: daves
> Priority: Minor
>
> Executing this command:
> {code:java}
> artemis.cmd user add --user-command-user admin --user-command-password adminPassword --role admin
> {code}
> Results in the following error:
> {code:java}
> 'NO_ARTEMIS_OOME_DUMP' is not recognized as an internal or external command,
> operable program or batch file.
> The system cannot find the file specified.
> WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
> WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/C:/Artemis/apache-artemis-2.57.0/lib/netty-common-4.1.137.Final.jar)
> WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
> WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
> Connection brokerURL = tcp://localhost:61616
> Connection failed::AMQ229031: Unable to validate user from 127.0.0.1:40987. Username: null; SSL certificate subject DN: unavailable
> {code}
> Tested on Windows 11, with Artemis 2.57.0
> Content of the artemis.cmd script:
> {code:java}
> @echo off
> SET JAVA_HOME=C:\Artemis\apache-artemis-2.57.0\jdk\jdk-27
> rem Licensed to the Apache Software Foundation (ASF) under one
> rem or more contributor license agreements. See the NOTICE file
> rem distributed with this work for additional information
> rem regarding copyright ownership. The ASF licenses this file
> rem to you under the Apache License, Version 2.0 (the
> rem "License"); you may not use this file except in compliance
> rem with the License. You may obtain a copy of the License at
> rem
> rem http://www.apache.org/licenses/LICENSE-2.0
> rem
> rem Unless required by applicable law or agreed to in writing,
> rem software distributed under the License is distributed on an
> rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> rem KIND, either express or implied. See the License for the
> rem specific language governing permissions and limitations
> rem under the License.
> setlocal
> if NOT "%ARTEMIS_INSTANCE%"=="" goto CHECK_ARTEMIS_INSTANCE
> set ARTEMIS_INSTANCE="%~dp0.."
> :CHECK_ARTEMIS_INSTANCE
> if exist %ARTEMIS_INSTANCE%\bin\artemis.cmd goto CHECK_JAVA
> :NO_HOME
> echo ARTEMIS_INSTANCE environment variable is set incorrectly. Please set ARTEMIS_INSTANCE.
> goto END
> :CHECK_JAVA
> set _JAVACMD=%JAVACMD%
> if "%JAVA_HOME%" == "" goto NO_JAVA_HOME
> if not exist "%JAVA_HOME%\bin\java.exe" goto NO_JAVA_HOME
> if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
> goto RUN_JAVA
> :NO_JAVA_HOME
> if "%_JAVACMD%" == "" set _JAVACMD=java.exe
> echo.
> echo Warning: JAVA_HOME environment variable is not set.
> echo.
> :RUN_JAVA
> rem "Load Profile Config"
> set ARTEMIS_INSTANCE_ETC="C:\Artemis\MyBroker\etc"
> if not "%ARTEMIS_PROFILE%"=="" goto LOAD_ARTEMIS_PROFILE
> set ARTEMIS_PROFILE=artemis-utility.profile.cmd
> if "%1"=="run" set ARTEMIS_PROFILE=artemis.profile.cmd
> :LOAD_ARTEMIS_PROFILE
> IF NOT EXIST %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% (
> echo ********************************************************************************
> echo Error: %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% does not exist.
> echo.
> echo This file should have been created as part of you upgrading from a previous version
> echo Please use 'artemis upgrade' or make sure you create the file.
> echo ********************************************************************************
> exit /b 1
> )
> call %ARTEMIS_INSTANCE_ETC%\%ARTEMIS_PROFILE% %*
> if not exist %ARTEMIS_OOME_DUMP% goto NO_ARTEMIS_OOME_DUMP
> rem "Backup the last OOME heap dump"
> move /Y %ARTEMIS_OOME_DUMP% %ARTEMIS_OOME_DUMP%.bkp
> :NO_ARTEMIS_OOME_DUMP
> rem "Create full JVM Args"
> set JVM_ARGS=%LOGGING_ARGS%
> set JVM_ARGS=%JVM_ARGS% %JAVA_ARGS%
> if not "%ARTEMIS_CLUSTER_PROPS%"=="" set JVM_ARGS=%JVM_ARGS% %ARTEMIS_CLUSTER_PROPS%
> set JVM_ARGS=%JVM_ARGS% -classpath %ARTEMIS_HOME%\lib\artemis-boot.jar
> set JVM_ARGS=%JVM_ARGS% -Dartemis.home=%ARTEMIS_HOME%
> set JVM_ARGS=%JVM_ARGS% -Dartemis.instance=%ARTEMIS_INSTANCE%
> set JVM_ARGS=%JVM_ARGS% -Ddata.dir=%ARTEMIS_DATA_DIR%
> set JVM_ARGS=%JVM_ARGS% -Dartemis.instance.etc=%ARTEMIS_INSTANCE_ETC%
> set JVM_ARGS=%JVM_ARGS% -Djava.security.auth.login.config=%ARTEMIS_INSTANCE_ETC%\login.config
> if not "%DEBUG_ARGS%"=="" set JVM_ARGS=%JVM_ARGS% %DEBUG_ARGS%
> if not "%$JAVA_ARGS_APPEND%"=="" set JVM_ARGS=%JVM_ARGS% %$JAVA_ARGS_APPEND%
> "%_JAVACMD%" %JVM_ARGS% org.apache.activemq.artemis.boot.Artemis %*
> :END
> endlocal
> GOTO :EOF
> :EOF
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org