These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JDBC: Il n'y a plus de données à lire dans le socket
PostPosted: Mon Mar 20, 2006 6:49 am 
Senior
Senior

Joined: Tue May 10, 2005 9:00 am
Posts: 125
Bonjour, j'ai cette erreur dans une de mes application lorsque je tente un acces sur oracle depuis hibernate. On dirait de gros problème dans la manipulation des champs type TEXT, mais j'ai du mal a voir d'ou viens le problème. Quelqu'un a une solution?? Je doute qu'hibernate soit incapable de mapper des champs String de plus de 4000 charactères.

Hibernate version:
3.0.x
Mapping documents:
Code:
    <class name="com.xpn.xwiki.doc.XWikiDocument" table="xwikidoc">
        <id name="id" type="long" unsaved-value="any">
            <column name="XWD_ID" not-null="true"/>
            <generator class="assigned" />
        </id>
        <property name="fullName" type="string">
            <column name="XWD_FULLNAME" length="255" not-null="true"/>
        </property>

        <property name="name" type="string">
            <column name="XWD_NAME" length="255" not-null="true"/>
        </property>

        <property name="language" type="string">
            <column name="XWD_LANGUAGE" length="5" />
        </property>

        <property name="defaultLanguage" type="string">
            <column name="XWD_DEFAULT_LANGUAGE" length="5" />
        </property>

        <property name="translation" type="integer">
            <column name="XWD_TRANSLATION"  not-null="true" />
        </property>

        <property name="date" type="timestamp">
            <column name="XWD_DATE" not-null="true"/>
        </property>

        <property name="creationDate" type="timestamp">
            <column name="XWD_CREATION_DATE" />
        </property>

        <property name="author" type="string">
            <column name="XWD_AUTHOR" length="255"/>
        </property>

        <property name="creator" type="string">
            <column name="XWD_CREATOR" length="255"/>
        </property>

        <property name="web" type="string">
            <column name="XWD_WEB" length="255" not-null="true"/>
        </property>

        <property name="content" type="text">
            <column name="XWD_CONTENT" not-null="true"/>
        </property>

        <property name="archive" type="text">
            <column name="XWD_ARCHIVE" not-null="true"/>
        </property>

        <property name="version" type="string">
            <column name="XWD_VERSION" length="255" not-null="true"/>
        </property>

        <property name="parent" type="string">
            <column name="XWD_PARENT" length="511"/>
        </property>
    </class>


Full stack trace of any exception that occurs:
Code:
Hibernate: insert into xwikidoc (XWD_FULLNAME, XWD_NAME, XWD_LANGUAGE, XWD_DEFAULT_LANGUAGE, XWD_TRANSLATION, XWD_DATE, XWD_CREATION_DATE, XWD_AUTHOR, XWD_CREATOR, XWD_WEB, XWD_CONTENT, XWD_ARCHIVE, XWD_VERSION, XWD_PARENT, XWD_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
15:30:49,171  WARN http-8080-Processor3 http://localhost:8080/wiki/bin/view/Main/WebHome JDBCExceptionReporter:logExceptions:71 - SQL Error: 17410, SQLState: null
15:30:49,172 ERROR http-8080-Processor3 http://localhost:8080/wiki/bin/view/Main/WebHome JDBCExceptionReporter:logExceptions:72 - Il n'y a plus de données à lire dans le socket
15:30:49,173 ERROR http-8080-Processor3 http://localhost:8080/wiki/bin/view/Main/WebHome AbstractFlushingEventListener:performExecutions:277 - Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not insert: [com.xpn.xwiki.doc.XWikiDocument]
        at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
        at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1869)
        at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2200)
        at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:46)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClassProperty(XWikiHibernateStore.java:1262)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClass(XWikiHibernateStore.java:1165)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:517)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)

Name and version of the database you are using:
Oracle 9i


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.