Hetal Shah

Greenhorn
+ Follow
since Jun 15, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hetal Shah

Hi All,

I am trying to run one webtest and getting following issue

In My web test on click of particular button one javascript funcation is getting clalled which is there in the js file.
By setting the level to debug in the log4j I can see that the particular js which is having that javascript function is getting downloaded then also while executing that function it is giving below error.

The HtmlUnit version which I am using is 2.7

com.gargoylesoftware.htmlunit.ScriptException: TypeError: isWhiteSpace is not a function, it is undefined.
[groovy] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
[groovy] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:457)
[groovy] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:910)
[groovy] at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:190)
[groovy] at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:209)
[groovy] at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:645)
[groovy] at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:887)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
[groovy] at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:892)
[groovy] at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1248)
[groovy] at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212)
[groovy] at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179)
[groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovy] at java.lang.reflect.Method.invoke(Method.java:585)
[groovy] at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
[groovy] at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
[groovy] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
[groovy] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
[groovy] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
[groovy] at Script1.run(Script1.groovy:10)
[groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:527)
[groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:565)
[groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:536)
[groovy] at com.canoo.webtest.extension.groovy.GroovyInvoker.doExecute(GroovyInvoker.java:40)
[groovy] at com.canoo.webtest.extension.groovy.GroovyStep.doExecute(GroovyStep.java:83)
[groovy] at com.canoo.webtest.steps.Step.execute(Step.java:103)
[groovy] at com.canoo.webtest.extension.groovy.GroovyStep.execute(GroovyStep.java:64)
[groovy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[groovy] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovy] at java.lang.reflect.Method.invoke(Method.java:585)
[groovy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovy] at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
[groovy] at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
[groovy] at com.canoo.webtest.steps.Step.execute(Step.java:103)
[groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovy] at java.lang.reflect.Method.invoke(Method.java:585)
[groovy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovy] at com.canoo.webtest.ant.WebtestTask.executeSteps(WebtestTask.java:293)
[groovy] at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:218)
[groovy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[groovy] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovy] at java.lang.reflect.Method.invoke(Method.java:585)
[groovy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovy] at org.apache.tools.ant.Target.execute(Target.java:357)
[groovy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[groovy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[groovy] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[groovy] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[groovy] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[groovy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[groovy] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovy] at java.lang.reflect.Method.invoke(Method.java:585)
[groovy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovy] at org.apache.tools.ant.Target.execute(Target.java:357)
[groovy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[groovy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[groovy] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[groovy] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[groovy] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[groovy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[groovy] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovy] at java.lang.reflect.Method.invoke(Method.java:585)
[groovy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovy] at org.apache.tools.ant.Target.execute(Target.java:357)
[groovy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[groovy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[groovy] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
[groovy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[groovy] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[groovy] at org.apache.tools.ant.Main.runBuild(Main.java:698)
[groovy] at org.apache.tools.ant.Main.startAnt(Main.java:199)
[groovy] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[groovy] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[groovy] Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: isWhiteSpace is not a function, it is undefined.
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3833)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1842)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getNameFunctionAndThis(ScriptRuntime.java:2231)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1506)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
[groovy] at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
[groovy] at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
[groovy] at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80)
[groovy] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)
[groovy] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:450)
[groovy] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)

Can anyone please suggest me what is the issue and how to resolve this?

Thanks & Regards,
Hetal
13 years ago
Hi All,

I am trying to cluster the two jboss which resides on two differnt machine. When I start the two jboss it is started properly and when I send the request to them from the tomcat the requests are properly load balance across both the servers. Now when I stop the one jboss from this then failover is not properly working and on the tomcat log the jndi lookup is giving error.

Following is jndi properties which I have changed for the clustered jboss environment

java.naming.provider.url=192.168.2.164:1100,192.168.1.134:1100

Here there is one jboss on 192.168.2.164 & another jboss is on 192.168.1.134 and 1100 is the HAJndi Port

I have tried the same with JBoss 3.2.6 & 3.2.7 versions. Both is giving me the same error. Here please note that load balance is working so I can assume that the clustering has been done properly.

Can anyone please give me some idea where I am doing the mistakes and what I have to write in the java.naming.provider.url ?

Waiting for your reply and Thanks in advance.

Thanks & Regards,
Hetal
14 years ago
I am using a HTTPClient object for the desktop application with different method objects (get,post,multipartpost) for each call.

And also get the proxy information to pass to it using ProxySeltor class and set the proxy for all requests.

Now, I want to set "Do not use Proxy Server..." tab information while connecting to the server as well.

Like for example if the user has entered the wrong proxy information and at the same time if he has specified the bypass the proxy to connect to my application server then it should work.

But how I can get that information ?

Waiting for reply...

Thanks & Regards,
Hetal
16 years ago
Hi All,

Can anyone please tell that how can I get the Proxy Setting information using java ?

After java 1.5 there is one class called ProxySelector. It's select method returns the all the applicable proxies. But along with that I wanted to have "do not use proxy server for addresses beginning with" tab data as well which we configure in the Advanced Proxy Setting of IE.

Thanks in advance...

Regards,
Hetal
16 years ago
Hi Friends,

I would like to thank all of you for the prompt reply.

and the ebook to which I have compare is the one which I have downloaded.

Thanks & Regards,
Hetal
Hi Friends,

I am planning for the SCJP 5 exam and I bought one book for it named

Title : "Sun Certified Programmer for Java 5 SCJP (Exam 310-055)
Author : Kathy Sierra & Bert Bates
Publisher : Deramtech Press, India
ISBN : 81 - 7722 - 468 - 7

Can anyone please tell me that this book is valid for the SCJP 5 exam preparation, as I found some of things are changed from the ebook.

Please help me in this asap.

Thanks & Regards,
Hetal
Congratulation Ahmed Khan,

And I want to thank you for providing this useful information about the preparation.
I want to start the preparation for SCJP 1.5, can you please send me the ebooks on this if you have any. My email id is : hetalshah_14@yahoo.co.in

Once again Congratulation for this great result !!

Thanks & Regards,
Hetal
17 years ago
Hi All,
I want to access Imap Over SSL using java mail api.
For that I am using Java Mail API 1.3.2 version which support SSL, and JDK 1.4 version I am using.
Now my problem is that it give me following error

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
16:23:49,085 INFO [STDOUT] at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:441)
16:23:49,085 INFO [STDOUT] at javax.mail.Service.connect(Service.java:233)

Please help me

Thanks in advance
~Hetal
18 years ago
Hi,

I have follwing problem

First I am take the HTTPConnection object of HTTPClient package of the particular url and then get the particular file and get the HTTPResponse using that connection object and then try to read the data from that response object but at that time it give me an error of

java.util.zip.ZipException: unknown compression method
at java.util.zip.InflaterInputStream.read(Unknown Source)
at HTTPClient.HTTPResponse.readResponseData(HTTPResponse.java:936)
at HTTPClient.HTTPResponse.getData(HTTPResponse.java:501)
at HTTPClient.HTTPResponse.getText(HTTPResponse.java:545)


can any one help me in this.......

thanks in advance
19 years ago