No problem at all. Please feel free to ask if you have any questions.

Best,

Jian

On Mon, Jul 12, 2010 at 4:29 PM, Manoj Chavan <[email protected]>wrote:

> Thanks Jian,
>    Like I said, have been away from Tellurium for too long. Guess will have
> to read up the wiki page
> more in detail before posting. Thank you for being patient.
>
> Regards,
> Manoj
>
>
> *From:* Jian Fang <[email protected]>
> *To:* [email protected]
> *Sent:* Mon, July 12, 2010 1:23:05 PM
> *Subject:* Re: NulPointerException at 'connectUrl()'
>
> You need to call
>
> connectSeleniumServer();
>
> before call connectUrl(url).
>
> Or you can call openUrl(url), which will open a new session for each call.
>
> See the difference here:
>
>
> http://code.google.com/p/aost/wiki/UserGuide070AppendixB#What_Are_the_Differences_Between_connectUrl_and_openUrl
>
> Thanks,
>
> Jian
>
> On Mon, Jul 12, 2010 at 4:13 PM, Manoj Chavan <[email protected]>wrote:
>
>> Hi,
>>
>>   I am getting the following NullPointer exception? for this code. Any
>> pointers? Welcome. Thanks
>>
>> Manoj
>>
>>  @Before
>>    public void connectToMB() {
>>        connectUrl("www.google.com");
>>    }
>>
>> java.lang.NullPointerException: Cannot invoke method open() on null object
>>    at
>> org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
>>    at
>>
>> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
>>
>>    at
>>
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
>>
>>    at
>>
>> org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17)
>>    at
>>
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
>>
>>    at
>>
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
>>
>>    at
>>
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
>>
>>    at
>>
>> org.telluriumsource.component.connector.SeleniumConnector.connectUrl(SeleniumConnector.groovy:54)
>>
>>    at
>>
>> org.telluriumsource.test.java.BaseTelluriumJavaTestCase.connectUrl(BaseTelluriumJavaTestCase.java:57)
>>
>>    at com.meltwater.test.MBuzzUITest.connectToMBuzz(MBuzzUITest.java:19)
>>    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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>>
>>    at
>>
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>
>>    at
>>
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>>
>>    at
>>
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>>    at
>>
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>>
>>    at
>>
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>>
>>    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>>    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>>    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>>    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>>    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>>    at
>>
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>>    at
>>
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>>    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>>    at
>>
>> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>>
>>    at
>>
>> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>    at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>>
>>    at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>>
>>    at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>>
>>    at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to