3 Replies Latest reply on Dec 19, 2013 7:36 AM by Rômulo Coutinho

    Lob in WildFly 8.0.0.Alpha4

    Rômulo Coutinho Newbie

      Hi,

       

      I found an error when persisting entities with lob properties. Any ideas on what I am doing wrong?

       

      Here, is the example:

      public class AppNotification extends Message {
      
        ...
      
        // MessageCommand extends Serializable
        @Column(name = "content")
        public MessageCommand getContent() {
           return content;
        }
      
        ...
      
      }
      
      
      

       

      And the error log:

      Caused by: java.lang.IllegalArgumentException: interface org.hibernate.engine.jdbc.BlobImplementer is not visible from class loader
        at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:487) [rt.jar:1.7.0_25]
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:722) [rt.jar:1.7.0_25]
        at org.hibernate.engine.jdbc.BlobProxy.generateProxy(BlobProxy.java:169)
        at org.hibernate.engine.jdbc.NonContextualLobCreator.createBlob(NonContextualLobCreator.java:50)
        at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.unwrap(SerializableTypeDescriptor.java:111)
        at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.unwrap(SerializableTypeDescriptor.java:44)
        at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$4$1.doBind(BlobTypeDescriptor.java:133)
        at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:93)
        at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:281)
        at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:276)
        at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:56)
        at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2789)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3067)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3512)
        at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:103)
        at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:377)
        at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:369)
        at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:286)
        at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:340)
        at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52)
        at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1235)
        at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:405)
        at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:113)
        ... 25 more
      
      
      
      

       

      Thanks in advance,

       

      Rômulo Coutinho.