1 Reply Latest reply on Dec 28, 2009 10:24 AM by Brian Stansberry

    [JBoss 6.0 M1] org.hibernate.lob.SerializableBlob: where is it ?

    Celinio Fernandes Novice

      Hi,

      I am migrating my project from JBoss 5.1 GA to JBoss 6.0 M1.

       

      It is complaining about a missing class :


      SerializableBlob cannot be resolved to a type.

       

      In JBoss 5.1 GA the class org.hibernate.lob.SerializableBlob was located in the following jar :

      jboss-5.1.0.GA.jdk6\common\lib\hibernate-core.jar

       

      When i check that same jar in jboss-6.0.0.M1\common\lib, I noticed that the lob package is not there anymore.

      Also, the sizes are different:

      • jboss-6.0.0.M1\common\lib\hibernate-core.jar : 2.32 MB
      • jboss-5.1.0.GA.jdk6\common\lib\hibernate-core.jar : 2.19 MB

       

      How come ? Why is the LOB package gone ?

      And is it ok if i overwrite the new version with the old one ? I am guessing it is not ok.

       

      Thanks for helping.

        • 1. Re: [JBoss 6.0 M1] org.hibernate.lob.SerializableBlob: where is it ?
          Brian Stansberry Master

          Hibernate 3.5 has changed the way it deals with LOB and CLOB fields as part of it's move to support for JDBC 4. This is briefly touched on at http://community.jboss.org/wiki/Hibernate-JDBC4support

           

          There's not much point in overwriting the jar.

           

          To poke around a bit in some of the code involved, see the org.hibernate.engine.jdbc package in hibernate-core.jar, perhaps start with the LobCreator interface and see usages and implementations of it. That's what I did before responding here. If you have questions about how to migrate your app to remove what caused direct use of the SerializableBlob class, I suggest you try the user forums at hibernate.org or perhaps the #hibernate room at freenode. You're more likely to get an answer there, although perhaps someone will answer here.