Bug 793396 (JBEPP-478)

Summary: NPE thrown from org.exoplatform.portal.webui.application.ModelAdapter$1 during performance test
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: mposolda
Component: PerformanceAssignee: mposolda
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.0.1.CR01   
Target Milestone: ---   
Target Release: 5.2.0.ER06   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-478
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
EPP 5.0.1 CR1 snapshot (from 2010-09-10), RHEL 5, Sun JDK 6, MySQL 5.0.1 database, Performance test with 50 users,
Last Closed: 2011-11-10 22:46:52 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:
Attachments:
Description Flags
server-log-perfTest-npe.txt none

Description mposolda 2010-09-21 07:43:26 UTC
project_key: JBEPP

During run of performance test for anonymous user with 200 concurrent clients, I noticed this exception in server log at the startup of test: 

2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) java.lang.NullPointerException
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.application.ModelAdapter$1.getProducerOfferedPortletContext(ModelAdapter.java:130)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.application.UIPortlet.setState(UIPortlet.java:806)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.util.PortalDataMapper.toUIPortlet(PortalDataMapper.java:243)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.util.PortalDataMapper.buildUIContainer(PortalDataMapper.java:403)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.util.PortalDataMapper.toUIPortal(PortalDataMapper.java:360)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.workspace.UIPortalApplication.addWorkingWorkspace(UIPortalApplication.java:481)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at org.exoplatform.portal.webui.workspace.UIPortalApplication.<init>(UIPortalApplication.java:186)
2010-09-20 14:52:00,443 ERROR [STDERR] (http-perf11%2F10.16.88.189-8080-119) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

I am attaching server log, where can be seen that exception occured in 4 tomcat worker threads and then another exceptions can be periodically seen in server log for these threads.

I tried more builds but I am not able to simulate it reliably. It's first time I saw this exception during performance build. I am not sure if this could occur also in EPP 5.0.0.GA. So looks like concurrency problem...

Let me know if I should investigate more and provide more info about this issue.

Comment 1 mposolda 2010-09-21 07:44:53 UTC
Attachment: Added: server-log-perfTest-npe.txt


Comment 2 Thomas Heute 2010-10-22 09:02:18 UTC
Postponing, hard to reproduce, would appreciate more details and info if that still occurs

Comment 3 mposolda 2010-10-22 11:55:04 UTC
I did not see it in any performance test during EPP 5.1.0 ER2 testing. So it's possible that it is already fixed but I am not sure. At this moment, I don't have reliable way how to reproduce it. I will probably look at it later after EPP 5.1.0 ER2 testing.

Comment 4 Prabhat Jha 2010-10-25 01:12:14 UTC
Pls give it a shot with ER3.

Comment 5 Scott Mumford 2010-11-01 00:15:55 UTC
Has this issue been resolved?
Since it's from a performance test, does it need to be Release Noted? (ie: does it affect customers?)

Comment 6 Scott Mumford 2010-11-01 00:15:55 UTC
Release Notes Docs Status: Added: Needs More Info


Comment 7 mposolda 2010-11-01 08:54:04 UTC
I did not see it in latest performance tests with EPP 5 ER3 and it's really only from performance test. I suggest to not cover it in release notes.

Comment 8 Scott Mumford 2010-11-01 23:20:13 UTC
Thanks Marek.

Comment 9 Scott Mumford 2010-11-01 23:20:13 UTC
Release Notes Docs Status: Removed: Needs More Info Added: Not Required


Comment 10 Thomas Heute 2010-11-02 10:48:31 UTC
I remove the fix version and keep it alive just for future reference if needed

Comment 11 mposolda 2011-11-10 22:46:52 UTC
Release Notes Text: Added: Resolving, because we didn't see this issue for very long time during performance testing and seems that some related code was changed in the meantime.