Mantis - Resin
Viewing Issue Advanced Details
1426 minor always 10-26-06 14:37 10-31-06 13:55
joshh  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.0  
0001426: Hibernate annotations cause IllegalStateException warnings
When using Hibernate annotations rather than the resin entity beans the ByteCodeScanner throws an exception for every hibernate class that it finds. Things seem to work fine, but it pollutes the logs.
[2006/10/26 14:28:05.695] java.lang.IllegalStateException
[2006/10/26 14:28:05.695] at com.caucho.bytecode.ByteCodeClassScanner.parseElementValue(ByteCodeClassScanner.java:412)
[2006/10/26 14:28:05.695] at com.caucho.bytecode.ByteCodeClassScanner.parseAttribute(ByteCodeClassScanner.java:360)
[2006/10/26 14:28:05.695] at com.caucho.bytecode.ByteCodeClassScanner.scan(ByteCodeClassScanner.java:118)
[2006/10/26 14:28:05.695] at com.caucho.loader.enhancer.EnhancerManager.enhance(EnhancerManager.java:237)
[2006/10/26 14:28:05.695] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1235)
[2006/10/26 14:28:05.695] at com.caucho.loader.DynamicClassLoader.findClass(DynamicClassLoader.java:1149)
[2006/10/26 14:28:05.695] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1072)
[2006/10/26 14:28:05.695] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1021)
[2006/10/26 14:28:05.695] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[2006/10/26 14:28:05.695] at java.lang.Class.forName0(Native Method)
[2006/10/26 14:28:05.695] at java.lang.Class.forName(Class.java:242)
[2006/10/26 14:28:05.695] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1068)
[2006/10/26 14:28:05.695] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1021)
[2006/10/26 14:28:05.695] at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95)
[2006/10/26 14:28:05.695] at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:443)
[2006/10/26 14:28:05.695] at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474)
[2006/10/26 14:28:05.695] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453)
[2006/10/26 14:28:05.695] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427)
[2006/10/26 14:28:05.695] at org.hibernate.cfg.Configuration.configure(Configuration.java:1362)
...

Notes
(0001561)
ferg   
10-31-06 13:55   
ejb/0i04