早教吧作业答案频道 -->其他-->
关于java空指针异常atjava.util.Properties$LineReader.readLine(Properties.java:418)atjava.util.Properties.load0(Properties.java:337)atjava.util.Properties.load(Properties.java:325)atcom.tuan.util.ReadPropertiesUtil.<init>(ReadProper
题目详情
关于java空指针异常
at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at com.tuan.util.ReadPropertiesUtil.<init>(ReadPropertiesUtil.java:15) at com.tuan.util.ReadPropertiesUtil.getInstance(ReadPropertiesUtil.java:23) at com.tuan.util.Dbutil.<init>(Dbutil.java:17) at com.tuan.util.Dbutil.getInsstance(Dbutil.java:26) at com.tuan.parser.AreaRecognize.<init>(AreaRecognize.java:33) at com.tuan.parser.AreaRecognize.getInstance(AreaRecognize.java:86) at com.tuan.parser.pnuomi.parseTuanInfo(pnuomi.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.tuan.util.DynClassLoader.callMethod(DynClassLoader.java:59) at ParserTester.main(ParserTester.java:83)java.lang.NullPointerException at com.tuan.parser.AreaRecognize.<init>(AreaRecognize.java:34) at com.tuan.parser.AreaRecognize.getInstance(AreaRecognize.java:86) at com.tuan.parser.pnuomi.parseTuanInfo(pnuomi.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.tuan.util.DynClassLoader.callMethod(DynClassLoader.java:59) at ParserTester.main(ParserTester.java:83)[2010-8-22 12:01:24] [ERROR][main] public com.tuan.parser.TuanInfo com.tuan.parser.pnuomi.parseTuanInfo(java.lang.String) is error please check error:java.lang.reflect.InvocationTargetExceptionjava.lang.NullPointerException at ParserTester.main(ParserTester.java:89)老是报这样的错我第一次运行明明没有错误的 debug 也没问题 就是运行就出错谁告诉告诉我
at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at com.tuan.util.ReadPropertiesUtil.<init>(ReadPropertiesUtil.java:15) at com.tuan.util.ReadPropertiesUtil.getInstance(ReadPropertiesUtil.java:23) at com.tuan.util.Dbutil.<init>(Dbutil.java:17) at com.tuan.util.Dbutil.getInsstance(Dbutil.java:26) at com.tuan.parser.AreaRecognize.<init>(AreaRecognize.java:33) at com.tuan.parser.AreaRecognize.getInstance(AreaRecognize.java:86) at com.tuan.parser.pnuomi.parseTuanInfo(pnuomi.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.tuan.util.DynClassLoader.callMethod(DynClassLoader.java:59) at ParserTester.main(ParserTester.java:83)java.lang.NullPointerException at com.tuan.parser.AreaRecognize.<init>(AreaRecognize.java:34) at com.tuan.parser.AreaRecognize.getInstance(AreaRecognize.java:86) at com.tuan.parser.pnuomi.parseTuanInfo(pnuomi.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.tuan.util.DynClassLoader.callMethod(DynClassLoader.java:59) at ParserTester.main(ParserTester.java:83)[2010-8-22 12:01:24] [ERROR][main] public com.tuan.parser.TuanInfo com.tuan.parser.pnuomi.parseTuanInfo(java.lang.String) is error please check error:java.lang.reflect.InvocationTargetExceptionjava.lang.NullPointerException at ParserTester.main(ParserTester.java:89)老是报这样的错我第一次运行明明没有错误的 debug 也没问题 就是运行就出错谁告诉告诉我
▼优质解答
答案和解析
public com.tuan.parser.TuanInfo com.tuan.parser.pnuomi.parseTuanInfo(java.lang.String) is error please check error:java.lang.reflect.InvocationTargetExceptionjava.lang.NullPointerException at ParserTester.main(ParserTester.java:89)
------这里说你的ParserTester.类第89行有错误,java.lang.NullPointerException 不知道什么原因导致空指针了.你好好检查一下.
------这里说你的ParserTester.类第89行有错误,java.lang.NullPointerException 不知道什么原因导致空指针了.你好好检查一下.
看了 关于java空指针异常atj...的网友还看了以下:
已知函数f(x)=2x的平方-2ax+b,f(-1)=-8且对任意的x属于R,都有f(x)≥f(- 2020-05-22 …
急.我给积分的a,b都属于正实数,且a2+b2=a+b,求a+b最大值?a,b属于正实数,且a+b 2020-05-23 …
.请教A+B=A(B^T)B+A(A^T)B能写成A+B=AB(B^T)+(A^T)AB.请教A+ 2020-06-12 …
下列关于双链DNA的叙述错误的是()A.若一条链上A和T的数目相等,则另一条链上的A和T数目也相等 2020-06-26 …
下列关于双链DNA的叙述,不正确的是A.若一条链上A和T的数目相等,则另一条链上的A和T数目也相等 2020-06-26 …
设f(x),g(x)在[a,b]上连续,在(a,b)内可导,且g(x)不等于0,f(a)g(b)= 2020-07-21 …
若不等式tt+2----------小于等于a小于等于--------------求a的范围(-- 2020-07-22 …
1.设A={a1,a2,a3}是由三个不同元素所组成的集合,且T是A的子集族满足性质:空集和A属于 2020-07-30 …
集合A={x|x^2-(t^2+t+1)x+t(t^2+1)>0},B={x|x=1/2m^2-m 2020-08-02 …
碱基计算的规律.①A等于T,G等于C,A+G=T+CA+G/T+C等1.②一条单链的A+G/T+C的 2020-11-27 …