Hibernate common errors

sponsored links
Hibernate common errors
Hibernate common errors
1. Error: object references an unsaved transient instance - save the transient instance before flushing:
com.xxxx.bean.java.Sysblog; nested exception is org.hibernate.TransientObjectException: object references an unsaved
transient instance - save the transient instance before flushing: com.xxx.bean.java.Sysblog
Solution: There are no examples of the expected, of course, we must instantiate the object slightly
2. Error: Exceptionobject references an unsaved transient instance - save the transient instance before flushing:
src.persistent.Product ......
Solution: there is no reason for a particular object set settings, such as on top of this is not an object called setProduct
3. Error: Illegal attempt to associate a collection with two open sessions ......
Solution: (hibernate's session provided a cache of each session, twice on the same id to load, does not send 2 sql to the database, but the session closed, a cache becomes ineffective.
sysblogarticle.setAmount (new Long (sysblogcommentService.selcom (
sysblogarticle.getArticleid (). toString ()). size ()));// article id by number of comments for the article
sysblogarticle.setSysblogcomments (null); / / key
sysblogarticleService.saveOrUpdate (sysblogarticle); / / will modify the article in the comments section the number of reference:
http://javaflasher.javaeye.com/blog/forum/17913
4. Error: Hbm mapping file generation is completed, change the database to increase the default value (such as: the value of a field set to 1), results in the insertion of the time, the database there was no response.
Workaround: In the sql-type which defines the default database, then SchemeExport time, DDL will add default. And hbm is defined as dynamic-insert = "true" and
dynamic-update = "true"
.......
........

5. Error:
2008-2-2 9:45:13 org.hibernate.util.JDBCExceptionReporter logExceptions
Serious: Unknown column 'tjsaleresu0_.isupdate' in 'field list'
2008-2-2 9:45:13 org.hibernate.event.def.DefaultLoadEventListener onLoad
Information: Error performing load command
org.hibernate.exception.SQLGrammarException: could not load an entity: [ookj.domain.TjSaleResult # 293]
- The database is not "isupdate" field
6. Error:
2008-2-2 9:51:42 org.hibernate.util.JDBCExceptionReporter logExceptions
Warning: SQL Error: 1052, SQLState: 23000
2008-2-2 9:51:42 org.hibernate.util.JDBCExceptionReporter logExceptions
Serious: Column 'df' in where clause is ambiguous
---- Find ("select tsr from TjSaleResult tsr, TjItemResult tir where tsr = tir.saleResultId and tir =? And df1", new Object
[] (Tir));
Df ---- statement can not determine which table
7. Error
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: trackDate of:
ookj.domain.TjReagentTrack [from ookj.domain.TjReagentTrack trt where trt.trackStage =? and trt.trackDate =? and trt.userId =?
and trt.df1]; nested exception is org.hibernate.QueryException: could not resolve property: trackDate of:
ookj.domain.TjReagentTrack [from ookj.domain.TjReagentTrack trt where trt.trackStage =? and trt.trackDate =? and trt.userId =?
and trt.df1]
Caused by: org.hibernate.QueryException: could not resolve property: trackDate of: ookj.domain.TjReagentTrack [from
ookj.domain.TjReagentTrack trt where trt.trackStage =? and trt.trackDate =? and trt.userId =? and trt.df1]
---- The problem is the configuration:
private static String [] [] properties = (("getReagentTrackId", "reagent_trackid", "0"),
("GetReagentId", "reagentid", "1"),
("GetUserId", "userid", "1"),
("GetGuideBookId", "guidebookid", "1"),
("GetTrackTime", "tracktime", "0"), / / name not here
("TrackStage", "trackstage", "0"),
("GetDf", "df", "0")
---- Also nd trt.trackDate =? Statement value is incorrect.
8. Error
java.lang.ClassCastException: ookj.domain.OokjDateTime
---- Basic type conversion error
9. Error
org.springframework.dao.InvalidDataAccessApiUsageException: object references an unsaved transient instance - save the
transient instance before flushing: ookj.domain.SmDept; nested exception is org.hibernate.TransientObjectException: object
references an unsaved transient instance - save the transient instance before flushing: ookj.domain.SmDept
Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient
instance before flushing: ookj.domain.SmDept
---- New a new object, not save it before it is saved into a new new object.
10. Error message: could not read column value from result set: activep19_59_; could not deserialize
Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: could not deserialize; nested
exception is org.hibernate.type.SerializationException: could not deserialize
Caused by: org.hibernate.type.SerializationException: could not deserialize
I use the database is mysql, in the pojo class automatically generated by the class, not for the field specifies the type, hibernate on automatically assigned, if it generates the type can not be deserialized, it will throw java.util . ServilizableException
I have a unusual example of the reason is that I created a string [] type field, but in Duiying's. Hbm.xml file in Xian Type I do not define it's type, hibernate Zidong Weiqizhiding the type, which Buneng be deserialization.
11. The error seriously: line 1:143: expecting IDENT, found '.'
2008-2-3 0:41:01 org.apache.catalina.core.StandardWrapperValve invoke
Serious: Servlet.service () for servlet tijianServlet threw exception
org.springframework.orm.hibernate3.HibernateQueryException: expecting IDENT, found '.' near line 1, column 143 [select
t.saleItemId.medicalGroup from ookj.domain.TjSaleResult t where t.guideBookId =? and t.saleItemId.medicalGroup.block =? and
t.saleItemId .. medicalGroup.df1]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: expecting IDENT, found '.'
near line 1, column 143 [select t.saleItemId.medicalGroup from ookj.domain.TjSaleResult t where t.guideBookId =? and
t.saleItemId.medicalGroup.block =? and t.saleItemId .. medicalGroup.df1]
Caused by: org.hibernate.hql.ast.QuerySyntaxException: expecting IDENT, found '.' Near line 1, column 143 [select
t.saleItemId.medicalGroup from ookj.domain.TjSaleResult t where t.guideBookId =? and t.saleItemId.medicalGroup.block =? and
t.saleItemId .. medicalGroup.df1]
_____ More than a point
12. Error
java.net.SocketException: java.net.ConnectException: Connection refused: connect
---- Database does not start
13. The error seriously: Servlet.service () for servlet tijianServlet threw exception
java.lang.NoSuchMethodError: ookj.service.SendReagentService.saveTjSendReagent
(Lookj / domain / TjReagent; Lookj / domain / SaleGuideBook;) [Ljava / lang / String;
---- Tomcat \ Java code does not keep pace with the virtual focus, can not keep up, restart the virtual machine just fine.
Dual DI error set [reposted elsewhere 2007-03-04 15:19:00]
1. Do encounter an error when Hibernate many to one
(1) org.apache.jasper.JasperException: Error creating bean with name 'sf' defined in ServletContext resource [/ WEB-
INF / applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.PropertyNotFoundException:
Could not find a getter for person in class com.accp.vo.Course
Because the configuration file in the person of a property name was wrong.
There are the following reasons:
1) getter () method was wrong, did not follow the rules javaBean write.
2) *. hmb.xml the property name and pojo's are the same. Note: The property name is more space.
(2). Hibernate many to one error:
save the transient instance before flushing
Specific errors in the one-to-many, the right to save many, because not a member of one of the outer building, causing the error.
Specific solutions:
(1), in one of the hbm file invest = true
(2), many preserved in the presence of the former must be requested one
2.spring + struts + hibernate debug the project summary
(1) javax.servlet.ServletException: Cannot retrieve mapping for action / companyNews
struts-config.xml does not write the relevant companyNews of action.
(2) myeclipse add a jar package in time, first open the project properties, select java build path -> libraries -> add external JARs to the desired selection
jar package, adding, it was found, he loaded the package is an absolute path, and to share our project needs cvs can not commit to the cvs server. myeclipse the following reminder:
2 build path entries are missing.
Solution is to close the myeclipse, use notepad to open the project directory. Classpath, manually modified to a relative path, and checks whether the specified relative path to add the jar package really, start myeclipse can upload the newly added jar package .
(3) the use of junit / StrutsTest time error:
java.lang.UnsupportedClassVersionError: junit / framework / TestListener (Unsupported major.minor version 49.0)
The reason is if jdk1.4, then, can only use junit3.8 the following version, if it is to use jdk1.5, then, must use junit4.0 above.
(4) Cannot find ActionMappings or ActionformBeans collection
The reason is: web.xml file does not configure the struts-config.xml of the relevant information.
(5) org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core
cannot be resolved in either web.xml
or the jar files deployed with this application
Lack of relevant jstl jar and web.xml configuration
jstl.jar
http://java.sun.com/jstl/fmt
/ WEB-INF/fmt.tld
http://java.sun.com/jstl/fmt-rt
/ WEB-INF/fmt-rt.tld
http://java.sun.com/jstl/core
/ WEB-INF/c.tld
http://java.sun.com/jstl/core-rt
/ WEB-INF/c-rt.tld
http://java.sun.com/jstl/sql
/ WEB-INF/sql.tld
http://java.sun.com/jstl/sql-rt
/ WEB-INF/sql-rt.tld
http://java.sun.com/jstl/x
/ WEB-INF/x.tld
http://java.sun.com/jstl/x-rt
/ WEB-INF/x-rt.tld
(5) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
standard.jar not placed inside lib
(6) to create oracle table, when used, role, and comment tags, do not recommend these two keywords as table names and field names.
Suggested toad or plsql developer to create the table, so the software will prompt keyword.
(7) [ERROR] XMLHelper - Error parsing XML: XML InputStream (18) Attribute name "column" associated with an element type "key"
must be followed by the '=' character.
[ERROR] Configuration - Could not configure datastore from input stream org.dom4j.DocumentException: Error
on line 18 of document: Attribute name "column" associated with an element type "key" must be followed by the '='
character. Nested exception: Attribute name "column" associated with an element
type "key" must be followed by the '=' character.
xml syntax error, key grammar should be written like this (8) hibernate3, object-to-many of the one side, to write private Set pays = new HashSet ();, otherwise the packet error java.lang.NullPointerException,
The hibernate2 in private Set pays; not error;
(9) [DEBUG] AbstractSaveEventListener - generated identifier: 1, using strategy: org.hibernate.id.IncrementGenerator
org.hibernate.PropertyValueException: not-null property references a null or transient value: com.xxx.yyy.company
at org.hibernate.engine.Nullability.checkNullability (Nullability.java: 72)
Settings should be set to not-null = "false", set to not-null = "true" error is reported above
(10) org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance
before flushing: com.xxx.yyy.Company
At the same time also need to save save the other table, and then flush ()
(11) Parse Fatal Error at line 12 column 1
struts-config.xml file is modified, a syntax error. Check grammar.
(12) org.hibernate.QueryException: could not resolve property: userid of:
com.xxx.yyy.Pay
Use the userid when a foreign key must be used userinfo.userid method to get.
(13) javax.naming.NameNotFoundException: Name hibernate_connection_factory is not
bound in this Context reasons: hibernate for database mapping. xml file is misconfigured, causing hibernate_connection_factory can not bind a database.
For example, many-to-one set up after the conflict is still setting in which the attributes.
(14) [WARN] RequestProcessor - Unhandled Exception thrown: class java.lang.NullPointerException
The object must be used to the new up.
(15) GROUP BY expression must meet the following query:
After the select clause must appear in each of the group by clause, unless the use of aggregate functions.
(16) org.hibernate.TransientObjectException: object references an unsaved transient
instance - save the transient instance before flushing: com.xxx.yyy.Company
To cascade save, many session.save ()
(17)
java.lang.IllegalArgumentException: id to load is required for loading
Reason:
session.load (Company.class, payForm.getCompanyId ());
load () method of the second parameter must be searlizable, and must be, and database mapping classes of property values and types, even if the cast will not work.
(18) [INFO] DefaultLoadEventListener - Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xxx.yyy.Company # 0]
That you check the object associated with the object in question, generally because of data problems (the objects associated with the object not found), data errors, affecting the normal program execution.
(19)
eclipse 3.1, myeclipse 4 error
Deployment is out of date due to changes in the underlying project contents. You'll need to mannally 'Redeploy' the project
to update the deployed archive.
Reason
tomcat deployed in denied access to a file affect the deployment.
After rebooting, remove the tomcat to deploy the files. Re-set to deploy in eclipse.
Why restart?
For: google desktop software is deployed to me a large file 300MB index lock file this big, I guess google desktop needs more than half an hour on the document index. Therefore, eclipse can not last deployment file, delete the first re-deployed to do the work.
(20) ERROR LazyInitializationException: 19 - could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
Solution.
cmpy = (CompanyEdit) ss.load (CompanyEdit.class, companyId1);
Hibernate.initialize (cmpy); / / force initialization cmpy, or ss.close () later, cmpy will disappear.
(21) javascript error Line: 56
Character: 45
Error: unterminated string constant Code: 0
Is the encoding problem! Save with the ANSI code like the following.
(22) [WARN] JDBCExceptionReporter - SQL Error: 904, SQLState: 42000
[ERROR] JDBCExceptionReporter - ORA-00904: invalid column name [INFO] DefaultLoadEventListener - Error performing load command
org.hibernate.exception.SQLGrammarException: could not load an entity: [com.xxx.yyy.Sellinfo # 1]
***. Hbm.xml file to a database column names and different.
(23) ConnectionManager - unclosed connection, forgot to call close () on your session?
Reason: did not close hibernate's session of the transaction. Closed session or not
(24) [WARN] SellCommentDAO - org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove
deleted object from associations): [com.xxx.yyy.SellComment # 7]
Cause: The father objects (one side) set the cascade = "save-update", the direct delete child objects, it will error,
Approach: save the information needs of the cascade operation, delete the time the same principle should be used.
SellComment sellComment = new SellComment ();
sellComment = (SellComment) session.load (SellComment.class, sellCommentId); / / Get the son of object
Long sellInfoId = sellComment.getSellInfo (). GetSellId ();// get the father id
SellInfo sellinfo = (SellInfo) session.load (SellInfo.class, sellInfoId); / / get the father objects
sellInfo.getSellComments (). remove (sellComment); / / disinheritance
sellComment.setSellInfo (null); / / sever the parent child relationship
session.delete (sellComment); / / Remove the son of
session.flush ();
Dual DI error set [reposted elsewhere 2007-03-04 15:19:00]
1. Do encounter an error when Hibernate many to one
(1) org.apache.jasper.JasperException: Error creating bean with name 'sf' defined in ServletContext resource [/ WEB-
INF / applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.PropertyNotFoundException:
Could not find a getter for person in class com.accp.vo.Course
Because the configuration file in the person of a property name was wrong.
There are the following reasons:
1) getter () method was wrong, did not follow the rules javaBean write.
2) *. hmb.xml the property name and pojo's are the same. Note: The property name is more space.
(2). Hibernate many to one error:
save the transient instance before flushing
Specific errors in the one-to-many, the right to save many, because not a member of one of the outer building, causing the error.
Specific solutions:
(1), in one of the hbm file invest = true
(2), many preserved in the presence of the former must be requested one
2.spring + struts + hibernate debug the project summary
(1) javax.servlet.ServletException: Cannot retrieve mapping for action / companyNews
struts-config.xml does not write the relevant companyNews of action.
(2) myeclipse add a jar package in time, first open the project properties, select java build path -> libraries -> add external JARs to the desired selection
jar package, adding, it was found, he loaded the package is an absolute path, and to share our project needs cvs can not commit to the cvs server. myeclipse the following reminder:
2 build path entries are missing.
Solution is to close the myeclipse, use notepad to open the project directory. Classpath, manually modified to a relative path, and checks whether the specified relative path to add the jar package really, start myeclipse can upload the newly added jar package .
(3) the use of junit / StrutsTest time error:
java.lang.UnsupportedClassVersionError: junit / framework / TestListener (Unsupported major.minor version 49.0)
The reason is if jdk1.4, then, can only use junit3.8 the following version, if it is to use jdk1.5, then, must use junit4.0 above.
(4) Cannot find ActionMappings or ActionformBeans collection
The reason is: web.xml file does not configure the struts-config.xml of the relevant information.
(5) org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core
cannot be resolved in either web.xml
or the jar files deployed with this application
Lack of relevant jstl jar and web.xml configuration
jstl.jar
http://java.sun.com/jstl/fmt
/ WEB-INF/fmt.tld
http://java.sun.com/jstl/fmt-rt
/ WEB-INF/fmt-rt.tld
http://java.sun.com/jstl/core
/ WEB-INF/c.tld
http://java.sun.com/jstl/core-rt
/ WEB-INF/c-rt.tld
http://java.sun.com/jstl/sql
/ WEB-INF/sql.tld
http://java.sun.com/jstl/sql-rt
/ WEB-INF/sql-rt.tld
http://java.sun.com/jstl/x
/ WEB-INF/x.tld
http://java.sun.com/jstl/x-rt
/ WEB-INF/x-rt.tld
(5) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
standard.jar not placed inside lib
(6) to create oracle table, when used, role, and comment tags, do not recommend these two keywords as table names and field names.
Suggested toad or plsql developer to create the table, so the software will prompt keyword.
(7) [ERROR] XMLHelper - Error parsing XML: XML InputStream (18) Attribute name "column" associated with an element type "key"
must be followed by the '=' character.
[ERROR] Configuration - Could not configure datastore from input stream org.dom4j.DocumentException: Error
on line 18 of document: Attribute name "column" associated with an element type "key" must be followed by the '='
character. Nested exception: Attribute name "column" associated with an element
type "key" must be followed by the '=' character.
xml syntax error, key grammar should be written like this (8) hibernate3, object-to-many of the one side, to write private Set pays = new HashSet ();, otherwise the packet error java.lang.NullPointerException,
The hibernate2 in private Set pays; not error;
(9) [DEBUG] AbstractSaveEventListener - generated identifier: 1, using strategy: org.hibernate.id.IncrementGenerator
org.hibernate.PropertyValueException: not-null property references a null or transient value: com.xxx.yyy.company
at org.hibernate.engine.Nullability.checkNullability (Nullability.java: 72)
Settings should be set to not-null = "false", set to not-null = "true" error is reported above
(10) org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance
before flushing: com.xxx.yyy.Company
At the same time also need to save save the other table, and then flush ()
(11) Parse Fatal Error at line 12 column 1
struts-config.xml file is modified, a syntax error. Check grammar.
(12) org.hibernate.QueryException: could not resolve property: userid of:
com.xxx.yyy.Pay
Use the userid when a foreign key must be used userinfo.userid method to get.
(13) javax.naming.NameNotFoundException: Name hibernate_connection_factory is not
bound in this Context reasons: hibernate for database mapping. xml file is misconfigured, causing hibernate_connection_factory can not bind a database.
For example, many-to-one set up after the conflict is still setting in which the attributes.
(14) [WARN] RequestProcessor - Unhandled Exception thrown: class java.lang.NullPointerException
The object must be used to the new up.
(15) GROUP BY expression must meet the following query:
After the select clause must appear in each of the group by clause, unless the use of aggregate functions.
(16) org.hibernate.TransientObjectException: object references an unsaved transient
instance - save the transient instance before flushing: com.xxx.yyy.Company
To cascade save, many session.save ()
(17)
java.lang.IllegalArgumentException: id to load is required for loading
Reason:
session.load (Company.class, payForm.getCompanyId ());
load () method of the second parameter must be searlizable, and must be, and database mapping classes of property values and types, even if the cast will not work.
(18) [INFO] DefaultLoadEventListener - Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xxx.yyy.Company # 0]
That you check the object associated with the object in question, generally because of data problems (the objects associated with the object not found), data errors, affecting the normal program execution.
(19)
eclipse 3.1, myeclipse 4 error
Deployment is out of date due to changes in the underlying project contents. You'll need to mannally 'Redeploy' the project
to update the deployed archive.
Reason
tomcat deployed in denied access to a file affect the deployment.
After rebooting, remove the tomcat to deploy the files. Re-set to deploy in eclipse.
Why restart?
For: google desktop software is deployed to me a large file 300MB index lock file this big, I guess google desktop needs more than half an hour on the document index. Therefore, eclipse can not last deployment file, delete the first re-deployed to do the work.
(20) ERROR LazyInitializationException: 19 - could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
Solution.
cmpy = (CompanyEdit) ss.load (CompanyEdit.class, companyId1);
Hibernate.initialize (cmpy); / / force initialization cmpy, or ss.close () later, cmpy will disappear.
(21) javascript error Line: 56
Character: 45
Error: unterminated string constant Code: 0
Is the encoding problem! Save with the ANSI code like the following.
(22) [WARN] JDBCExceptionReporter - SQL Error: 904, SQLState: 42000
[ERROR] JDBCExceptionReporter - ORA-00904: invalid column name [INFO] DefaultLoadEventListener - Error performing load command
org.hibernate.exception.SQLGrammarException: could not load an entity: [com.xxx.yyy.Sellinfo # 1]
***. Hbm.xml file to a database column names and different.
(23) ConnectionManager - unclosed connection, forgot to call close () on your session?
Reason: did not close hibernate's session of the transaction. Closed session or not
(24) [WARN] SellCommentDAO - org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove
deleted object from associations): [com.xxx.yyy.SellComment # 7]
Cause: The father objects (one side) set the cascade = "save-update", the direct delete child objects, it will error,
Approach: save the information needs of the cascade operation, delete the time the same principle should be used.
SellComment sellComment = new SellComment ();
sellComment = (SellComment) session.load (SellComment.class, sellCommentId); / / Get the son of object
Long sellInfoId = sellComment.getSellInfo (). GetSellId ();// get the father id
SellInfo sellinfo = (SellInfo) session.load (SellInfo.class, sellInfoId); / / get the father objects
sellInfo.getSellComments (). remove (sellComment); / / disinheritance
sellComment.setSellInfo (null); / / sever the parent child relationship
session.delete (sellComment); / / Remove the son of
session.flush ();
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Hibernate common errors

  • hibernat error

    Hibernate common errors 1. Error: object references an unsaved transient instance - save the transient instance before flushing: com.xxxx.bean.java.Sysblog; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient

  • JavaScript OO

    Original Address: http://www.myext.cn/Article/803.html . For object creation and inheritance make a detailed description of In-depth detail, there are a few points need to be clear about 1, JavaScript is not the concept of category. Since the definit ...

  • Rails & SQLite3 & Debian Linux under the migration problem

    Rails using SQLite as the default database. However, under Debian Linux, always walk migration, the total back to the name have questions, 『Could not find table 'xxx'』. Was identified as the problem of the Rails adapter. / usr/lib/ruby/gems/1 ...

  • Ruby script to prepare bulk download "Friends" The Complete Works (mp3 files)

    "Friends" are the United States and play a classic, one of the dialogue also has long been a fan of the book in English, one of my fans of course also ah. A few days ago at Puteh English Net 10 have all found on the white quarter of Friends mp3

  • ROR environmental configuration (rails2.2.2 fell from 1.2.6)

    ROR environment structures put my steps down - Memo 2009.1.26 ROR online to find some tutorials are ruby 1.8.5, rails1.2.6 to do based on the demonstration I use the version downloaded from the Internet are the latest version at the installation encounter

  • ROR Study Notes 1

    Installed at the success of ROR environment (yes, I installed InstantRails-2.0-win), the first thing done is to create a simple DB demo, the steps are as follows: 1.Rails Appliction Medium Create New Rails App ... 2. Create Application Framework: rai ...

  • Do not believe mongrel_rails cluster:: start!

    Update code after Action (No action responded to xxx) error. Check the code, has been updated. Change the action name, change the path is always error. Baffled. In the system under ps ax | grep mongrel, found that Mongrel can not find the process! Bu ...

  • jquery ajax example

    1. Check js file $. ajax (( type: "GET", url: "test.js", dataType: "script" )) 2.post data $. ajax (( type: "POST", url: "xxxx", data: "name = zhaoaiqing & age = 25", success: function ( ...

  • Rails2.0.2 change the default DB adpter

    In Rails2.0.2 rails demo ... ... MissingSourceFile in SayController # hello no such file to load - sqlite3 RAILS_ROOT: / home / kenb / rails-projects / demo ... ... Checked config / database.yml, adpter default is set become the sqlite3. Check the ra ...

  • Hibernate Mapping Types

    Hibernate mapping types divided into two categories: built-in mapping types and mapping types of customers. Built-in mapping types is responsible for some common Java types are mapped to the corresponding SQL type; In addition, Hibernate also allows users

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries