History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOTCMS-4918
Type: Bug Bug
Status: Passed QA Passed QA
Resolution: IN QA
Priority: Major Major
Assignee: Dean Gonzalez
Reporter: Dean Gonzalez
Watchers: 0
Available Workflow Actions

Release
Assign for Documentation
Operations

If you were logged in you would be able to see more operations.
dotCMS

Adding a Required Time Field to a Structure causing nocontent to load in Content tab

Created: July 30, 2010 11:03 AM   Updated: August 09, 2010 2:25 PM
Component/s: c0. SM - Structures
Affects Version/s: 1.9
Fix Version/s: 1.9.1

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0 minutes
Time Spent - 1 hour, 30 minutes
Time Spent: 1 hour, 30 minutes
Time Spent - 1 hour, 30 minutes

File Attachments: 1. File TimeFieldError.swf (6.70 Mb)

Environment: https://svn.dotcms.org/branches/19testing -- Revision: 23562
Issue Links:
Cloners
 


 Description  « Hide
When you add a required "time" field on a structure, and that structure has existing content, the server is throwing the following exception several times in the log. In addition, the content tab will not display previously created content.

See jing attached. This may be a problem with making any field required after content has already been created. Will do more testing and comment back here.

[21/07/10 12:01:59:059 EDT] ERROR viewtools.WebAPI: java.text.ParseException: Unparseable date: ""


[30/07/10 10:58:36:036 EDT] ERROR dwrp.DefaultConverterManager: No converter found for 'java.io.File'
[30/07/10 10:59:01:001 EDT] WARN impl.DefaultRemoter: Method execution failed:
java.lang.NullPointerException
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1235)
at java.text.DateFormat.parse(DateFormat.java:335)
at com.dotmarketing.util.DateUtil.convertDate(DateUtil.java:116)
at com.dotmarketing.portlets.contentlet.ajax.ContentletAjax.searchContentletsByUser(ContentletAjax.java:517)
at com.dotmarketing.portlets.contentlet.ajax.ContentletAjax.searchContentlets(ContentletAjax.java:222)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:110)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.AutoLoginFilter.doFilter(AutoLoginFilter.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.CacheImagesFilter.doFilter(CacheImagesFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.cms.urlmap.filters.URLMapFilter.doFilter(URLMapFilter.java:211)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.compression.GZIPFilter.doFilter(GZIPFilter.java:26)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:637)
[30/07/10 10:59:01:001 EDT] WARN dwrp.BaseCallMarshaller: --Erroring: batchId[5] message[java.lang.NullPointerException]
[30/07/10 11:00:00:000 EDT] WARN job.UpdateRatingThread: Contentlet's fields are not valid
com.dotmarketing.portlets.contentlet.business.DotContentletValidationException: Contentlet's fields are not valid
List of non valid fields
REQUIRED: timeTest/Time Test,


at com.dotmarketing.exception.DotRuntimeException.fillInStackTrace(DotRuntimeException.java:33)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at com.dotmarketing.exception.DotRuntimeException.<init>(DotRuntimeException.java:15)
at com.dotmarketing.business.DotStateException.<init>(DotStateException.java:19)
at com.dotmarketing.portlets.contentlet.business.DotContentletStateException.<init>(DotContentletStateException.java:23)
at com.dotmarketing.portlets.contentlet.business.DotContentletValidationException.<init>(DotContentletValidationException.java:39)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2419)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2660)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkin(ContentletAPIImpl.java:1755)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkinWithoutVersioning(ContentletAPIImpl.java:1705)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.checkinWithoutVersioning(ContentletAPIInterceptor.java:295)
at com.dotmarketing.quartz.job.UpdateRatingThread.execute(UpdateRatingThread.java:191)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
[30/07/10 11:00:00:000 EDT] WARN job.UpdateRatingThread: Contentlet's fields are not valid
com.dotmarketing.portlets.contentlet.business.DotContentletValidationException: Contentlet's fields are not valid
List of non valid fields
REQUIRED: timeTest/Time Test,


at com.dotmarketing.exception.DotRuntimeException.fillInStackTrace(DotRuntimeException.java:33)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at com.dotmarketing.exception.DotRuntimeException.<init>(DotRuntimeException.java:15)
at com.dotmarketing.business.DotStateException.<init>(DotStateException.java:19)
at com.dotmarketing.portlets.contentlet.business.DotContentletStateException.<init>(DotContentletStateException.java:23)
at com.dotmarketing.portlets.contentlet.business.DotContentletValidationException.<init>(DotContentletValidationException.java:39)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2419)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2660)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkin(ContentletAPIImpl.java:1755)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkinWithoutVersioning(ContentletAPIImpl.java:1705)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.checkinWithoutVersioning(ContentletAPIInterceptor.java:295)
at com.dotmarketing.quartz.job.UpdateRatingThread.execute(UpdateRatingThread.java:191)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
[30/07/10 11:00:00:000 EDT] WARN job.UpdateRatingThread: Contentlet's fields are not valid
com.dotmarketing.portlets.contentlet.business.DotContentletValidationException: Contentlet's fields are not valid
List of non valid fields
REQUIRED: timeTest/Time Test,


at com.dotmarketing.exception.DotRuntimeException.fillInStackTrace(DotRuntimeException.java:33)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at com.dotmarketing.exception.DotRuntimeException.<init>(DotRuntimeException.java:15)
at com.dotmarketing.business.DotStateException.<init>(DotStateException.java:19)
at com.dotmarketing.portlets.contentlet.business.DotContentletStateException.<init>(DotContentletStateException.java:23)
at com.dotmarketing.portlets.contentlet.business.DotContentletValidationException.<init>(DotContentletValidationException.java:39)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2419)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2660)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkin(ContentletAPIImpl.java:1755)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkinWithoutVersioning(ContentletAPIImpl.java:1705)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.checkinWithoutVersioning(ContentletAPIInterceptor.java:295)
at com.dotmarketing.quartz.job.UpdateRatingThread.execute(UpdateRatingThread.java:191)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
[30/07/10 11:00:00:000 EDT] WARN job.UpdateRatingThread: Contentlet's fields are not valid
com.dotmarketing.portlets.contentlet.business.DotContentletValidationException: Contentlet's fields are not valid
List of non valid fields
REQUIRED: timeTest/Time Test,


at com.dotmarketing.exception.DotRuntimeException.fillInStackTrace(DotRuntimeException.java:33)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at com.dotmarketing.exception.DotRuntimeException.<init>(DotRuntimeException.java:15)
at com.dotmarketing.business.DotStateException.<init>(DotStateException.java:19)
at com.dotmarketing.portlets.contentlet.business.DotContentletStateException.<init>(DotContentletStateException.java:23)
at com.dotmarketing.portlets.contentlet.business.DotContentletValidationException.<init>(DotContentletValidationException.java:39)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2419)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.validateContentlet(ContentletAPIImpl.java:2660)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkin(ContentletAPIImpl.java:1755)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIImpl.checkinWithoutVersioning(ContentletAPIImpl.java:1705)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.checkinWithoutVersioning(ContentletAPIInterceptor.java:295)
at com.dotmarketing.quartz.job.UpdateRatingThread.execute(UpdateRatingThread.java:191)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
[30/07/10 11:00:00:000 EDT] WARN job.UpdateRatingThread: Contentlet's fields are not valid
com.dotmarketing.portlets.contentlet.business.DotContentletValidationException: Contentlet's fields are not valid
List of non valid fields
REQUIRED: timeTest/Time Test,



 All   Comments   Work Log   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
Dean Gonzalez - July 30, 2010 11:11 AM
jing video of error in content tab.

Baylogic - August 02, 2010 6:05 AM
Fixed the issue.Committed the code.

Please check