创建 EJB 对象时出现运行时异常

发布于 2024-12-29 11:09:07 字数 2085 浏览 1 评论 0原文

我使用 Java 1.6、EJB-2.1 开发了一个应用程序。该应用程序部署在JBossAS-5.1.0上。该应用程序运行很长时间以来都非常流畅。但在过去的两天里,我在创建 EJB 本地对象/本地主页时发现了以下运行时异常:

Log Snippet-1:

2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
Caused by: java.lang.NullPointerException
2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyF
actory.java:343)
2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
at $Proxy257.create(Unknown Source)

Log Snippet-2:

java.lang.NullPointerException
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:457)
      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      at $Proxy263.getDynamicLoopMessage_Generalized(Unknown Source)

Log Snippet-3

2012-01-17 16:44:49,063 ERROR [org.jboss.ejb.plugins.LogInterceptor]  
   (WorkerThread#5[192.168.1.76:19743]) RuntimeException in method: public abstract     
com.elitecore.billingengine.utils.BEResultObject   

com.elitecore.billingengine.ejb.billpreview.interfaces.IBillPreviewSessionLocal.doBasePriceCalcul    ation(com.elitecore.billingengine.utils.BEHashMap):
java.lang.NullPointerException
      at     
com.elitecore.billingengine.ejb.billpreview.sessionfacade.BillPreviewSessionFacade.doBasePriceCal    culation(BillPreviewSessionFacade.java:357)
      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)

任何人都可以吗?建议一些相同的指示。

谢谢。

I have developed an application with Java 1.6, EJB-2.1. The application is deployed on JBossAS-5.1.0. The application has been running very smooth for long a time. But for last two days, I found following sort of Runtime Exception while creating EJB Local Object/Local Home:

Log Snippet-1:

2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
Caused by: java.lang.NullPointerException
2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyF
actory.java:343)
2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
2012-01-25 17:09:02,896 ERROR [STDERR] (WorkerThread#4[127.0.0.1:47153])
at $Proxy257.create(Unknown Source)

Log Snippet-2:

java.lang.NullPointerException
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:457)
      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      at $Proxy263.getDynamicLoopMessage_Generalized(Unknown Source)

Log Snippet-3:

2012-01-17 16:44:49,063 ERROR [org.jboss.ejb.plugins.LogInterceptor]  
   (WorkerThread#5[192.168.1.76:19743]) RuntimeException in method: public abstract     
com.elitecore.billingengine.utils.BEResultObject   

com.elitecore.billingengine.ejb.billpreview.interfaces.IBillPreviewSessionLocal.doBasePriceCalcul    ation(com.elitecore.billingengine.utils.BEHashMap):
java.lang.NullPointerException
      at     
com.elitecore.billingengine.ejb.billpreview.sessionfacade.BillPreviewSessionFacade.doBasePriceCal    culation(BillPreviewSessionFacade.java:357)
      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)

Can anyone pls. suggest some pointers on the same.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风启觞 2025-01-05 11:09:07

从您的日志中很难说,但我猜测这是 com.elitecore.billingengine.utils.BEResultObject 实例的构造函数中的空指针。其余的大部分日志片段只是 jboss 调用层传播的异常。

It's hard to say from your logs, but I would surmise this is a null pointer in the constructor of an instance of com.elitecore.billingengine.utils.BEResultObject. Most of the rest of the logs snippets are just that exception being propagated by the jboss invocation layer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文