<?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:blogger='http://schemas.google.com/blogger/2008' 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-6903131264658758983</id><updated>2024-08-30T09:08:10.165-07:00</updated><title type='text'>Solutions For JAVA , HIBERNATE , AJAX and MYSQL</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://exceptionsandsolutions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://exceptionsandsolutions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6903131264658758983.post-1627398026051986135</id><published>2010-10-02T10:48:00.000-07:00</published><updated>2010-10-02T10:48:33.137-07:00</updated><title type='text'>java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;)&#39; at line 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Connection.execSQL(Connection.java:2376)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Connection.execSQL(Connection.java:2297)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.SQLException: You have an error in your SQL syntax&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1957)&amp;nbsp; at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1880)&amp;nbsp; at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1741)&amp;nbsp; at com.appnetix.app.util.QueryUtil.update(QueryUtil.java:607)&amp;nbsp;&amp;nbsp; at com.appnetix.app.components.zipcodemgr.manager.dao.AssignZipCodeDAO.updateFranchiseeZipCodes(AssignZipCodeDAO.java:154)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.SQLException: You have an error in your SQL syntax xecute(AssignZipManipulatorAction.java:62)&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.SQLException: You have an error in your SQL java.sql.SQLException: You have an error in your SQL syntax org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)&amp;nbsp;.java:510)&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) java.sql.SQLException: You have an error in your SQL syntax&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&amp;nbsp;&amp;nbsp;&amp;nbsp;java.sql.SQLException: You have an error in your SQL syntax &lt;span&gt;&amp;nbsp;&lt;/span&gt;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) java.sql.SQLException: You have an error in your SQL syntax&amp;nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)&amp;nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.SQLException: You have an error in your SQL syntax org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&amp;nbsp; at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)&amp;nbsp; at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)&amp;nbsp; at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:595)&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Reason Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; : &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;This kind of exception occurs when you are writing an sql query but due to some reason or lack of knowledge writes the wrong syntax.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Solution Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: You have an error in your SQL syntax&quot;&gt;The solution for this kind of exception is to check the sql syntax you are writing. You can refer the sql manual for correcting the syntax.&lt;/div&gt;&lt;br /&gt;
&lt;script src=&quot;http://www.assoc-amazon.com/s/link-enhancer?tag=sha02-20&amp;amp;o=1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://exceptionsandsolutions.blogspot.com/feeds/1627398026051986135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/10/javasqlsqlexception-you-have-error-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/1627398026051986135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/1627398026051986135'/><link rel='alternate' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/10/javasqlsqlexception-you-have-error-in.html' title='java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6903131264658758983.post-4028890458330598592</id><published>2010-09-30T10:24:00.000-07:00</published><updated>2010-09-30T10:47:27.317-07:00</updated><title type='text'>java.io.FileNotFoundException : /home/tomcat/builds/Project/src/Documents /library/pic.txt</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Kind Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;java.io.FileNotFoundException: /home/tomcat/builds/Project/src/Documents /library/GurlzGroup09_140895895.jpg (No such file or directory)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.FileInputStream.open(Native Method)&amp;nbsp; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:106)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:66)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.appnetix.app.components.librarymgr.manager.librarydao.LibraryDocumentsDAO.getBytesInFile(LibraryDocumentsDAO.java:170)&amp;nbsp;&amp;nbsp; at com.appnetix.app.portal.intranet.library.DownloadFileAction.execute(DownloadFileActi org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java: org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.appnetix.app.control.web.AppnetixControllerServlet.doGet(AppnetixControllerServlet.java:484)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet. java.io.FileNotFoundException (HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173 java.io.FileNotFoundException)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)&amp;nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)&amp;nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.FileNotFoundException java.io.FileNotFoundException org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&amp;nbsp; at org.apache.jk.server. java.io.FileNotFoundException.invoke(JkCoyoteHandler.java:306)&amp;nbsp; at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)&amp;nbsp; at org.apache.jk. java.io.FileNotFoundException (ChannelSocket.java:745)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)&amp;nbsp; at org.apache. java.io.FileNotFoundException $ControlRunnable.run(ThreadPool.java:684)&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:595)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Reason Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;This kind of exception mainly occurs when you are trying to access a file for doing some input / output operations but the file is not present in a folder you are looking or might get deleted.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Solution Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;span title=&quot;java.io.FileNotFoundException&quot;&gt;1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;The first solution for the problem is to check if you are looking for the file in correct folder i.e you have given the correct file path.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;span title=&quot;java.io.FileNotFoundException&quot;&gt;2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;The second solution for the problem is to create a file you are trying to access if it is deleted.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.io.FileNotFoundException&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script src=&quot;http://www.assoc-amazon.com/s/link-enhancer?tag=sha02-20&amp;amp;o=1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://exceptionsandsolutions.blogspot.com/feeds/4028890458330598592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/javaiofilenotfoundexception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/4028890458330598592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/4028890458330598592'/><link rel='alternate' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/javaiofilenotfoundexception.html' title='java.io.FileNotFoundException : /home/tomcat/builds/Project/src/Documents /library/pic.txt'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6903131264658758983.post-1785104738670989806</id><published>2010-09-30T08:23:00.000-07:00</published><updated>2010-09-30T10:49:54.611-07:00</updated><title type='text'>org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;Kind Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.java.portal.payment.pojo.Payment.paymentID&lt;br /&gt;
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:85)&lt;br /&gt;
ate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3571)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129)&lt;br /&gt;
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)&lt;br /&gt;
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)&lt;br /&gt;
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:96)&lt;br /&gt;
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1573)&lt;br /&gt;
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)&lt;br /&gt;
at org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)&lt;br /&gt;
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)&lt;br /&gt;
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)&lt;br /&gt;
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)&lt;br /&gt;
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)&lt;br /&gt;
at org.apache.coyote.http11.Http11Protocol$.processConnection(Http11Protocol.java:705)&lt;br /&gt;
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Reason Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;This kind of exception mainly occurs when you are using Hibernate and the property in your &lt;b&gt;POJO &lt;/b&gt;is of &lt;b&gt;primitive type&lt;/b&gt; i.e int etc. and&lt;b&gt; “null”&lt;/b&gt; is coming in it while setting.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Solution Of Exception&lt;/span&gt;&lt;/u&gt;&lt;/b&gt; :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;1) The first solution for the above problem is to change the value of the column of the table from which “null” is coming to a not null value and set the column to &lt;b&gt;NOT NULL.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;2) The second solution is to not use primitive data types for properties of POJO instead use types like java.lang.Integer.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script src=&quot;http://www.assoc-amazon.com/s/link-enhancer?tag=sha02-20&amp;amp;o=1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://exceptionsandsolutions.blogspot.com/feeds/1785104738670989806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/orghibernatepropertyaccessexception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/1785104738670989806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/1785104738670989806'/><link rel='alternate' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/orghibernatepropertyaccessexception.html' title='org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6903131264658758983.post-8813621987736926230</id><published>2010-09-30T08:00:00.000-07:00</published><updated>2010-09-30T10:50:41.360-07:00</updated><title type='text'>_targ is undefined</title><content type='html'>&lt;span style=&quot;font-size: large;&quot; title=&quot;_targ is undefined&quot;&gt;&lt;u&gt;&lt;b&gt;Kind Of Exception&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; :&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;_targ is undefined&lt;/b&gt; is a common java script error one encounters while using AJAX technology and when the javascript code is not able to find the specified target. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot; title=&quot;_targ is undefined&quot;&gt;&lt;u&gt;&lt;b&gt;Reason Of  The Exception&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; :&lt;br /&gt;
&lt;br /&gt;
This type of javascript  error &lt;b&gt;“_targ is undefined”&lt;/b&gt; occurs while you are trying to retrieve data at run time using AJAX technology . The problem occurs when the return value i.e the java script code is undefined , i.e your java code that is fetching the data and creating the javascript code is not able to find the return page properly.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot; title=&quot;_targ is undefined&quot;&gt;&lt;u&gt;&lt;b&gt;Solution Of The Exception&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; :&lt;br /&gt;
&lt;br /&gt;
The solution for resolving the issue &lt;b&gt;“_targ is undefined”&lt;/b&gt; is to check if you are writing a proper javascript code in java class that would run at run time so that it will able to fing the proper target where it has to show the result.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://www.assoc-amazon.com/s/link-enhancer?tag=sha02-20&amp;amp;o=1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://exceptionsandsolutions.blogspot.com/feeds/8813621987736926230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/targ-is-undefined.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/8813621987736926230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/8813621987736926230'/><link rel='alternate' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/targ-is-undefined.html' title='_targ is undefined'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6903131264658758983.post-56124468846329861</id><published>2010-09-26T07:56:00.000-07:00</published><updated>2010-09-30T10:51:06.948-07:00</updated><title type='text'>java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39;</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;&lt;b&gt;java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39;&amp;nbsp;&lt;/b&gt; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Connection.execSQL(Connection.java:2376)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39; at&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39; at&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)&amp;nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)&amp;nbsp;&amp;nbsp; at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)&amp;nbsp;&amp;nbsp; at &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39; at&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:595)&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;Reason Of&amp;nbsp; The Exception &lt;/u&gt;&lt;/span&gt;:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This kind of exception i.e &lt;b&gt;&quot; java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39; &quot; &lt;/b&gt;occurs because you are using a column name in your sql query for a particular table that you might have not created.&lt;br /&gt;
For Example :&lt;br /&gt;
Let have SELECT a query : -&lt;br /&gt;
SELECT&amp;nbsp; NAME , BRANCH FROM STUDENT&lt;br /&gt;
NAME and BRANCH are two column in select query . This king of exception will occur if you are trying to use a column name that does not consist in table.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Solution Of Exception&lt;/u&gt;&lt;/b&gt;&lt;/span&gt; :&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot; title=&quot;java.sql.SQLException: Unknown column&quot;&gt;1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Remove the column name from your sql query.&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot; title=&quot;java.sql.SQLException: Unknown column&quot; &gt;2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Create the column with that name in the table name used in the query.&lt;/div&gt;&lt;script src=&quot;http://www.assoc-amazon.com/s/link-enhancer?tag=sha02-20&amp;amp;o=1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://exceptionsandsolutions.blogspot.com/feeds/56124468846329861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/javasqlsqlexception-unknown-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/56124468846329861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6903131264658758983/posts/default/56124468846329861'/><link rel='alternate' type='text/html' href='http://exceptionsandsolutions.blogspot.com/2010/09/javasqlsqlexception-unknown-column.html' title='java.sql.SQLException: Unknown column &#39;LAST_INSERT_ID&#39; in &#39;field list&#39;'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>