Netbeans:在Netbeans外部运行时使用NullPointerExceptions的Java应用程序

时间:2017-12-22 12:30:35

标签: java nullpointerexception netbeans-8

我对Java编程比较陌生,过去10年我一直使用C#作为我的主要语言。我不时地在Java应用程序上工作,只是为它添加本地化。这是我偶然发现这个NullPointerException的地方。

当我在Netbeans中构建java应用程序并从那里运行它时,一切都运行得很好。当我将它部署到我们的本地服务器时,我得到nullpointer。这让我相信在构建应用程序时没有部署某些东西。

查看错误日志,我没有看到任何有助于查找空值来自的行号。这是日志的视图:

Dec 22, 2017 7:18:34 AM removedcompanyname.appname.b.i a
SEVERE: java.lang.NullPointerException
    at removedcompanyname.appname.f.a(Unknown Source)
    at removedcompanyname.appname.f.a(Unknown Source)
    at removedcompanyname.appname.b.n(Unknown Source)
    at removedcompanyname.appname.b.<init>(Unknown Source)
    at removedcompanyname.appname.b.<init>(Unknown Source)
    at removedcompanyname.appname.Main$2.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$400(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

我一直在寻找如何查看行号,但我没有找到任何有帮助的内容。我能做些什么来找到空值?

感谢。

0 个答案:

没有答案