Hi Aditya,

I guess you have missed some steps when connecting the debugger. You should
create a server and add the -Desb.debug=super parameter as you did.  Then
you should add debug configuration for ESB mediation debugger too. For that
you should go to debug configurations (Run -> Debug Configurations) and
locate to ESB Mediation Debugger and create a new configuration from that.


.[image: Inline image 1]


Then you should start the ESB server as usual (Not in debug mode. Right
click on server and start). Then it pauses at a point logging this message

"SynapseDebugInterface Listen on ports : Command 9005 - Event 9006"

In this point you have to connect the ESB Mediation debugger. To do that go
to Run -> Debug Configurations -> select ESB Mediation Debugger config you
created(New_configuration) and press debug. This should be done within a
usual time span of 1 min  otherwise server will give the same error saying
that the debugger is not connected. If you start ESB Mediation Debugger
within that time the server will start as usual with the debug capability.
Please follow the above steps too and let us know whether it fixes the
error.

Thanks,
Heshitha.

On Fri, Oct 6, 2017 at 4:53 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> WSO2 debugger is not working for me .Please guide.
>
>
> Please find attchment . For issue with screenshots.
>
>
>
> Debugger Steps :
>
> Following below document : https://nuwanpallewela.
> wordpress.com/2016/06/11/how-to-connect-with-wso2-esb-
> server-in-debug-mode/
> This section of above document : Starting WSO2 ESB Server with from ESB
> Tool and Connect to Server in Debug Mode 1.   Added server in eclipse :
> 2)   Double clicked generic server New_configuration(1) is created. 3)    Went
> to Arguments tab and added Program arguments “-Desb.debug=super”.
>
> Clicked on Apply and close.
>
>
>
> 4)      Right clicked on server and pressed start .(also tried clicking
> here debug but server did not  start after long time also with similar
> error in logs , so I sttoped it)
>
>
>
> I get below error in logs :
>
> [2017-10-06 15:28:41,013] ERROR - SynapseDebugInterface Failed create
> communication channels to the external debugger
>
> *java.net <http://java.net>.SocketTimeoutException*: Accept timed out
>
>        at java.net.TwoStacksPlainSocketImpl.socketAccept(*Native Method*)
>
>        at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
>
>        at java.net.PlainSocketImpl.accept(Unknown Source)
>
>        at java.net.ServerSocket.implAccept(Unknown Source)
>
>        at java.net.ServerSocket.accept(Unknown Source)
>
>        at org.apache.synapse.debug.SynapseDebugInterface.
> createDebugChannels(*SynapseDebugInterface.java:81*)
>
>        at org.apache.synapse.debug.SynapseDebugInterface$
> AsynchronousChannelCreator.run(*SynapseDebugInterface.java:155*)
>
>        at java.lang.Thread.run(Unknown Source)
>
> [2017-10-06 15:28:41,018] ERROR - ServiceBusInitializer Error while
> creating Synapse debug environment
>
> *java.net <http://java.net>.SocketTimeoutException*: Accept timed out
>
>        at java.net.TwoStacksPlainSocketImpl.socketAccept(*Native Method*)
>
>        at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
>
>        at java.net.PlainSocketImpl.accept(Unknown Source)
>
>        at java.net.ServerSocket.implAccept(Unknown Source)
>
>        at java.net.ServerSocket.accept(Unknown Source)
>
>        at org.apache.synapse.debug.SynapseDebugInterface.
> createDebugChannels(*SynapseDebugInterface.java:81*)
>
>        at org.apache.synapse.debug.SynapseDebugInterface$
> AsynchronousChannelCreator.run(*SynapseDebugInterface.java:155*)
>
>        at java.lang.Thread.run(Unknown Source)
>
>
>
> Although thereafter the server starts :
>
> [2017-10-06 15:29:03,891]  INFO - JMXServerManager JMX Service URL  :
> service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
>
> [2017-10-06 15:29:03,894]  INFO - StartupFinalizerServiceComponent
> Server           :  WSO2 Enterprise Service Bus-5.0.0
>
> [2017-10-06 15:29:03,896]  INFO - StartupFinalizerServiceComponent WSO2
> Carbon started in 112 sec
>
> [2017-10-06 15:29:04,218]  INFO - CarbonUIServiceComponent Mgt Console
> URL  : https://169.254.184.14:9443/carbon/
>
>
>
> 5)  Then I deployed my flow using eclipse server console.
>
> 6)  My flow got deployed successfully , as could be seen on wso2 console.
>
> 7)      Then I added breakpoints .
>
> 8)       Then I tried to hit the service from postman , but it did not
> stop at any breakpoint.
>
>
>
> Using :
>
>
>
> 1.       *Eclipse* Java EE IDE for Web Developers. Version: *Mars.2
> Release (4.5.2)*.Build id: 20160218-0600
>
> *2.       **Developer Studio :*
>
>
>
> *3.       * *wso2esb-5.0.0 server.*
>
>
>
> With Regards,
>
> Aditya
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to