Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange "log4j:ERROR setFile(null,true) call failed" #39

Open
cxc opened this issue Nov 28, 2013 · 3 comments
Open

Strange "log4j:ERROR setFile(null,true) call failed" #39

cxc opened this issue Nov 28, 2013 · 3 comments

Comments

@cxc
Copy link

cxc commented Nov 28, 2013

Whenever I do the keyword: Open Browser ${URL} firefox, I get this strage error: http://pastebin.com/TnhaE4Xh .

The tests still run fine. But it seems that because of this error, I cannot use ff_profile_dir argument to specify a profile. Also, If I use ffProfileDir instead of ff_profile_dir, I get this error http://pastebin.com/Kx5cfQSx .

I started getting this error on Selenium2Library12.0.0.13-jar-with-dependancies and I still get it with Selenium2Library1.4.0.0-jar-with-dependancies. I'm not entirely sure if this is something related to my environment or jython and I was wondering if anybody can help me out.

I am using the standalone robotframework jar for Selenium2Library1.4, but I used the python+jython version of RF when I was using Selenium2Library1.2.

Thanks.

@MarkusBernhardt
Copy link
Owner

This is somewhat weird, because the Selenium2Library has no runtime dependency to log4j. Log4j is also not included in the fat jar. Could you search in all of your jars in the classpath for a log4j.properties file? Simply unzip every jar in a directory.

@cxc
Copy link
Author

cxc commented Dec 2, 2013

Hello. I checked my project and it seems that I had log4j.jar included in the classpath. I removed it and I dont get that error.

But it seems that selenium still isn't using the profile that I specify.

@MarkusBernhardt
Copy link
Owner

Ok. Now I see the problem. The Java code of the Open Browser code is from a time, when I did not understand how named arguments are working. It still checks for null and not "NONE".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants