I'm trying to execute html tests (recorded with Selenium IDE on firefox) with the following command :
$> java -jar /path/to/selenium-html-runner-3.0.0.jar -htmlSuite "*firefox" "http://www.google.com" "/path/to/test.html" "/path/to/results.html"
I'm getting the following error :
$> Multi-window mode is longer used as an option and will be ignored.
Exception in thread "main" java.lang.NullPointerException
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.validateArgs(HTMLLauncher.java:261)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:218)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)
Any ideas of want is wrong here ?
Thanks !
This seems to be a bug that was fixed in the recently released 3.0.1.
Related
Whent trying to run asadmin im getting this error:
/opt/glassfish5/bin $ ./asadmin start-domain
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.glassfish.hk2.api.DynamicConfigurationService.createDynamicConfiguration()" because "dcs" is null
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:152)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:144)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:218)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:224)
at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:88)
at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:217)
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:255)
at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:231)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:371)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:306)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:57)
My Java JDK:
$ readlink -f $(which java)
/usr/lib/jvm/java-17-openjdk-amd64/bin/java
I've tried adding AS_JAVA="/usr/lib/jvm/java-17-openjdk-amd64" to the asenv.conf file but the error persists. Any help?
Oh yeah, and it doesn't matter if im in /opt/glassfish5/glassfish/bin or /opt/glassfish5/bin the error is the same
GlassFish 5 doesn’t support JDK 17, but the latest versions of GlassFish 6 do. If possible, try to upgrade to GlassFish 6.2.4, which is the current version at the time of writing.
Okay, you need to use Java SDK 1.8 only.
I'm new to java and I met this problem when I learnt about running junits testing in intelliJ. I changed run/debuug configurations templates for new projects->Junit->VM options to "-XX:+ShowCodeDetailsInExceptionMessages". Then when I ran the test file, it showed error message like :
Unrecognized VM option 'ShowCodeDetailsInExceptionMessages'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Could anyone help me figure out this problem? Thanks
The option -XX:+ShowCodeDetailsInExceptionMessages was introduced in Java 14 (https://openjdk.java.net/jeps/358), I suppose that you are trying to use this option in a previous version of Java.
I am trying to use the MCRTsim simulator in my research work. As documented in https://resl.csie.nptu.edu.tw/dokuwiki/doku.php?id=guide, I run this command java -jar MCRTsim/dist/MCRTsim2.8.jar in specified directory, but the simulation window did not pop up. Instead, I got following exceptions:
Exception in thread "main" java.lang.NullPointerException
at java.base/java.io.Reader.<init>(Reader.java:167)
at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:109)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:2440)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:1084)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:1110)
at userInterface.frontEnd.SimulationViewer.setComboBox(SimulationViewer.java:529)
at userInterface.frontEnd.SimulationViewer.initialize(SimulationViewer.java:359)
at userInterface.frontEnd.SimulationViewer.<init>(SimulationViewer.java:97)
at userInterface.UserInterface.initialize(UserInterface.java:45)
at userInterface.UserInterface.<init>(UserInterface.java:31)
at mcrtsim.MCRTsim.main(MCRTsim.java:55)
I am using Ubuntu system and JDK 11. I have not used Java much. I am not able to understand what this error is saying. Would anyone please help me with this?
Finally, I got the solution to this problem. I think this simulator is compatible with openjdk-8. So, I removed openjdk-11 from my system and installed openjdk-8.
After installing openjdk-8, I run the command java -jar dist/MCRTsim2.8.jar . This time I got the following error:
Exception in thread "main" java.awt.AWTError: Assistive Technology not
found: org.GNOME.Accessibility.AtkWrapper
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:807)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886)
at java.awt.Window.getToolkit(Window.java:1358)
at java.awt.Window.init(Window.java:506)
at java.awt.Window.<init>(Window.java:537)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:233)
at userInterface.UserInterface.initialize(UserInterface.java:37)
at userInterface.UserInterface.<init>(UserInterface.java:31)
at mcrtsim.MCRTsim.main(MCRTsim.java:55)
After that, I followed this blog https://askubuntu.com/questions/695560/assistive-technology-not-found-awterror to rectify the above error.
I just commented this line #assistive_technologies=org.GNOME.Accessibility.AtkWrapper in /etc/java-8-openjdk/accessibility.properties file.
And, it started working.
Here is the error I'm getting. Tried to open other version of ireport and didn't encountered any errors.
Exception in thread "main" java.lang.IllegalArgumentException: port out of range:1313821769
at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:188)
at java.net.Socket.<init>(Socket.java:244)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:661)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:346)
at org.netbeans.MainImpl.execute(MainImpl.java:195)
at org.netbeans.MainImpl.main(MainImpl.java:76)
at org.netbeans.Main.main(Main.java:75)
I am using java 7 on my ireport.conf, also I am using Ubuntu
jdkhome="/usr/jdk1.7.0_55.for.tmpfs/"
The application is working fine this morning and this just happens,
I've tried search for solutions but the only solutions I found on the internet is to check whether I am using java 7 which I am.
I guess the port has something to do with this but I'm not sure where to start.
Problem is with the lock file.
Try to find it using this command:
find /home/your_user_name -name lock
It will be located in path like /home/your_user_name/.ireport/4.5.1/lock
Delete this file and try to start iReport again.
When I run the uiautomatorviewer, I get the following error:
/android-sdk-linux/tools$
uiautomatorviewerException in thread "main" java.lang.NoSuchMethodError: com.ibm.icu.util.ULocale.getExtensionKeys()Ljava/util/Set;
at com.ibm.icu.util.ULocale$Builder.setLocale(ULocale.java:4011)
at com.ibm.icu.impl.javaspi.ICULocaleServiceProvider.addULocale(ICULocaleServiceProvider.java:204)
at com.ibm.icu.impl.javaspi.ICULocaleServiceProvider.getLocales(ICULocaleServiceProvider.java:140)
at com.ibm.icu.impl.javaspi.ICULocaleServiceProvider.getAvailableLocales(ICULocaleServiceProvider.java:53)
at com.ibm.icu.impl.javaspi.text.DecimalFormatSymbolsProviderICU.getAvailableLocales(DecimalFormatSymbolsProviderICU.java:28)
at sun.util.LocaleServiceProviderPool.getProviderLocales(LocaleServiceProviderPool.java:235)
at sun.util.LocaleServiceProviderPool.getLocalizedObjectImpl(LocaleServiceProviderPool.java:370)
at sun.util.LocaleServiceProviderPool.getLocalizedObject(LocaleServiceProviderPool.java:303)
at java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:150)
at java.util.Formatter.getZero(Formatter.java:2251)
at java.util.Formatter.<init>(Formatter.java:1877)
at java.util.Formatter.<init>(Formatter.java:1898)
at java.lang.String.format(String.java:2792)
at com.android.ddmlib.AndroidDebugBridge.checkAdbVersion(AndroidDebugBridge.java:583)
at com.android.ddmlib.AndroidDebugBridge.<init>(AndroidDebugBridge.java:559)
at com.android.ddmlib.AndroidDebugBridge.createBridge(AndroidDebugBridge.java:319)
at com.android.uiautomator.DebugBridge.init(DebugBridge.java:68)
at com.android.uiautomator.UiAutomatorViewer.main(UiAutomatorViewer.java:71)
could anybody help me out?
thanks for your time.
Since my tools/ directory is not added in the PATH. I used $./uiautomatorviewer command to run my uiautomatorviewer and it worked. Thanks #DiegoTorresMilano for the suggestion