I add new step to Test case. Using Dynamic Java Execution, in Local JVM settings, I select 'Make New Object of class' and choose the class. Then clicking on Construct/Load Object, there is an error displayed.
Does anyone meet this problem and can help me to fix it?
Please note that my group policy does not allow to run file from %AppData% folder, do you know how to change the dir for executable file?
Message:
Exception Editing Object
Stack Trace:
java.lang.RuntimeException: An error has occured during WebBrowser Control initialization.
at com.jniwrapper.win32.ie.dr.<init>(Unknown Source)
at com.jniwrapper.win32.ie.Browser.a(Unknown Source)
at com.jniwrapper.win32.ie.Browser.<init>(Unknown Source)
at com.jniwrapper.win32.ie.Browser.<init>(Unknown Source)
at com.teamdev.jxbrowser.ie.IEBrowser.<init>(Unknown Source)
at com.teamdev.jxbrowser.ie.IEBrowserFactory.create(Unknown Source)
at com.teamdev.jxbrowser.BrowserFactory.createBrowser(Unknown Source)
at com.teamdev.jxbrowser.BrowserFactory.createBrowser(Unknown Source)
at com.itko.lisa.web.jxbrowser.JxBrowser.<init>(JxBrowser.java:110)
at com.itko.lisa.web.jxbrowser.JxBrowserUtils.getViewerBrowserWrapper(JxBrowserUtils.java:196)
at com.itko.lisa.dynexec.docviewer.DocViewPanel.setup(DocViewPanel.java:283)
at com.itko.lisa.dynexec.docviewer.DocViewPanel.<init>(DocViewPanel.java:71)
at com.itko.lisa.dynexec.docviewer.DocViewPanel.getDocViewPanel(DocViewPanel.java:65)
at com.itko.lisa.dynexec.ComplexObjEditor.renderRealEditor(ComplexObjEditor.java:268)
at com.itko.lisa.dynexec.ComplexObjEditor.setup(ComplexObjEditor.java:176)
at com.itko.lisa.dynexec.ComplexObjEditor.setObject(ComplexObjEditor.java:112)
at com.itko.lisa.dynexec.ComplexObjEditor.setObject(ComplexObjEditor.java:104)
at com.itko.lisa.dynexec.DynExecEditor.doEditor(DynExecEditor.java:836)
at com.itko.lisa.dynexec.DynExecEditor.makeNewObj(DynExecEditor.java:936)
at com.itko.lisa.dynexec.DynExecEditor.access$3000(DynExecEditor.java:88)
at com.itko.lisa.dynexec.DynExecEditor$19.actionPerformed(DynExecEditor.java:823)
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)
Caused by: java.lang.reflect.InvocationTargetException
at com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.rethrowExceptionIfSaved(MessageLoopThread.java:616)
at com.jniwrapper.win32.MessageLoopThread.doInvokeAndWait(MessageLoopThread.java:245)
at com.jniwrapper.win32.ie.IsolatedBrowserGroup.<init>(Unknown Source)
... 57 more
Caused by: java.lang.RuntimeException: Unable to start the process
at com.jniwrapper.win32.ie.IsolatedProcess.<init>(Unknown Source)
at com.jniwrapper.win32.ie.IsolatedProcess.start(Unknown Source)
at com.jniwrapper.win32.ie.cj.run(Unknown Source)
at com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:592)
at com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:534)
Caused by: java.io.IOException: Cannot run program ""C:\Users\PHUONG~1\AppData\Local\Temp\JExplorer32.2.7.1.exe"": CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.jniwrapper.win32.ie.a.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 6 more