{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/openj9/issues/1244","repository_url":"https://api.github.com/repos/eclipse/openj9","labels_url":"https://api.github.com/repos/eclipse/openj9/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/openj9/issues/1244/comments","events_url":"https://api.github.com/repos/eclipse/openj9/issues/1244/events","html_url":"https://github.com/eclipse/openj9/issues/1244","id":299344370,"number":1244,"title":"InvocationTargetException with -Xshareclasses from Spring App","user":{"login":"stevewallin","id":17619590,"avatar_url":"https://avatars0.githubusercontent.com/u/17619590?v=4","gravatar_id":"","url":"https://api.github.com/users/stevewallin","html_url":"https://github.com/stevewallin","followers_url":"https://api.github.com/users/stevewallin/followers","following_url":"https://api.github.com/users/stevewallin/following{/other_user}","gists_url":"https://api.github.com/users/stevewallin/gists{/gist_id}","starred_url":"https://api.github.com/users/stevewallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevewallin/subscriptions","organizations_url":"https://api.github.com/users/stevewallin/orgs","repos_url":"https://api.github.com/users/stevewallin/repos","events_url":"https://api.github.com/users/stevewallin/events{/privacy}","received_events_url":"https://api.github.com/users/stevewallin/received_events","type":"User","site_admin":false},"labels":[{"id":790051174,"url":"https://api.github.com/repos/eclipse/openj9/labels/test%20failure","name":"test failure","color":"ce2e0e","default":false},{"id":822706839,"url":"https://api.github.com/repos/eclipse/openj9/labels/userRaised","name":"userRaised","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-22T13:00:05Z","updated_at":"2018-03-07T17:04:08Z","closed_at":null,"author_association":"NONE","body":"Running the petclinic sample spring app (https://github.com/spring-projects/spring-petclinic) with `-Xscmx50M -Xshareclasses` causes `Exception in thread \"main\" java.lang.reflect.InvocationTargetException` on second run.\r\n\r\nOutput: \r\n`2018-02-22 12:46:31.942  INFO 1 --- [           main] o.s.s.petclinic.PetClinicApplication     : Starting PetClinicApplication v2.0.0 on 85de4731ae7f with PID 1 (/tmp/spring-petclinic-2.0.0.jar started by root in /)\r\n2018-02-22 12:46:31.957  INFO 1 --- [           main] o.s.s.petclinic.PetClinicApplication     : No active profile set, falling back to default profiles: default\r\n2018-02-22 12:46:32.082  INFO 1 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@44fd0272: startup date [Thu Feb 22 12:46:32 UTC 2018]; root of context hierarchy\r\n2018-02-22 12:46:35.192  INFO 1 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$1cb4efe6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)\r\nException in thread \"main\" java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\r\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)\r\nCaused by: java.lang.NoClassDefFoundError: ch.qos.logback.classic.spi.ThrowableProxy\r\n\tat ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:119)\r\n\tat ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:419)\r\n\tat ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)\r\n\tat ch.qos.logback.classic.Logger.log(Logger.java:765)\r\n\tat org.apache.logging.slf4j.SLF4JLogger.logMessage(SLF4JLogger.java:232)\r\n\tat org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2163)\r\n\tat org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2118)\r\n\tat org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2101)\r\n\tat org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1995)\r\n\tat org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1967)\r\n\tat org.apache.commons.logging.LogFactory$Log4jLog.log(LogFactory.java:302)\r\n\tat org.apache.commons.logging.LogFactory$Log4jLog.error(LogFactory.java:254)\r\n\tat org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:833)\r\n\tat org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:807)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:338)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1234)\r\n\tat org.springframework.samples.petclinic.PetClinicApplication.main(PetClinicApplication.java:32)\r\n\t... 8 more\r\nCaused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:588)\r\n\tat java.lang.ClassLoader.loadClassHelper(ClassLoader.java:933)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:878)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:861)\r\n\t... 26 more\r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/openj9/issues/comments/371208329","html_url":"https://github.com/eclipse/openj9/issues/1244#issuecomment-371208329","issue_url":"https://api.github.com/repos/eclipse/openj9/issues/1244","id":371208329,"user":{"login":"mstoodle","id":10781812,"avatar_url":"https://avatars2.githubusercontent.com/u/10781812?v=4","gravatar_id":"","url":"https://api.github.com/users/mstoodle","html_url":"https://github.com/mstoodle","followers_url":"https://api.github.com/users/mstoodle/followers","following_url":"https://api.github.com/users/mstoodle/following{/other_user}","gists_url":"https://api.github.com/users/mstoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/mstoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstoodle/subscriptions","organizations_url":"https://api.github.com/users/mstoodle/orgs","repos_url":"https://api.github.com/users/mstoodle/repos","events_url":"https://api.github.com/users/mstoodle/events{/privacy}","received_events_url":"https://api.github.com/users/mstoodle/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T17:04:08Z","updated_at":"2018-03-07T17:04:08Z","author_association":"CONTRIBUTOR","body":"@hangshao0 Ok, so it's not supported. At a minimum, we should probably do a better job reporting that to the user :) .\r\n\r\nIs supporting nested jar files something we should also consider :) ?"}}
{"actor":{"display_login":"mstoodle"}}