java.lang.Exception: could not read class [javax.ejb.Stateful] as byte array

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 Terracotta by toonti, 1 year ago
could not read class [javax.ejb.Stateful] as byte array
via Terracotta Project Issue Tracker by Pavel Savara, 1 year ago
could not read class [javax.ejb.Stateful] as byte array
via Terracotta Project Issue Tracker by Pavel Savara, 1 year ago
could not read class [javax.ejb.Stateful] as byte array
via Terracotta by ak, 1 year ago
could not read class [org.terracotta.modules.annotations.InstrumentedClass] as byte array
java.lang.Exception: could not read class [javax.ejb.Stateful] as byte array
at com.tc.backport175.bytecode.DefaultBytecodeProvider.getBytecode(DefaultBytecodeProvider.java:42)
at com.tc.backport175.bytecode.AnnotationReader.getBytecodeFor(AnnotationReader.java:168)
at com.tc.backport175.bytecode.AnnotationDefaults.getDefaults(AnnotationDefaults.java:50)
at com.tc.backport175.bytecode.AnnotationReader$AnnotationBuilderVisitor.visitEnd(AnnotationReader.java:1140)
at com.tc.asm.ClassReader.readAnnotationValues(ClassReader.java:1535)
at com.tc.asm.ClassReader.accept(ClassReader.java:580)
at com.tc.asm.ClassReader.accept(ClassReader.java:420)
at com.tc.backport175.bytecode.AnnotationReader.parse(AnnotationReader.java:944)
at com.tc.backport175.bytecode.AnnotationReader.(AnnotationReader.java:958)
at com.tc.backport175.bytecode.AnnotationReader.getReaderFor(AnnotationReader.java:209)
at com.tc.backport175.bytecode.AnnotationReader.getReaderFor(AnnotationReader.java:193)
at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.getAnnotationReader(AsmClassInfo.java:968)
at com.tc.aspectwerkz.reflect.impl.asm.AsmFieldInfo.getAnnotations(AsmFieldInfo.java:96)
at com.tc.aspectwerkz.expression.ExpressionVisitor.visitAttributes(ExpressionVisitor.java:815)
at com.tc.aspectwerkz.expression.ExpressionVisitor.visitAnnotatedNode(ExpressionVisitor.java:1021)
at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:171)
at com.tc.aspectwerkz.expression.ast.ASTGet.jjtAccept(ASTGet.java:22)
at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:100)
at com.tc.aspectwerkz.expression.ast.ASTExpression.jjtAccept(ASTExpression.java:22)
at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:88)
at com.tc.aspectwerkz.expression.ExpressionVisitor.match(ExpressionVisitor.java:74)
at com.tc.object.config.Root.matches(Root.java:94)
at com.tc.object.config.StandardDSOClientConfigHelperImpl.findMatchingRootDefinition(StandardDSOClientConfigHelperImpl.java:997)
at com.tc.object.config.StandardDSOClientConfigHelperImpl.classContainsAnyRoots(StandardDSOClientConfigHelperImpl.java:1006)
at com.tc.object.config.StandardDSOClientConfigHelperImpl.shouldBeAdapted(StandardDSOClientConfigHelperImpl.java:1236)
at com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transform(DefaultWeavingStrategy.java:139)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.preProcess(DSOContextImpl.java:170)
at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:678)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
at org.jboss.seam.deployment.ComponentDeploymentHandler.handle(ComponentDeploymentHandler.java:75)
at org.jboss.seam.deployment.DeploymentStrategy.handle(DeploymentStrategy.java:81)
at org.jboss.seam.deployment.AbstractScanner.handleItem(AbstractScanner.java:30)
at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:117)
at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:98)
at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:81)
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:67)
at org.jboss.seam.init.Initialization.create(Initialization.java:102)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
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)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.