Appium Setting issue - appium

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException:
Unable to create a new remote session. Please check the server log for more
details.
Original error: An unknown server-side error occurred while processing the
command.
Original error: Cannot verify the signature of
'C:\Users\HP\AppData\Roaming\npm\node_modules\appium\node_modules\appium-
uiautomator2-server\apks\appium-uiautomator2-server-v4.17.4.apk'. Original
error: java.lang.UnsupportedClassVersionError:
com/android/apksigner/ApkSignerTool has been compiled by a more recent
version of the Java Runtime (class file version 53.0), this version of the
Java Runtime only recognizes class file versions up to 52.0

This Could be when the appium is not shutting down smoothly,
I have just restarted my Pc and then did not see such error.

I have resolved it.The version of build tool folder in your directory:'C:\Users\admin\AppData\Local\Android\Sdk\build-tools' do not beyond the build tool version of your application using.It may be a bug of APPIUM.

Related

Javac throwing unsupported error while Eclipse works fine

I tried to use cmd prompt to execute my java file but I got this error that says
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: MovingObject has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
but when I tried executing my java file on eclipse it works perfectly fine, its just that I want to try and run it to the command prompt to see if both ways works. Tried searching about the problem but most of the other problems is way back from long ago.
The problem was that my computer was confused as to what JRE to use. I have manually installed JDK and JRE 8 before.
So when I tried checking it through cmd.
javac -version is Java 16
while, java -version is Java 8
So, I uninstalled my Java 8 since I have installed JDK 16 and JRE version 16 on my eclipse which confuses my computer as to what version to use. That's pretty much it.

"main has been compiled by a more recent version of the Java Runtime", Unsure of what the issue is

I was trying to compile and run a java file using command prompt, first used "javac main.java" then ran the class file with "java main"
Upon running the class file, I'm hit with an error:
"Error: A JNI error has occurred, please check your installation and
try again Exception in thread "main"
java.lang.UnsupportedClassVersionError: main has been compiled by a
more recent version of the Java Runtime (class file version 61.0),
this version of the Java Runtime only recognizes class file versions
up to 52.0"
I then found this possible solution, and updated my User Variables "Path" to jdk17.0.1\bin, and my System Variables "Path" to jre1.8.0_311\bin. I was a bit confused on which Path I was to updated/change so I just updated both...? Not sure if this was the correct thing to do.
In addition, both java -version and javac -version output the latest version "17.0.1" and "jre1.8.0_311".
java -version and javac -version :
Error Message :
What confuses me is that running code in eclipse works fine, so I'm not quite sure that it's an issue with Path so I'm not sure what the issue is.

Miworkplace : An error has occured. See the log file (RPG)

I am learning RPG, and I have to install Miworkplace, I am trying to understand the tutoriel below:
https://miworkplace.com/docs/
I installed Java11 on my Windows 10
https://miworkplace.com/docs/Requirements
I downloaded Miworkplace on my desktop
When I launch MiWorkplace, I have an error message ?
"An error has occured. See the log file"
I don't understand the problem ??
I deleted 3 times the folder -> workspace but I always have the same problem.
Thank you for your help.
MiWorkplace is an Eclipse based application. You will find the log file in the workspace folder: workspace/.metadata/.log
https://miworkplace.com/docs/Log_File
HTH
Older versions of MiWorkplace required the installation of Java prior to running MiWorkplace. This was documented on the download page.
Recent versions of MiWorkplace do not require a separate installation of Java anymore.
The latest version of MiWorkplace/Pub400 can be downloaded here: https://miworkplace.com

unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings

The following error is occurring while compiling my grails application. I'm using jdk-7u79-windows-x64, I already added the location 'C:\Program Files\Java\jdk1.7.0_79\bin' to my path in Environment Variables. But still the probem exist. My OS is windows 10 (64 bit) and I'm using ggts-3.6.4 (64 bit)
Could anyone tell me why this is happening?
.Error
|
Compilation error: startup failed:
General error during semantic analysis: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
java.lang.ClassNotFoundException: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.findJavac(JavacJavaCompiler.java:190)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:49)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:102)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:548)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:517)
at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:59)
at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:215)
at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1161)
at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:1212)
The Groovy-Grails Tool Suite is no longer supported software. I recommend using IntelliJ IDEA instead. See my answer to this question for more details: https://stackoverflow.com/a/38938933/2970843.
First make sure that you have set the path correctly(I had some problems with that).
Also use the java -version command in cmd to see if you are using the same jdk you've set or not
I had set the JAVA_HOME correctly but I had 2 other versions of jdk and the newest was shown as java version,so I deleted them and my problem was solved,hope this workes for you

Form Runner Xerces version error

I just installed Orbeon 4.4 under Tomcat 7.0.42.
From http://<mylocalhost>:8080/orbeon/home I click on the Form Runner Home link.
I get an error box: There was an error running the process. Please contact the application administrator.
In the Tomcat's log there is this error:
--------------------------------------------
Looking for a valid Parser...
Checking for Xerces, found version Xerces-J 2.11.0 needed version Xerces-J 2.9.0
Warning: Failed find a valid Parser!
Please add an appropriate Parser to the class-path, e.g. in the 'endorsed' folder of the servlet container or in the 'endorsed' folder of the JRE.
Using parser org.orbeon.oxf.xml.xerces.XercesSAXParser
Using transformer com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
--------------------------------------------
I tried to put the 2.9.0 instead the native 2.11.0 in the orbeon/WEB-INF/lib folder but the application doesn't start.
It's a warning, not an error. Orbeon Forms should run just fine with the newer parser.

Resources