java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Not launching
    via GitHub by Masyaka22
    ,
  • Errors installing SonarQube
    via Stack Overflow by John Miller
    ,
  • TestDynamicLayers fails
    via GitHub by babak4
    ,
  • FULL PRODUCT VERSION : java version "1.8.0_74" Java(TM) SE Runtime Environment (build 1.8.0_74-b02) Java HotSpot(TM) Client VM (build 25.74-b02, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] EXTRA RELEVANT SYSTEM CONFIGURATION : On the local machine exists a directory C:\Users\markus\Google Drive\test synced and shared with other users using GoogleDrive. In this directory exists the directory C:\Users\markus\Google Drive\test\a which is empty (ensure that it is empty after creation, Google Drive seems to create a desktop.ini file in there). A DESCRIPTION OF THE PROBLEM : A folder in a google drive synced directory which is shared (using google drive) with other users can not be deleted using Files.delete(Path) but can using File#delete. Although it is an option to use File#delete the behaviour of those two methods should be consistent in my option. In addtion File#delete does not provide an exception on failure and thus is not that useful. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : On the local machine exists a directory C:\Users\markus\Google Drive\test synced and shared with other users using GoogleDrive. In this directory exists the directory C:\Users\markus\Google Drive\test\a which is empty (ensure that it is empty after creation, Google Drive seems to create a desktop.ini file in there). Run the example program. NOTE: Sometimes deletion worked well on my system. Wait until full synchronization of the google drive folder before running the testcase to be sure that the problem occurs. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The file is deleted by the Files#delete invocation and no exception occurs. ACTUAL - Files#delete fails with an AccessDeniedException but the File#delete invocation succeeds. ERROR MESSAGES/STACK TRACES THAT OCCUR : Example testcase output: java.nio.file.AccessDeniedException: C:\Users\markus\Google Drive\test\a at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at test.Delete.main(Delete.java:13) true REPRODUCIBILITY : This bug can be reproduced often. ---------- BEGIN SOURCE ---------- Path path = Paths.get("C:\\Users\\markus\\Google Drive\\test\\a"); try { Files.delete(path); } catch (IOException e) { e.printStackTrace(); System.out.println(path.toFile().delete()); } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Invoke path.toFile().delete() if Files#delete fails with an AccessDeniedException.
    via by Webbug Group,
    • java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mainController' defined in com.faforever.client.config.UiConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.faforever.client.main.MainController]: Factory method 'mainController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fxmlLoader': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeService': Invocation of init method failed; nested exception is java.nio.file.AccessDeniedException: C:\ProgramData\FAForever\cache\stylesheets\style-webview168480305166577069.css at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:835) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537) at com.faforever.client.Main.initApplicationContext(Main.java:51) at com.faforever.client.Main.start(Main.java:41) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Unknown Source) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(Unknown Source) at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source) ... 1 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.faforever.client.main.MainController]: Factory method 'mainController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fxmlLoader': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeService': Invocation of init method failed; nested exception is java.nio.file.AccessDeniedException: C:\ProgramData\FAForever\cache\stylesheets\style-webview168480305166577069.css at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ... 22 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fxmlLoader': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeService': Invocation of init method failed; nested exception is java.nio.file.AccessDeniedException: C:\ProgramData\FAForever\cache\stylesheets\style-webview168480305166577069.css at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at com.faforever.client.config.UiConfig$$EnhancerBySpringCGLIB$$b20ca8f.fxmlLoader(<generated>) at com.faforever.client.config.UiConfig.loadController(UiConfig.java:107) at com.faforever.client.config.UiConfig.mainController(UiConfig.java:122) at com.faforever.client.config.UiConfig$$EnhancerBySpringCGLIB$$b20ca8f.CGLIB$mainController$0(<generated>) at com.faforever.client.config.UiConfig$$EnhancerBySpringCGLIB$$b20ca8f$$FastClassBySpringCGLIB$$4dfb61a1.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:318) at com.faforever.client.config.UiConfig$$EnhancerBySpringCGLIB$$b20ca8f.mainController(<generated>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ... 23 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeService': Invocation of init method failed; nested exception is java.nio.file.AccessDeniedException: C:\ProgramData\FAForever\cache\stylesheets\style-webview168480305166577069.css at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308) ... 44 more Caused by: java.nio.file.AccessDeniedException: C:\ProgramData\FAForever\cache\stylesheets\style-webview168480305166577069.css at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) at java.nio.file.Files.delete(Unknown Source) at com.faforever.client.io.FileUtils$1.visitFile(FileUtils.java:26) at com.faforever.client.io.FileUtils$1.visitFile(FileUtils.java:23) at java.nio.file.Files.walkFileTree(Unknown Source) at java.nio.file.Files.walkFileTree(Unknown Source) at com.faforever.client.io.FileUtils.deleteRecursively(FileUtils.java:23) at com.faforever.client.theme.ThemeServiceImpl.postConstruct(ThemeServiceImpl.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) ... 58 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    osvzs
    2 times, last one,
    10 more bugmates