我有一个包含 portlet 的 WebSphere Portal 服务器。Portlet 对运行在 WAS 上的 ejb 进行远程调用。门户网站服务器和 WAS 都在本地机器上运行。WAS 正常启动,但在尝试启动门户服务器时,它会抛出以下错误:
nested exception is: java.lang.NullPointerException at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
在春季查找源代码时,我找到了方法定义:
public PropertyValues postProcessPropertyValues(
PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName) throws BeansException {
InjectionMetadata metadata = findAutowiringMetadata(bean.getClass());
try {
metadata.injectMethods(bean, beanName, pvs);
}
catch (Throwable ex) {
throw new BeanCreationException(beanName, "Autowiring of methods failed", ex);
}
return pvs;
}
由于错误在spring源代码而不是我的代码中,我应该如何开始调试它?