Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Chris
, 1 year ago
Unexpected exception, expected<javax.persistence.TransactionRequiredException> but was<java.lang.AssertionError>
via GitHub by wildfly-ci
, 2 years ago
Unexpected exception, expected<javax.ejb.NoSuchEJBException> but was<java.lang.AssertionError>
java.lang.AssertionError: Expected exception: javax.persistence.TransactionRequiredException	at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:35)	at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)	at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)	at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)	at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)	at org.junit.runner.JUnitCore.run(JUnitCore.java:136)	at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)	at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:128)	at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:107)	at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:235)	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:250)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791)	at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498)	at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246)	at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)	at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)	at java.lang.Thread.run(Thread.java:722)