Error:Could not synchronize database with session

1 message Options
Embed this post
Permalink
jithesh

Error:Could not synchronize database with session

Reply Threaded More More options
Print post
Permalink
Hai Friends,

        I am using appfuse 1.9.4 for developing my web app. I hosted my app in wasce 2.0. I made a small web app (not using appfuse) which performs some operation and it is deployed in the same server. Both the application performs a insert opeartion on a table 'FileInfo' (not at the same time.) When it inserts I am getting the error
2007-02-12 12:05:01,406 [http-8080-Processor23] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session

The second app uses jdbc connection for insertion and the main app (appfuse) uses hibernate.


My hbm file is

 <class
            name="org.securedmd.com.model.FileInfo"
            table="FileInfo_Mst"
    >

    <id
        name="fileId"
            column="fileId"
            unsaved-value="null"
    >

    <!-- The generator-class attribute of @hibernate.id is deprecated, use the @hibernate.generator tag instead -->
    <generator class="increment">

    </generator>

Can any one help me to resolve my problem

Thanks in advance
Jithesh PM.