[ 
https://issues.apache.org/jira/browse/OFBIZ-12183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17344611#comment-17344611
 ] 

Giulio Speri commented on OFBIZ-12183:
--------------------------------------

Hi [~nmalin] 

is not easy to reproduce this error, I tried several times working both on 
Groovy script side and on the Java methods that those groovy scripts uses with 
no luck.

Unfortunately for now I see the error only sometimes and randomly and I did not 
recorded logs, thing that I will surely do if I'll face it again, but I tried a 
couple of things the last time I faced this issue (about two weeks ago).

1) I tried to force the error based on what "java.util.NoSuchElementException" 
means and when is thrown,  but never succeded.

2) I tried to comment completely all the lines of the groovy script mentioned 
in error message, but still nothing, the error persisted, so I started to have 
the suspect that the real issue happens before the groovy scripts of the screen 
are executed. 

3) The only solution that I always used to solve this error was to delete all 
the browser cookies, but to try to narrow it down, I deleted the cookie one by 
one and I discovered that the one who causes the issue is the JSESSIONID 
cookie, in fact deleting it, while keeping the others, solves the problem.

 

Due to a busy working period I was not able to dig further the problem, so for 
now is all I have.

If I'll face the issue again, I will record the logs and attach them here.

 

Thanks!

 

 

> Groovy script Product.groovy: java.util.NoSuchElementException 
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-12183
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12183
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce, order
>    Affects Versions: Release Branch 18.12, Trunk, 17.12.05
>         Environment: Linux/Ubuntu 16.04, Linux/Ubuntu 18.04, OFBiz v13.07.03
>            Reporter: Giulio Speri
>            Assignee: Nicolas Malin
>            Priority: Critical
>         Attachments: NoSuchElementException_Productgroovy.jpeg
>
>
> Strange issue happens randomly (it seems) while loading ecommerce product 
> detail page and the groovy script Product.groovy 
> (order/webapp/ordermgr/WEB-INF/actions/entry/catalog/) is run.
> The groovy script is loaded in the screen "product".
> The error showed is kind of java.util.NoSuchElementException and I think that 
> could be something related to session/request attributes, since this could be 
> avoided with an incognito navigation session.
> I saw this error a couple of times during local development also and I could 
> pass over it by manually deleting browser session cookies.
> Unfortunately I was not able to reproduce it yet, so I cannot add more 
> details except hypothesis.
> I also post here a screenshot of the error.
>  
> !NoSuchElementException_Productgroovy.jpeg!  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to