Results 1 to 2 of 2

Thread: [SOLVED] SOAP returning NullPointerException

  1. #1
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    6

    Post [SOLVED] SOAP returning NullPointerException

    Hi!

    I'm trying to send the following SOAP-request to zimbra:

    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:default="urn:zimbra" xmlns:default1="urn:zimbraMail">
       <soap:Header>
          <default:context xmlns="urn:zimbra">
             <account by="name">testentwicklung@livs-zimbra1.ic-zedach.de</account>
             <authToken>0_492fa207cfc455a5c694bf454783e4d2fea9581f_69643d33363a65396635373633322d396266622d343861612d626165332d6566613831346366386564663b6578703d31333a313237313530353634393030343b747970653d363a7a696d6272613b</authToken>
          </default:context>
       </soap:Header>
       <soap:Body>
          <default1:CreateAppointmentRequest xmlns="urn:zimbraMail">
             <m l="10"/>
             <su>test</su>
             <inv uid="testentwicklung@livs-zimbra1.ic-zedach.de">
                <comp status="CONF" fb="B" fba="B" transp="O" class="PUB" allDay="0" name="test" loc="" isOrg="0" priority="0" url=""/>
                <s d="20100415T150000"/>
                <e d="20100415T170000"/>
                <desc>test</desc>
                <or a="testentwicklung@livs-zimbra1.ic-zedach.de" d=""/>
             </inv>
          </default1:CreateAppointmentRequest>
       </soap:Body>
    </soap:Envelope>
    But all I get is a NullPointerException:

    Code:
    2010-04-15 14:01:37,992 WARN  [btpool0-2://livs-zimbra1.ic-zedach.de/service/soap/] [name=testentwicklung@livs-zimbra1.ic-zedach.de;mid=10;ip=10.31.205.4;] SoapEngine - handler exception
    java.lang.NullPointerException
        at com.zimbra.cs.service.mail.CalendarRequest.handleMsgElement(CalendarRequest.java:126)
        at com.zimbra.cs.service.mail.CreateCalendarItem.handle(CreateCalendarItem.java:70)
        at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:419)
        at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:273)
        at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:157)
        at com.zimbra.soap.SoapServlet.doWork(SoapServlet.java:291)
        at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:212)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:181)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
        at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        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:1157)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:543)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:939)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
    What am I doing wrong here? I've compared that SOAP request with an original one, Zimbra is sending when creating a new appointment, but don't see any great differences...

    Thanks in advance!

    Kind regards
    Dennis
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

  2. #2
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    6

    Default

    Arghh.. gotta read the documentation right! The nesting was completely wrong (s, e, etc. have to be under comp, su under m and so forth)... Sorry.

    (Am I the only wrong, who thinks, that the SOAP docs suck?)
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

Similar Threads

  1. zimbra "freezes" when a certain user logs in.
    By gruad23 in forum Administrators
    Replies: 5
    Last Post: 04-05-2010, 07:26 AM
  2. users logon with 2 passwords
    By vmcastro in forum Administrators
    Replies: 2
    Last Post: 01-11-2010, 09:08 AM
  3. Can recives but can't send mail outgoing
    By hoangkk in forum Installation
    Replies: 9
    Last Post: 09-21-2009, 07:35 PM
  4. Replies: 35
    Last Post: 07-17-2009, 03:52 PM
  5. zmzimletctl deploy zimbra_posixaccount.zip - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 01:41 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
  •