no errors for build but exception is thrown during execution