I am in the process of evaluating Mule for a new project and, while I
have made great progress in getting my suite of services to work, I
have encountered a problem in trying to enable remote debugging to
debug one of my services.
In $MULE_HOME/conf/wrapper.conf I uncommented the debug section
(ensuring the wrapper.java.additional.n value is correct for my config):
wrapper.java.additional.4=-Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
When I start Mule, it does post a notice about debugging being
enabled and that it may suspend and yet it does not suspend. Also,
when I set suspend=n and just try to attach after startup via either
jdb or my IDE (IDEA) I get a "connection refused" exception.
I'm running Mule on Mac OS X v 10.4.9. Is anyone successfully
debugging remotely in v1.4 on Mac OS X?
Scott Johnson, Software Developer
MediaSpan Media Software
sjoh...@mediaspansoftware.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
This describes my problem exactly, did you manage to find a solution?
Thanks,
Paul.
--
View this message in context: http://www.nabble.com/Remote-Debugging-in-Mule-1.4-tf3657982.html#a11464790
Sent from the Mule - User mailing list archive at Nabble.com.
I've atatched the wrapper.conf and the output from the console.
the following shows my remote debug settings in my ide:
http://www.nabble.com/file/p11467560/Screenshot-Run-Debug%2BConfigurations.png
additionaly i've tried the following:
$telnet localhost 5005
for which i get a "connection reffused". The same error that I receive in
IntelliJ. I've also tried attatching to a different Java application using
the same java properties for which I can both attach to using IntelliJ and
using telnet.
Hope this is enough information,
Paul.
http://www.nabble.com/file/p11467560/wrapper.conf wrapper.conf
http://www.nabble.com/file/p11467560/console.out console.out
--
View this message in context: http://www.nabble.com/Remote-Debugging-in-Mule-1.4-tf3657982.html#a11467560
I should tell you, I'm running linux (fedora7), I guess this is relevant as
it will dictate which wrapper I'm using.
I've tried jdk1.5.0_12 and jdk1.6.0_01; I get the same problem in both.
Which JDK do you (Andrew) use? I'll try that one next.
I've also tried mule-1.3 and mule-1.4.1; again I get the same problem.
As I understand it, if i set "suspend=y", then I should notice mule suspend
at some point during boot up, until I attach a debugger. In my case, mule
boots fully. Can you tell me when mule should suspend?
Thanks a lot,
Paul Robinson.
--
View this message in context: http://www.nabble.com/Remote-Debugging-in-Mule-1.4-tf3657982.html#a11498033
wrapper.java.additional.4=-Xdebug -Xnoagent -Djava.compiler=NONE
wrapper.java.additional.5=-
Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
instead of:
wrapper.java.additional.4=-Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
--Ed Tellman
> Debugging-in-Mule-1.4-tf3657982.html#a11498033
> Sent from the Mule - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
I've just tested what you suggest and it works.
I'm guessing the safest thing to do would be to have every parameter on a
separate line. I'm not sure what's happening in the code, but it could be
passing each line as an individual argument to the args array of the Java
main method. I'm not sure how the wrapper works, so I'm just speculating.
There does seem to be a bug somewhere here. Even if it's just the suggested
debug line that is commented out in the shipped 1.4.1 version of mule.
Thanks again,
Paul Robinson.
--
View this message in context: http://www.nabble.com/Remote-Debugging-in-Mule-1.4-tf3657982.html#a11498989
Could a short term fix be to modify the wrapper.conf that ships with mule,
such that each item property is on a separate line?
Could save many people a lot of frustration in the future.
Paul Robinson.
--
View this message in context: http://www.nabble.com/Remote-Debugging-in-Mule-1.4-tf3657982.html#a11501729
Best regards
Lukasz Lipka
--
View this message in context: http://www.nabble.com/Remote-Debugging-in-Mule-1.4-tf3657982.html#a12519054