创建EJB对象时的运行时异常

时间:2012-01-28 05:52:03

标签: jboss ejb-2.x session-bean runtimeexception

我使用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)

日志摘要-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)

任何人都可以。提出一些相同的指示。

谢谢。

1 个答案:

答案 0 :(得分:0)

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