• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Problem with Spring Boot

 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 17405
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 17405
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is happening with other application, so it's definitely not my code.
 
Alejandro Barrero
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strange solution, I had to copy all to a new workspace.
 
Junilu Lacar
Sheriff
Posts: 17405
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like it was either an environment or configuration issue, or combination of both. Thanks for posting an update.
 
reply
    Bookmark Topic Watch Topic
  • New Topic