Menu

#1538 lock.test.EnterpriseEntityStressTestCase fails under load

v3.2
closed-postponed
nobody
5
2004-12-29
2003-09-30
No

MacOSX 10.2, JDK 1.4.1, JBoss 3.2 latest from today.

When you run "tests-stress" in the testsuite directory with
the original settings, the test works fine.
It fails when the test is configured to run longer, and with
more threads, using the attached file that needs to be saved
in the testuites directory as ".ant.properties" to reproduce
the problem.

On the client-side, the following trace appears:
junit.framework.AssertionFailedError
at
org.jboss.test.lock.test.EnterpriseEntityTest.run(EnterpriseEnt
ityTest.java:216)
at
org.jboss.test.lock.test.EnterpriseEntityTest.testB2B(Enterpris
eEntityTest.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
ccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating
MethodAccessorImpl.java:25)
at
junit.extensions.TestDecorator.basicRun(TestDecorator.java:
22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)

The server logs contain a bunch of exceptions like this:
16:13:29,251 ERROR [LogInterceptor] RuntimeException:
java.lang.NullPointerException
at
org.jboss.test.lock.bean.EnterpriseEntityBean.setAndCopyFiel
d(EnterpriseEntityBean.java:74)
at
sun.reflect.GeneratedMethodAccessor514.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating
MethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(Ent
ityContainer.java:1095)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invok
e(JDBCRelationInterceptor.java:71)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
(EntitySynchronizationInterceptor.java:298)
at
org.jboss.resource.connectionmanager.CachedConnectionInte
rceptor.invoke(CachedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(Entit
yReentranceInterceptor.java:114)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityI
nstanceInterceptor.java:174)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockI
nterceptor.java:89)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityC
reationInterceptor.java:53)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstr
actTxInterceptor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(T
xInterceptorCMT.java:320)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorC
MT.java:128)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
ceptor.java:118)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.jav
a:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pr
oxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.j
ava:490)
at org.jboss.ejb.Container.invoke(Container.java:700)
at
sun.reflect.GeneratedMethodAccessor512.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating
MethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Ref
lectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerI
mpl.java:546)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInv
oker.java:362)
at
sun.reflect.GeneratedMethodAccessor76.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating
MethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.j
ava:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTran
sport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(T
CPTransport.java:701)
at java.lang.Thread.run(Thread.java:554)

Discussion

  • Stefan Reich

    Stefan Reich - 2003-09-30
     
  • Adrian Brock

    Adrian Brock - 2003-10-09

    Logged In: YES
    user_id=9459

    This is a bad test.
    The error occurs when running with commit option D.
    It could occur with any cache invalidation.

    The test entity bean has state, but it is not persisted.
    A cache invalidation leads to an NPE when the state is accessed.

    Regards,
    Adrian

     
  • Adrian Brock

    Adrian Brock - 2003-10-09
    • status: open --> open-postponed
     
  • Scott M Stark

    Scott M Stark - 2004-12-29

    Logged In: YES
    user_id=175228

    All issues have been moved to http://jira.jboss.com. Existing
    issues have been moved. New issues will be closed with this
    canned reponse.

     
  • Scott M Stark

    Scott M Stark - 2004-12-29
    • status: open-postponed --> closed-postponed
     

Log in to post a comment.

MongoDB Logo MongoDB