06-06-2012 08:32 AM
2012-06-06 14:11:52,729 ERROR [extensions.webscripts.AbstractRuntime] [http-8080-45] Exception from executeScript - redirecting to status template error: 05060061 Wrapped Exception (with status template): For input string: "1335823200000"
org.springframework.extensions.webscripts.WebScriptException: 05060061 Wrapped Exception (with status template): For input string: "1335823200000"
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:970)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:393)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:316)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
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 org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
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.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:662)
Caused by: java.lang.NumberFormatException: For input string: "1335823200000"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:461)
at java.lang.Integer.parseInt(Integer.java:499)
at org.alfresco.repo.web.scripts.blogs.posts.AbstractGetBlogWebScript.parseDateParam(AbstractGetBlogWebScript.java:174)
at org.alfresco.repo.web.scripts.blogs.posts.AbstractGetBlogWebScript.executeImpl(AbstractGetBlogWebScript.java:66)
at org.alfresco.repo.web.scripts.blogs.AbstractBlogWebScript.executeImpl(AbstractBlogWebScript.java:294)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
… 25 more
06-21-2012 11:50 AM
svn co http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD
in whatever directory you wish.root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/blogs/posts/AbstractGetBlogWebScript.java
and apply this patch: Index: root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/blogs/posts/AbstractGetBlogWebScript.java
===================================================================
— root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/blogs/posts/AbstractGetBlogWebScript.java (Revision 33365)
+++ root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/blogs/posts/AbstractGetBlogWebScript.java (Arbeitskopie)
@@ -82,7 +82,7 @@
if (this.getClass().equals(BlogPostsNewGet.class))
{
// Default is for 'now' minus seven days.
- final int oneDayInMilliseconds = 24 * 60 * 60 * 1000;
+ final long oneDayInMilliseconds = 24 * 60 * 60 * 1000;
final long sevenDaysInMilliseconds = 7 * oneDayInMilliseconds;
fromDate = new Date(System.currentTimeMillis() - sevenDaysInMilliseconds);
@@ -171,7 +171,7 @@
Date result = null;
if (dateStr != null)
{
- result = new Date(Integer.parseInt(dateStr));
+ result = new Date(Long.parseLong(dateStr));
}
return result;
}
ant build
Wait for it to complete, fetch yourself a cup of coffee or do other funny things while compiling.root/projects/remote-api/build/dist/alfresco-remote-api-4.0.d.jar
in your webapp deploy directory, thereby overwriting the old one.Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.