java.lang.IllegalStateException: Endpoint already registered

java.lang.IllegalStateException: Endpoint already registered

  
From the outsystem i am unable to deploy the espace, the below exception is thrown when i try to publish the changes. Please help.


Error message from node rhlappomr602 (172.24.14.145): Internal Error
 
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
 
*** DEPLOYMENTS IN ERROR: Name -> Error
 
vfsfile:/var/lib/jbossas/server/outsystems/deploy/om_apm_revolving.war/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/var/lib/jbossas/server/outsystems/deploy/om_apm_revolving.war/
 
 
DEPLOYMENTS IN ERROR:
  Deployment "vfsfile:/var/lib/jbossas/server/outsystems/deploy/om_apm_revolving.war/" is in error due to the following reason(s): java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=om_apm_revolving,endpoint=Debugger Web Service
 
 
outsystems.extensibility.exceptions.DeploymentException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
 
*** DEPLOYMENTS IN ERROR: Name -> Error
 
vfsfile:/var/lib/jbossas/server/outsystems/deploy/om_apm_revolving.war/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/var/lib/jbossas/server/outsystems/deploy/om_apm_revolving.war/
 
 
DEPLOYMENTS IN ERROR:
  Deployment "vfsfile:/var/lib/jbossas/server/outsystems/deploy/om_apm_revolving.war/" is in error due to the following reason(s): java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=om_apm_revolving,endpoint=Debugger Web Service
 
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer.runDeploymentProgress(Unknown Source)
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer.deployApplication(Unknown Source)
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer.access$600(Unknown Source)
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer$3.executeImpl(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0.execute(Unknown Source)
   at outsystems.hubedition.util.delegates.Func$3.executeImpl(Unknown Source)
   at outsystems.hubedition.util.delegates.Func$Func0.execute(Unknown Source)
   at outsystems.hubedition.util.TimeoutUtils.executeFuncWithTimeout(Unknown Source)
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer.executeDeployOperationWithTimeout(Unknown Source)
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer.executeDeployOperationWithTimeout(Unknown Source)
   at outsystems.hubedition.deployservice.extensibility.jboss51.JBoss51Deployer.deploy(Unknown Source)
   at outsystems.hubedition.deployservice.applicationservers.n.$kkc(Unknown Source)
   at outsystems.hubedition.deployservice.applicationservers.n.$joc(Unknown Source)
   at outsystems.hubedition.deployservice.applicationservers.j.executeImpl(Unknown Source)
   at outsystems.hubedition.deployservice.applicationservers.j.executeImpl(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action1.execute(Unknown Source)
   at outsystems.runtimecommon.CollectionsExtensions.apply(Unknown Source)
   at outsystems.extensibility.ExtensionPointLoader.execute(Unknown Source)
   at outsystems.extensibility.ExtensionPointLoader.execute(Unknown Source)
   at outsystems.hubedition.deployservice.applicationservers.n.deployEspace(Unknown Source)
   at outsystems.hubedition.deployservice.Deploy.$ooc(Unknown Source)
   at outsystems.hubedition.deployservice.Deploy.$esc(Unknown Source)
   at outsystems.hubedition.deployservice.Deploy.messageTransmission(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
   at sun.rmi.transport.Transport$1.run(Transport.java:159)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
   at java.lang.Thread.run(Thread.java:662)
 
CompModule : Broadcast Message
Hi,

This problem happens when there is a failure to undeploy the application before deploying the newer version in JBoss, which could be caused by a number of reasons.

The quick fix to get you back to work is to manually undeploy the application from jboss and restart the jboss server. To do that:
  • Login via SSH to the machine
  • Go into the JBoss deploy directory (in your case is /var/lib/jbossas/server/outsystems/deploy/): cd /var/lib/jbossas/server/outsystems/deploy/
  • Delete the application that failed to undeploy: rm om_apm_revolving.war
  • Restart JBoss: service jboss-outsystems restart
  • Republish your OutSystems application
This quick fix will get you back to work, but there is a possibility that you might run into the same issue again in the future. In order for us to provide you with the definitive solution, please provide us with the following information:

Contents of the following files:
  • /opt/outsystems/platform/version.txt
  • /etc/sysconfig/outsystems
In the future, if this or other deployment problems happen, please also check the $JBOSS_HOME/server/outsystems/log/server.log for any exceptions that happen immediately before the one you are reporting, and provide us with the stack traces.

Ricardo Marques
Thanks Marques!

Server keeps failing on below expense, 

2013-07-10 11:49:19,284 ERROR [STDERR] (Thread-1389) java.lang.OutOfMemoryError: PermGen space
2013-07-10 11:49:24,769 ERROR [STDERR] (Thread-1389) java.lang.OutOfMemoryError: PermGen space

We have upgraded from 128mb to 256mb and to 512mb..  

1. Can we know if we have any size expected to it ? 
or 2. Does it looks to be issue ? what should be take care to not get into this error . 
Hi Thirupathi,

It is more than likely you'll hit the same issue when you redeploy unless you fix the issue. It seems this is a known defect with symlinks and jboss in OutSystems's early versions of 8. If you upgarde to 8.0.0.5 or above that already has the fix for this issue. If you don't want to upgrade then you will have to manually remove the symlinks. Let me know if you need any additional information.

Jeyanthi