Bug 1094295
| Summary: | Project dependencies: warnings and errors when using transitive dependencies | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Marek Winkler <mwinkler> | ||||
| Component: | Business Central | Assignee: | Mario Fusco <mfusco> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Marek Winkler <mwinkler> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.2 | CC: | mbattagl | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-05-06 11:52:54 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: |
|
||||||
Possibly a duplicate of BZ 1092860. *** This bug has been marked as a duplicate of bug 1092860 *** I have the same problems of Marek Winkler.
If I add a dependency in my pom.xml, for example:
<groupId>org.renjin</groupId>
<artifactId>renjin-script-engine</artifactId>
<version>0.7.0-RC7</version>
(it is used in my custom accumulate),
the drl editor widget in the workbench UI remains frozen for 10 minutes ca. After this time I can see all beans, that are transitive dependencies, listed on the left side of drl editor as beans of my business model (for example google, apache packages and so on).
To reproduce you can use this test project: https://github.com/marcobattaglia/TestCompilazione
A "fast and dirty" solution on workbench is here:
https://github.com/marcobattaglia/kie-wb-common/blob/master/kie-wb-common-services/kie-wb-common-datamodel/kie-wb-common-datamodel-backend/src/main/java/org/kie/workbench/common/services/datamodel/backend/server/cache/LRUProjectDataModelOracleCache.java#L97 to Line 110
Hi Marco, could you please specify which version of BRMS you are using? Thanks! It's a fork from github of 3 days ago: https://github.com/marcobattaglia/kie-wb-common/blob/master/pom.xml |
Created attachment 892524 [details] server.log with warnings and errors Description of problem: Business-central produces warnings and errors in server.log when using a dependency declaring its own dependencies. Version-Release number of selected component (if applicable): BRMS/BPMS 6.0.2 ER2 Steps to Reproduce: I have run into a possible problem with using a project using transitive dependencies in business-central. What I did: 1. prepare a Maven settings.xml declaring a separate directory for a local maven repo, where XXXXX is a path to empty directory: <settings> <localRepository>XXXXX</localRepository> </settings> 2. start 6.0.2.ER2 business-central with the following system property defined in standalone.xml (where PATH is the path to the settings.xml created in previous step): <property name="kie.maven.settings.custom" value="PATH/settings.xml"/> 3. in business-central, create a new empty project and use Project Editor to add a dependency to the artifact batik:batik-script:1.6-1 (this artifact is in Maven central and declares several dependencies), save changes Server.log displays several warnings such as: 13:35:34,550 WARN [org.guvnor.common.services.builder.Builder] (pool-13-thread-3) Verification of class org.apache.batik.ext.awt.image.codec.tiff.TIFFImage failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly. 4. in business-central, create a new DRL file - it will take some time to open the editor and the server.log contains a lot of the following errors: 13:22:06,232 ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-mwinkler/127.0.0.1:8080-1) null Probably each error is related to one class in the jar added as a dependency. However, the editor opens (after roughly a minute) and project build succeeds. Therefore, this might be only a problem with indexing the classes in the dependency jar. Could you please investigate this use-case and verify whether the warnings and errors are expected in this case? Other information: I have checked that KIE-CI has downloaded transitive dependencies into local maven repo, so the artifacts should be available for business-central.