Created attachment 865101 [details] Screen shot: Error stack trace from window Description of problem: When export PDF / PNG (both cause same error message) then an error is shown in new window and server.log. Screen shot with stack trace is attached. Version-Release number of selected component (if applicable): 6.0.1 ER1 BPMS How reproducible: Steps to Reproduce: 1. Choose "{Download|Share} process {PNG|PDF}" item in toolbar. Actual results: New window is shown and contains error (attached). Expected results: PDF or PNG is generated into particular package. Additional info: This is some kind of regression. This feature works in 6.0.0 GA. Exceptions from previous reported issues are different.
Is it possible to attach the server logs. They might show something more than whats on the screenshow. This seems to work fine on kie-wb and designer standalone. will keep testing to try to reproduce.
I have already checked that same exception is in server.log. But for sure. I will reproduce this issue tomorrow. The server.log will be attached.
I was able to reproduce this in the community on 6.0.2-SNAPSHOT using modules. It works fine in the version without modules (fat wars).
Currently the module org.jboss.solder does NOT contain the artifact org.jboss.solder:solder-impl:jar as a resource because this artifact contains a webfragment 3.0 descriptor, and is known that webfragments are not loaded from module's resources (but do in the webapp classloader) in Jboss EAP/AS. In the other hand, this issue occurs because some classes from org.jboss.solder:solder-impl:jar artifact are accessing methods from classes in artifact org.jboss.solder:solder-api:jar using "package protected" access modifiers. If both classes are located in same classloader, the "package protected" access modifier allows the method access, but if these classes are located in different modules classloaders (in this case, solder and webapp modules), an IllegalArgumentException is thrown because the access modifier does not allow the method call (although they're in same packages). So this fix does: - Add solder-impl jar artifact as a module resource for org.jboss.solder module - Generate a jar artifact "on the fly" with the webfragment descriptor that contains the solder-impl artifact and add this generated into the resulting webapp. In addittion, some issue have been detected due to missing module dependencies to javax.api. Some javax.api classes are located in the jdk runtime jar, so they cannot be detected using the maven dependency pom files. In order to ensure the runtime stability for the distribution a dependency to javax.api module has been added in all static modules. Commit in 6.0.x -> https://github.com/droolsjbpm/kie-wb-distributions/commit/186f79a071749d3cf5eb1ffc424df8b316462826
*** Bug 1069651 has been marked as a duplicate of this bug. ***
Verified on 6.0.1.ER2. "{Download|Share} process {PNG|PDF}" item in toolbar now produces the expected result with no exceptions present in the log.