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 DefermentNL
, 1 year ago
Error while reading file:/...path to project/target/classes/
java.lang.RuntimeException: Error while reading file:/...path to project/target/classes/ at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:195)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final]Caused by: java.io.IOException: invalid constant type: 18 at javassist.bytecode.ConstPool.readOne(ConstPool.java:1113)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ConstPool.read(ConstPool.java:1056)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ConstPool.<init>(ConstPool.java:150)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ClassFile.read(ClassFile.java:765)[javassist-3.15.0-GA.jar:na] at javassist.bytecode.ClassFile.<init>(ClassFile.java:109)[javassist-3.15.0-GA.jar:na] at org.hibernate.ejb.packaging.AbstractJarVisitor.checkAnnotationMatching(AbstractJarVisitor.java:246)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.executeJavaElementFilter(AbstractJarVisitor.java:212)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.addElement(AbstractJarVisitor.java:173)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:126)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:134)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:134)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.getClassNamesInTree(ExplodedJarVisitor.java:134)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.ExplodedJarVisitor.doProcessElements(ExplodedJarVisitor.java:92)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192)[hibernate-entitymanager-4.2.8.Final.jar:4.2.8.Final] ... 3 more