DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Remote debugging not working on Intellij Idea #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by maurizio...@alfresco.com on 7 Nov 2013 at 11:52

GoogleCodeExporter commented 9 years ago
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.

Original comment by bulat.ya...@gmail.com on 7 Nov 2013 at 1:08

GoogleCodeExporter commented 9 years ago

Original comment by colum...@gmail.com on 17 Nov 2013 at 3:20

GoogleCodeExporter commented 9 years ago
Mau, I think we can close this one. WDYT?

Original comment by colum...@gmail.com on 17 Jul 2014 at 10:13