Bug 1011420

Summary: Unable to open Project screen on IBM java platform
Product: [Retired] JBoss BRMS Platform 6 Reporter: Sona Mala <smala>
Component: Business CentralAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, ibek, jlocker, lpetrovi, mbaluch, rrajasek
Target Milestone: CR2Keywords: TestBlocker
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Cause: This problem is related with IBM java virtual machine (1.6, 1.7) Consequence: There is an error message in GUI and server.log for actions which are related with a project building or an incremental build (save asset, build project, open project, etc.). Workaround (if any): no workaround Result:
Story Points: ---
Clone Of: Environment:
ibmJava
Last Closed: 2014-08-06 20:15:39 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
Error screenshot
none
server log on BPMS 6.0.0.ER7 none

Description Sona Mala 2013-09-24 08:57:26 UTC
Created attachment 802103 [details]
server.log

Description of problem:
If you create new project and GUI try to open Project Screen then Error alert is shown

Version-Release number of selected component (if applicable):
6.0.0 ER3, BPMS

How reproducible:


Steps to Reproduce:
1. run BPMS server on ibm distribution of java (1.6 or 1.7) 
2. open business-central on your browser
3. create new repository "myRepo"
4. create new project "myProject"

Actual results:
---------------
Error alert:

Unable to complete your request. The following exception occurred: org.kie.scanner.embedder.MavenEmbedderException: java.util.NoSuchElementException role: org.apache.maven.execution.MavenExecutionRequestPopulator roleHint:

Exception in server.log (is attached)
Loading of Project screen freeze

Expected results:
Open Project Screen without any problem.


Additional info:

Comment 1 manstis 2013-09-24 10:22:56 UTC
Mario, the stack trace suggests this could be a general problem with building Kie Projects with an IBM JRE. Would you mind confirming your KieBuilder tests work with such a JRE (before we look at BPMS/BRMS specifically)? Thanks.

Comment 2 Ivo Bek 2013-09-27 10:42:21 UTC
Yes it's a general problem because I get the same exception via REST API when I install a project.

Here is part of my stacktrace:
[2013-09-26 20:27:07,896] INFO - Installing project 'integration' from repo 'bpms-assets'
[2013-09-26 20:27:08,198] ERROR- Bad entity: [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <status>FAILURE</status>
    <url>/business-central/rest/repositories/bpms-assets/projects/integration/maven/install</url>
    <error>org.kie.scanner.embedder.MavenEmbedderException: java.util.NoSuchElementException
      role: org.apache.maven.execution.MavenExecutionRequestPopulator
  roleHint: </error>
    <stackTrace>org.guvnor.common.services.shared.exceptions.GenericPortableException: org.kie.scanner.embedder.MavenEmbedderException: java.util.NoSuchElementException
      role: org.apache.maven.execution.MavenExecutionRequestPopulator
  roleHint: 
	at org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:24)
	at org.guvnor.common.services.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:114)
	at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java)
	at org.kie.workbench.common.services.rest.ProjectResourceDispatcher.installProject(ProjectResourceDispatcher.java:274)

Comment 3 Edson Tirelli 2013-10-01 13:29:59 UTC
This is a nice-to-have for community, but required for product.

Comment 4 Jiri Locker 2013-10-04 09:07:15 UTC
Created attachment 807493 [details]
Error screenshot

This screenshot illustrates how the issue manifests in UI.

Comment 8 Rajesh Rajasekaran 2013-10-29 20:30:37 UTC
Increasing priority of 'TestBlocker' to 'high'

Comment 9 Mario Fusco 2013-11-20 11:51:03 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/ff7e0c620

Comment 10 Ivo Bek 2014-01-14 13:11:50 UTC
I have still the same problem on BPMS 6.0.0.ER7. I got the NoSuchElementException just after I logged in but also I got it after I created a new project as I followed the reproduce steps. I will attach server log and screenshot.

Comment 11 Ivo Bek 2014-01-14 13:20:01 UTC
Created attachment 849931 [details]
server log on BPMS 6.0.0.ER7

I will not attach my screenshot because it is the same as the Error screenshot already there.

Comment 12 Mario Fusco 2014-01-15 12:08:55 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/298b3eb17

Comment 13 Edson Tirelli 2014-01-23 16:31:34 UTC
Cherry-picked into 6.0.0.GA.x for the 6.0.0.CR2 release:

(6.0.0.GA.x) : https://github.com/droolsjbpm/drools/commit/4b3b175

For completeness, here is the link to 6.0.x commit:

(6.0.x) : https://github.com/droolsjbpm/drools/commit/e34bcc1

Comment 14 Jiri Locker 2014-01-27 11:24:39 UTC
Business Central UI tests are no longer blocked by this and are passing on Jenkins with both Java 6 and 7.

Comment 15 Lukáš Petrovický 2014-01-27 12:02:09 UTC
In which case, VERIFIED with CR2.