Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

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 CentralAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Ivo Bek <ibek>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0.0CC: 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 Flags
server log none

Description Ivo Bek 2014-01-17 12:41:44 UTC
Description of problem:

In beans.xml file of Business central there is note that we should use JAASUserGroupInfoProducer on EWS. So, I changed the producers, started EWS but when I log in, I will get NPE. (see the attached server log)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Configure EWS (http://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_JBoss_BPM_Suite/6/html-single/Installation_Guide/index.html)
2. Change UserGroupInfoProducer in beans.xml of Business central
3. See NPE when you try to log in

Actual results:


Expected results:


Additional info:

Comment 1 Maciej Swiderski 2014-01-17 13:56:19 UTC
Ivo, can you please attach the server log with NPE?

Thanks

Comment 2 Ivo Bek 2014-01-17 14:49:50 UTC
Created attachment 851648 [details]
server log

Comment 3 Maciej Swiderski 2014-01-20 16:19:53 UTC
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?

Comment 4 Ivo Bek 2014-01-24 08:57:48 UTC
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.

Comment 5 Maciej Swiderski 2014-01-27 18:12:07 UTC
Thanks Ivo.

looks like the only way is not to wait for weld upgrade that should solve this issue, any other ideas?

Comment 6 Ivo Bek 2014-02-03 10:06:40 UTC
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.

Comment 7 Maciej Swiderski 2014-02-03 17:51:59 UTC
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

Comment 8 Lukáš Petrovický 2014-02-07 16:19:36 UTC
This no longer has a target release of 6.0.0.

Comment 9 Ivo Bek 2014-02-24 12:54:21 UTC
Verified in BPMS 6.0.1.ER1, EWS 2.0