BCC Error getting current deployment : CONTAINER:atg.deployment.common.DeploymentException: A system error was encountered trying to lookup the RMI URI


 I found this problem on a client.

After reviewing all the Configurations for RmiServer there was nothing wrong, only thing is that for some reason the default port was set when a deployment was created leading to an exception like this:

**** Error Thu Nov 10 15:27:10 CST 2022 1668115630611 /atg/epub/deployment/DeploymentFulfiller --- CONTAINER:atg.deployment.common.DeploymentException: A system error was encountered trying to lookup the RMI URI 'rmi
://myserver:8960/atg/epub/deployment/CurrentDeployment'.; SOURCE:java.rmi.ConnectException: Connection refused to host: myserver; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:400)
at atg.deployment.server.RemoteDeployment.<init>(RemoteDeployment.java:117)
at atg.deployment.server.Target.getCurrentDeployment(Target.java:1102)
at atg.deployment.server.queue.QueueFulfillerAction.execute(QueueFulfillerAction.java:139)
at atg.deployment.server.queue.DeploymentQueueManager$SecureQueueAction.run(DeploymentQueueManager.java:400)
at atg.security.ThreadSecurityManager.doAs(ThreadSecurityManager.java:101)
at atg.deployment.server.queue.DeploymentQueueManager.performActionInternal(DeploymentQueueManager.java:261)
at atg.deployment.server.queue.DeploymentQueueManager.performActionLocked(DeploymentQueueManager.java:228)
at atg.deployment.server.queue.DeploymentQueueManager.performAction(DeploymentQueueManager.java:172)
at atg.deployment.server.queue.DeploymentFulfiller.handleNextJobForTarget(DeploymentFulfiller.java:516)
at atg.deployment.server.queue.DeploymentFulfiller.performScheduledTask(DeploymentFulfiller.java:345)
at atg.service.scheduler.Scheduler$1handler.run(Scheduler.java:557)
Caused by :java.rmi.ConnectException: Connection refused to host: myserver; nested exception is:
view raw gistfile1.txt hosted with ❤ by GitHub


That means that the deployment was created with the default port:


In order to solve this you just need to update the deployment to have the correct RMI port:

update epub_deployment
set uri = 'rmi://myserver:7063/atg/epub/deployment/CurrentDeployment'
where DEPLOYMENT_ID = '83800001'
view raw gistfile1.txt hosted with ❤ by GitHub

Once this is complete you can go back and see that BCC is working as expected.

Comments