Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting java app to docker RTI #1

Open
rmpt opened this issue Jul 6, 2023 · 1 comment
Open

Connecting java app to docker RTI #1

rmpt opened this issue Jul 6, 2023 · 1 comment

Comments

@rmpt
Copy link

rmpt commented Jul 6, 2023

Hi,
I'm trying to setup a java application to connect into the docker RTI, but the connection doesn't seem to work, even though I have the correct port mapping and the container running.

MAK RTI version: 4.6.1
Changed flag inside start.sh:
X=${MAK_RTI_RTIEXEC_PERFORMS_LICENSING:=0}: since we are using free version

All other flags are untouched.

I start the container with docker-compose up, everything seems fine, but then, when I run my app and calling the method:
rtiAmbassador.connect

I get the error:

Using MAK Technologies' RTI version 4.6.1 HLA 1516-2010 for Microsoft Visual C++ version 14.0 Release Mode.
Attempt to create and connect to Assistant
Create Process Failed with error (2)

Inside the container I get these logs, seems to be fine until trying to connect to RTI assistant:

docker-running-rtiexec-1  | 2023-07-06 10:26:35,147 INFO spawned: 'rtiexec' with pid 9
docker-running-rtiexec-1  | Setting RTI_tcpForwarderAddr to 172.21.0.3
docker-running-rtiexec-1  | 2023-07-06 10:26:35,187 INFO success: rtiexec entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
docker-running-rtiexec-1  | Setting RTI_networkInterfaceAddr to 172.21.0.3
docker-running-rtiexec-1  | Setting RTI_tcpNetworkInterfaceAddr to 172.21.0.3
docker-running-rtiexec-1  | CRC: start
docker-running-xserver-1  | 2023-07-06 10:26:36,017 INFO success: X11 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
docker-running-xserver-1  | 2023-07-06 10:26:36,017 INFO success: fluxbox entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
docker-running-xserver-1  | 2023-07-06 10:26:36,017 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
docker-running-xserver-1  | 2023-07-06 10:26:36,017 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
docker-running-rtiexec-1  | Attempt to create and connect to Assistant
docker-running-rtiexec-1  | Child process: 26 started in background ( 0 )
docker-running-rtiexec-1  | 2023-07-06 10:26:37,096 INFO reaped unknown pid 27 (terminated by SIGABRT)
docker-running-rtiexec-1  | Failed to connect to RTI Assistant.
docker-running-rtiexec-1  | Loading Config File: /usr/local/makRti4.6.1/rid.mtl
docker-running-rtiexec-1  | Attempt to create and connect to Assistant
docker-running-rtiexec-1  | Failed to connect to RTI Assistant.
docker-running-rtiexec-1  | Loading Config File: /usr/local/makRti4.6.1/rid.mtl
docker-running-rtiexec-1  | 2023-07-06 10:26:40,687 INFO exited: rtiexec (exit status 0; expected)
docker-running-rtiexec-1  | 2023-07-06 10:26:40,687 INFO reaped unknown pid 28 (exit status 0)
docker-running-rtiexec-1  | 2023-07-06 10:26:41,696 INFO reaped unknown pid 32 (terminated by SIGABRT)
docker-running-rtiexec-1  | 2023-07-06 10:26:46,706 INFO reaped unknown pid 33 (exit status 0)

I couldn't figure out how to connect into xserver, so I'm not sure I'm missing some popup, but since I've disabled licensing, I guess there's no warning about it.

Can someone help me here?

Thanks

@bergtwvd
Copy link
Contributor

What do you see on the X Display? Possibly the RTI Assistant is waiting for user input before it can continue.

Alternatively disable the RTI Assistant with RTI_ASSISTANT_DISABLE=1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants