[JERSEY-1460] Application.getClasses() can return invalid classes but implementation have to handle that gracefully. Created: 10/Oct/12  Updated: 15/Oct/12  Resolved: 11/Oct/12

Status: Resolved
Project: jersey
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0-m09, 2.0

Type: Bug Priority: Major
Reporter: Pavel Bucek Assignee: Pavel Bucek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 3 hours
Original Estimate: Not Specified


 Description   

providing set which contains "null" ends in

Exception in thread "main" java.lang.NullPointerException
	at org.glassfish.jersey.server.model.Resource.isAcceptable(Resource.java:487)
	at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:118)
	at org.glassfish.jersey.server.model.Resource.from(Resource.java:445)
	at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:271)
	at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:234)
	at org.glassfish.jersey.server.ContainerFactory.createContainer(ContainerFactory.java:79)
	at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:105)
	at org.glassfish.jersey.examples.helloworld.App.main(App.java:65)
	...

when only warning should be logged and application started (according to javax.ws.rs.core.Application.getClasses() javadoc).


Generated at Wed May 27 04:25:39 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.