Hi All,

In my application, I encounter a problem with a stateless session bean (named 
StatManager).
Sometimes I get an UndeclaredThrowableException when I launch the create method on the 
home interface (StatManagerHome).
Sometimes when the create method works, I get the same exception when I launch a 
method on StatManager.

It seems that a NullPointerException is the origin of the UndeclaredThrowableException
but there's no code in the ejbCreate method of the StatManagerBean.

Thank you for your help.

Nicolas.


Here's the log :

[2004-05-25 09:57:38,139] [Thread-109] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [DEBUG] 
: Avant create() du StatManager
  | 
  | [2004-05-25 09:57:38,139] [Thread-102] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [DEBUG] 
: ->->->Entrée dans la méthode storeSnmpMeasures
  | 
  | [2004-05-25 09:57:38,139] [Thread-102] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [DEBUG] 
: Avant create() du StatManager
  | 
  | [2004-05-25 09:57:38,139] [Thread-102] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [DEBUG] 
: Après create() du StatManager
  | 
  | [2004-05-25 09:57:38,139] [Thread-109] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [WARN] : 
UndeclaredThrowableException :=> Cause : ReflectionException: 
java.lang.IllegalArgumentException: [EMAIL PROTECTED]
  | Cause: java.lang.IllegalArgumentException: [EMAIL PROTECTED]
  | 
  | [2004-05-25 09:57:38,139] [Thread-109] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [WARN] : 
Message : null
  | 
  | [2004-05-25 09:57:38,139] [Thread-109] 
[com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean] [WARN] : 
UndeclaredThrowableException : 
  | 
  | java.lang.reflect.UndeclaredThrowableException
  | 
  |     at $Proxy631.create(Unknown Source)
  | 
  |     at 
com.afp.dreams.mages.server.processing.networkmonitoring.PollingManagerBean.storeSnmpMeasures(PollingManagerBean.java:1391)
  | 
  |     at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
  | 
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  | 
  |     at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
  | 
  |     at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
  | 
  |     at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
  | 
  |     at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
  | 
  |     at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
  | 
  |     at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
  | 
  |     at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
  | 
  |     at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | 
  |     at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | 
  |     at 
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
  | 
  |     at org.jboss.ejb.Container.invoke(Container.java:713)
  | 
  |     at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
  | 
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  | 
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
  | 
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
  | 
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
  | 
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:187)
  | 
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480)
  | 
  |     at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
  | 
  |     at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
  | 
  |     at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
  | 
  |     at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
  | 
  |     at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
  | 
  |     at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
  | 
  |     at $Proxy504.storeSnmpMeasures(Unknown Source)
  | 
  |     at 
com.afp.dreams.mages.server.processing.snmp.MibPoller.storeSnmpMeasures(MibPoller.java:792)
  | 
  |     at 
com.afp.dreams.mages.server.processing.snmp.MagesResultListener.setResult(MagesResultListener.java:234)
  | 
  |     at com.adventnet.snmp.beans.SnmpServer.genEvent(SnmpServer.java:1031)
  | 
  |     at com.adventnet.snmp.beans.SnmpTarget.genEvent(SnmpTarget.java:1805)
  | 
  |     at 
com.adventnet.snmp.beans.SnmpTarget.snmpGetNextVariableBindings(SnmpTarget.java:621)
  | 
  |     at com.adventnet.snmp.beans.SnmpTable.run(SnmpTable.java:575)
  | 
  |     at java.lang.Thread.run(Thread.java:534)
  | 
  | Caused by: ReflectionException: java.lang.IllegalArgumentException: [EMAIL 
PROTECTED]
  | Cause: java.lang.IllegalArgumentException: [EMAIL PROTECTED]
  | 
  |     at 
org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:122)
  | 
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:76)
  | 
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
  | 
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
  | 
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:187)
  | 
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480)
  | 
  |     at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
  | 
  |     at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
  | 
  |     at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
  | 
  |     at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
  | 
  |     at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
  | 
  |     at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
  | 
  |     ... 38 more
  | 
  | Caused by: java.lang.IllegalArgumentException: [EMAIL PROTECTED]
  | 
  |     at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
  | 
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  | 
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
  | 
  |     ... 48 more
  | 
  | I launch a method on StatManager


Here's some stats from JMX MBEAN View :

     




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835719#3835719

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835719



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to