Unable to use methods such as findElementByAccessibilityId(String) in Appium with Java - appium-android

I am new to Appium and have configured my project to use Appium Java Client v8.1.1
When I try to use methods such as findElementByAccessibilityId(String), Eclipse thows me this error - The method findElementByAccessibilityId(String) is undefined for the type AndroidDriver
driver initialization is as below:
AndroidDriver driver = new AndroidDriver(url, capabilities);
Could it be a wrong version that I am using?

Related

ClassCastException when sbt sync, getting class java.lang.UnsupportedOperationException cannot be cast to class xsbti.FullReload

I recently upgraded to the m1 mac. And am trying to set up my scala environment for a project. However, I'm getting this error when I'm trying to get my sbt to sync.
[error] [launcher] error during sbt launcher: java.lang.ClassCastException: class java.lang.UnsupportedOperationException cannot be cast to class xsbti.FullReload (java.lang.UnsupportedOperationException is in module java.base of loader 'bootstrap'; xsbti.FullReload is in unnamed module of loader 'app')
I was on corretto at first. But then I read somewhere and downloaded temurin via installing through sdk using
sdk install java
sdk install sbt
After installing it, I'm able to run sbt on the project in my terminal. However, within Intellij (even after changing the java sdk to temurin). I'm still getting that error.
The solution that I came upon to fix this was by using the right Java sdk. Using Corretto wasn't working, so I used sdkman to download java sdk instead. It downloaded Java Temurin, and i then changed to use Temurin. It worked after.

How to find JCDIWebListener class for IBM WebSphere Application Server version 9.0.0.10?

I try to start the Enterprise Application in WebSphere Application Server version 9.0.0.10 and there is missing class com.ibm.ws.webbeans.services.JCDIWebListener.
Fix pack for version 9.0.0.10 didn't help for this. There still are warning that prevents application starting in SystemLog.log file:
000000a7 annotation W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses SRVE8000W: Skipped class that failed to initialize for annotation scanning.
java.lang.ClassNotFoundException: com.ibm.ws.webbeans.services.JCDIWebListener
Where to get that class if latest fix pack won't bring that?
Or is there other libraries where to get that class? I'm running on Java version = 1.8.0_191, Java Runtime Version = 8.0.5.26

Class not found exception "java.time.temporal.TemporalField" when connecting to jdbc:postgresql from Matlab

I'm trying to connect to a PostgreSQL database from Matlab. This is my code:
javaclasspath('/usr/share/java/postgresql-jdbc4.jar');
properties = java.util.Properties;
properties.setProperty('user', '********');
properties.setProperty('password', '********');
driver = org.postgresql.Driver;
url = 'jdbc:postgresql://127.0.0.1:5432/DBNAME';
connection = driver.connect(url, properties)
I get the following exception:
Error using org.postgresql.Driver/connect
Java exception occurred:
java.lang.NoClassDefFoundError: java/time/temporal/TemporalField
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:322)
at org.postgresql.Driver.makeConnection(Driver.java:404)
at org.postgresql.Driver.connect(Driver.java:272)
Caused by: java.lang.ClassNotFoundException: java.time.temporal.TemporalField
<SNIP>
I'm running Matlab R2012a on Debian. Everything was installed from the testing repository. Java is openjdk version "1.8.0_144" and PostgreSQL is 9.6.5-1.
It seems you don't use the jdk 1.8.
See same topic
Could you try to execute java -version to be sure?
[edit]
This error happens because Matlab 2012 does not use Java 8. To confirm, run this in the Matlab shell, not in your system terminal:
java -version
It is posible to make Matlab use a different JDK, but this can cause more problems than it solves. The better solution is to get the PostgreSQL JDBC 4.0, which is suitable for Java 6.
Direct link: https://jdbc.postgresql.org/download/postgresql-42.1.4.jre6.jar

Cannot instantiate router [consistent-hashing-pool], defined in [/IO-DNS/inet-address] error in akka/spray

I am trying create a sample akka/spray project from here
While the code compiles successfully in sbt, sbt run command throws me an error
java.lang.IllegalArgumentException: Cannot instantiate router [consistent-hashin
g-pool], defined in [/IO-DNS/inet-address], make sure it extends [akka.routing.R
outerConfig] and has constructor with [com.typesafe.config.Config] parameter
the same code compiles and runs successfully in IntelliJ Idea IDE.
EDIT:
Scala version I am using is 2.11 and related libraries
Akka version. 2.4.0 and spray 1.3.3
Yes , this is occurred if you are using akka version below 2.5.4 , because for lower version need to configure routing , Please follow the link http://doc.akka.io/docs/akka/2.4.0/scala/routing.html for routing in lower version . If you can upgrade the version onwards 2.5.4 then no need to routing.

Groovy Eclipse XML RPC - error detecting run time property

As per this example provided in the groovy site, I have tried to implement an exactly same XML RPC Server on my eclipse.
import groovy.net.xmlrpc.*
import java.net.ServerSocket
def server = new XMLRPCServer()
server.echo = {return it}
def serverSocket = new ServerSocket( 9004 )
server.startServer(serverSocket)
The above code will launch a server on 9004 only when I run from groovy console. When I run the same from Eclipse it fails to run and shows the following exception
Caught: groovy.lang.MissingPropertyException: No such property: echo for class: groovy.net.xmlrpc.XMLRPCServer
at GServer.run(GServer.groovy:7)
Perhaps it is unable to understand the dynamic addition of the new property called echo but I am not sure. How can I fix this?
PS : I am running
Eclipse Galileo 3.5
Groovy eclipse plugin installed
Groovy xml rpc jar is on the classpath
There were some bugs with the launcher in the Groovy-Eclipse that ran on Eclipse 3.5. I'd recommend that you upgrade to Groovy-Eclipse 2.6.0 on Eclipse 3.7. I'd bet that your problem would go away.