-
Caused by: java.lang.NullPointerException, java.lang.reflect.InvocationTargetExc
- java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at com.controller.DynamicProxy.invoke(DynamicProxy.java:31)
- at $Proxy4.viewRisk(Unknown Source)
- at com.controller.RPDController.viewRisk(RPDController.java:2592)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- Caused by: java.lang.NullPointerException
- at com.controller.CopyOfRPDController.viewRisk(CopyOfRPDController.java:2602)
- ... 38 more
- spring bean,配置以后,都得用bean配置,不能new,否则会有nullPointer
更准确的说,new哪个class,那么这个class所用到的bean都不起作用,为null
所以,不要去new任何bean,都用xml的配置即可!
问题是这样解决的,
-
相关阅读:
深入理解JavaScript闭包
冒泡排序
Objective-C中的self和super
IOS中UIKit——UIButton的背景图像无法正常显示的原因
IOS绘图——简单三角形
NSDateFormatter中时间格式串的含义
IOS屏幕布局
IOS学习感想
WWDC————苹果全球开发者大会
刚开始学IOS遇到的类和方法
-
原文地址:https://www.cnblogs.com/itworkers/p/5760666.html
Copyright © 2020-2023
润新知