Mantis - Resin
Viewing Issue Advanced Details
2921 minor always 09-11-08 09:23 09-11-08 14:59
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.1.7  
0002921: amber 32-field issue
(rep by Neil Shannon)


I?ve included the error and a snippet of generated source (obfuscated a bit but you?ll get the idea).
 
Here?s the error (via a Hessian servlet):
500 Servlet Exception

c:\XXXX\deploy\WEB-INF\work\pre-enhance\XXXX\XXXX\XXXX\XXXX\XXXX__ResinExt.java:2956:
integer number too large: 2147483648
    if ((__caucho_super_get_xxxxx() != null) && (__caucho_state.isPersist() || (__caucho_dirtyMask_0 & 2147483648) != 0L)) { //No L here?
                                                                                                       ^
1 error
 
Here?s a snippet of generated source (this occurs inside the __caucho_flush() method):
 
    if ((__caucho_super_get_xxxxx() != null) && (__caucho_state.isPersist() || (__caucho_dirtyMask_0 & 2147483648) != 0L)) {
      com.caucho.amber.entity.EntityState otherState = ((com.caucho.amber.entity.Entity) __caucho_super_get_xxxxx()).__caucho_getEntityState();
      if (((com.caucho.amber.entity.Entity) __caucho_super_get_xxxxx()).__caucho_getConnection() == null) {
        if (__caucho_state.isTransactional() && ! otherState.isManaged())
          throw new IllegalStateException("amber flush: unable to flush XXXXXX[" + __caucho_getPrimaryKey() + "] with non-managed dependent relationship many-to-one to XXXXX. Current entity state: " + __caucho_state + " and parent entity state: " + otherState);
      }
    }
 

There are no notes attached to this issue.