Re: Help needed for Struts 6.6.0 tagnames in UIBean.java

2024-10-03 Thread Santu Dhua
Hi All- it was resolved, had to change to  from .

*Thanks & Regards*
*Santu Dhua*


On Thu, Oct 3, 2024 at 2:06 AM Santu Dhua  wrote:

> Hi Lukasz- we are migrating from Struts 6.0.0(with jdk1.8) to Struts
> 6.6.0(with jdk21).
> Yes, the issue is occurring for a  element, which is inside a
> form .
> First time the page is opening perfectly, then I go to next page, and try
> to come back by a custom back button( via JS that button modifies
> window.location.href to the previous page JSP name) and there it fails with
> the exception. In Struts 6.0.0 with jdk 1.8, this functionality is working
> fine.
>
>
> *Thanks & Regards*
> *Santu Dhua*
>
>
> On Thu, Oct 3, 2024 at 1:31 AM Lukasz Lenart 
> wrote:
>
>> czw., 3 paź 2024 o 05:41 Santu Dhua  napisał(a):
>> > Need expert opinion: I am using Struts 6.6.0.  While clicking a back
>> button
>> > in my application, I am getting below exception in UIBean.java. I have
>> > added all dependencies needed for Struts 6.6.0, as mentioned in release
>> > version notes. Can anyone help to understand what could cause this.? The
>> > page works when first time load, then from next page if I come back, I
>> am
>> > getting below exception:
>>
>> From which version have you migrated to Struts 6.6.0?
>>
>> > Caused by: java.lang.NullPointerException: Cannot invoke
>> > "java.util.List.add(Object)" because "tags" is null
>> > at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:804)
>> > ~[struts2-core-6.6.0.jar:6.6.0]
>>
>> This code hasn't changed since Struts 2.3.x, it must be something
>> else. Do you use this tag inside ?
>>
>>
>> Regards
>> --
>> Łukasz
>>
>> -
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>


Re: Help needed for Struts 6.6.0 tagnames in UIBean.java

2024-10-02 Thread Santu Dhua
Hi Lukasz- we are migrating from Struts 6.0.0(with jdk1.8) to Struts
6.6.0(with jdk21).
Yes, the issue is occurring for a  element, which is inside a
form .
First time the page is opening perfectly, then I go to next page, and try
to come back by a custom back button( via JS that button modifies
window.location.href to the previous page JSP name) and there it fails with
the exception. In Struts 6.0.0 with jdk 1.8, this functionality is working
fine.

*Thanks & Regards*
*Santu Dhua*


On Thu, Oct 3, 2024 at 1:31 AM Lukasz Lenart 
wrote:

> czw., 3 paź 2024 o 05:41 Santu Dhua  napisał(a):
> > Need expert opinion: I am using Struts 6.6.0.  While clicking a back
> button
> > in my application, I am getting below exception in UIBean.java. I have
> > added all dependencies needed for Struts 6.6.0, as mentioned in release
> > version notes. Can anyone help to understand what could cause this.? The
> > page works when first time load, then from next page if I come back, I am
> > getting below exception:
>
> From which version have you migrated to Struts 6.6.0?
>
> > Caused by: java.lang.NullPointerException: Cannot invoke
> > "java.util.List.add(Object)" because "tags" is null
> > at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:804)
> > ~[struts2-core-6.6.0.jar:6.6.0]
>
> This code hasn't changed since Struts 2.3.x, it must be something
> else. Do you use this tag inside ?
>
>
> Regards
> --
> Łukasz
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


Re: Help needed for Struts 6.6.0 tagnames in UIBean.java

2024-10-02 Thread Lukasz Lenart
czw., 3 paź 2024 o 05:41 Santu Dhua  napisał(a):
> Need expert opinion: I am using Struts 6.6.0.  While clicking a back button
> in my application, I am getting below exception in UIBean.java. I have
> added all dependencies needed for Struts 6.6.0, as mentioned in release
> version notes. Can anyone help to understand what could cause this.? The
> page works when first time load, then from next page if I come back, I am
> getting below exception:

>From which version have you migrated to Struts 6.6.0?

> Caused by: java.lang.NullPointerException: Cannot invoke
> "java.util.List.add(Object)" because "tags" is null
> at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:804)
> ~[struts2-core-6.6.0.jar:6.6.0]

This code hasn't changed since Struts 2.3.x, it must be something
else. Do you use this tag inside ?


Regards
-- 
Łukasz

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Help needed for Struts 6.6.0 tagnames in UIBean.java

2024-10-02 Thread Santu Dhua
Need expert opinion: I am using Struts 6.6.0.  While clicking a back button
in my application, I am getting below exception in UIBean.java. I have
added all dependencies needed for Struts 6.6.0, as mentioned in release
version notes. Can anyone help to understand what could cause this.? The
page works when first time load, then from next page if I come back, I am
getting below exception:

Caused by: java.lang.NullPointerException: Cannot invoke
"java.util.List.add(Object)" because "tags" is null
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:804)
~[struts2-core-6.6.0.jar:6.6.0]


*Thanks & Regards*
*Santu Dhua*