Error in invoking new browser session in Grid2-Selenium RC - grid

I am trying to implement Grid2 using Selenium RC.
A able to invoke 1IE and 2FF browsers, but found the test case execution in one browser throws an error as below:
com.thoughtworks.selenium.SeleniumException: ERROR Server Exception:
sessionId should not be null; has this session been started yet?at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:101)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:95)
at com.thoughtworks.selenium.DefaultSelenium.mouseOver(DefaultSelenium.java:243)
at Framework.GlobalFunctions.mouseOver(GlobalFunctions.java:1233)
at EmployeeHealth.ProductVariables.EmployeeHealth.SelectSubMenuFromTab(EmployeeHealth.java:109)
at EmployeeHealth.TestScripts.EmployeeHealthRegressionSuite.EdCurrnUtilizModuleSelect(EmployeeHealthRegressionSuite.java:23725)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:691)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:758)
at org.testng.TestRunner.run(TestRunner.java:613)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
at org.testng.internal.thread.ThreadUtil$CountDownLatchedRunnable.run(ThreadUtil.java:165)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Appreciate your help.

It looks like your client is sending a session ID that doesn't exist on the grid. Did the session timeout? Take a look at the grid console to see what it thinks is executing.

Related

Java exception when running Change Assistant

I'm trying to use Change Assistant to apply a patching from tools 8.51 to 8.51.19 (yes I know that's ancient). I installed PeopleTools 8.51 and then installed PeopleTools 8.51.19 over the top of it. Then I installed Change Assistant and configured it to Perform PeopleTools Only Upgrade in the Tools > Options menu. Then I went to File > Import Template to import my upgrade template. Then I went to File > New Environment and created my environment (the test connection succeeded). But when I go to File > New Job and select my template and environment and Type of Upgrade = Initial Upgrade, I get this error
com.peoplesoft.pt.changeassistant.logging.Logger handleException
WARNING: Exception java.lang.NumberFormatException caught
in sun.misc.FloatingDecimal.readJavaFormatString()
empty String java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Float.valueOf(Unknown Source)
at com.peoplesoft.pt.changeassistant.Job.initStatus(Job.java:714)
at com.peoplesoft.pt.changeassistant.Job. (Job.java:199)
at com.peoplesoft.pt.changeassistant.client.main.frmMain$13.actionPerformed(frmMain.java:4261)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I don't have an older version of Change Assistant available to look at, but I think you want to actually "Apply a PeopleTools Patch" if going from 8.51.xx to 8.51.19. I don't recall if that is called out separately in the older CA versions, but those are two different options in the latest versions and I think has been like that for a while. The "Perform PeopleTools Only Upgrade", or "Upgrade PeopleTools", would usually mean going from something like 8.51 to 8.55.

JX browser 6.21 fails to initialize

We are trying to upgrade JX browser from 6.5.1 to 6.21.
We are having several problems with this.
One is occasional problems initializing the jx browser.
Here some errors from the log:
ERROR [2018-08-13 19:05:02,581] (null:-1) - 07:05:02 SCHWERWIEGEND: [0813/190502.567:FATAL:window_impl.cc(196)] Check failed: ::IsWindow(parent).
ERROR [2018-08-13 19:05:03,158] (null:-1) - 07:05:03 SCHWERWIEGEND: Failed to execute task
java.lang.IllegalStateException: Channel stream was closed before response has been received.
at com.teamdev.jxbrowser.chromium.internal.ipc.SocketChannel.post(SourceFile:221)
at com.teamdev.jxbrowser.chromium.Browser.b(SourceFile:624)
at com.teamdev.jxbrowser.chromium.Browser.getURL(SourceFile:2046)
at ov$e.onFinishLoadingFrame(Unknown Source)
at com.teamdev.jxbrowser.chromium.aa.run(SourceFile:3400)
at com.teamdev.jxbrowser.chromium.internal.r.run(SourceFile:79)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
ERROR [2018-08-13 19:06:58,011] (null:-1) - com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to get Browser browserChannel 4
at com.teamdev.jxbrowser.chromium.Browser.a(SourceFile:485)
at com.teamdev.jxbrowser.chromium.Browser.<init>(SourceFile:402)
at com.teamdev.jxbrowser.chromium.Browser.<init>(SourceFile:348)
at ... calling code ...
What could be the problem here?

JavaFX Text throws Exception when binding textProperty is updated too often

I have a JavaFX Text whose textProperty is bound to a String in a separate thread that represents a time for a countdown timer that is throwing an error. It never throws this error when the textProperty is only changed once per second but when it starts updating every 1/100 second it will work for a few seconds and then I get this error:
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Unknown Source)
at javafx.scene.Scene$ScenePulseListener.pulse(Unknown Source)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I came across this topic, JavaFX append text to TextArea throws Exception, which seems to have a similar problem. Is it because I am updating the Text too often and if so is there a better way do this? Thanks

double click jar file

I have created a swing program that displays a gui and takes user data from the respective gui. The program works fine when I am running it from eclipse. But the problem is that when I make an executable jar file and double click it nothing happens. Even if I run the jar file from console nothing happens and exception occurs. I am using scheduler and for that I am using a quartz.jar file. I guess the problem is not there.
The exceptions are shown below...
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/quartz/Job
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.quartz.Job
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 29 more
I have added the main class in manifest.mf file, but no success.
Can anybody help me?
Here you go: File -> Export -> Java - JAR file, on the next screen check "Export java source files and resources"
or
read this link for command line executable jar conversion
http://www.mkyong.com/java/how-to-make-an-executable-jar-file/
or
if u want to convert windows exe use this tool Launch4J [http://sourceforge.net/projects/launch4j/]
Check your manifest.mf
after
Main-Class: YourClassHere
should be end with a new line or carriage return
Warning: The text file must end with a new line or carriage return. The last line will not be parsed properly if it does not end with a new line or carriage return.

Jar file giving exception [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
i have created jar file that run successfully on cmd like this:
start javaw -Xmx1024m -jar JavaEdit.jar
My application is running by double click but when i perform a button click it gives exception which is not happening when i am running it via CMD.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at Editor.compileIt(Editor.java:2407)
at Editor.CompileBtnActionPerformed(Editor.java:1412)
at Editor.access$300(Editor.java:113)
at Editor$7.actionPerformed(Editor.java:580)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Why it happen, please help... Thanks
at line No 2407 in source code:
StandardJavaFileManager fileManager = compiler.getStandardFileManager(c,
Locale.ENGLISH,
null);
The only possible place for a NullPointerException is this line:
StandardJavaFileManager fileManager = compiler.getStandardFileManager(c,
where the compiler is null. You should add println(System.getPropert("java.home")) statement to see which JRE/JDK is running the application.
My guess is that your JAVA_HOME is pointing to JDK and is in the PATH, but Windows is using JRE, as per ".jar" file association.
UPDATE:
You can run it with a runapp.bat file like this one:
%JAVA_HOME%\javaw.exe -Xmx1024m -jar JavaEdit.jar
The BAT file must be in the same folder as your JAR file.
UPDATE2:
Make sure you have defined the JAVA_HOME environment variable. You check with this command:
c:\> echo %JAVA_HOME%
It should print out the location of your JDK - C:\Program Files(x86)....
If you're getting a null JavaCompiler (or an NPE getting it), then I'm guessing you run your application with a JRE and not a JDK.
From the JavaDoc
Returns: the compiler provided with this platform or null if no compiler is provided

Resources