[JBoss JIRA] Created: (SEAMREST-37) rest-tasks - exception rendering freemarker response
by Jozef Hartinger (JIRA)
rest-tasks - exception rendering freemarker response
----------------------------------------------------
Key: SEAMREST-37
URL: https://issues.jboss.org/browse/SEAMREST-37
Project: Seam REST
Issue Type: Bug
Components: Templating
Affects Versions: 3.0.0.CR2
Reporter: Jozef Hartinger
Assignee: Jozef Hartinger
Priority: Critical
Fix For: 3.0.0.Final
curl -i -H "Accept: application/categories+xml" http://localhost:8080/rest-tasks/api/category
[#|2011-03-24T10:10:22.966+0100|SEVERE|glassfish3.1|freemarker.runtime|_ThreadID=25;_ThreadName=Thread-1;|Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date.
Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date.
The problematic instruction:
----------
==> ${task.created} [on line 7, column 18 in freemarker/task.ftl]
in include "/freemarker/task.ftl" [on line 15, column 25 in freemarker/categories.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date.
at freemarker.core.Environment.formatDate(Environment.java:765)
at freemarker.core.Expression.getStringValue(Expression.java:105)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.include(Environment.java:1483)
at freemarker.core.Include.accept(Include.java:169)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:237)
at org.jboss.seam.rest.templating.freemarker.FreeMarkerProvider.writeTo(FreeMarkerProvider.java:53)
at org.jboss.seam.rest.templating.freemarker.org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$freemarker$FreeMarkerProvider_$$_WeldClientProxy.writeTo(org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$freemarker$FreeMarkerProvider_$$_WeldClientProxy.java)
at org.jboss.seam.rest.templating.TemplatingMessageBodyWriter.writeTo(TemplatingMessageBodyWriter.java:109)
at org.jboss.seam.rest.templating.org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$TemplatingMessageBodyWriter_$$_WeldClientProxy.writeTo(org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$TemplatingMessageBodyWriter_$$_WeldClientProxy.java)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1316)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:419)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
[#|2011-03-24T10:10:22.971+0100|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=87;_ThreadName=Thread-1;|StandardWrapperValve[org.jboss.seam.rest.example.tasks.TasksApplication]: PWC1406: Servlet.service() for servlet org.jboss.seam.rest.example.tasks.TasksApplication threw exception
java.lang.RuntimeException: Unable to write FreeMarker response.
at org.jboss.seam.rest.templating.freemarker.FreeMarkerProvider.writeTo(FreeMarkerProvider.java:56)
at org.jboss.seam.rest.templating.freemarker.org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$freemarker$FreeMarkerProvider_$$_WeldClientProxy.writeTo(org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$freemarker$FreeMarkerProvider_$$_WeldClientProxy.java)
at org.jboss.seam.rest.templating.TemplatingMessageBodyWriter.writeTo(TemplatingMessageBodyWriter.java:109)
at org.jboss.seam.rest.templating.org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$TemplatingMessageBodyWriter_$$_WeldClientProxy.writeTo(org$jboss$weld$bean-WEB-INF$lib$seam-rest-impl-3$0$0$CR2-ManagedBean-class_org$jboss$seam$rest$templating$TemplatingMessageBodyWriter_$$_WeldClientProxy.java)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1316)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:419)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: freemarker.template.TemplateModelException: Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date.
at freemarker.core.Environment.formatDate(Environment.java:765)
at freemarker.core.Expression.getStringValue(Expression.java:105)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.include(Environment.java:1483)
at freemarker.core.Include.accept(Include.java:169)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:237)
at org.jboss.seam.rest.templating.freemarker.FreeMarkerProvider.writeTo(FreeMarkerProvider.java:53)
... 36 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (SEAMINTL-32) NPEs in ApplicationBundles.put*
by Nicklas Karlsson (JIRA)
NPEs in ApplicationBundles.put*
-------------------------------
Key: SEAMINTL-32
URL: https://issues.jboss.org/browse/SEAMINTL-32
Project: Seam International
Issue Type: Bug
Components: Messages
Affects Versions: 3.0.0.Final
Reporter: Nicklas Karlsson
Assignee: Ken Finnigan
If you put something in the bundles with a locale for the first time, bundles.get(locale) is null and we get a NPE.
public ResourceBundle put(final Locale locale, final String key, final ResourceBundle value)
{
return bundles.get(locale).put(key, value);
}
public void putAll(final Locale locale, final Map<? extends String, ? extends ResourceBundle> m)
{
bundles.get(locale).putAll(m);
}
Nested map access need a if(!bundles.containsKey(locale)) + map init
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (SEAMINTL-29) bundles messages doesnt return proper values
by Sebastian Sachtleben (JIRA)
bundles messages doesnt return proper values
--------------------------------------------
Key: SEAMINTL-29
URL: https://issues.jboss.org/browse/SEAMINTL-29
Project: Seam International
Issue Type: Bug
Components: Locales
Reporter: Sebastian Sachtleben
Priority: Critical
#{bundles.messages.MyKey} doesnt return the correct properties file after firing locale event and changed the locale of user. @Inject @Client Locale locale returns proper value after changing locale but bundles messages returns values from jdk locale. I will add non working example and I working example with helper class later once the repository is up again.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (SEAMINTL-27) ClassNotFoundException for org.joda.time.DateTimeZone
by Aaron Siri (JIRA)
ClassNotFoundException for org.joda.time.DateTimeZone
-----------------------------------------------------
Key: SEAMINTL-27
URL: https://issues.jboss.org/browse/SEAMINTL-27
Project: Seam International
Issue Type: Bug
Components: Time zones
Affects Versions: 3.0.0.Beta2
Environment: OS X, Glassfish v3.2b42, Java 1.6
Reporter: Aaron Siri
When attempting to use Seam 3 Security beta 2 on a stock Glassfish v3 environment I get an CNF for org.joda.time.DateTimeZone
SEVERE: Class [ org/joda/time/DateTimeZone ] not found. Error while loading [ class org.jboss.seam.international.datetimezone.DefaultDateTimeZoneProducer ]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (SEAMWICKET-31) The seam-wicket-example-numberguess example does not follow the Seam example naming convention
by Jozef Hartinger (JIRA)
The seam-wicket-example-numberguess example does not follow the Seam example naming convention
----------------------------------------------------------------------------------------------
Key: SEAMWICKET-31
URL: https://issues.jboss.org/browse/SEAMWICKET-31
Project: Seam for Apache Wicket
Issue Type: Bug
Affects Versions: 3.0.0.CR1
Reporter: Jozef Hartinger
Fix For: 3.0.0.Final
The following naming convention is enforced:
* folder name in the seam distribution - <module name>-<example name> (e.g. rest-tasks)
* example final name (context path after deployment) - should be the same as above (e.g. rest-tasks)
* maven artifactId - seam-<module name>\-example\-<example name> (e.g. seam-rest-example-tasks)
The seam-wicket-example-numberguess example should declare "wicket-numberguess" as its final name.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (SEAMFACES-120) The short.ly example does not follow the Seam example naming convention
by Jozef Hartinger (JIRA)
The short.ly example does not follow the Seam example naming convention
-----------------------------------------------------------------------
Key: SEAMFACES-120
URL: https://issues.jboss.org/browse/SEAMFACES-120
Project: Seam Faces
Issue Type: Bug
Components: Build & Distribution
Affects Versions: 3.0.0.CR2
Reporter: Jozef Hartinger
Fix For: 3.0.0.Final
The following naming convention is enforced:
* folder name in the seam distribution - <module name>-<example name> (e.g. rest-tasks)
* example final name (context path after deployment) - should be the same as above (e.g. rest-tasks)
* maven artifactId - seam-<module name>-example-<example name> (e.g. seam-rest-example-tasks)
The shor.ly example should declare "faces-short.ly" as its final name.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years