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

Bug 1070263

Summary: Data Modeler UI losing 1 of 4 data objects after build & deploy
Product: [Retired] JBoss BPMS Platform 6 Reporter: Eric D. Schabell <eschabel>
Component: Data ModelerAssignee: Pedro Zapata <pzapataf>
Status: CLOSED NOTABUG QA Contact: Marek Baluch <mbaluch>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, pzapataf
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-26 15:34:25 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
niogit repo zip for testing
none
log errors on build and deploy none

Description Eric D. Schabell 2014-02-26 14:03:53 UTC
Created attachment 868031 [details]
niogit repo zip for testing

Description of problem:
Create 4 model objects in data modeler, after build and deploy (UI gives success, log shows errors on missing last object) the object is gone from UI. CLI clone of project shows object in project next to the 3 others that do display.

Repeated 2x with same results:

1. remove data model objects. 

2. create new objects, close data modeler.

3. build & deploy with success in UI, error in logs
14:30:05,544 ERROR [org.jbpm.kie.services.impl.KModuleDeploymentService] (http-localhost/127.0.0.1:8080-2) Unable to load com.redhat.coolstore.PromoEvent when deploying com.redhat:coolstore:2.0: java.lang.ClassNotFoundException: com.redhat.coolstore.PromoEvent

(note, PromoEvent is last object)

4. Open Data Modeler again and last object gone (PromoEvent).

5. git clone ssh:// of project, validate existence of object (PromoEvent.java), it is there in repo.

Attached section of error log when building, also attach zip of .niogit repo for testing.


Version-Release number of selected component (if applicable):
BPM Suite 6.0.0.GA + Firefox

How reproducible:
see above

Steps to Reproduce:
1. see above
2.
3.

Actual results:
loss of object and errors.

Expected results:
valid build and no errors and object remains visible in UI.

Additional info:

Comment 2 Eric D. Schabell 2014-02-26 14:22:41 UTC
Created attachment 868037 [details]
log errors on build and deploy

Comment 3 Pedro Zapata 2014-02-26 14:31:46 UTC
The underlying error is caused by a project build problem (exception below)

15:16:59,810 ERROR [org.jbpm.kie.services.impl.KModuleDeploymentService] (http-localhost/127.0.0.1:8080-3) Unable to load com.redhat.coolstore.PromoEvent when deploying com.redhat:coolstore:2.0: java.lang.ClassNotFoundException: com.redhat.coolstore.PromoEvent
        at java.lang.ClassLoader.findClass(ClassLoader.java:358) [rt.jar:1.6.0_45]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [rt.jar:1.6.0_45]
        at org.drools.core.common.ProjectClassLoader$InternalTypesClassLoader.loadType(ProjectClassLoader.java:300) [drools-core-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at org.drools.core.common.ProjectClassLoader$InternalTypesClassLoader.access$200(ProjectClassLoader.java:266) [drools-core-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at org.drools.core.common.ProjectClassLoader.loadType(ProjectClassLoader.java:152) [drools-core-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at org.drools.core.common.ProjectClassLoader.loadClass(ProjectClassLoader.java:127) [drools-core-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [rt.jar:1.6.0_45]
        at org.jbpm.kie.services.impl.KModuleDeploymentService.processResources(KModuleDeploymentService.java:159) [jbpm-kie-services-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:84) [jbpm-kie-services-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]

Comment 4 Pedro Zapata 2014-02-26 14:37:33 UTC
The problem seems to be when deploying the rule 'Declare Events.drl', which makes reference to a class that's still not compiled and loaded. 

If that rule is removed from the project, then the model loads correctly.

Comment 5 Pedro Zapata 2014-02-26 15:19:48 UTC
That DRL file is not longer required in 6.0, since data modeler already allows to annotate a POJO file as Event, the DRL file should be removed and the project will build correctly.

Comment 6 Pedro Zapata 2014-02-26 15:34:25 UTC
One problem that makes it difficult to diagnose this situation is  that no error is shown in the 'Problems' panel and the project is reported as 'Build successful' (which is not).

Any build problem should be displayed here, or the user is not aware that the project build has failed.

To avoid confusion, I'll close this an report a sepparate issue with this.

Comment 7 Pedro Zapata 2014-02-26 15:43:29 UTC
Reported https://bugzilla.redhat.com/show_bug.cgi?id=1070324