Error in FileNotFoundException

58 views
Skip to first unread message

Nandha

unread,
Feb 7, 2020, 2:43:11 PM2/7/20
to seleniu...@googlegroups.com
HI All
How to clear the below error message.
log4j:ERROR Could not read configuration file [/C:/workspace/../../target/test-classes/configfile/log4j.properties].
java.io.FileNotFoundException: C:\workspace\a../..\target\test-classes\configfile\log4j.properties (The system cannot find the path specified)

Joe Ward

unread,
Feb 7, 2020, 3:21:07 PM2/7/20
to seleniu...@googlegroups.com
Provide the correct path, that will fix the problem.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALOw7VYAbe1r9CkdLXxMr8ac%3D_P18hC6v18buyYSBna-%3DLmOPA%40mail.gmail.com.

nandha kumar

unread,
Feb 9, 2020, 9:08:02 AM2/9/20
to seleniu...@googlegroups.com
Can you please help me on which file I need to provide. I am using junit 4 with cucumber frameworks 

Sent from my iPhone

On Feb 7, 2020, at 3:20 PM, Joe Ward <ddl...@gmail.com> wrote:



nandha kumar

unread,
Feb 10, 2020, 12:33:33 PM2/10/20
to seleniu...@googlegroups.com
Hi can someone help me in this 

Sent from my iPhone

On Feb 9, 2020, at 9:07 AM, nandha kumar <nnandh...@gmail.com> wrote:

Can you please help me on which file I need to provide. I am using junit 4 with cucumber frameworks 

Jaspreet Singh

unread,
Feb 10, 2020, 10:40:11 PM2/10/20
to Selenium Users
What are you trying to do here, why are you trying to read a file??



On Monday, February 10, 2020 at 12:33:33 PM UTC-5, nandha kumar wrote:
Hi can someone help me in this 

Sent from my iPhone

On Feb 9, 2020, at 9:07 AM, nandha kumar <nnandh...@gmail.com> wrote:

Can you please help me on which file I need to provide. I am using junit 4 with cucumber frameworks 

Sent from my iPhone

On Feb 7, 2020, at 3:20 PM, Joe Ward <ddl...@gmail.com> wrote:


Provide the correct path, that will fix the problem.

On Fri, 7 Feb 2020 at 19:42, Nandha <nnandh...@gmail.com> wrote:
HI All
How to clear the below error message.
log4j:ERROR Could not read configuration file [/C:/workspace/../../target/test-classes/configfile/log4j.properties].
java.io.FileNotFoundException: C:\workspace\a../..\target\test-classes\configfile\log4j.properties (The system cannot find the path specified)

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.

Nandha

unread,
Feb 11, 2020, 9:55:34 AM2/11/20
to seleniu...@googlegroups.com
hi Jaspreet 

 the path for the log4j properties in wrongly configured. i am trying to correct the path for this.


To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e528d2b4-7117-4fd9-b560-c303544f8ab5%40googlegroups.com.

Abhinay Kumar

unread,
Feb 11, 2020, 1:46:58 PM2/11/20
to seleniu...@googlegroups.com
Can you please change your workspace to c:/user/public and then check whether this error comes or not.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.

Advance Automation

unread,
Feb 12, 2020, 1:07:06 PM2/12/20
to Selenium Users
Clearly from the error message - The file is not found at the location mentioned. Have you checked what path your code has(absolute/relative)? Have you checked if the file exists? Have you checked if the file has been copied to your build location?


It would be better if you include more information as mentioned in the group policy(copied below) . Without knowing these details all suggestions provided would not help you.

Ensure you share the following when asking questions. This will help you get answers fast.

* Sample code that you are using which can reproduce the problem.
* What version of Selenium are you using ?
* Do you have the link to a public facing site which can be used to reproduce the problem (or) atleast a complete HTML page source of the page ?
* What flavor of browser are you using and what is its version ?
* Operating system name and version.
* Details of the error/stacktrace etc which shows the details of the problem you are facing.
Reply all
Reply to author
Forward
0 new messages