Hi everyone,
When I import the BOS file I can't execute the process, he always shows the following error
Error when trying to create bar for "my process Pool name" (1.0)
Hi everyone,
When I import the BOS file I can't execute the process, he always shows the following error
Error when trying to create bar for "my process Pool name" (1.0)
Thank for your reply,
I found my project details.
The information consists of the following:
!ENTRY org.bonitasoft.studio.engine 1 0 2022-06-14 15:55:17.261
!MESSAGE Attempt to login as User2
!ENTRY org.bonitasoft.studio.engine 1 0 2022-06-14 15:55:18.224
!MESSAGE Login successful.
!ENTRY org.bonitasoft.studio.engine 1 0 2022-06-14 15:55:18.308
!MESSAGE Building bar for process Pool (1.0 )...
!ENTRY org.bonitasoft.studio.common 4 0 2022-06-14 15:55:20.882
!MESSAGE Failed to add Process resources from configuration.
!STACK 0
org.bonitasoft.studio.engine.export.BarCreationException: Failed to add Process resources from configuration.
at org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:122)
at org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:199)
at org.bonitasoft.studio.engine.operation.DeployProcessOperation.deployProcess(DeployProcessOperation.java:176)
at org.bonitasoft.studio.engine.operation.DeployProcessOperation.deploy(DeployProcessOperation.java:156)
at org.bonitasoft.studio.engine.operation.DeployProcessOperation.run(DeployProcessOperation.java:115)
at org.bonitasoft.studio.engine.operation.RunProcessOperation.run(RunProcessOperation.java:90)
at org.bonitasoft.studio.engine.command.RunProcessCommand$1.run(RunProcessCommand.java:140)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.bonitasoft.studio.groovy.provider.JarExportFailedException: Error while building Jar for Groovy scripts in Process dependencies.
Please check scripts in Development -> Manage Groovy scripts...
BonitaXML.groovy (line 8, col 238): The package javax.xml.transform is accessible from more than one module: <unnamed>, java.xml
at org.bonitasoft.studio.groovy.provider.GroovyScriptBarResourceProvider.addGroovyCompilationUnitToClasspath(GroovyScriptBarResourceProvider.java:121)
at org.bonitasoft.studio.groovy.provider.GroovyScriptBarResourceProvider.addProvidedScriptsToClasspath(GroovyScriptBarResourceProvider.java:89)
at org.bonitasoft.studio.groovy.provider.GroovyScriptBarResourceProvider.addResourcesForConfiguration(GroovyScriptBarResourceProvider.java:75)
at org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:120)
... 7 more
It looks like one of your project dependencies in not compliant with Java 11 and prevent the compilation of some classes from the project.
I tried to change JAVA to version 11 and the result is the same as the above error
It is not about a java version to update. It is required to use Java 11. But one of your connectors or script uses a dependency not compatible with java 9+ module system (eg: old versions of xerces).
You may use a terminal and run the following maven command from the root of your project to have a report of all your dependencies:
mvn dependency:tree
You can post the result if you need help to identify the culprit
Hi!,
This is the result of the execution
C:\Users\USER>cd C:\BonitaStudioCommunity-2022.1-u0\workspace\exam_test
C:\BonitaStudioCommunity-2022.1-u0\workspace\exam_test>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.company:my-project >-----------------------
[INFO] Building exam_test 0.0.1
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/glassfish/jaxb/txw2/2.4.0-b180608.0325/txw2-2.4.0-b180608.0325.pom
Downloading from jvnet-nexus-releases: https://maven.java.net/content/repositories/releases/org/glassfish/jaxb/txw2/2.4.0-b180608.0325/txw2-2.4.0-b180608.0325.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.401 s
[INFO] Finished at: 2022-06-25T18:29:34+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project my-project: Could not resolve dependencies for project com.company:my-project:jar:0.0.1: Failed to collect dependencies at org.bonitasoft.connectors:bonita-connector-webservice:jar:1.3.3 -> com.sun.xml.ws:jaxws-rt:jar:2.3.1 -> com.sun.xml.ws:policy:jar:2.7.5 -> org.glassfish.jaxb:txw2:jar:2.4.0-b180608.0325: Failed to read artifact descriptor for org.glassfish.jaxb:txw2:jar:2.4.0-b180608.0325: Could not transfer artifact org.glassfish.jaxb:txw2:pom:2.4.0-b180608.0325 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [releases.java.net (http://maven.java.net/content/repositories/releases/, default, releases+snapshots), jvnet-nexus-staging (http://maven.java.net/content/repositories/staging/, default, releases+snapshots), eclipse (http://download.eclipse.org/rt/eclipselink/maven.repo, default, releases+snapshots), jvnet-nexus-snapshots (http://maven.java.net/content/repositories/snapshots/, default, snapshots)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException