Create a lightweight architecture appendix Using SSH-FAQs

Source: Internet
Author: User

Action: NULL
Java. Lang. classnotfoundexception: org. springframework. Web. Struts. contextloaderplugin
Solution: load the spring. jar package

Failed to initialize
At org. Apache. Struts. Action. actionservlet. initmoduleplugins (
Solution:Delete asm-2.2.3.jar

 

Springdao reports a null pointer exception
Java. Lang. nullpointerexception
Springdao. ecaccountdao. Save (ecaccountdao. Java: 48)

Solution: access the DAO class without loading the spring configuration file.
Applicationcontext CTX = new classpathxmlapplicationcontext ("applicationcontext. xml ");
Ecaccountleveldao Dao = (ecaccountleveldao) CTX. getbean ("ecaccountleveldao ");

Servlet action is not available
First check the Web. XML, struts-config.xml and other files are not written wrong, and then check the struts package is not complete... or spring + Struts plug-in loading errors

Enctype = "multipart/form-Data"
When submitted, the file is transmitted as a stream, and the normal string cannot be passed!
After removal, all strings are passed by default. Therefore, only the strings in the text box are submitted!

An error cannot be reported when the database table is opened after the table is modified.
It may be because the DaO file does not load the @ transcational tag, resulting in transactions (sessions ?) It has been running and has not been closed.

Multi-table join query: When a foreign key object exists, the foreign key object also needs to be linked for query to be introduced into the result set.
Ecopus (opus, accout, catepoies)
From opus, accout, catepoise
Where ......

 

Illegalstateexception
If the servletoutputstream object or printwriter object has been obtained from the response (request, response), the forward method cannot be used; otherwise, this exception is thrown.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.