You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Kamlesh Awari <ka...@infosys.com> on 2013/06/04 06:58:40 UTC
Remote-debugging of ServiceMix using Eclipse
Hi,
I want to debug Servicemix code in eclipse.
Hence i set KARAF_DEBUG = TRUE in environment variable.
and I ran the servicemix.bat but i am getting below error.
servicemix.bat: Enabling Java debug options: -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
Listening for transport dt_socket at address: 5005
Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:371)
at java.util.ArrayList.get(ArrayList.java:384)
at
org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050)
at
org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859)
at org.apache.felix.framework.Felix.toString(Felix.java:1019)
at org.apache.felix.framework.Logger.doLog(Logger.java:128)
at org.apache.felix.framework.Logger._log(Logger.java:181)
at org.apache.felix.framework.Logger.log(Logger.java:114)
at
org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
at org.apache.felix.framework.Felix.<init>(Felix.java:374)
at
org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
at org.apache.karaf.main.Main.launch(Main.java:266)
at org.apache.karaf.main.Main.main(Main.java:427)
Please do needful.
Thanks in Advance.
Kamlesh Awari
--
View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Kamlesh Awari <ka...@infosys.com>.
Thanks, Now i am able to debug the code in eclipse.
Kamlesh Awari
--
View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716957.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
The host is the hostname where you run the Servicemix, should be localhost by default.
The port is 5005
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-5, at 下午2:24, Kamlesh Awari wrote:
> Hi,
>
> I have followed below steps
>
> 1. Open {{Run - Debug}}
> 2. Mark {{Remote Java Application}}
> 3. Create a {{New Launch Configuration}}
> 4. Specify a name, the project you want to debug (e.g.
> {{servicemix-wsn2005}}) and the connection properties.
>
> For 4 point what should i give host and port
> Thanks In Advance.
>
> Thanks and Regards,
> Kamlesh Awari
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716955.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Kamlesh Awari <ka...@infosys.com>.
Hi,
I have followed below steps
1. Open {{Run - Debug}}
2. Mark {{Remote Java Application}}
3. Create a {{New Launch Configuration}}
4. Specify a name, the project you want to debug (e.g.
{{servicemix-wsn2005}}) and the connection properties.
For 4 point what should i give host and port
Thanks In Advance.
Thanks and Regards,
Kamlesh Awari
--
View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716955.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Kamlesh Awari <ka...@infosys.com>.
Thanks for the valuable information
Kamlesh Awari
--
View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716952.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Freeman Fang <fr...@gmail.com>.
This is actually caused by that SMX 4.4.x does't support JDK7.
SMX support JDK7 since 4.5.x
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-4, at 下午1:16, Kamlesh Awari wrote:
> Hi,
>
> Yes, it is right after i set KARAF_DEBUG to true i am getting this error.
> ServiceMix - 4.4.2
> JDK - jdk1.7.0_07
>
> I changed jdk to jdk1.6.0_25, now i am not getting this error.
>
> Thanks and Regards,
> Kamlesh Awari
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716949.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Freeman Fang <fr...@gmail.com>.
This is actually caused by that SMX 4.4.x does't support JDK7.
SMX support JDK7 since 4.5.x
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-4, at 下午1:16, Kamlesh Awari wrote:
> Hi,
>
> Yes, it is right after i set KARAF_DEBUG to true i am getting this error.
> ServiceMix - 4.4.2
> JDK - jdk1.7.0_07
>
> I changed jdk to jdk1.6.0_25, now i am not getting this error.
>
> Thanks and Regards,
> Kamlesh Awari
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716949.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Kamlesh Awari <ka...@infosys.com>.
Hi,
Yes, it is right after i set KARAF_DEBUG to true i am getting this error.
ServiceMix - 4.4.2
JDK - jdk1.7.0_07
I changed jdk to jdk1.6.0_25, now i am not getting this error.
Thanks and Regards,
Kamlesh Awari
--
View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946p5716949.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Should be discussed in users mailing list.
So you run into this error only after you set KARAF_DEBUG, right?
Please tell us the Servicemix and JDK version you're using.
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-4, at 下午12:58, Kamlesh Awari wrote:
> Hi,
>
> I want to debug Servicemix code in eclipse.
> Hence i set KARAF_DEBUG = TRUE in environment variable.
> and I ran the servicemix.bat but i am getting below error.
>
> servicemix.bat: Enabling Java debug options: -Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
> Listening for transport dt_socket at address: 5005
> Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1
> java.lang.ArrayIndexOutOfBoundsException: -1
> at java.util.ArrayList.elementData(ArrayList.java:371)
> at java.util.ArrayList.get(ArrayList.java:384)
> at
> org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050)
> at
> org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859)
> at org.apache.felix.framework.Felix.toString(Felix.java:1019)
> at org.apache.felix.framework.Logger.doLog(Logger.java:128)
> at org.apache.felix.framework.Logger._log(Logger.java:181)
> at org.apache.felix.framework.Logger.log(Logger.java:114)
> at
> org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
> at org.apache.felix.framework.Felix.<init>(Felix.java:374)
> at
> org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
> at org.apache.karaf.main.Main.launch(Main.java:266)
> at org.apache.karaf.main.Main.main(Main.java:427)
>
> Please do needful.
> Thanks in Advance.
>
> Kamlesh Awari
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Remote-debugging of ServiceMix using Eclipse
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Should be discussed in users mailing list.
So you run into this error only after you set KARAF_DEBUG, right?
Please tell us the Servicemix and JDK version you're using.
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-4, at 下午12:58, Kamlesh Awari wrote:
> Hi,
>
> I want to debug Servicemix code in eclipse.
> Hence i set KARAF_DEBUG = TRUE in environment variable.
> and I ran the servicemix.bat but i am getting below error.
>
> servicemix.bat: Enabling Java debug options: -Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
> Listening for transport dt_socket at address: 5005
> Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1
> java.lang.ArrayIndexOutOfBoundsException: -1
> at java.util.ArrayList.elementData(ArrayList.java:371)
> at java.util.ArrayList.get(ArrayList.java:384)
> at
> org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050)
> at
> org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859)
> at org.apache.felix.framework.Felix.toString(Felix.java:1019)
> at org.apache.felix.framework.Logger.doLog(Logger.java:128)
> at org.apache.felix.framework.Logger._log(Logger.java:181)
> at org.apache.felix.framework.Logger.log(Logger.java:114)
> at
> org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
> at org.apache.felix.framework.Felix.<init>(Felix.java:374)
> at
> org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
> at org.apache.karaf.main.Main.launch(Main.java:266)
> at org.apache.karaf.main.Main.main(Main.java:427)
>
> Please do needful.
> Thanks in Advance.
>
> Kamlesh Awari
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Remote-debugging-of-ServiceMix-using-Eclipse-tp5716946.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.