Title: PetClinic project: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication · Issue #168 · microsoft/vscode-java-debug · GitHub
Open Graph Title: PetClinic project: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication · Issue #168 · microsoft/vscode-java-debug
X Title: PetClinic project: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication · Issue #168 · microsoft/vscode-java-debug
Description: Environment Operating System: Win10(x64) JDK version: 9.0.1_64 Visual Studio Code version: 1.18.1(64) Java extension version: 0.14.0 Java Debugger extension version: 0.3.1 Steps To Reproduce Open vscode and open spring-petclinic project ...
Open Graph Description: Environment Operating System: Win10(x64) JDK version: 9.0.1_64 Visual Studio Code version: 1.18.1(64) Java extension version: 0.14.0 Java Debugger extension version: 0.3.1 Steps To Reproduce Open v...
X Description: Environment Operating System: Win10(x64) JDK version: 9.0.1_64 Visual Studio Code version: 1.18.1(64) Java extension version: 0.14.0 Java Debugger extension version: 0.3.1 Steps To Reproduce Open v...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/168
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PetClinic project: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication","articleBody":"##### Environment\r\n- Operating System: Win10(x64)\r\n- JDK version: 9.0.1_64\r\n- Visual Studio Code version: 1.18.1(64)\r\n- Java extension version: 0.14.0\r\n- Java Debugger extension version: 0.3.1\r\n\r\n##### Steps To Reproduce\r\n\r\n1. Open vscode and open spring-petclinic project\r\n2. Start debug\r\n\r\n[attach a sample project reproducing the error]\r\nhttps://github.com/spring-projects/spring-petclinic \r\n\r\n[attach logs](https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#enable-logging)\r\nError: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication\r\nCaused by: java.lang.ClassNotFoundException: org.springframework.samples.petclinic.PetClinicApplication\r\nException in thread \"main\" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader\r\n\tat org.springframework.boot.devtools.restart.DefaultRestartInitializer.getUrls(DefaultRestartInitializer.java:93)\r\n\tat org.springframework.boot.devtools.restart.DefaultRestartInitializer.getInitialUrls(DefaultRestartInitializer.java:56)\r\n\tat org.springframework.boot.devtools.restart.Restarter.\u003cinit>(Restarter.java:140)\r\n\tat org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:546)\r\n\tat org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationStartingEvent(RestartApplicationListener.java:67)\r\n\tat org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationEvent(RestartApplicationListener.java:45)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)\r\n\tat org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:69)\r\n\r\n##### Current Result\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/bsaby","@type":"Person","name":"bsaby"},"datePublished":"2017-11-17T09:34:59Z","url":"https://github.com/microsoft/vscode-java-debug/issues/168"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e7c5235-9c7b-14ee-c535-873af3875e4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CF0:4C0DA:5CFE3:80B1B:6B073A31 |
| html-safe-nonce | 2c8c5580615ac201dea62288b87a0a5d591bcc0bb83aa1e9acb9c52dfa048728 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0YwOjRDMERBOjVDRkUzOjgwQjFCOjZCMDczQTMxIiwidmlzaXRvcl9pZCI6IjQ4MTEyMjQxNzkyNTEwMzQ2NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0696dd3d271fdc1c9c3cd4b8fa3db09d4b14305f058e11874d90851bbd0a1140 |
| hovercard-subject-tag | issue:274804040 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-java-debug/168/issue_layout |
| twitter:image | https://opengraph.githubassets.com/149a67a2a9930e1e9efd20735e38ab5a2f258e4bb364352097692bcdbafbd2b4/microsoft/vscode-java-debug/issues/168 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/149a67a2a9930e1e9efd20735e38ab5a2f258e4bb364352097692bcdbafbd2b4/microsoft/vscode-java-debug/issues/168 |
| og:image:alt | Environment Operating System: Win10(x64) JDK version: 9.0.1_64 Visual Studio Code version: 1.18.1(64) Java extension version: 0.14.0 Java Debugger extension version: 0.3.1 Steps To Reproduce Open v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bsaby |
| hostname | github.com |
| expected-hostname | github.com |
| None | d97a1befc96fc1512839eca15eb541061d491301144c9168e2985a8580319a49 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-java-debug git https://github.com/microsoft/vscode-java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102584737 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102584737 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-java-debug |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d28643426bfe8d1692f8788961b8217e9003f493 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width