<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8237441468235475128</id><updated>2011-12-22T11:59:13.579-08:00</updated><category term='Hibernate'/><category term='Flex'/><category term='WebService'/><category term='Exception'/><category term='SQL'/><category term='Axis'/><category term='XDoclet'/><title type='text'>Everyday Programming Exceptions</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-1089478382441336302</id><published>2008-08-01T06:10:00.000-07:00</published><updated>2008-08-01T06:40:41.241-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='XDoclet'/><title type='text'>XDoclet unsaved-value tag does not work</title><content type='html'>I am using &lt;a href="http://xdoclet.sourceforge.net/"&gt;XDoclet&lt;/a&gt; with Hibernate for one of my project. I am wondering why one of the very important tag "unsaved-value" mentioned in the website is not working as expected.&lt;br /&gt;&lt;br /&gt;You can see in below code, I have used the tag "unsaved-value" and gave it 0 as value.&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* @hibernate.property column="parent_account" type="int" not-null="true" unique="false" unsaved-value="0"&lt;br /&gt;  * @return int&lt;br /&gt;*/&lt;br /&gt;public int getParentAccount(){&lt;br /&gt; return parentAccount;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In the database, we normally use DEFAULT keyword with any field while creating a database table. This DEFAULT tag tells DB to insert a default mentioned value in case no value for that field, we insert when create a new row in table.&lt;br /&gt;&lt;br /&gt;Now when i give unsaved-value as 0 in above XDoclet tags, it should create this property in hbm.xml file something like below-&lt;br /&gt;&lt;br /&gt;       &amp;lt;property&lt;br /&gt;            name="parentAccount"&lt;br /&gt;            type="int"&lt;br /&gt;            update="true"&lt;br /&gt;            insert="true"&lt;br /&gt;            column="parent_account"&lt;br /&gt;            not-null="true"&lt;br /&gt;            unique="false"&lt;br /&gt;            &lt;strong&gt;default="0"&lt;/strong&gt;&lt;br /&gt;        /&amp;gt;&lt;br /&gt;&lt;br /&gt;But this always generate-&lt;br /&gt;&lt;br /&gt;      &amp;lt;property&lt;br /&gt;            name="parentAccount"&lt;br /&gt;            type="int"&lt;br /&gt;            update="true"&lt;br /&gt;            insert="true"&lt;br /&gt;            column="parent_account"&lt;br /&gt;            not-null="true"&lt;br /&gt;            unique="false"&lt;br /&gt;       /&amp;gt;&lt;br /&gt;&lt;br /&gt;You can see from generated code that default is missing. I am not sure why this tag does not work as expected.&lt;br /&gt;&lt;br /&gt;According to XDoclet tag reference, it is-&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;Parameter&lt;td&gt;&lt;td&gt;Type&lt;/td&gt;&amp;nbsp;&lt;td&gt;Applicability&lt;/td&gt;&lt;td&gt;Description&lt;/td&gt;&lt;td&gt;Mandatory&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;unsaved-value&lt;td&gt;&lt;td&gt;text&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;A value that distinguishes transient instances with existing persistent state from new transient instances&lt;br /&gt;&lt;br /&gt;Default value(s): &lt;br /&gt;&lt;br /&gt;null&lt;/td&gt;&lt;td&gt;false&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; I searched for this tag, but did not find much. I will try to fix this issue. Guys if you have any idea or you faced this problem before then please share here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-1089478382441336302?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/1089478382441336302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=1089478382441336302' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/1089478382441336302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/1089478382441336302'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/08/xdoclet-unsaved-value-tag-does-not-work.html' title='XDoclet unsaved-value tag does not work'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-2474926662404813501</id><published>2008-07-29T21:59:00.000-07:00</published><updated>2008-07-29T22:17:04.007-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WebService'/><title type='text'>Too Busy Developing Web Services</title><content type='html'>It's quite long time I did not write anything in this blog. I was very busy in developing web services for my project. During development, i got many exceptions, but I did not get time to share with you guys. I will be back here after few days and will write few more interesting problems and hopefully the solutions also.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-2474926662404813501?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/2474926662404813501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=2474926662404813501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2474926662404813501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2474926662404813501'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/07/too-busy-developing-web-services.html' title='Too Busy Developing Web Services'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-65111577332280296</id><published>2008-07-02T07:39:00.000-07:00</published><updated>2008-07-02T08:00:30.251-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><title type='text'>Hibernate Cache Problem is still there</title><content type='html'>In my last post about &lt;a href="http://beatexception.blogspot.com/2008/06/hibernate-cache-problem-real-pain.html"&gt;Hibernate Cache problem&lt;/a&gt;, i posted the problem, I was facing with Hibernate. I got many responses in &lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=78&amp;t=004126"&gt;javaranch &lt;/a&gt;forum. But none of them seems to be working in my case.&lt;br /&gt;&lt;br /&gt;I am still in a hope that i will be able to solve this problem soon. Here are my few conversations with other developers on this problem.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Ques: Hi All,&lt;br /&gt;&lt;br /&gt;I have a problem related to hibernate. I have a single database which is being shared by two applications( PHP and Flex ). PHP applications when updates the data in database. Flex application through webservice get this latest data and display accordingly.&lt;br /&gt;&lt;br /&gt;The problem here i am facing is because of hibernate cache. my PHP application updates the DB, but webservice returns the old data to flex client.&lt;br /&gt;&lt;br /&gt;if i create sessionFactory multiple times, it's not a good solution as it will increase load on my application, so i want to keep it static and want to instantiate only once.&lt;br /&gt;&lt;br /&gt;How to let my application to get latest data?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Ans: You don't need a new SessionFactory, just open a new Session. Sessions are cheap to create.&lt;br /&gt;&lt;br /&gt;-------------------------------------------&lt;br /&gt;&lt;br /&gt;Ques: I think, you did not get my problem, I can create session and later i can close them. That's not an issue. Even after destroying the session, Everytime i get the old data. External application is updating the database and i am not able to get this latest data.&lt;br /&gt;&lt;br /&gt;Hope i am clear now. Thanks for replying.&lt;br /&gt;&lt;br /&gt;Ans: Opening a new session gets the latest data from the database (unless you are using a second level cache?), so perhaps I don't unerstand the flow of your application? Assuming your PHP app. updates the database, then your Hibernate backed app. opens a session (or flushes an existing open session) and uses that to read from the database it will return the latest data.&lt;br /&gt;&lt;br /&gt;If you are using a second level cache you may want ot change your CacheMode, or decide whether you really need a second level cache for these objects?&lt;/blockquote&gt; There was a long conversation. It might be helpful to others.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-65111577332280296?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/65111577332280296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=65111577332280296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/65111577332280296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/65111577332280296'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/07/hibernate-cache-problem-is-still-there.html' title='Hibernate Cache Problem is still there'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-8188872567968853268</id><published>2008-06-26T02:44:00.000-07:00</published><updated>2008-06-26T02:51:39.916-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><title type='text'>Hibernate Cache Problem - A Real Pain</title><content type='html'>You can follow my hibernate cache problem discussion here at-&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=78&amp;t=004126"&gt;http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=78&amp;t=004126&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The problem is that I have a single database which is being shared by two applications (PHP and Flex). PHP applications updates the data in database. &lt;br /&gt;Flex application through webservice try to get this latest data but it always get the old data untill i restart the tomcat server.&lt;br /&gt;&lt;br /&gt;I have not added any second level cache implementation in my code and i am also closing the session after my transactions. May be i will get something out from the above discussion on my favourite Javaranch forum.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-8188872567968853268?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/8188872567968853268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=8188872567968853268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/8188872567968853268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/8188872567968853268'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/hibernate-cache-problem-real-pain.html' title='Hibernate Cache Problem - A Real Pain'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-8380175741238693069</id><published>2008-06-22T20:09:00.000-07:00</published><updated>2008-06-22T21:34:13.820-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Axis'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Problem org.xml.sax.SAXException: No deserializer for {urn:data} Solved</title><content type='html'>It was hard time to solve &lt;a href="http://beatexception.blogspot.com/2008/06/orgxmlsaxsaxexception-no-deserializer.html"&gt;org.xml.sax.SAXException: No deserializer for {urn:data}&lt;/a&gt; bug. on the client side, i need to do the mapping for all complex type i used in my web service.&lt;br /&gt;&lt;br /&gt;Now the working wsdd file is-&lt;br /&gt;&lt;br /&gt;&amp;lt;deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"&amp;gt; &lt;br /&gt; &amp;lt;service name="PlaylistService" provider="java:RPC"&amp;gt;&lt;br /&gt;  &amp;lt;parameter name="className" value="com.xxx.api.playlist.PlaylistService"/&amp;gt;&lt;br /&gt;  &amp;lt;parameter name="allowedMethods" value="getPlaylist setPlaylist"/&amp;gt;    &lt;br /&gt;      &amp;lt;parameter name="wsdlTargetNamespace" value="urn:PlaylistService"/&amp;gt;&lt;br /&gt;        &lt;br /&gt;       &amp;lt;beanMapping qname="ns1:PlaylistRecord" &lt;br /&gt;        xmlns:ns1="urn:PlaylistService1"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns2:UserRecord" &lt;br /&gt;        xmlns:ns2="urn:PlaylistService2"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.account.UserRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns3:PlaylistClipRecord" &lt;br /&gt;        xmlns:ns3="urn:PlaylistService3"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipRecord"/&amp;gt;   &lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns4:playlist.PlaylistParameterRecord" &lt;br /&gt;        xmlns:ns4="urn:PlaylistService4"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistParameterRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns5:PlaylistClipItemRecord" &lt;br /&gt;        xmlns:ns5="urn:PlaylistService5"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipItemRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns6:PlaylistClipParameterRecord" &lt;br /&gt;        xmlns:ns6="urn:PlaylistService6"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipParameterRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns7:AssetRecord" &lt;br /&gt;        xmlns:ns7="urn:PlaylistService7"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.asset.AssetRecord"/&amp;gt; &lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns8:PlaylistClipItemParameter" &lt;br /&gt;        xmlns:ns8="urn:PlaylistService8"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipItemParameter"/&amp;gt; &lt;br /&gt;                  &lt;br /&gt; &amp;lt;/service&amp;gt;&lt;br /&gt;  &lt;br /&gt;&amp;lt;/deployment&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and modified client application is -&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Service service = new Service();&lt;br /&gt;Call call = (Call) service.createCall();&lt;br /&gt;call.setTargetEndpointAddress("http://192.168.1.151:8080/axis/services/PlaylistService");&lt;br /&gt;call.setOperationName("getPlaylist");&lt;br /&gt;   &lt;br /&gt;QName qn = new QName("urn:PlaylistService1", "PlaylistRecord");&lt;br /&gt;QName qn1 = new QName("urn:PlaylistService3", "PlaylistClipRecord");&lt;br /&gt;QName qn2 = new QName("urn:PlaylistService5", "PlaylistClipItemRecord");&lt;br /&gt;QName qn3 = new QName("urn:PlaylistService7", "AssetRecord");&lt;br /&gt;QName qn4 = new QName("urn:PlaylistService8", "PlaylistClipItemParameter");&lt;br /&gt;QName qn5 = new QName("urn:PlaylistService6", "PlaylistClipParameterRecord");&lt;br /&gt;QName qn6 = new QName("urn:PlaylistService2", "UserRecord");&lt;br /&gt;QName qn7 = new QName("urn:PlaylistService4", "PlaylistParameterRecord");&lt;br /&gt; &lt;br /&gt;call.registerTypeMapping(PlaylistRecord.class, qn,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt;       PlaylistRecord.class, qn),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; PlaylistRecord.class, qn));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(PlaylistClipRecord.class, qn1,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt; PlaylistClipRecord.class, qn1),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; PlaylistClipRecord.class, qn1));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(PlaylistClipItemRecord.class, qn2,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory    PlaylistClipItemRecord.class, qn2),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; PlaylistClipItemRecord.class, qn2));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(AssetRecord.class, qn3,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt;        AssetRecord.class, qn3),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt;        AssetRecord.class, qn3));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(PlaylistClipItemParameter.class, qn4,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt; PlaylistClipItemParameter.class, qn4),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; PlaylistClipItemParameter.class, qn4));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(PlaylistClipParameterRecord.class, qn5,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt; PlaylistClipParameterRecord.class, qn5),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; PlaylistClipParameterRecord.class, qn5));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(UserRecord.class, qn6,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt; UserRecord.class, qn6),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; UserRecord.class, qn6));&lt;br /&gt;   &lt;br /&gt;call.registerTypeMapping(PlaylistParameterRecord.class, qn7,&lt;br /&gt;  new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt; PlaylistParameterRecord.class, qn7),new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt; PlaylistParameterRecord.class, qn7));&lt;br /&gt;   &lt;br /&gt;call.addParameter("id", XMLType.XSD_INT, ParameterMode.IN);&lt;br /&gt;call.addParameter("credential", XMLType.XSD_STRING, ParameterMode.IN);&lt;br /&gt;&lt;br /&gt;call.setReturnType(XMLType.SOAP_ARRAY);&lt;br /&gt;&lt;br /&gt;PlaylistRecord[] output = (PlaylistRecord[]) call.invoke(new Object[] { 1, "9b4af867274d1f95f222bfb27d05a86" });&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now i have register here all complex types I used in .wsdd file. It took so much time to solve this exception. Finally it's working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-8380175741238693069?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/8380175741238693069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=8380175741238693069' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/8380175741238693069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/8380175741238693069'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/problem-orgxmlsaxsaxexception-no.html' title='Problem org.xml.sax.SAXException: No deserializer for {urn:data} Solved'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-3600464719210337989</id><published>2008-06-20T00:20:00.000-07:00</published><updated>2008-06-20T00:30:44.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Axis'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>org.xml.sax.SAXException: No deserializer for {urn:data}</title><content type='html'>&lt;strong&gt;Jun 20, 2008 12:26:53 PM org.apache.axis.client.Call invoke&lt;br /&gt;SEVERE: Exception:&lt;br /&gt;org.xml.sax.SAXException: No deserializer for {urn:data}com.xxx.container.pl&lt;br /&gt;aylist.PlaylistRecord&lt;br /&gt;        at org.apache.axis.encoding.DeserializerImpl.onStartElement(Deserializer&lt;br /&gt;Impl.java:453)&lt;br /&gt;        at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerIm&lt;br /&gt;pl.java:393)&lt;br /&gt;        at org.apache.axis.encoding.DeserializationContext.startElement(Deserial&lt;br /&gt;izationContext.java:1048)&lt;br /&gt;        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja&lt;br /&gt;va:165)&lt;br /&gt;        at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen&lt;br /&gt;t.java:1141)&lt;br /&gt;        at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerIm&lt;br /&gt;pl.java:369)&lt;br /&gt;        at org.apache.axis.encoding.DeserializationContext.startElement(Deserial&lt;br /&gt;izationContext.java:1048)&lt;br /&gt;        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja&lt;br /&gt;va:165)&lt;br /&gt;        at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen&lt;br /&gt;t.java:1141)&lt;br /&gt;        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)&lt;br /&gt;        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)&lt;br /&gt;        at org.apache.axis.client.Call.invoke(Call.java:2467)&lt;br /&gt;        at org.apache.axis.client.Call.invoke(Call.java:2366)&lt;br /&gt;        at org.apache.axis.client.Call.invoke(Call.java:1812)&lt;br /&gt;        at PlaylistClient.testMethod(PlaylistClient.java:66)&lt;br /&gt;        at PlaylistClient.main(PlaylistClient.java:80)&lt;br /&gt;Inside Main: +; nested exception is:&lt;br /&gt;        org.xml.sax.SAXException: No deserializer for {urn:data}com.xxx.cont&lt;br /&gt;ainer.playlist.PlaylistRecord&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It's taking my so much time and i am not able to figure out what is the problem actually. I have worked with complex types in Axis but this time why it's asking for deserializer.&lt;br /&gt;&lt;br /&gt;my WSDD file is-&lt;br /&gt;&lt;br /&gt;&amp;lt;deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"&amp;gt;&lt;br /&gt; &amp;lt;service name="PlaylistService" provider="java:RPC"&amp;gt;&lt;br /&gt;  &amp;lt;parameter name="className" value="com.xxx.api.playlist.PlaylistService"/&amp;gt;&lt;br /&gt;  &amp;lt;parameter name="allowedMethods" value="getPlaylist setPlaylist"/&amp;gt;    &lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.playlist.PlaylistRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.account.UserRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.account.UserRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.asset.AssetRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.asset.AssetRecord"/&amp;gt; &lt;br /&gt;       &lt;br /&gt;       beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipItemParameter" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipItemParameter"/&amp;gt; &lt;br /&gt;        &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipItemRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipItemRecord"/&amp;gt;&lt;br /&gt;      &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipParameterRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipParameterRecord"/&amp;gt;&lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistClipRecord"/&amp;gt;   &lt;br /&gt;       &lt;br /&gt;       &amp;lt;beanMapping qname="ns:com.xxx.container.playlist.PlaylistParameterRecord" &lt;br /&gt;        xmlns:ns="urn:data"&lt;br /&gt;        languageSpecificType="java:com.xxx.container.playlist.PlaylistParameterRecord"/&amp;gt; &lt;br /&gt;              &lt;br /&gt; &amp;lt;/service&amp;gt;&lt;br /&gt;  &lt;br /&gt;&amp;lt;/deployment&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and my client is-&lt;br /&gt;&lt;br /&gt;String targetNamespace = "PlaylistService";&lt;br /&gt;   Service service = new Service();&lt;br /&gt;   Call call = (Call) service.createCall();&lt;br /&gt;   call.setTargetEndpointAddress("http://localhost:8080/axis/services/PlaylistService");&lt;br /&gt;   call.setOperationName("getPlaylist");&lt;br /&gt;   &lt;br /&gt;   QName qn = new QName("urn:data", "PlaylistRecord");&lt;br /&gt;&lt;br /&gt;   call.registerTypeMapping(PlaylistRecord.class, qn,&lt;br /&gt;     new org.apache.axis.encoding.ser.BeanSerializerFactory(&lt;br /&gt;       PlaylistRecord.class, qn),&lt;br /&gt;     new org.apache.axis.encoding.ser.BeanDeserializerFactory(&lt;br /&gt;       PlaylistRecord.class, qn));&lt;br /&gt;&lt;br /&gt;   call.addParameter("id", XMLType.XSD_INT, ParameterMode.IN);&lt;br /&gt;   call.addParameter("credential", XMLType.XSD_STRING, ParameterMode.IN);&lt;br /&gt;   call.setReturnType(XMLType.SOAP_ARRAY);&lt;br /&gt;&lt;br /&gt;   PlaylistRecord[] output = (PlaylistRecord[]) call.invoke(new Object[] { 1, "b9e9bd267d6f4ef3885cfd71f42ff059" });&lt;br /&gt;&lt;br /&gt;   System.out.println(output);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;No idea what is wrong here. Help me guys...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-3600464719210337989?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/3600464719210337989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=3600464719210337989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/3600464719210337989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/3600464719210337989'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/orgxmlsaxsaxexception-no-deserializer.html' title='org.xml.sax.SAXException: No deserializer for {urn:data}'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-4878827019590790834</id><published>2008-06-18T00:36:00.000-07:00</published><updated>2008-06-18T00:43:17.570-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>- SQL Error: 0, SQLState: S1009</title><content type='html'>&lt;strong&gt;Hibernate: select this_.id as id0_, this_.clip_data_id as clip2_15_0_, this_.item_type as item3_15_0_, this_.content as content15_0_, this_.status as status15_0_, this_.ins_time as ins6_15_0_, this_.up_time as up7_15_0_ from item_data this_ where this_.clip_data_id=?&lt;br /&gt;&lt;br /&gt;- SQL Error: 0, SQLState: S1009&lt;br /&gt;&lt;br /&gt;- Invalid value for getInt() - 'video'&lt;br /&gt;&lt;br /&gt;Exception: org.hibernate.exception.GenericJDBCException: could not execute query&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In my bean file, i put "int" in place of "string"&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;  * @hibernate.property column="item_type" type="&lt;strong&gt;int&lt;/strong&gt;" not-null="true" unique="false" unsaved-value="video"&lt;br /&gt;  * @return String&lt;br /&gt;  */&lt;br /&gt; public String getItemType(){&lt;br /&gt;  return itemType;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;This was the problem, the type was "string" and i put it "int" by mistake. I corrected it to-&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;  * @hibernate.property column="item_type" type="&lt;strong&gt;string&lt;/strong&gt;" not-null="true" unique="false" unsaved-value="video"&lt;br /&gt;  * @return String&lt;br /&gt;  */&lt;br /&gt; public String getItemType(){&lt;br /&gt;  return itemType;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;And the exception was no more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-4878827019590790834?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/4878827019590790834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=4878827019590790834' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/4878827019590790834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/4878827019590790834'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/sql-error-0-sqlstate-s1009.html' title='- SQL Error: 0, SQLState: S1009'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-2838342179271386140</id><published>2008-06-18T00:13:00.000-07:00</published><updated>2008-06-18T00:23:23.746-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>not-null property references a null or transient value</title><content type='html'>&lt;strong&gt;Exception: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.xxx.entity.playlistdb.PlaylistClipParameterBean.insTime&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In MySQL database, i have ins_time field as datetime and the default value is "0000-00-00 00:00:00". I am fetching the record from database and assigning it to a bean. In bean definition, i have taken insTime as java.util.Date, which is causing this exception. &lt;br /&gt;&lt;br /&gt;When i give any valid date to ins_time say "2008-06-11 11:28:17", this exception does not come. It's not able to map "0000-00-00 00:00:00" to a valid java.util.Date.&lt;br /&gt;&lt;br /&gt;I have default value "0000-00-00 00:00:00" in database for all datetime fields and this is creating problem. No idea of how to resolve this issue.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-2838342179271386140?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/2838342179271386140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=2838342179271386140' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2838342179271386140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2838342179271386140'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/not-null-property-references-null-or.html' title='not-null property references a null or transient value'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-6340307854738747291</id><published>2008-06-17T23:56:00.000-07:00</published><updated>2008-06-18T00:02:19.196-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>- SQL Error: 1054, SQLState: 42S22</title><content type='html'>&lt;strong&gt;Hibernate: select this_.id as id0_, this_.base_data_id as base2_2_0_, this_.title as title2_0_, this_.description as descript4_2_0_, this_.sort as sort2_0_, this_.status as status2_0_, this_.ins_time as ins7_2_0_, this_.up_time as up8_2_0_, this_.thumb_tiny_url as thumb9_2_0_, this_.thumb_small_url as thumb10_2_0_, this_.thumb_medium_url as thumb11_2_0_, this_.thumb_large_url as thumb12_2_0_ from clip_data this_ where this_.base_data_id=?&lt;br /&gt;&lt;br /&gt;- SQL Error: 1054, SQLState: 42S22&lt;br /&gt;&lt;br /&gt;- Unknown column 'this_.description' in 'field list'&lt;br /&gt;&lt;br /&gt;Exception: org.hibernate.exception.SQLGrammarException: could not execute query&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This exception was the result of my copy paste of an existing similar hibernate bean definition. In my bean definition, there was a field called "description", which was not there in database. &lt;br /&gt;I removed it from bean definition and exception is no more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-6340307854738747291?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/6340307854738747291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=6340307854738747291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/6340307854738747291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/6340307854738747291'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/sql-error-1054-sqlstate-42s22.html' title='- SQL Error: 1054, SQLState: 42S22'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-2501641235091275591</id><published>2008-06-13T07:04:00.000-07:00</published><updated>2008-06-13T07:31:47.021-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Finally i got the reason of Hibernate Exception</title><content type='html'>&lt;strong&gt;SQLQuery query = session.createSQLQuery("SELECT * from sample").addEntity("sample", SampleBean.class);&lt;br /&gt;&lt;br /&gt;List&lt;SampleBean&gt; list = query.setFirstResult(offset).setMaxResults(limit).list();&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The reason of &lt;a href="http://beatexception.blogspot.com/2008/06/hibernate-exception-with-sql-query.html"&gt;hibernate exception&lt;/a&gt; from the above code was the issue with class name.&lt;br /&gt;&lt;br /&gt;In my application, i was having two packages and both were having SampleBean class. It was like below-&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;com.mycom.asset.SampleBean&lt;br /&gt;com.mycom.playlist.SampleBean&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Although i imported the required package (com.mycom.asset.SampleBean) in my class. Somehow loading of class was not proper. When i changed the above line to -&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQLQuery query = session.createSQLQuery("SELECT * from sample").addEntity("sample", com.mycom.asset.SampleBean.class);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I gave complete package name with class and this worked like a charm. I wasted my two days fighting with this exception. Checked everything from mapping files to Bean class and exception was because of wrong class loading.&lt;br /&gt;&lt;br /&gt;Finally i changed the class name SampleBean in one of the package to MySampleBean and everything was fixed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-2501641235091275591?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/2501641235091275591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=2501641235091275591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2501641235091275591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2501641235091275591'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/finally-i-got-reason-of-hibernate.html' title='Finally i got the reason of Hibernate Exception'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-2869860898204490225</id><published>2008-06-12T22:31:00.000-07:00</published><updated>2008-06-13T07:27:38.109-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Hibernate Exception with SQL Query</title><content type='html'>I was getting &lt;a href="http://beatexception.blogspot.com/2008/06/flex-exception-in-webservice-call.html"&gt;exception on flex&lt;/a&gt; side while calling web service. The reason was the hibernate exception. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;- SQL Error: 0, SQLState: S0022&lt;br /&gt;- Column 'id0_' not found.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I did some Google for this exception. but did not find anything that can help me to solve this problem.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQLQuery query = session.createSQLQuery("SELECT * from sample").addEntity("sample", SampleBean.class);&lt;br /&gt;&lt;br /&gt;List&lt;SampleBean&gt; list = query.setFirstResult(offset).setMaxResults(limit).list();&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The above two lines are generating this error. When i use criteria-&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Criteria crit = session.createCriteria(SampleBean.class);&lt;br /&gt;&lt;br /&gt;List&lt;SampleBean&gt; list = crit.setFirstResult(offset).setMaxResults(limit).list();&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This problem does not appear. What could be the problem with SQL query here?. I checked my bean file as well as mapping file. Everything seems fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-2869860898204490225?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/2869860898204490225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=2869860898204490225' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2869860898204490225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/2869860898204490225'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/hibernate-exception-with-sql-query.html' title='Hibernate Exception with SQL Query'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8237441468235475128.post-7809862299834330700</id><published>2008-06-12T22:10:00.000-07:00</published><updated>2008-06-13T07:27:59.540-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><category scheme='http://www.blogger.com/atom/ns#' term='Axis'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><category scheme='http://www.blogger.com/atom/ns#' term='WebService'/><title type='text'>Flex Exception in webservice call</title><content type='html'>Now this is really frustating. Calling Axis webservice from Flex client and getting this error. No idea of what's going on here.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL:http://192.168.1.151:8080/axis/services/AssetService"]&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;sometimes it's hard to understand the flex exceptions. Unlike Java, they don't reflect the reason of the problem.&lt;br /&gt;&lt;br /&gt;Any idea guys?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8237441468235475128-7809862299834330700?l=beatexception.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://beatexception.blogspot.com/feeds/7809862299834330700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8237441468235475128&amp;postID=7809862299834330700' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/7809862299834330700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8237441468235475128/posts/default/7809862299834330700'/><link rel='alternate' type='text/html' href='http://beatexception.blogspot.com/2008/06/flex-exception-in-webservice-call.html' title='Flex Exception in webservice call'/><author><name>Mobile Geek</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_jm4FARolmSo/SLa-QAyVbEI/AAAAAAAAHv0/4pOFBsg73x0/S220/IMG_0810.jpg'/></author><thr:total>1</thr:total></entry></feed>
