Bug 1024117 - HR process build failing
Summary: HR process build failing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: All
OS: Linux
high
high
Target Milestone: ER5
: 6.0.0
Assignee: manstis
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-28 21:49 UTC by Roger Martínez
Modified: 2014-08-06 20:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:19:06 UTC
Type: Bug


Attachments (Terms of Use)
HR Process definition (16.51 KB, application/zip)
2013-10-28 21:49 UTC, Roger Martínez
no flags Details

Description Roger Martínez 2013-10-28 21:49:52 UTC
Created attachment 816932 [details]
HR Process definition

Description of problem: Build&deploy operation for HR process fails and the user feedback message diplays "Build&deploy successfull" (incorrect).


Version-Release number of selected component (if applicable): 6.1.0-SNAPSHOT (build 28oct 2013)


How reproducible: 



Steps to Reproduce:
1. Select jbpm-playground repo and HR process in project explorer
2. Click on Build&Deploy 
3. An exception is thrown (see log) but user message says it's correct.

Actual results:


Expected results:


Additional info:

The exception is:

22:45:14,760 ERROR [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (pool-13-thread-2) String index out of range: -3: org.guvnor.common.services.shared.exceptions.GenericPortableException: String index out of range: -3
        at org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:24) [guvnor-services-api-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
        at org.guvnor.common.services.builder.BuildServiceImpl.updatePackageResource(BuildServiceImpl.java:190) [guvnor-project-builder-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
        at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.updatePackageResource(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java) [guvnor-project-builder-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
        at org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$4.run(ResourceChangeIncrementalBuilder.java:237) [guvnor-project-builder-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

Comment 2 manstis 2013-10-29 22:57:23 UTC
A number of questions.

(1) What steps are you actually completing? You state you clicked "Build & Deploy" however the log shows an incremental compilation that happens when you save a file; not "Build & Deploy" a project. What did you actually do?

(2) I tried to open the "hiring" process with jBPM Designer however it complained the process file was invalid. I also noticed a number for additional log entries for "non-viable character '/'" (or similar). Could relate to an invalid process file?

Thanks,

Mike

Comment 3 manstis 2013-10-30 09:40:45 UTC
I can replicate the error with kie-wb:-

09:36:50,523 INFO  [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (pool-29-thread-2) Incremental build request being processed: default://master@jbpm/HR/project.imports (updated).
09:36:50,659 ERROR [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (pool-29-thread-2) String index out of range: -3: org.guvnor.common.services.shared.exceptions.GenericPortableException: String index out of range: -3
	at org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:24) [guvnor-services-api-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
	at org.guvnor.common.services.builder.BuildServiceImpl.updatePackageResource(BuildServiceImpl.java:192) [guvnor-project-builder-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
	at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.updatePackageResource(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java) [guvnor-project-builder-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
	at org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$4.run(ResourceChangeIncrementalBuilder.java:242) [guvnor-project-builder-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
	at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

Looks like project.imports is causing the problem... investigating.

Comment 4 Roger Martínez 2013-10-30 10:09:51 UTC
Hi Mike,

About (1): I just clicked "Build&Deploy" and then a popup appears. This popup allows to save the project, and I saved it... so it's probably that the problem can be on save operation rather than build.


About (2): I don't remember right now if the process open without error, but I'm quite sure that it opened as well. Anyway, the additional log entries (non-viable character '/') always appear... it's not a new issue. So I might not be the problem... 

See you on IRC ;)

Comment 5 manstis 2013-10-30 11:18:23 UTC
This was a problem within KieBuilderImpl for resources that were not inside a package (i.e. "<project-root>/project.imports" in this case). Mario made KieBuilderImpl more robust and we filter non-package resources from incremental builds. The project was successfully building, so the message remained correct; but incremental build failed. Anyway.. fixed now.

Comment 7 Tomas David 2013-12-13 15:40:56 UTC
Verified on BPMS 6.0.0.ER5.


Note You need to log in before you can comment on or make changes to this bug.