Hi I have probably some small problem but I can not figure it out. According to documentation it should work but it is not.
I have defined some servervice using public static void bind(ServiceBinder binder) { binder.bind(StudioService.class, StudioServiceHibernate.class); binder.bind(ProjectService.class, ProjectServiceHibernate.class); ............ } after that I have defined the one service using build() method public static DataGenerator buildDataGenerator() { return new DummyDataGenerator(); } I will later make this method complicated based on some condition it will create service using DummyDataGenerator or NoDataGenerator. Also I have add the initialization database mathod like so @Startup public static void initApplicationData(DataGenerator dataGenerator) { dataGenerator.generate(); } This line dataGenerator.generate(); throws a NullPointerException What am I missing. Thank you in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/Creating-custom-service-using-build-failed-tp5081119p5081119.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org