# FIND() not working in Web Client

**URL:** <https://forum.servoy.com/t/find-not-working-in-web-client/10378>\
**Category:** Classic Servoy\
**Created:** [March 6, 2009, 8:46pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378 "2009-03-06T20:46:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![srowe](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@srowe](https://forum.servoy.com/u/srowe)\
**Post date:** [March 6, 2009, 8:46pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/1 "2009-03-06T20:46:28Z")

</div>

I have upgraded to 4.1.1 and Find() does not work in Web Client but it is working properly in Smart Client. Any suggestions?

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [March 7, 2009, 2:16pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/2 "2009-03-07T14:16:50Z")

</div>

Check if you have unsaved data when you call the find, in that case the controller.find() will return false.

---

<div class="post-metadata">

**Author:** ![srowe](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@srowe](https://forum.servoy.com/u/srowe)\
**Post date:** [March 9, 2009, 1:18pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/3 "2009-03-09T13:18:48Z")

</div>

Find() is still not working. I did a rollback on the form and that did not work then I tried a savedata and that did not work. I then created a simple form based on a single table in a sql server 2005 database. Executed the find in smart client and the find will return the matching data. In Web Client the find still will not work. A bug perhaps?

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [March 9, 2009, 1:40pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/4 "2009-03-09T13:40:03Z")

</div>

But did it return false or true? If it return false check what’s going wrong (unsaved data, db constraints, etc).

---

<div class="post-metadata">

**Author:** ![srowe](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@srowe](https://forum.servoy.com/u/srowe)\
**Post date:** [March 9, 2009, 2:14pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/5 "2009-03-09T14:14:30Z")

</div>

Ran the form in debug and controller.find() returns true in both web and smart client.

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [March 9, 2009, 2:40pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/6 "2009-03-09T14:40:24Z")

</div>

This behavior is for any form (table) ? Do you have any errors in the logs ?

---

<div class="post-metadata">

**Author:** ![srowe](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@srowe](https://forum.servoy.com/u/srowe)\
**Post date:** [March 9, 2009, 2:58pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/7 "2009-03-09T14:58:30Z")

</div>

Find() will not work on any of the forms in WebClient. No errors in the log.

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [March 9, 2009, 3:08pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/8 "2009-03-09T15:08:05Z")

</div>

Can you add a case about this in our system ?  
[http://crm.servoy.com/servoy-webclient/ … oy\_support](http://crm.servoy.com/servoy-webclient/solutions/solution/servoy_support)  
Also please attach a sample.

---

<div class="post-metadata">

**Author:** ![srowe](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@srowe](https://forum.servoy.com/u/srowe)\
**Post date:** [March 9, 2009, 3:22pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/9 "2009-03-09T15:22:50Z")

</div>

I submitted a support case.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![amcgilly](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@amcgilly](https://forum.servoy.com/u/amcgilly)\
**Post date:** [April 9, 2009, 1:51am UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/10 "2009-04-09T01:51:34Z")

</div>

Servoy 4.1.1,  
Win XP,  
Java 1.6,  
Firefox browser

From developer I start my solution in a web client. The first thing it does is open a form and do a controller.find()/search() which isn’t working right. The find() returns TRUE. The search() returns 200 even though I’m giving criteria for just one record. The error log is below.

Some additional info:  
Works fine in Smart Client. I have tried turning off my firewall - no difference. Also tried it on Mac OSX with Safari -same result.

Anyone know what’s going on?

Thanks.

```auto
2009-04-08 17:56:04,875 ERROR [TaskExecuter[0]] com.servoy.j2db.util.Debug - Throwable
java.lang.NullPointerException
	at org.apache.wicket.Session.getClientInfo(Session.java:555)
	at com.servoy.j2db.server.headlessclient.WebClient.getTimeZone(WebClient.java:48)
	at com.servoy.j2db.dataprocessing.SQLGenerator.Za(SQLGenerator.java:605)
	at com.servoy.j2db.dataprocessing.SQLGenerator.Za(SQLGenerator.java:549)
	at com.servoy.j2db.dataprocessing.FoundSet.performFind(FoundSet.java:435)
	at com.servoy.j2db.FormController.performFindImpl(FormController.java:420)
	at com.servoy.j2db.FormController$JSForm.js_search(FormController.java:82)
	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.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:347)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3666)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2680)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:166)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3125)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:165)
	at com.servoy.j2db.scripting.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:116)
	at com.servoy.j2db.server.ApplicationServer$DebugClientHandler$1.run(ApplicationServer.java:14)
	at com.servoy.j2db.server.headlessclient.SessionClient.invokeLater(SessionClient.java:263)
	at com.servoy.j2db.server.ApplicationServer$DebugClientHandler$2.run(ApplicationServer.java:1)
	at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:11)
	at java.lang.Thread.run(Unknown Source)

```

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 9, 2009, 3:26pm UTC](https://forum.servoy.com/t/find-not-working-in-web-client/10378/11 "2009-04-09T15:26:39Z")

</div>

Adrian,

that error you are given is only because you do “Debug Method” in servoy developer on a method that is then executed in the webclient.  
This works fine for many things you do but not all. Because some things you do expect that it a web browsers request is happening which is of course, if you just say debug method in the developer, not really the case.

So to test these methods you just have to use a test button on a form and press it in the browser.  
We cant really do much about this. For example if we would just postpone the method until a request happened then we would have many other complaints about “Debug Method” not working…
