appium / appium/java-client

Getting java.lang.ExceptionInInitializer Error with POM model

Open
#1,125 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

Description

Getting issues while initializing page factory. Same code worked perfectly with Selenium version 2.53.0 and java-client 3.3.0. When I upgraded selenium to 3.141 and java-client to 7.0.0 I started getting this error.
I am using Cucumber based POM Framework with for Maven & Appium as build test tools. Have referred issues related to Page Factory for Appium but none of it helped.

Can anyone please suggest what am I missing here? Thanks for help!

Environment

  • java client build version or git revision if you use some shapshot:
  • Appium server version or git revision if you use some shapshot:
  • Desktop OS/version used to run Appium if necessary:
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:
  • Mobile platform/version under test:
  • Real device or emulator/simulator:

Details

Please provide more details, if necessary.

Code To Reproduce Issue [ Good To Have ]

https://gist.github.com/Nannies/18c37c632bb8b16dab458a509ad24498

Ecxeption stacktraces

https://gist.github.com/Nannies/18c37c632bb8b16dab458a509ad24498

If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked gist containing the reproduction and exception stack trace, then compare the reported Selenium and java-client versions. Fill in the missing environment details and verify the failure with the provided Maven, Cucumber, POM, and Appium setup; done requires a confirmed cause and a reproducible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.