[ http://jira.magnolia-cms.com/browse/BLOSSOM-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28987#action_28987 ]
Thomas Kalmar edited comment on BLOSSOM-5 at 7/8/10 2:04 PM: ------------------------------------------------------------- It was an abstract bean which has no type. <bean id="abstractBean" abstract="true" scope="prototype"> ... </bean> was (Author: tom.kalmar): It was an abstract bean which has no type. > NullPointerExeption in BlossomDispatcherServlet while detecting > DialogFactories > ------------------------------------------------------------------------------- > > Key: BLOSSOM-5 > URL: http://jira.magnolia-cms.com/browse/BLOSSOM-5 > Project: Magnolia Blossom Module > Issue Type: Bug > Affects Versions: 1.1 > Reporter: Thomas Kalmar > Assignee: Tobias Mattsson > Priority: Critical > Fix For: 1.1.1 > > Original Estimate: 0.06d > Time Spent: 0.06d > Remaining Estimate: 0d > > context.getType can be null the following fixes the detectDialogFactories > Method > private void detectDialogFactories() throws RepositoryException { > WebApplicationContext context = getWebApplicationContext(); > String[] beanDefinitionNames = context.getBeanDefinitionNames(); > for (String beanDefinitionName : beanDefinitionNames) { > Class<?> type = context.getType(beanDefinitionName); > if (type!=null && type.isAnnotationPresent(DialogFactory.class)) { > > BlossomModule.getDialogRegistry().registerDialogFactory(context.getBean(beanDefinitionName)); > } > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------