You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bruce Edge <br...@nextissuemedia.com> on 2015/04/13 02:28:15 UTC
debugger connection tooling broken?
I tried to use an eclipse remote debugger for the first time in a few
months and it appears to not be working now. I was using this regularly,
so I believe setup is probably OK. (famous last words)
Just wondering if anyone else has seen this and if I should file a bug.
When I try to connect from eclipse, it initially looks like it¹s working,
I see the server added to the debug window, then I get this error dialog:
An internal error occurred during: "Starting Sling Server (external) at
localhost".
org/apache/sling/ide/transport/Repository$CommandExecutionFlag
and get this in the sling log:
12.04.2015 17:14:26.273 *INFO* [qtp1958698118-46] logs/request.log
12/Apr/2015:17:14:26 -0700 [1] -> PROPFIND /server/ HTTP/1.1
12.04.2015 17:14:26.295 *INFO* [qtp1958698118-46] logs/request.log
12/Apr/2015:17:14:26 -0700 [1] <- 207 text/xml; charset=UTF-8 22ms
12.04.2015 17:14:26.296 *INFO* [qtp1958698118-46] logs/access.log 10.0.2.2
- admin 12/Apr/2015:17:14:26 -0700 "PROPFIND /server/ HTTP/1.1" 207 440
"http://localhost/" "Jakarta Commons-HttpClient/3.1"
I know the debug port is setup correctly because can telnet to it, and
trigger this
Debugger failed to attach: timeout during handshake
and:
#> lsof -p 19346 | grep TCP
java 19346 root 4u IPv4 513679 0t0 TCP *:30303
(LISTEN)
java 19346 root 8u IPv6 511763 0t0 TCP
localhost:43545 (LISTEN)
java 19346 root 145u IPv6 513689 0t0 TCP
*:http-alt (LISTEN)
I am passing the appropriate debug startup args:
19346 pts/1 Sl+ 0:28 java -Xmx512M
-agentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=n -jar
org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar -a 0.0.0.0 start
-Bruce
Re: debugger connection tooling broken?
Posted by Robert Munteanu <ro...@apache.org>.
On Sat, Apr 18, 2015 at 1:19 AM, Bruce Edge
<br...@nextissuemedia.com> wrote:
>
> sling/tooling/ide/p2update/target/org.apache.sling.ide.p2update-1.0.7-SNAPS
> HOT.zip from my tree and installed into eclipse, re-imported my sling
> projects, and it works as expected now.
Glad to hear it that it worked.
Robert
Re: debugger connection tooling broken?
Posted by Bruce Edge <br...@nextissuemedia.com>.
Hi Robert,
From: Robert Munteanu <ro...@apache.org>
>Repository#CommandExecutionFlag was introduced in r1660656 [1] for
>SLING-4069 [2] , which means that you're running a build from trunk.
Yes, exactly.
>Is that correct? If it is, can I ask how you have built and installed
>the project?
I¹m running from a debian package installation built from
contrib/launchpad/debian,
contrib/launchpad/debian/target/sling-server_8~20150417143913_all.deb
>[1]: https://svn.apache.org/viewvc?view=revision&revision=1660656
>[2]: https://issues.apache.org/jira/browse/SLING-4069
Your comment regarding a trunk version made me realize that I probably
needed the trunk IDE tooling as wellŠ
So I built
sling/tooling/ide/p2update/target/org.apache.sling.ide.p2update-1.0.7-SNAPS
HOT.zip from my tree and installed into eclipse, re-imported my sling
projects, and it works as expected now.
Thanks for the mental nudge to use the trunk tooling.
-Bruce
Re: debugger connection tooling broken?
Posted by Robert Munteanu <ro...@apache.org>.
Hi Bruce,
On Mon, Apr 13, 2015 at 3:28 AM, Bruce Edge
<br...@nextissuemedia.com> wrote:
> I tried to use an eclipse remote debugger for the first time in a few
> months and it appears to not be working now. I was using this regularly,
> so I believe setup is probably OK. (famous last words)
>
> Just wondering if anyone else has seen this and if I should file a bug.
>
> When I try to connect from eclipse, it initially looks like it¹s working,
> I see the server added to the debug window, then I get this error dialog:
>
> An internal error occurred during: "Starting Sling Server (external) at
> localhost".
> org/apache/sling/ide/transport/Repository$CommandExecutionFlag
Repository#CommandExecutionFlag was introduced in r1660656 [1] for
SLING-4069 [2] , which means that you're running a build from trunk.
Is that correct? If it is, can I ask how you have built and installed
the project?
Thanks,
Robert
[1]: https://svn.apache.org/viewvc?view=revision&revision=1660656
[2]: https://issues.apache.org/jira/browse/SLING-4069