Mantis - Resin
Viewing Issue Advanced Details
1534 minor always 01-03-07 11:44 01-03-07 11:51
sam  
ferg  
high  
closed 3.0.22  
fixed  
none    
none 3.0.23  
0001534: Resin logs exception for Hibernate annotations
(rep by R Dredge)

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)

This problem is with .ear deployed on resin with annotation classes for hibernate.

There are no notes attached to this issue.