Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote debugging not working on Intellij Idea #155

Closed
mindthegab opened this issue Jul 20, 2014 · 9 comments
Closed

Remote debugging not working on Intellij Idea #155

mindthegab opened this issue Jul 20, 2014 · 9 comments

Comments

@mindthegab
Copy link
Contributor

From maurizio...@alfresco.com on November 07, 2013 06:52:04

What steps will reproduce the problem?

  1. Generate AMP archetype (using 1.0.2)
  2. export MAVEN_OPTS="-Xdebug -Xrunjdwp:server=y, transport=dt_socket,address=4000, suspend=y"
  3. Open DemoComponentTest and add a breakpoint on line 63
  4. mvn install -Pamp-to-war -Dmaven.surefire.debug
  5. Step over line 64 What is the expected output? What do you see instead? Expected: Remote debugging sessions keeps on going
    Current: net.sf.acegisecurity.providers.ProviderNotFoundException: No authentication provider for net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken

Original issue: http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=155

@mindthegab
Copy link
Contributor Author

From bulat.ya...@gmail.com on November 07, 2013 05:08:28

I had similar problem debugging Alfresco since version 2.2. This has nothing to do with Maven. IntelliJ IDEA is trying to be too smart pre-evaluating some stuff in the code, so when you step through calls to Alfresco services, sometimes it throws such exceptions.

A workaround is to not step over calls to Alfresco services and let them pass in "resume" mode, adding a breakpoint after a call. A proper solution could be to configure IntelliJ IDEA.

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on November 17, 2013 07:20:25

Labels: Milestone-Release-sdk-unscheduled

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 17, 2014 15:13:14

Mau, I think we can close this one. WDYT?

Labels: -Milestone-Release-sdk-unscheduled Milestone-Release-sdk-2.0.0

@mindthegab mindthegab modified the milestone: Release-sdk-2.0.0 Jul 20, 2014
@maoo
Copy link
Contributor

maoo commented Jul 25, 2014

Successfully tested using

Closing issue.

@maoo maoo closed this as completed Jul 25, 2014
@marcobiscaro2112
Copy link

I still getting this issue with IDEA 13.1.4 Ultimate and Alfresco Community 5.0.a.

The workarround I found is to disable toString() object view:

Intellij IDEA > Preferences > IDE Settings > Debugger > Data Views > uncheck Enable 'toString()' object view

@mindthegab mindthegab modified the milestones: 2.0.0-beta-1, 2.0.0-beta-3 Sep 9, 2014
@mindthegab mindthegab modified the milestones: 2.0.0-beta-4, 2.0.0 Dec 23, 2014
@montgolfiere
Copy link

Just an FYI, I also hit this issue when debugging Alfresco platform using Intellij IDEA. Thanks to @marcobiscaro2112 marcobiscaro2112 for the suggested workaround.

@andreuandon
Copy link

Why is this bug closed if we can still replicate the issue?

@ahmedowian
Copy link

@andreuandon, I guess since the workaround of unchecking Enable 'toString()' object view does work, the bug was deemed not worth fixing. I can attest that this workaround works, as I also ran into this issue and tried out the workaround. Thanks to @marcobiscaro2112.
You could also just put your break point after the Alfresco service call, as @mindthegab mentioned.

@dhrn
Copy link

dhrn commented Jun 1, 2020

the solution is still working
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants