Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Proxy issue in OpenScript Load Testing Protocol(Web/HTTP) during PlayBack

1005087Apr 25 2013 — edited Apr 25 2013
Hi All,

I am new to OATS and I recorded a sample script on OATS for Load Testing protocol(Web/HTTP) in OpenScript but when I Playback it then it is giving the following as the result:

"*Invalid response received from proxy server: HTTP/1.1 502 Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL). ).*
*Comparable WinInet error code: Error 12033: ERROR_INTERNET_INVALID_PROXY_REQUEST.*"

In ErrorLog following errors are mentioned:


"*eclipse.buildId=unknown*
*java.version=1.6.0_07*
*java.vendor=Sun Microsystems Inc.*
*BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_IN*
*Command-line arguments: -os win32 -ws win32 -arch x86*


*Error*
*Thu Apr 25 12:00:17 IST 2013*
*fireActiveProjectChanged*

*java.lang.IllegalStateException: Error getting Parent Element Id for element-id: 9*
* at oracle.oats.scripting.models.store.util.db.ModelDBPersistence.getElementParentId(ModelDBPersistence.java:283)*
* at oracle.oats.scripting.models.stores.database.DatabaseStore.getParentId(DatabaseStore.java:287)*
* at oracle.oats.scripting.models.stores.database.ResultOverviewStore.getParentId(ResultOverviewStore.java:550)*
* at oracle.oats.scripting.models.ModelElement.getParentId(ModelElement.java:275)*
* at oracle.oats.scripting.models.ModelAccessor.findParent(ModelAccessor.java:146)*
* at oracle.oats.scripting.models.ModelElement.findParent(ModelElement.java:289)*
* at oracle.oats.scripting.ui.views.results.ResultsContentProvider.getParent(ResultsContentProvider.java:49)*
* at org.eclipse.jface.viewers.AbstractTreeViewer.getParentElement(AbstractTreeViewer.java:1646)*
* at org.eclipse.jface.viewers.TreeViewer.getParentElement(TreeViewer.java:601)*
* at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpand(AbstractTreeViewer.java:1573)*
* at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2456)*
* at org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget(StructuredViewer.java:1680)*
* at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2864)*
* at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1636)*
* at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1104)*
* at oracle.oats.scripting.ui.views.results.ResultsDisplayView.setSelection(ResultsDisplayView.java:584)*
* at oracle.oats.scripting.ui.views.results.ResultsDisplayView.onActiveScriptingProjectChanged(ResultsDisplayView.java:266)*
* at oracle.oats.scripting.ui.internal.editors.openScript.OpenScriptEditorRegistry.fireActiveProjectChanged(OpenScriptEditorRegistry.java:377)*
* at oracle.oats.scripting.ui.internal.editors.openScript.OpenScriptEditorRegistry.access$8(OpenScriptEditorRegistry.java:371)*
* at oracle.oats.scripting.ui.internal.editors.openScript.OpenScriptEditorRegistry$EditorListener.partActivated(OpenScriptEditorRegistry.java:121)*
* at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:68)*
* at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)*
* at org.eclipse.core.runtime.Platform.run(Platform.java:880)*
* at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)*
* at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:66)*
* at oracle.oats.scripting.ui.internal.TailoredPartService.firePartActivated(TailoredPartService.java:310)*
* at oracle.oats.scripting.ui.internal.TailoredPartService.setActivePart(TailoredPartService.java:344)*
* at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:124)*
* at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:115)*
* at org.eclipse.ui.internal.WWinPartService$1.partDeactivated(WWinPartService.java:48)*
* at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:113)*
* at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)*
* at org.eclipse.core.runtime.Platform.run(Platform.java:880)*
* at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)*
* at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:111)*
* at oracle.oats.scripting.ui.internal.TailoredPartService.firePartDeactivated(TailoredPartService.java:323)*
* at oracle.oats.scripting.ui.internal.TailoredPartService.setActivePart(TailoredPartService.java:338)*
* at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)*
* at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)*
* at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3491)*
* at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3034)*
* at org.eclipse.ui.part.MultiEditor.activateEditor(MultiEditor.java:178)*
* at oracle.oats.scripting.ui.internal.editors.openScript.OpenScriptEditor.activateEditor(OpenScriptEditor.java:1247)*
* at org.eclipse.ui.part.MultiEditor$1.handleEvent(MultiEditor.java:81)*
* at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)*
* at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1353)*
* at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2443)*
* at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2266)*
* at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:4414)*
* at org.eclipse.swt.widgets.Tree.WM_SETFOCUS(Tree.java:6846)*
* at org.eclipse.swt.widgets.Control.windowProc(Control.java:3855)*
* at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5791)*
* at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)*
* at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)*
* at org.eclipse.swt.widgets.Control.forceFocus(Control.java:974)*
* at org.eclipse.swt.widgets.Control.setFocus(Control.java:2811)*
* at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:927)*
* at oracle.oats.scripting.ui.editors.tree.TreeEditor.setFocus(TreeEditor.java:230)*
* at org.eclipse.ui.part.MultiEditor.setFocus(MultiEditor.java:139)*
* at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:325)*
* at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:127)*
* at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:846)*
* at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:829)*
* at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:139)*
* at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:133)*
* at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)*
* at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)*
* at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)*
* at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:87)*
* at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)*
* at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)*
* at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3242)*
* at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2017)*
* at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320)*
* at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)*
* at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)*
* at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)*
* at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)*
* at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)*
* at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)*
* at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)*
* at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)*
* at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)*
* at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)*
* at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)*
* at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)*
* at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)*
* at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)*
* at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)*
* at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)*
* at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)*
* at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)*
* at org.eclipse.equinox.launcher.Main.run(Main.java:1236)*
* at org.eclipse.equinox.launcher.Main.main(Main.java:1212)*
*Caused by: oracle.oats.utilities.db.exceptions.DisconnectDbException: Verify if database connection exists for C:\OracleATS\OFT\iTube3\results\Session3\data*
* at oracle.oats.utilities.db.JavaDbSystem.executeQuery(JavaDbSystem.java:335)*
* at oracle.oats.utilities.db.core.ElementDao.selectParentId(ElementDao.java:215)*
* at oracle.oats.utilities.db.DatabasePersister.getParentIdFor(DatabasePersister.java:89)*
* at oracle.oats.scripting.models.store.util.db.ModelDBPersistence.getElementParentId(ModelDBPersistence.java:278)*
* ... 104 more*
*Caused by: java.sql.SQLNonTransientConnectionException: No current connection.*
* at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)*
* at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)*
* at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)*
* at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)*
* at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)*
* at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source)*
* at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)*
* at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)*
* at oracle.oats.utilities.db.util.SQLUtils.prepare(SQLUtils.java:307)*
* at oracle.oats.utilities.db.StatementFactory.makeStatement(StatementFactory.java:20)*
* at oracle.oats.utilities.db.PreparedStatementCache.addStatement(PreparedStatementCache.java:38)*
* at oracle.oats.utilities.db.JavaDbSystem.executeQuery(JavaDbSystem.java:316)*
* ... 107 more*
*Caused by: java.sql.SQLException: No current connection.*
* at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)*
* at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)*
* ... 119 more*

"

And in Debug tag I am getting the following errors:

*"<disconnected>org.eclipse.equinox.launcher.Main at localhost:59115"*

I am working with OATS on company network and also I am using the correct proxy setting(confirmed). When i tried recording a company internal web application(No Proxy Required) its still giving same proxy errors.

Error results are always changeing when I change my Port No. for proxy setting (Default Port No for my network is 8080).

For port No 8080 following error is displayed result tab:
*"Failed HTTP response code: 407 Proxy Authentication Required ( Access is denied. ) "*

For port no 7777 & 443 following error is displayed in the result tab: (Have changed the proxy server address to "xyz"):
"
*Failed The attempt to connect to the server xyzproxy.xyz.com on port 7777 failed.*
*Comparable WinInet error code: Error 12029: ERROR_INTERNET_CANNOT_CONNECT. Caused by: java.net.ConnectException occurred. Error Message:Connection timed out: connect*
"
I have just disabled the cookies from my script, no other changes have been made(no parametrization and no correlation as of now).

I have tried everything with port numbers and also with Playback settings in openscript preference for proxy, tried to playback the script with proxy, without proxy for both the type of applications, company internal and external but still the same errors.

Anyone please suggest me a solution to this problem.

Thanks,
Abhi.

Edited by: 1002084 on Apr 25, 2013 12:12 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2013
Added on Apr 25 2013
0 comments
1,075 views