Category: | Bug report |
Priority: | Normal |
Status: | New |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
To reproduce this:
Create a domain out of a postgres schema with tables containing columns of type timezone with time zone.
In the display tab, make these columns available by adding them to sets, to the right.
Now create an adhoc view with this domain as the source, try to add this field (timestamp with time zone) to the columns of the adhoc view.
It will work!
now go back to the domain designer and rename that field.
Try to add this field to adhoc's columns again, it will produce an error with exception like this(only showing first few lines here):
I think the code is trying to read the label instead of the id.
java.lang.IllegalArgumentException: Illegal pattern character 'n'
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:845)
at java.text.SimpleDateFormat.applyPattern(SimpleDateFormat.java:2199)
at net.sf.jasperreports.engine.util.DefaultFormatFactory.createDateFormat(DefaultFormatFactory.java:127)
at com.jaspersoft.ji.adhoc.service.AdhocEngineServiceImpl.formatValue(AdhocEngineServiceImpl.java:1903)
at com.jaspersoft.ji.adhoc.service.AdhocEngineServiceImpl$$FastClassByCGLIB$$74ede881.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at com.jaspersoft.ji.adhoc.service.AdhocEngineServiceImpl$$EnhancerByCGLIB$$39a9d770.formatValue(<generated>)
at com.jaspersoft.ji.adhoc.service.AdhocEngineServiceImpl$$FastClassByCGLIB$$74ede881.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)