• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Cannot debug  RSS feed

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
   When I attempt to debug my code, the ClassNotFoundException(name) is returned.
   name: "com.intellij.ry.debugger.agent.CaptureAgent"
 
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please post your entire stacktrace...
but most likely there's something wrong with your projectstructure? what folder do you have marked as sourceroot?
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
     EventLog contains only:
- Application Server was not connected before run configuration stop, reason:
Unable to ping server at localhost:1099
-All files are up-to-date
- Compilation completed successfully in 1 s 823 ms

    Defined exception I see in class "URLClassLoader.java", which appearing when debug is started.

Exception.png
[Thumbnail for Exception.png]
Project-structure.png
[Thumbnail for Project-structure.png]
 
Daniel Demesmaecker
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what server are you using? Did you configure it yourself?
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Daniel Demesmaecker wrote:what server are you using? Did you configure it yourself?



   Tomcat.
   Localhost.
   Deployed on Maven.
 
Daniel Demesmaecker
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reason why you deploy on port 1099 and not on one of the standard ports?
Try adding this to your build in your pom.xml:

and then clean your mavenproject before building again
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  I added this in pom, but has not been successful...

   And how could I find and change ports?
 
Daniel Demesmaecker
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the top of your screen you have abutton add configuration, click it, then click the + sign, search for tomcat and click, select remote or local, there you can do your config for your server.
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  Ok, i did this and have found, that 1099 is a value of JMX-port.  And I cant clear JMX-field from this value ()
  I'm surprised, because I was not abled to use JMX in my application.
 
Daniel Demesmaecker
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you add it's dependency?
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Daniel Demesmaecker wrote:Did you add it's dependency?



   No, I didn't.
 
Daniel Demesmaecker
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you several duplicated dependencies but different versions, keep the newest one and delete the others.
For jmx, what jdlk are you using, I don't know from what version on it's built in, but normally you don't need to add an dependency.
You say you use tomcat, yet you have the dependency for an embedded glassfishserver?
and change:

to:
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  Thank you, I corrected dependencies. And deleted glassfish-dependency: its mistake, of course.

   


what jdlk are you using



You mean jdk?  JDK version is 1.8.0_131
 
Daniel Demesmaecker
Master Rancher
Posts: 1162
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah I ment jdk, was a typo.
Did you clean maven and tried to rebuilt after changing the path of your mainclass in your pom?
I will flag this post for some attention of the mod, cause I'm almost out of ideas, maybe a fresh set of eyes sees something I'm overlooking
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  Yes, I cleaned maven and rebuilt. But with the same result.

   Thank you for trying to help
 
Andrey Dmitriev
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  The only mention of JMX in my project I found here
-2019-01-07-18.29.56.png
[Thumbnail for -2019-01-07-18.29.56.png]
 
I found a beautiful pie. And a tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!