| Author |
Message |
|
|
Post subject: errorrunning myblogstructshibernateeaxmple project.....help!
Posted: Mar 12, 2008 - 04:04 AM
|
|
Joined: Mar 12, 2008
Posts: 6
|
|
the myblogstructshibernateeaxmple project is running ok! but when i click button 'edit' to edit new insert rows,it showed following errors:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
com.myeclipseide.examples.myblog.struts.action.PostAction.copyProperties(PostAction.java:53)
com.myeclipseide.examples.myblog.struts.action.PostAction.setUpForInsertOrUpdate(PostAction.java:42)
sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.14
addition to i found the only rows shows posttime that i added yesterday,but i added rows now,it can't show at all!these errors are showing when i edit new rows. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: errorrunning myblogstructshibernateeaxmple project.....h
Posted: Mar 13, 2008 - 05:55 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
johnsysq,
I was unable to reproduce this error at my end. Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
Are you running it the way that has been specified in the ReadMe doc ? |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: errorrunning myblogstructshibernateeaxmple project.....h
Posted: Mar 14, 2008 - 03:48 AM
|
|
Joined: Mar 12, 2008
Posts: 6
|
|
hello,nipun supporter!
first,thanks a lot for your reply!
the project is done well!the reason of error is my database structure configuration!the posttime is defined by 'timestamp'!i want to ask you how to configure the 'posttime' and is it a 'varchar'? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: errorrunning myblogstructshibernateeaxmple project.....h
Posted: Mar 17, 2008 - 08:03 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
| Quote: |
!i want to ask you how to configure the 'posttime' and is it a 'varchar'?
|
You should check the database documentation to get an answer to this. Im not sure. Sorry about that. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |