[ 
https://issues.apache.org/jira/browse/ARIES-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870309#action_12870309
 ] 

Bartosz Kowalewski commented on ARIES-291:
------------------------------------------

Hi Zoe,

I also observed this issue when playing with the Blog sample. 

This bug causes updating the author's profile to fail. Data is not persisted in 
the DB as this exception is caught later (is not caught in 
BlogAuthorManagerImpl itself). The simplest way to fix this is to change the 
updateAuthor() method so that it uses the same approach to verifying if the 
date is correct as it is done in the createAuthor method. 

Thanks,
  Bartek


> Unparsable date
> ---------------
>
>                 Key: ARIES-291
>                 URL: https://issues.apache.org/jira/browse/ARIES-291
>             Project: Aries
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: Incubation
>         Environment: Windows 7
>            Reporter: Frank Appiah
>            Assignee: zoe slattery
>            Priority: Minor
>         Attachments: aries-291.diff
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> When a date wasn't provided for the data entry.
> org.apache.aries.jpa.container. EntityManager 
> org.apache.openjpa.persistence.entitymanageri...@b81791 as the transaction 
> has completed.
> java.text.ParseException: Unparseable date: ""
>         at java.text.DateFormat.parse(Unknown Source)
>         at 
> org.apache.aries.samples.blog.biz.BlogAuthorManagerImpl.updateAuthor(BlogAuthorManagerImpl.java:81)
>         at 
> org.apache.aries.samples.blog.biz.BloggingServiceImpl.updateBlogAuthor(BloggingServiceImpl.java:76)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at 
> org.apache.aries.jndi.services.ServiceHelper$JNDIServiceDamper.invoke(ServiceHelper.java:99)
>         at $Proxy39.updateBlogAuthor(Unknown Source)
>         at 
> org.apache.aries.samples.blog.web.EditAuthor.doPost(EditAuthor.java:85)
>         at 
> org.apache.aries.samples.blog.web.EditAuthor.doGet(EditAuthor.java:41)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
>         at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>         at 
> org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:169)
>         at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
>         at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
>         at 
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64
>         at 
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to