Showing posts with label java. Show all posts
Showing posts with label java. Show all posts
Thursday, September 20, 2012
very cool maven repository search engine
I could find every jar artifact i needed there from any version:
http://www.jarvana.com/jarvana/
Monday, September 03, 2012
What they didn't tell you about selenium firefox webdriver
i wasted lot of time on this, no need for you to waste as well.
i don't know if its specific to my os. (win 2003 unfortunately).
but i'm using latest selenium 2.25.0 and nomatter what using FireFoxDriver
i continuously got this error while running selenium from java:
org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01' System info: os.name: 'Windows 2003', os.arch: 'x86', os.version: '5.2', java.version: '1.7.0_03' Driver info: driver.version: FirefoxDrivernow nomatter what i did, updated the system property path for firefox bin, make selenium in a different folder THE ONLY THING THAT WORKED IS THIS: copy Mozilla Firefox into a folder iwth no spaces! like D:\dev\firefox\ now puet d:\dev\firefox in your PATH! THIS WORKED! :)
selenium Failed to start: SocketListener0@0.0.0.0:4444 Exception in thread "main" java.net.BindException: Selenium is already running on port 4444.
08:02:53.269 WARN - Failed to start: SocketListener0@0.0.0.0:4444 Exception in thread "main" java.net.BindException: Selenium is already running on port 4444. Or some other service is. at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:473) at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:281) at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:244) at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:54)if you get this and you don't see any process capturing port 4444 try this: http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer (might happen when you try to start selenium locally with java -jar)
Sunday, August 26, 2012
Unsatisfied dependency expressed through constructor argument with index 1 of type [int]: Could not convert constructor argument value of type [java.lang.String]
if you get this in spring:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'internalHttpServer' defined in class path resource [my.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [int]: Could not convert constructor argument value of type [java.lang.String] to required type [int]: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "${port}"while you were trying to instantiate a spring bean with a few arguments. the reason might be that you first define the bean and only then reference the properties file, so it would just try to enter "${port}" into the value of the int. it did not recognize the port because the property files reference was defined after the bean definition. bum...
Subscribe to:
Posts (Atom)