Lookup of RMI stub failed; nested exception is java.rmi.ConnectException

AlanM

Member
I'm setting up a new server with more resources. I'm using the same installation routine I've used for my other servers (Launched from EC2 AMI). The WCS admin site loads with the default version included with the AMI. However, I get this RMI error after I run the WCS update

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jan 25 16:54:13 UTC 2018
There was an unexpected error (type=Internal Server Error, status=500).
Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused


I got it on version 5.0.2753 and I still get it after today's update to 5.0.2756
I've tried going to wcs-core.properties and setting the java.rmi.server.hostname. I've tried:
localhost
Our LAN IP
Our public IP
Our public DNS name
 

Max

Administrator
Staff member
Try to stop server and remove WCS_HOME/database/* files.
It will be re-created from scratch on startup.
 

AlanM

Member
I removed the wcs db files before running the wcs updater. That did not work
I also configured the server with mysql. I've dropped the wcs schema and recreated it. That also did not work
 

Jai WC

New Member
I am also facing problem for error like There was an unexpected error (type=Internal Server Error, status=500). Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused (Connection refused) and also tried for the solution as MAX said in the last comment but it doesn't work for me so is there any another thing need to be changed?
 
Last edited:

Max

Administrator
Staff member
cd WCS_HOME/bin
./webcallserver start standalone
Please send us logs if you have any errors.
 

Chandu

New Member
i am getting following error after installation
pls help me to figure it on my vps server
Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sun Jul 01 00:46:31 MST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused (Connection refused)

Thanks
 

Max

Administrator
Staff member
Hello
Try to backup and remove database files
Code:
service webcallserver stop
rm -f /usr/local/FlashponerWebCallServer/database/*
service webcallserver start
If it does not help, make sure your hostname is listed in /etc/hosts
Example:
Code:
# cat /etc/hostname
wcs4-eu.flashphoner.com
# cat /etc/hosts | grep wcs4
127.0.0.1 wcs4-eu.flashphoner.com wcs4-eu.flashphoner.com
::1 wcs4-eu.flashphoner.com wcs4-eu.flashphoner.com
Make sure your hostname is resolved to proper IP address.
 

Chandu

New Member
i tried your above given solution and run given command but the error not resolved. please provide me steps to resolve this details or we can be online at same time and you help me to resolve this issue.
 

Max

Administrator
Staff member
Hello Chandu
We have received ssh access by email.
Your ssh details seem invalid.
Please test your details with SSH connection and re-send.
If you are sure it is correct, please provide few screen-shots how do you connect over SSH.
 

Max

Administrator
Staff member
Hello. We have checked your server.
You had 'Out Of Memory' error.
Please follow recommendations below:

1. Stop server process.
Code:
ps aux | grep java
kill PID
here PID is ID of WCS manager process
2. Make sure it was stopped.
Code:
ps aux | grep java
3. Add RAM memory to your server.
4. Configure -Xmx -Xms on your server how it is described in the tuning guide.
https://docs.flashphoner.com/display/WCS5EN/Server tuning recommendations
It should be half of RAM.
5. Install JDK 1.8 latest from Oracle.com
https://docs.flashphoner.com/display/WCS5EN/Requirements and prerequisites#Requirementsandprerequisites-JDKinstallation

Once all recommendations done, you can start your WCS server.
Code:
service webcallserver start
Please check troubleshooting guide if you have any issues:
https://forum.flashphoner.com/threads/troubleshooting.10768/
 

Max

Administrator
Staff member
We already have 2 GB RAM and in your WCS server prerequisite is minimum 2GB.
Well. If 2 GB is enough for you, just follow remaining recommendations: 1, 2, 5 to restart server.
 

tbr666

New Member
Hello, I got the similar error on my Flashphoner server, but I can't seem to fix this issue with the comments provided here. Here is an exact exception I caught while trying to run the Flashphoner web console.
 

Attachments

Max

Administrator
Staff member
Hello.
Hello, I got the similar error on my Flashphoner server
As we see, you use WCS 5.0. Try to update to latest version (5.0.3507 for now).
 
Top