I'm sorry but I'm studying
Faced with the problem on test runs from IDE to FF 32. On Virtual Machine (VirtualBox) tests are run (where I run the selenium-server-standalone-2.43.0) everything OK!!!
And start with IDE Netbeans, just open a browser and nothing else happens. After the test falls
Failed to connect to binary FirefoxBinary (/ usr / bin / firefox) on port 7055; process output follows
But the / usr / bin / firefox looked there present binary
Sin on the fact that in my pom file is connected firefox-driver-2.42.2 (2.43.0 connect but does not work with the source code repository tightened http: //repo1.maven.o...org/seleniumhq/ and I NetBeans sees only the latest version 2.42.2 jar and 2.43.0 pom)
Also tried to connect firefox-driver-2.43.0 pom nothing has changed.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.43.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>2.43.0</version>
<type>pom</type>
</dependency>
Related
Can anyone help me to solve this issue?
I have Google Chrome version 107.0.5304.6, and I'm using WebDriverManager to get the same chromeDriver version. I download Google Chrome version 106 and run my tests and this issue didn't happen, but my Google Chrome updates automatically from version 106 to 107 and the warning happens again.
I had a similar issue and resolved using the following steps:
Step1: Add the following devtools dependency:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-devtools-v88</artifactId>
<version>4.0.0-beta-1</version>
</dependency>
Step2: change v88 to the Chrome Version you have on your machine. e.g., v106 or v107
Step3: change the beta version to the latest one. e.g., 4.0.0-beta-1 to 4.5.3.
just download the chrome driver version 107 and update in your dependency folder
https://chromedriver.storage.googleapis.com/index.html?path=107.0.5304.62/
this resolves the issue
As of Selenium CHANGELOG CDP version 107 is supported starting selenium v4.6.0
you just need to update selenium java version to 4.6.0 or later
<properties>
<selenium.version>4.6.0</selenium.version>
</properties>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
I'm trying to install and connect to a local Informix 14 for testing on Windows 10. My maven POM has:
<dependency>
<groupId>com.ibm.informix</groupId>
<artifactId>informix-jdbc-complete</artifactId>
<version>4.50.4.1</version>
<scope>test</scope>
</dependency>
I'm trying direct connection
database.url = jdbc:informix-direct://sysmaster
database.driver=com.informix.jdbc.IfxDirectConnection
But I'm getting class not found.
Any ideas?
You shouldn't use 'jdbc:informix-direct:'. That was reserved for UDR written in Java.
Use "jdbc:informix-sqli", something like:
Class.forName("com.informix.jdbc.IfxDriver");
conn = DriverManager.getConnection("jdbc:informix-sqli://420ito:9088/stores7:INFORMIXSERVER=ids1410;user=informix;password=mypassword;");
I have a program that executes a command jpub like this
executeCommand("jpub -u "+args[0]+"/"+args[1]+" -package="+args[3]+" -codegen=iso -url="+args[2]+" -plsqlpackage="+resultSetMain.getString(1)+" -dir "+args[4]+" -case=lower -plsqlfile="+resultSetMain.getString(1)+"_wrapper.sql,"+resultSetMain.getString(1)+"_wrapper_drop.sql -s "+resultSetMain.getString(1)+":"+resultSetMain.getString(1)+"_OUT -compile=false -omit_schema_names");
when execCommand is simply a private function that gets a runtime instance and executes the command :
Process pr = rt.exec(command);
I'm using maven to build my project.
when I run my program with eclipse Juno everything is fine, but when I want to migrate to the latest version of eclipse when I run mvn clean install i had this error
Exception in thread "main" java.lang.NoClassDefFoundError: sun/io/CharToByteConverter
I have tried to build a jar converter that contains this class and to add it to my project but this is not working
<repositories>
<repository>
<id>my-local-repo</id>
<url>file://${basedir}/lib</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>ma.me</groupId>
<artifactId>converter</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
How can I solve this problem?
After reading the documentation of the JPublisher I have found a section that speaks about how to specify JVM through which JPublisher is invoked doc.
We can use the -vm=value parameter where the value is the location of JDK6or 7, so you can run the command like this:
executeCommand("jpub -u "+args[0]+"/"+args[1]+" -package="+args[3]+" -codegen=iso -url="+args[2]+" -vm="+args[8]+" -plsqlpackage="+resultSetMain.getString(1)+" -dir "+args[4]+" -case=lower -plsqlfile="+resultSetMain.getString(1)+"_wrapper.sql,"+resultSetMain.getString(1)+"_wrapper_drop.sql -s "+resultSetMain.getString(1)+":"+resultSetMain.getString(1)+"_OUT -compile=false -omit_schema_names");
In our exemple args[8] contains the path of executable java 6 for exemple : D:\Java\jdk6\bin\java
I'm trying to run a Beam pipeline with SQL transforms, parsed with ZetaSQL. I begin with setting options with
options.setPlannerName("org.apache.beam.sdk.extensions.sql.zetasql.ZetaSQLQueryPlanner");
When I try creating my SqlTransform with any given query, I get
java.util.ServiceConfigurationError: org.apache.beam.repackaged.sql.com.google.zetasql.ClientChannelProvider: Provider org.apache.beam.repackaged.sql.com.google.zetasql.JniChannelProvider could not be instantiated
at java.util.ServiceLoader.fail (ServiceLoader.java:232)
at java.util.ServiceLoader.access$100 (ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService (ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next (ServiceLoader.java:404)
at java.util.ServiceLoader$1.next (ServiceLoader.java:480)
at org.apache.beam.repackaged.sql.com.google.zetasql.ClientChannelProvider.loadChannel (ClientChannelProvider.java:31)
...
at org.apache.beam.sdk.extensions.sql.SqlTransform.expand (SqlTransform.java:82)
at org.apache.beam.sdk.Pipeline.applyInternal (Pipeline.java:539)
at org.apache.beam.sdk.Pipeline.applyTransform (Pipeline.java:473)
at org.apache.beam.sdk.values.PCollection.apply (PCollection.java:357)
...
I've added the following relevant dependencies to my POM in maven:
<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>beam-runners-google-cloud-dataflow-java</artifactId>
<version>2.15.0</version>
</dependency>
<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>beam-sdks-java-extensions-sql</artifactId>
<version>2.16.0</version>
</dependency>
Is there something else I'm missing here?
Unfortunately the ZetaSQL planner will today not work from a MAC, or older versions of Linux. Please see the comment from Rui in:
ZetaSQL Sample Using Apache beam
Looks like this PR maybe useful here ( I have not dug deeply into this to confirm):
https://github.com/google/zetasql/pull/3
As a workaround could you try on a newer version of linux? Maybe in a container?
This is resolved in the latest version of ZetaSQL, which will be used with Beam 2.21. You can also try pulling down a newer version of ZetaSQL (at least 2020.03.2):
<dependency>
<groupId>com.google.zetasql</groupId>
<artifactId>zetasql-jni-channel</artifactId>
<version>2020.03.2</version>
</dependency>
I want to run my WebDriver test cases on Chrome on remote Ubuntu server. I have installed latest Chrome on that server but I've been getting these errors,when I used this:
System.setProperty("webdriver.chrome.driver","/usr/bin/chromedriver");
driver = new ChromeDriver();
Error1:
The driver is not executable: /usr/bin/chromedriver to correct I made it executable using sudo 777 chromedriver then I got
Error2:
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally to fix this I updated selenium jar dependencies to 2.40.0 and since then, I've been getting
Error3:
java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices
Query: Now I know that HasInputDevices has been moved to org/openqa/selenium/Interactions/ then why it is still looking in old directory path org/openqa/selenium/HasInputDevices. How to let it find at its actual directory.
1. I have updated dependencies. 2. I have tried to use mvn install so that it download what is written in pom.xmlbut it's looking in old directory.How to resolve this error, I don't want to downgrade selenium APIs, because then Chrome exits unexpectedly.
Had a similar problem, getting ClassCastException where HasInputDevices was incompatible with FirefoxDriver.
Solved by changing the import to another package:
From
import org.openqa.selenium.Mouse;
To
import org.openqa.selenium.interactions.Mouse;
The exact error stack I encountered was:
java.lang.ClassCastException: org.openqa.selenium.firefox.FirefoxDriver cannot be cast to org.openqa.selenium.interactions.HasInputDevices.
I had same problem and way to resolve was next:
remove all unused dependencies from POM.xml
for example if u use only FirefoxDriver and in POM.xml there are anothers one (Chrome, Common, remote) delete them
I found the solution which worked for me. I was using a dependency which had a transitive dependency on selenium-remote-driver version 2.34.0, remove this dependency and it will work.This dependency was:
<dependency>
<groupId>com.github.detro.ghostdriver</groupId>
<artifactId>phantomjsdriver</artifactId>
<version>1.1.0</version>
</dependency>
OR
<dependency>
<groupId>com.github.detro.ghostdriver</groupId>
<artifactId>phantomjsdriver</artifactId>
<version>1.0.4</version>
</dependency>