Bug 1054766
| Summary: | NPE when I use wrong credentials to log in to EWS | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Ivo Bek <ibek> | ||||
| Component: | Business Central | Assignee: | Maciej Swiderski <mswiders> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ivo Bek <ibek> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0.0 | CC: | kverlaen | ||||
| Target Milestone: | ER1 | ||||||
| Target Release: | 6.0.1 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-08-06 20:02:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Ivo Bek
2014-01-17 12:41:44 UTC
Ivo, can you please attach the server log with NPE? Thanks Created attachment 851648 [details]
server log
Alright, that seems to be a WELD issue that so far I haven't found a way to workaround on our end: https://issues.jboss.org/browse/WELD-1020 another one that might be related: https://issues.jboss.org/browse/WELD-1415 here is a discussion about this problem https://community.jboss.org/thread/232194 which suggests that it might be a tomcat issue - which sort of fits into out case where the exception is thrown only on login/logout. Based on my tests this NPE does not impact the application behavior which seems to work as expected. Ivo, can you confirm this? I tested on latest Tomcat 7.0.50 and exactly same issue. Any thoughts on how to proceed? Maciej, you are right. It does not impact the application behaviour. Now it works as expected only with an exception in the server log. When I filed this bug, I had also NPE in the browser what could be caused by something different (maybe the first NPE): Caused by: java.lang.NullPointerException at org.uberfire.io.impl.AbstractIOService.setAuthenticationManager(AbstractIOService.java:669) at org.uberfire.backend.server.io.ConfigIOServiceProducer.setup(ConfigIOServiceProducer.java:61) ... 85 more Now I see only the rest of NPEs and I cannot reproduce it any more to have NPE also in the browser. Ha, I got it when I put there wrong creadentials :D ... probably it is not the same cause as mentioned above but at least something more visible in the browser. Thanks Ivo. looks like the only way is not to wait for weld upgrade that should solve this issue, any other ideas? Yes, at least we should upgrade the WELD to 1.1.14 and sooner will be better. I would say there must be something different with EWS because I cannot explain why it works on EAP. fixed by wrapping weld listeners that cause issues and catch exception and print them to log (on debug) as they are not causing any issues since request is already completed, but when not caught they results in nasty errors both in logs and on UI as reported by Ivo. whenever we update weld version we might consider to remove the wrapper. P.S. Ivo, 1.1.14 won't make any difference as it still fails on NPE - no protection on the deactivate method. kie-wb-distributions master: https://github.com/droolsjbpm/kie-wb-distributions/commit/889651ca7c5d1aae5d82e0d96ba46618696a22de 6.0.x: https://github.com/droolsjbpm/kie-wb-distributions/commit/d1373d3e00c0a811f9d8ce312952842f4512d930 This no longer has a target release of 6.0.0. Verified in BPMS 6.0.1.ER1, EWS 2.0 |