Re: JasperReports plugin - confused on a NullPointerException

2017-07-17 Thread Jon Eskin
Sure, I’ll get a JIRA ticket registered for that.

And I would be happy to contribute the example.

> On Jul 17, 2017, at 3:45 AM, Lukasz Lenart  wrote:
> 
> 2017-07-14 12:16 GMT+02:00 Jon Eskin :
>> I just tried switching to 2.5.12 but I'm seeing the same error.
> 
> Looks like  a bug in the plugin - could you register a ticket in JIRA?
> 
> Also do you mind contributing your example to
> https://github.com/apache/struts-examples ? The best way would be open
> a PR :)
> 
> 
> Thanks & regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: JasperReports plugin - confused on a NullPointerException

2017-07-17 Thread Lukasz Lenart
2017-07-14 12:16 GMT+02:00 Jon Eskin :
> I just tried switching to 2.5.12 but I'm seeing the same error.

Looks like  a bug in the plugin - could you register a ticket in JIRA?

Also do you mind contributing your example to
https://github.com/apache/struts-examples ? The best way would be open
a PR :)


Thanks & regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: JasperReports plugin - confused on a NullPointerException

2017-07-14 Thread Jon Eskin
I just tried switching to 2.5.12 but I'm seeing the same error.

> On Jul 14, 2017, at 2:27 AM, Lukasz Lenart  wrote:
> 
> Can you try to use the latest 2.5.12 version? There was some issue
> related to the JasperReports fixed with this release.
> 
> 2017-07-14 2:10 GMT+02:00 Jon Eskin  >:
>> I tried to make a sample project using code from a tutorial I found for the 
>> JasperReports plugin 
>> (https://struts.apache.org/docs/jasperreports-tutorial.html 
>> >  >).
>> 
>> I’m seeing a NullPointerException in my logs when I try to run the report 
>> (see below). It’s complaining about not closing a db connection even though 
>> no db connection is made. I uploaded a small project demonstrating the 
>> issue: https://github.com/jpe90/struts2jasper 
>>  
>> > >
>> 
>> Am I doing something wrong or is this a bug?
>> 
>> Error:
>> 
>> 2017-07-13 19:59:56,616 WARN  [http-nio-8080-exec-6] 
>> jasperreports.JasperReportsResult (JasperReportsResult.java:392) - Could not 
>> close db connection properly
>> java.lang.NullPointerException: null
>>at 
>> org.apache.struts2.views.jasperreports.JasperReportsResult.doExecute(JasperReportsResult.java:390)
>>  [struts2-jasperreports-plugin-2.5.10.1.jar:2.5.10.1]
>>at 
>> org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:177)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:73)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:133)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:133)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>>  [struts2-core-2.5.10.1.jar:2.5.10.1]
>>at 
>> 

Re: JasperReports plugin - confused on a NullPointerException

2017-07-14 Thread Lukasz Lenart
Can you try to use the latest 2.5.12 version? There was some issue
related to the JasperReports fixed with this release.

2017-07-14 2:10 GMT+02:00 Jon Eskin :
> I tried to make a sample project using code from a tutorial I found for the 
> JasperReports plugin 
> (https://struts.apache.org/docs/jasperreports-tutorial.html 
> ).
>
> I’m seeing a NullPointerException in my logs when I try to run the report 
> (see below). It’s complaining about not closing a db connection even though 
> no db connection is made. I uploaded a small project demonstrating the issue: 
> https://github.com/jpe90/struts2jasper 
> 
>
> Am I doing something wrong or is this a bug?
>
> Error:
>
> 2017-07-13 19:59:56,616 WARN  [http-nio-8080-exec-6] 
> jasperreports.JasperReportsResult (JasperReportsResult.java:392) - Could not 
> close db connection properly
> java.lang.NullPointerException: null
> at 
> org.apache.struts2.views.jasperreports.JasperReportsResult.doExecute(JasperReportsResult.java:390)
>  [struts2-jasperreports-plugin-2.5.10.1.jar:2.5.10.1]
> at 
> org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:177)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:73)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:133)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:133)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:192)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:69)
>  [struts2-core-2.5.10.1.jar:2.5.10.1]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
>