Page 1 of 1

Scalix API mailbox service

Posted: Thu Aug 09, 2007 1:41 pm
by hindog
I am trying to play with the API services for Scalix. I did the following:

Code: Select all

http://mail.example.com/api/user@domain.com/mailbox


and I also tried:

Code: Select all

http://mail.example.com/api/user%40domain.com/mailbox


Both URLs are returning:

Code: Select all

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:472)
   com.scalix.api.PlatformDispatcherServlet.service(PlatformDispatcherServlet.java:73)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.springframework.web.filter.AbstractRequestLoggingFilter.doFilterInternal(AbstractRequestLoggingFilter.java:133)
   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

root cause

java.lang.NullPointerException
   com.scalix.api.rest.MailboxServlet.doGet(MailboxServlet.java:76)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:174)
   org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
   org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
   com.scalix.api.PlatformDispatcherServlet.service(PlatformDispatcherServlet.java:73)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.springframework.web.filter.AbstractRequestLoggingFilter.doFilterInternal(AbstractRequestLoggingFilter.java:133)
   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

note


Am I missing something here?

Aaron

Posted: Sat Aug 11, 2007 4:57 am
by chris
Is the API working at all? Can you call http://fqdn/userinfo?

Chris

Posted: Sat Aug 11, 2007 5:53 am
by hindog
yes, userinfo works

Posted: Sat Aug 11, 2007 6:01 am
by chris
Are there any other errors in the tomcat logs? Which log did the above error come from?