Guice tries to call System.getProperty but the Security Manager doesn't like that so it throws an exception.
I tought that Web Start doesn't allow you to use your own policy file. This is new. Cheers, Alen On Mar 31, 1:35 pm, Gili <gili.tzab...@gmail.com> wrote: > Attempting to use Guice under an unsigned Java Webstart application I > get: > > Exception in thread "AWT-EventQueue-0" > java.lang.ExceptionInInitializerError > at com.google.inject.InjectorBuilder.<init>(InjectorBuilder.java:54) > at com.google.inject.Guice.createInjector(Guice.java:92) > at com.google.inject.Guice.createInjector(Guice.java:69) > at com.google.inject.Guice.createInjector(Guice.java:59) > at videoease.Main$1.run(Main.java:46) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown > Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown > Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > Caused by: java.security.AccessControlException: access denied > (java.util.PropertyPermission guice.allow.nulls.bad.bad.bad read) > at java.security.AccessControlContext.checkPermission(Unknown Source) > at java.security.AccessController.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) > at java.lang.System.getProperty(Unknown Source) > at com.google.inject.internal.Errors.<clinit>(Errors.java:64) > ... 13 more > > Any ideas? > > Gili --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to google-guice@googlegroups.com To unsubscribe from this group, send email to google-guice+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---