• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Problem with Spring Boot

 
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a Spring Boot application and everything has been working fine for some weeks; but suddenly I cannot run the application in the debugger (Boot Workbench) although it works fine for running. The problem is that I am getting a ClassNotFoundException in class java.net.URLClassLoader (line 382). I have exhausted my search on the Internet but haven't found a solution. I thought that it was a problem caused by an update to Spring Boot and tried running the original version but to no avail.
 
Marshal
Posts: 15638
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give more details? What class is it not finding? Show us parts of the stacktrace that you think might be relevant.
 
Alejandro Barrero
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Junilu for your prompt reply;unfortunately I don't get a stack trace, I cannot see the name in the Variables View and I cannot write code in the URLClassLoader class. If anyone could instruct me I would post more information.
 
Junilu Lacar
Marshal
Posts: 15638
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, are you using an XML file to define your beans or are you using annotations and then @Autowired? You have to provide more information than just ClassNotFoundException and a line number.
 
Alejandro Barrero
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No  XML or annotations so far; in the first place the problem doesn't occur when the application is run, it happens when the application is debugged. I think that the class is the Boot starter class because the problem happens immediately after clicking on the debug button. Yes, I should have mentioned this, my apology. I am still working on the application, I just can't debug the controllers; it is taking me time because I am learning Thymeleaf, but I don't think that's the problem.
 
Alejandro Barrero
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is happening with other application, so it's definitely not my code.
 
Alejandro Barrero
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange solution, I had to copy all to a new workspace.
 
Junilu Lacar
Marshal
Posts: 15638
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like it was either an environment or configuration issue, or combination of both. Thanks for posting an update.
 
Evildoers! Eat my justice! And this tiny ad's justice too!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic