Guice nullpointer exception on injected instance
问题 I'm using Guice in Jersey2 for DI (i want to use it so i can use Google App Engine -> not working with HK2). My ApplicationResource: public class ApplicationResource extends ResourceConfig { private static final Logger LOGGER = null; public ApplicationResource() { System.out.println("Application startup"); // Register resources and providers using package-scanning. packages("com.crawler.c_api"); // Register my custom provider - not needed if it's in my.package. register(ResponseCorsFilter