openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Tomee Arquillian test failing
Date Sun, 12 Aug 2012 23:30:56 GMT
you need to use the shrinkwrap maven artifact in version 2.0.0-alpha-1
otherwise arquillian adapter and shrinwrap are conflicting (v1 of
shrinkwrap maven uses old dependencies).

then a note about your test: the test methods are not transactional (so i
guess the persist will fail)

- Romain


2012/8/12 zeeman <hamzah0@fastmail.us>

> Hi,  a couple of things:
>
> I updated my test project so you can check out 2 issues;
> https://github.com/z00/test
>
> 1- I get this warning for timer service, you can see timer async method in
> class DBLoader:
>
>
> WARNING: Could not schedule timer SingleAction expiration = [Aug 12, 2012
> 2:08:48 PM]
> org.quartz.ObjectAlreadyExistsException: Unable to store Trigger with name:
> 'OPEN_EJB_TIMEOUT_TRIGGER_DBLoader_1' and group:
> 'OPEN_EJB_TIMEOUT_TRIGGER_GROUP', because one already exists with this
> identification.
>         at org.quartz.simpl.RAMJobStore.storeTrigger(RAMJobStore.java:413)
>         at
> org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:886)
>         at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:259)
>         at
>
> org.apache.openejb.core.timer.EjbTimerServiceImpl.schedule(EjbTimerServiceImpl.java:285)
>         at
>
> org.apache.openejb.core.timer.TimerData.transactionComplete(TimerData.java:235)
>         at
>
> org.apache.openejb.core.timer.TimerData.registerTimerDataSynchronization(TimerData.java:264)
>         at
> org.apache.openejb.core.timer.TimerData.newTimer(TimerData.java:199)
>         at
>
> org.apache.openejb.core.timer.EjbTimerServiceImpl.initializeNewTimer(EjbTimerServiceImpl.java:425)
>         at
>
> org.apache.openejb.core.timer.EjbTimerServiceImpl.start(EjbTimerServiceImpl.java:227)
>         at
>
> org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:121)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:812)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:521)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:517)
>         at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:192)
>         at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:113)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>         at
>
> org.apache.openejb.security.internal.InternalSecurityInterceptor.invoke(InternalSecurityInterceptor.java:34)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>         at
> org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
>         at
> org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
>         at
> org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
>         at
> org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>         at
>
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:176)
>         at
>
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:95)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>         at
>
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:138)
>         at
>
> org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:228)
>         at
>
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:180)
>         at
>
> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:290)
>         at
>
> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:140)
>         at
>
> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:260)
>         at
> org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:184)
>         at
> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
>         at
>
> org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
>         at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>         at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
>         at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>         at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>         at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>         at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>         at
>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
>         at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
>         at
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
>
> 2- Running the test still fails. I included EverythingTest that just tries
> to persist to DB.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Arquillian-test-failing-tp4656807p4656827.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message