Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] OSE SearchRequest error

  1. #1
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default [SOLVED] OSE SearchRequest error

    Hi All!

    Has been a while since posting here as Zimbra has been working so well!

    I have a problem though. I recently restored Zimbra from backup following a corrupted memory chip problem.

    Now when I try and search or use my saved searches I get the following error:

    Code:
    method:	SearchRequest
    msg:	system failure: java.lang.NullPointerException
    code:	service.FAILURE
    detail:	soap:Receiver
    trace:	btpool0-8:1236891164754:1d4675fe49910ec6
    request:	
    
    Body: {
      SearchRequest: {
        _jsns: "urn:zimbraMail",
        limit: 50,
        locale: {
          _content: "en_US"
         },
        offset: 0,
        query: "net",
        sortBy: "dateDesc",
        types: "conversation",
        tz: {
          id: "(GMT-08.00) Pacific Time (US & Canada)"
         }
       }
     },
    Header: {
      context: {
        _jsns: "urn:zimbra",
        account: {
          _content: "james@[domain].com",
          by: "name"
         },
        authToken: "(removed)",
        format: {
          type: "js"
         },
        notify: {
          seq: 90
         },
        sessionId: {
          _content: 12,
          id: 12
         },
        userAgent: {
          name: "ZimbraWebClient - FF3.0 (Linux)",
          version: "5.0.13_GA_2791.RHEL4"
         }
       }
     }
    I've tried rebuilding the index and clearing the cache but to no avail. Any ideas where I should be looking?

    Thanks!
    Last edited by jimbo; 03-13-2009 at 10:02 AM.

  2. #2
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    bump

    Anybody have an idea where I can start on this error?

    Thanks!

    jimbo

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Have a look in the log files and see what errors are thrown. Did you also run zmfixperms after you restored the /opt/zimbra directory? Did you also run an upgrade of Zimbra after doing the restore?

    Please update your forum profile with the output of the following:

    Code:
    zmcontrol -v
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    Thanks for the reply!

    I did run zmfixperms after the restoration as well as running an upgrade to the latest version but no joy.

    After reading the wiki entry about the log files I modified the /opt/zimbra/conf/log4j.properties.in file with the following:
    Code:
    log4j.logger.zimbra.soap=DEBUG
    I don't see any errors thrown in /var/log/messages or /var/log/zimbra.log. Where should I be looking for these errors?

    Thanks again for your help. It is MUCH appreciated!

    I updated my profile to reflect my current version.

  5. #5
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    OK, I found where the errors are being logged to (mailbox.log).

    Here is the output when I try a search:
    Code:
    2009-03-19 11:49:48,266 DEBUG [btpool0-7] [name=james@[domain].com;mid=2;ip=127.0.0.1;ua=ZimbraWebClient - FF3.0 (Win)/5.0.14_GA_2850.RHEL4;] soap - SOAP request:
    {
      "Body": {
        "SearchRequest": {
          "locale": {
            "_content": "en_US"
          },
          "types": "conversation",
          "limit": 50,
          "query": "test",
          "tz": {
            "id": "(GMT-08.00) Pacific Time (US & Canada)"
          },
          "sortBy": "dateDesc",
          "offset": 0,
          "_jsns": "urn:zimbraMail"
        }
      },
      "Header": {
        "context": {
          "userAgent": {
            "name": "ZimbraWebClient - FF3.0 (Win)",
            "version": "5.0.14_GA_2850.RHEL4"
          },
          "account": {
            "_content": "james@[domain].com",
            "by": "name"
          },
          "sessionId": {
            "_content": 113,
            "id": 113
          },
          "authToken": "(removed)",
          "format": {
            "type": "js"
          },
          "_jsns": "urn:zimbra"
        }
      },
      "_jsns": "urn:zimbraSoap"
    }
    2009-03-19 11:49:48,266 INFO  [btpool0-7] [name=james@[domain].com;mid=2;ip=127.0.0.1;ua=ZimbraWebClient - FF3.0 (Win)/5.0.14_GA_2850.RHEL4;] soap - SearchRequest
    2009-03-19 11:49:48,267 WARN  [btpool0-7] [name=james@[domain].com;mid=2;ip=127.0.0.1;ua=ZimbraWebClient - FF3.0 (Win)/5.0.14_GA_2850.RHEL4;] SoapEngine - handler exception
    java.lang.NullPointerException
    	at com.zimbra.cs.index.ZimbraQuery$TextQuery.getQueryOperation(ZimbraQuery.java:1673)
    	at com.zimbra.cs.index.ZimbraQuery$ParseTree$ThingNode.getQueryOperation(ZimbraQuery.java:2196)
    	at com.zimbra.cs.index.ZimbraQuery.<init>(ZimbraQuery.java:2462)
    	at com.zimbra.cs.index.MailboxIndex.search(MailboxIndex.java:143)
    	at com.zimbra.cs.mailbox.Mailbox.search(Mailbox.java:3792)
    	at com.zimbra.cs.service.mail.Search.doSearch(Search.java:136)
    	at com.zimbra.cs.service.mail.Search.handle(Search.java:108)
    	at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:429)
    	at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:286)
    	at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:160)
    	at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:269)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    	at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:190)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
    	at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
    	at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:716)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
    	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    	at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:350)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    	at org.mortbay.jetty.Server.handle(Server.java:313)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
    2009-03-19 11:49:48,267 DEBUG [btpool0-7] [name=james@[domain].com;mid=2;ip=127.0.0.1;ua=ZimbraWebClient - FF3.0 (Win)/5.0.14_GA_2850.RHEL4;] soap - SOAP response: 
    {
      "Body": {
        "Fault": {
          "Code": {
            "Value": "soap:Receiver"
          },
          "Reason": {
            "Text": "system failure: java.lang.NullPointerException"
          },
          "Detail": {
            "Error": {
              "Code": "service.FAILURE",
              "Trace": "btpool0-7:1237488588267:9ebcc3bc074296cb",
              "_jsns": "urn:zimbra"
            }
          }
        }
      },
      "Header": {
        "context": {
          "sessionId": [{
              "_content": "113",
              "id": "113"
            }],
          "change": {
            "token": 258525
          },
          "_jsns": "urn:zimbra"
        }
      },
      "_jsns": "urn:zimbraSoap"
    }
    Does this give any clues what is going on?

    Thanks!
    Last edited by jimbo; 03-19-2009 at 12:56 PM.

  6. #6
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    bump... any ideas? Anybody?

  7. #7
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    I still have not solved this one. All searches return errors.

    I'm thinking that I need to overwrite portions of the install that might be bad with files from a new install. Without of course damaging the existing data.

    If it is the searches that failing, where is the code for such things stored. I'm assuming it's the soap server that is having the issue.

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Is this a new install or an upgrade? Which version of Zimbra is this and which operating system? Post the output of the following commands (run on the Zimbra server):

    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain mx
    dig yourdomain any
    host `hostname` <- use backticks not single quotes
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    This was an upgrade.

    ZCS Version: Release 5.0.14_GA_2850.RHEL4_20090303132820 CentOS4 FOSS edition

    /etc/hosts
    Code:
    root@srv1~# cat /etc/hosts
    127.0.0.1		localhost.localdomain localhost
    192.168.0.254	mail.simple-reliable.com srv1.simple-reliable.com srv1
    /etc/resolv.conf
    Code:
    root@srv1~# cat /etc/resolv.conf
    nameserver 192.168.0.254
    dig simple-reliable.com mx
    Code:
    ; <<>> DiG 9.2.4 <<>> simple-reliable.com mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40352
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;simple-reliable.com.		IN	MX
    
    ;; ANSWER SECTION:
    simple-reliable.com.	10800	IN	MX	10 mail.simple-reliable.com.
    
    ;; AUTHORITY SECTION:
    simple-reliable.com.	10800	IN	NS	dns.simple-reliable.com.
    
    ;; ADDITIONAL SECTION:
    mail.simple-reliable.com. 10800	IN	A	192.168.0.254
    
    ;; Query time: 2 msec
    ;; SERVER: 192.168.0.254#53(192.168.0.254)
    ;; WHEN: Wed Apr  8 15:10:57 2009
    ;; MSG SIZE  rcvd: 92
    Code:
    root@srv1~# dig simple-reliable.com any
    
    ; <<>> DiG 9.2.4 <<>> simple-reliable.com any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61533
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;simple-reliable.com.		IN	ANY
    
    ;; ANSWER SECTION:
    simple-reliable.com.	10800	IN	MX	10 mail.simple-reliable.com.
    simple-reliable.com.	10800	IN	SOA	simple-reliable.com. srv1.simple-reliable.com. 17 28800 7200 604800 10800
    simple-reliable.com.	10800	IN	NS	dns.simple-reliable.com.
    simple-reliable.com.	10800	IN	A	192.168.0.254
    
    ;; ADDITIONAL SECTION:
    mail.simple-reliable.com. 10800	IN	A	192.168.0.254
    
    ;; Query time: 3 msec
    ;; SERVER: 192.168.0.254#53(192.168.0.254)
    ;; WHEN: Wed Apr  8 15:11:48 2009
    ;; MSG SIZE  rcvd: 149
    host `hostname`
    Code:
    srv1.simple-reliable.com has address 192.168.0.254
    Thanks!

  10. #10
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    6

    Default I*have the same problem

    Hi,

    I*have the same problem.

    I*migrated a server with 12 domains and 200GB of e-mail data and now search in the e-mails, addressbook and calendar does not work

    Any suggestions from zimbra gurus ?

    Best regards.

Similar Threads

  1. Installation zimbra Initializing ldap...failed. (28416)
    By farrukh.nadeem in forum Installation
    Replies: 10
    Last Post: 08-14-2009, 07:52 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 05:42 PM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  4. [SOLVED] Debian Etch 32 / 64: MTA not working
    By xflip in forum Installation
    Replies: 2
    Last Post: 01-18-2008, 04:58 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •