0 Replies Latest reply: Jul 2, 2014 1:24 AM by soso_xuc RSS

    OJDBC bug

    soso_xuc

      When by NCLOB data is 4193 chars ojdbc throws error

       

      Protocol violation: [ 14, 10, ] - see full stack below.

       

      bug is very annoying

       

      can anyone help me ?

       

      i'm using ojdbc6 12.1.0.1

       

      thanks in advance.

       

      PS. Forum link from main site is broken : https://community.oracle.com/community/findaspace

      says : The information you are looking for may have been moved, you can search for it here. We apologize for the inconvenience.

       

      Caused by: org.hibernate.HibernateException: IOException occurred reading text

        at org.hibernate.type.descriptor.java.DataHelper.extractString(DataHelper.java:96)

        at org.hibernate.type.descriptor.java.DataHelper.extractString(DataHelper.java:282)

        at org.hibernate.type.descriptor.java.StringTypeDescriptor.wrap(StringTypeDescriptor.java:89)

        at org.hibernate.type.descriptor.java.StringTypeDescriptor.wrap(StringTypeDescriptor.java:39)

        at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$1.doExtract(ClobTypeDescriptor.java:61)

        at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:64)

        at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:267)

        at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:263)

        at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:253)

        at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:338)

        at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2969)

        at org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.loadFromResultSet(EntityReferenceInitializerImpl.java:324)

        at org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.hydrateEntityState(EntityReferenceInitializerImpl.java:251)

        at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.readRow(AbstractRowReader.java:107)

        at org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails$EntityLoaderRowReader.readRow(EntityLoadQueryDetails.java:255)

        at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:129)

        at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:138)

        at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:102)

        at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:186)

        at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4126)

        at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:502)

        at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:467)

        at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:212)

        at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:274)

        at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:150)

        at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1070)

        at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)

        at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2551)

        at org.hibernate.internal.SessionImpl.get(SessionImpl.java:955)

        at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1110)

        ... 2 more

      Caused by: java.io.IOException: Protocol violation: [ 14, 10, ]

        at oracle.jdbc.driver.OracleClobReader.needChars(OracleClobReader.java:264)

        at oracle.jdbc.driver.OracleClobReader.read(OracleClobReader.java:195)

        at org.hibernate.type.descriptor.java.DataHelper.extractString(DataHelper.java:88)

        ... 31 more

      Caused by: java.sql.SQLException: Protocol violation: [ 14, 10, ]

        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:669)

        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:249)

        at oracle.jdbc.driver.T4C8TTIClob.read(T4C8TTIClob.java:245)

        at oracle.jdbc.driver.T4CConnection.getChars(T4CConnection.java:3901)

        at oracle.sql.CLOB.getChars(CLOB.java:517)

        at oracle.jdbc.driver.OracleClobReader.needChars(OracleClobReader.java:245)

        ... 33 more