Xfile 错误记录 object is not an instance of declaring class
来源:互联网 发布:淘宝优惠券小程序制作 编辑:程序博客网 时间:2024/05/16 08:15
就这么一个傻的不行的错误 我找了好久。
翻译来看是
就是反射异常 ,没有实例化。但是我查看了配置文件。始终想不明白。怎么就没有实例化。最后发现我真的是台粗心了。
就是反射异常 ,没有实例化。但是我查看了配置文件。始终想不明白。怎么就没有实例化。最后发现我真的是台粗心了。
public interface HelloService {
public void sayHello(String name);
}
public class HelloServiceImp {
public void sayHello(String name) {
System.out.println("hello"+name);
}
}
一看就知道接口没有被实例化,我调用了接口 但是接口找不到实例化对象。所以报错
只需要将接口实例化就好了
public class HelloServiceImp implements HelloService{
public void sayHello(String name) {
System.out.println("hello"+name);
}
}
当我发现的时候,我无语了。居然会忘记。
0 0
- Xfile 错误记录 object is not an instance of declaring class
- object is not an instance of declaring class
- object is not an instance of declaring class 反射异常
- object is not an instance of declaring class 反射异常
- 报错:object is not an instance of declaring class
- hibernate 4 object is not an instance of declaring class
- spring的 object is not an instance of declaring class
- object is not an instance of declaring class
- java反射错误:object is not an instance of declaring class
- 项目启动后,访问报 object is not an instance of declaring class 错误
- nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
- HIbernate 3.2 java.lang.IllegalArgumentException: object is not an instance of declaring class
- java.lang.IllegalArgumentException: object is not an instance of declaring class
- object is not an instance of declaring class&argument type mismatch
- java.lang.IllegalArgumentException: object is not an instance of declaring class
- java axis调用cxf 的坑object is not an instance of declaring class while invoking public
- 异常笔记(2)--object is not an instance of declaring class while invoking public abstract java.lang.Long
- 学习记录: Server Error in '/' Application. Object reference not set to an instance of an object
- DButils的使用感受
- ajax请求中遇到的中文字符编码问题
- java网络唤醒,win7的网络唤醒(后面更新Liunx的)
- log4j日志记录中遇到的问题
- XFire的使用
- Xfile 错误记录 object is not an instance of declaring class
- Spring MVC+Hibernate配置
- commons-httpclient简单使用
- MySQL uuid的使用
- Guava的简单使用
- Gson的简单使用(待补充)
- 工作前
- jquery前端技术
- 项目之工作日报管理系统