Error Information:org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
Error Solution:
Information Technology Blog
Error Information:org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
Error Solution:
|
|
define encapsulated variables and their get()&set()
|
|
Error Information:HHH000142: Bytecode enhancement failed: xxx; nested exception is org.hibernate.HibernateException: HHH000142: Bytecode enhancement failed: xxx
java.lang.ClassCastException: com.github.entity.Customer_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy
Error Cause:
Error Solution:
Delete javassist-3.11.0.GA.jar.
Error Information:HTTP Status 404 – Not Found
No result defined for action xxx and result input
org.apache.struts2.dispatcher.Dispatcher warn
WARNING: Could not find action or result: xxx
Error Cause:
|
|
Error Solution: Get rid of the blank in the value of the option label.
Error Information:java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
Error Cause:
Includes or forwards to a view (usually a jsp). Behind the scenes Struts will use a RequestDispatcher, where the target servlet/JSP receives the same request/response objects as the original servlet/JSP. Therefore, you can pass data between them using request.setAttribute() - the Struts action is available.
Shorthand configuration:
Normal configuration:
Another parameter:
parse - true by default. If set to false, the location param will not be parsed for Ognl expressions.
The response is told to redirect the browser to the specified location (a new request from the client). The consequence of doing this means that the action (action instance, action errors, field errors, etc) that was just executed is lost and no longer available. This is because actions are built on a single-thread model. The only way to pass data is through the session or with web parameters (url?name=value) which can be OGNL expressions.
SSH error information:HTTP Status 500 – Internal Server Error
Type
Exception ReportMessage
Write operations are not allowed in read-only mode (FlushMode.MANUAL)
: Turn your Session into FlushMode.COMMIT/AUTO or remove ‘readOnly’ marker from transaction definition.Description
The server encountered an unexpected condition that prevented it from fulfilling the request.
If set my Two-factor authentication
on GitHub, I will encounter this error in Eclipse if still using username + password.
So there is no choice, go to my GitHub, and then Settings
—-Personal access tokens
—-Generate new token
to get my personal access token, when trying to push again, set items as the figure below:
This figure show me the difference between demo(cloned from GitHub) and demo2(created locally and initialized into a repository), the folder .git is hidden by default.