utam-java-recipes icon indicating copy to clipboard operation
utam-java-recipes copied to clipboard

[Bug]: Error during executing 'mvn clean install' < method container in class utam.core.framework.base.BasePageObject cannot be applied to given types;

Open amolkcyb opened this issue 8 months ago • 1 comments

Actual behavior

Getting following error message when executing "mvn clean install" command from project root directory from command line for java: [INFO] Compiling 18 source files to ...\utam-java-recipes\utam-preview\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /.../utam-java-recipes/utam-preview/src/main/java/utam/tests/pageobjects/impl/UtamParentImpl.java:[28,16] method container in class utam.core.framework.base.BasePageObject cannot be applied to given types; required: utam.core.element.BasicElement found: utam.core.element.BasicElement,boolean reason: actual and formal argument lists differ in length [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for utam-java-recipes 1.0-SNAPSHOT: [INFO] [INFO] utam-java-recipes .................................. SUCCESS [ 0.231 s] [INFO] utam-preview ....................................... FAILURE [ 4.333 s] [INFO] utam-tests ......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.645 s [INFO] [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project utam-preview: Compilation failure [ERROR] /.../utam-java-recipes/utam-preview/src/main/java/utam/tests/pageobjects/impl/UtamParentImpl.java:[28,16] method container in class utam.core.framework.base.BasePageObject cannot be applied to given types; [ERROR] required: utam.core.element.BasicElement [ERROR] found: utam.core.element.BasicElement,boolean [ERROR] reason: actual and formal argument lists differ in length

What is your expected behavior?

Java compilation should be completed successfully without any errors.

Steps to reproduce

  1. Clone utam-java-recipes project.
  2. From project root, execute "mvn clean install" (as mentioned in steps in Readme.md file)
  3. Import as a maven project into Eclipse.
  4. In main pom.xml file, update version as 4.0.1 for salesforce-pageobjects and utam-core dependencies.
  5. From project root, on command line, execute 'mvn clean install'
  6. See that above mentioned error occurs.

amolkcyb avatar May 14 '25 06:05 amolkcyb

With default latest versions (instead of 4.0.1) for both (utam-core and salesforce-pageobjects) dependencies, compilation completed successfully.

amolkcyb avatar May 14 '25 06:05 amolkcyb