Java´íÎó´¦Àí´ó¼¯ºÏ
0¡¢ ÐèÒª±êʶ·û
a) ²»ÔÚº¯ÊýÄÚ
1¡¢ ·Ç·¨±í´ïʽ¿ªÊ¼
b) ¿ÉÄÜ:¶ªÊ§À¨ºÅ .
2. no data found
a) ¿ÉÄÜ:setInt(1,100)ÖÐ,ûÓÐ100Õâ¸öÖµ
3. ÕÒ²»µ½·ûºÅ
a) ¿ÉÄÜ:ûµ¼Èë°ü
4. Ö¸¶¨ÁËÎÞЧURL
a) ¿ÉÄÜ:Êý¾Ý¿âÃû»òIP´íÎó,¼´Á¬½Ó³ö´í
5. Àà·¾¶Ã»ÓÐÕÒµ½
a) ¿ÉÄÜ: ClassNotFoundException: oracle.jdbc.driver.OracleDriver
b) ÔÒò: Ò»°ãÊÇÖ¸°üÃûд´í,»òÕßûÓÐimport°ü,»òÕßûÓÐÔÚÀà·¾¶ÖÐÕÒµ½jarÎļþ
c) ½â¾ö: ûÓмÓÔØOracleÇý¶¯jar,ÔÚ.bash_profileÖаÑojdbc14.jar¼Ó½øÀ´
6. ¿ÕÖ¸ÕëÒì³£
a) ¿ÉÄÜ: Êý¾ÝÔ´´íÎó ±ÈÈçÊý¾Ý¿âÃû»òIP´íÎó
7. ²»ÄÜÖ´Ðвéѯ
a) ¿ÉÄÜ: Êý¾Ý¿âÖбíµÄÎÊÌâ,±ÈÈçÁÐÃû²»´æÔÚ
8. invalid identity
a) ¿ÉÄÜ: ÁÐÃû³ö´í
9. ÈôÔÚÊý¾Ý¿âÖд´½¨ÁË Á½¸ösequence ,ÔËÐÐʱ³öÏÖÒì³£¿ÉÄÜÊÇÏȺóÖ´ÐÐÁ˶à´ÎselectÓï¾ä,µ¼ÖÂÓëÔÓеÄÐòÁкŲúÉú³åÍ»
10. ±íÃû»òÁÐÃû²»´æÔÚ
a) ¿ÉÄÜ:±í²»´æÔÚ»òÕßûÓвåÈëÊý¾Ýµ½±íÖÐ
11. ²»Ö§³ÖµÄÀà,ÀàµÄ°æ±¾´íÎó
a) ¿ÉÄÜ:ûÓе¼Èëjdk5.0,»òÕß±àÒëÆ÷ÈÔΪ1.4
12. MappingNotFoundException
a) Maybe: In the Eclipse Not refersh , or not exist in the dirctory
13. HibernateException: /hibernate.cfg.xml not found
a) Maybe1: hibernate.cfg.xml not in the root directory
b) Maybe2: Could not parse configuration .
c) resolve: database not connect or use another database
14. ConstraintViolationException
a) Maybe: used a not true database
15. Çý¶¯Ã»ÓÐÕÒµ½ »òÕß JDBC Driver not found
¿ÉÄÜ£ºÁ¬½ÓÊý¾Ý¿âµÄÇý¶¯jar°ü²»´æÔÚ»òÕß°æ±¾²»Ò»Ö£¬±ÈÈ罫¾ÉµÄ°æ±¾»»³ÉеĻáÔì³É¸ÃÀà´íÎó
16. ¿ÕÖ¸ÕëÒì³£ £¬ java.lang.NullPointerException
a) ¿ÉÄÜ1£ºÊý¾Ý¿âÁ¬½Ó³ö´í£¬±ÈÈçÔÚhibernate.cfg.xmlÖеÄÊý¾Ý´íÎó»áµ¼ÖÂÒì³£¡£
17. Êý¾Ý²åÈëÒì³£ £¬GenericJDBCException: could not insert
a) ¿ÉÄÜ1£ºÃ»Óн¨Á¢±í»òÕß±íÖÐûÓÐÈκÎÊý¾Ý
b) ¿ÉÄÜ2£º²åÈëÊý¾ÝºóûÓÐÖ´ÐÐÌá½»Óï¾ä£ºcommit
18. LazyInitializationException »òÕßÑÓ³Ù¼ÓÔØÒì³£
a) ¿ÉÄÜ1£ºÃ»ÓÐÔÚ²éѯÓï¾äÖмÓfetch
19. IdentifierGenerationException
a) ¿ÉÄÜ1£º¸ßλ±íûÓгõʼ»¯£¨±ÈÈçhi_valueÖÐûÓмǼ)
20. could not initialize a collection: [hibernate.entity.Role.modules#32768] Syntax error: Encountered "-" at line 1, column 132.
a) ´íÎóÔÒò£º<set name="modules" table="module-role" lazy=
Ïà¹ØÎĵµ£º
Î人±±´óÇàÄñ·ÖÎöΪʲôҪ²ÉÓÃjavaÕâ¸öƽ̨
¡¡¡¡´Ó¿ª·¢ÏîÄ¿µÄÀà±ð½Ç¶È¿´javaƽ̨»ùÓÚB/S½á¹¹µÄϵͳ£¬ÔÚÕâ¸ö·½ÏòÉϵľºÕùÊǼ¤Áҵģ¬ÓÐרעÓڴ˵ÄLAMP(Linux + Apache + Mysql + Php);Ò²ÓиոÕÐËÆðµÄRails(Ruby Frameworks)ÉõÖÁÊǺųƿìËÙ¿ª·¢µÄASP.NET;µ±È»ÁËjavaÔÚÕâ¸öÁìÓòÀïµÄMVC¿ò¼ÜÊý¶¼Êý²»Í꣬±ÈÈçStruts . WebworkµÈ£ ......
javaÓëdot netÈËÔ±Ôõô²ÅÄÜתÐÐ×öǶÈëʽ¿ª·¢£¿
´ó¼Ò¶¼ÖªµÀ£¬Ç¶ÈëʽÊǵ±Ç°×î»ð¡¢×îÓÐÇ°¾°µÄÒ»¸öÐÐÒµ£¬Æäְҵǰ¾°ÓëÖ°Òµ´ýÓöÓëjavaºÍnet¿ª·¢Ïà±È£¬Ó¦¸ÃÊÇÓÅÊÆÒ»´ó½Ø£¬¶ÔÓÚÄÇЩÕý´ÓÊÂjavaÒÔ¼°.net¿ª·¢µÄÈËÔ±À´Ëµ£¬ÈçºÎ²ÅÄÜÓÐЧתµ½Ç¶Èëʽ¿ª·¢µÄÐÐÒµÖÐÀ´ÄØ£¿
ҪתÈ뵽ǶÈëʽ¿ª·¢ÐÐÒµ£¬ÎãÓ¹ÖÃÒɵÄÒ»µãÊDZØÐëÕÆ ......
javaÐéÄâ»ú±àÒë»úÖÆ£¬¾²Ì¬³£Á¿ÔÚ±àÒëºó£¬³ÉΪÁ˳£Á¿£¬¶ø²»ÊÇÔÏȵĴúÂ룬ÀýÈ磺
ÓÐÒ»¸öÀà
Contant.java
ÀïÃæÓÐһЩ¾²Ì¬³£Á¿
public static final String GONGDAN = "gongdan@ceopen.cn";
public static final String ICT = "ictnetwork@ceopen.cn";
È»ºóÔÚ³ÌÐòÖÐÓÐʹÓÃÕâЩ³£Á¿£¬Contant.GONGDAN
ÔÚÄÇЩ³ÌÐò±àÒëºóµÄ ......
500´íÎó,classnotfoundÒì³££¬´úÂëûÓÐÎÊÌ⣬Êý¾Ý¿âҲûÎÊÌ⣬´òÁ˲¹¶¡£¬×°ÁËÇý¶¯£¬µ«ÊÇÔÚTOMCATÉÏÕÒ²»µ½ÄǸöÇý¶¯¶øÒý·¢µÄ´íÎ󡣡£¡£
½â¾ö°ì·¨£ºÊ×Ñ¡ÏîÉèÖÃÀMyRclipse->J2EE Project->Web Project->Deployment¹´ÉÏÄÇÈý¸öÇý¶¯¡£ ......