camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: camel websocket - Address already in use: bind
Date Tue, 04 Aug 2015 15:53:53 GMT
Thank you very much Andy :) 

-----Original Message-----
From: Andrew Block [] 
Sent: 04 August 2015 PM 09:19
To:; Shemeem <>
Subject: Re: camel websocket - Address already in use: bind

I have also seen this issue with the Websocket component previously as I had been working
with this component recently.

Logged a JIRA for the issue:

I pinpointed the issue and will be working on a patch shortly


Andrew Block

On August 4, 2015 at 5:14:54 AM, Shemeem ( wrote:

Hi All,  
I am using apache camel websocket in OSGI enviromnet(apache karaf  
container). I am not able to redeploy my bundle with websocket route. When I  
am trying the same, I am getting the following exception in log:  

Caused by: org.apache.camel.FailedToCreateProducerException: Failed to  
create Producer for endpoint:  
Time=3000000&sendToAll=false]. Reason: Address  
already in use: bind  

This error clearly says that, the port which I am using is preoccupied.  
Here, my question is how do I release the port in camel websocket??  
I am stoping the camel context and websocket using the below code, in the  
bundle stop method, inside the bundle activator class.  

WebsocketComponent wc  


As well as, I amstoping the camel context also.  

But this is not working for me. Every time, I have to restart the karaf,  
in-order to solve this issue.  

Please guide me on this issue. :) Is there any other way to release the  

Thanks in advance  
Shemeem SP  

View this message in context:
Sent from the Camel - Users mailing list archive at  

View raw message