Exception: View all Headers

Discuss the Scalix Mobile Web Client

Moderator: ScalixSupport

svoelkel

Exception: View all Headers

Postby svoelkel » Tue Apr 03, 2007 6:24 am

Clicking on "View all Headers" of a mail I sent out results in this exception:

Code: Select all

java.lang.IllegalArgumentException: Invalid uri 'http://scalix11.topalis/api/Stefan.Voelkel@topalis.com/mailbox/Sent Items/000116023379d14a/headers': escaped absolute path not valid
   org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:219)
   org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
   com.scalix.api.client.service.command.GetMimeHeadersRawCommand.<init>(GetMimeHeadersRawCommand.java:9)
   com.scalix.api.client.service.PlatformClient.getHeaders(PlatformClient.java:222)
   com.scalix.apps.mobile.controller.MainController.showAllHeaders(MainController.java:505)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   java.lang.reflect.Method.invoke(Unknown Source)
   org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:369)
   org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:325)
   org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
   org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   com.scalix.apps.mobile.filter.CharsetFilter.doFilter(CharsetFilter.java:20)


Scalix Mobile Version 11.0.0.653

regards
Stefan

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Apr 03, 2007 7:59 am

Hi Stefan!

Can you send the result of "omstat -a" and "omstat -s" also, did you receive this exception
while accessing mobile web client(SWA-Mobile) or you tried to view header on a particular
mobile device.

Thanks,
Subir

svoelkel

Postby svoelkel » Tue Apr 03, 2007 8:25 am

Hi,

here you go:

Code: Select all

scalix11:~ # omstat -a
PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        13:52:55
Notification Server           Started        13:52:55       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Indexer                       Started        NON-STOP
Stats Daemon                  Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped
Database Monitor              Started        13:52:55
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        13:52:55
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        13:52:56
SMTP Relay                    Started        13:52:56
Mime Browser Controller       Started        13:52:56
Event Server                  Started        13:52:56


Code: Select all

scalix11:~ # omstat -s
Service Router                Started        13:52:58       0
Local Delivery                Started        13:52:59       0
Internet Mail Gateway         Started        13:52:59       0
Local Client Interface        Enabled        13:52:59       0
Remote Client Interface       Enabled        13:52:59       0
Test Server                   Started        13:52:59       0
Request Server                Started        13:52:59       0
Print Server                  Started        13:52:59       0
Bulletin Board Server         Started        13:52:59       0
Background Search Service     Started        13:53:00       0
CDA Server                    Started        13:53:00       0
POP3 interface                Started        13:53:00       0
Omscan Server                 Started        13:53:00       0
Archiver                      Started        13:53:00       0


The exception was seen while accessing SWA-Mobile via Firefox.

I logged in using Firefox, Sent a Mail, Searched for that Mail, Viewed it and clicked on "Show all Headers".

AFAICT the URI contains an unescaped space:

Code: Select all

java.lang.IllegalArgumentException: Invalid uri 'http://scalix11.topalis/api/Stefan.Voelkel@topalis.com/mailbox/Sent Items/000116023379d14a/headers': escaped absolute path not valid


regards
Stefan

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Apr 03, 2007 8:36 am

Hi Stefan!

What's the value for "platform.url" in the file /var/opt/scalix/??/mobile/mobile.properties? Does
the hostname matches the result of "hostname --fqdn" or rather the Scalix Server name.

What else do you see in the scalix-mobile.log and catalina.*.log at folder /var/opt/scalix/s4/tomcat/logs?

Thanks,
Subir

svoelkel

Postby svoelkel » Tue Apr 03, 2007 8:56 am

Code: Select all

platform.url=http://scalix11.topalis/api

Code: Select all

# hostname --fqdn
scalix11.topalis


Accessing the URI directly does bring up all Headers (after authenticating):

Code: Select all

http://scalix11.topalis/api/Stefan.Voelkel@topalis.com/mailbox/Sent%20Items/000116023379d14a/headers


Code: Select all

Message-ID: <25678462.01175602143924.JavaMail.root@scalix11.topalis>
Date: Tue, 3 Apr 2007 14:09:03 +0200 (CEST)
From: =?UTF-8?Q?Stefan_V=C3=B6lkel?= <Stefan.Voelkel@topalis.com>
To: Thomas.Uhl@topalis.com
Subject: mobile test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Regarding logs, I do not see anything in /var/opt/scalix/s1/tomcat/logs (I used tail -f * and reproduced the error, resulting in no log entries at all), scalix-mobile.log is empty.

regards
Stefan

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Apr 03, 2007 9:48 am

Hi Stefan!

We have a bug open for the same:
http://bugzilla.scalix.com/show_bug.cgi?id=14582

Thanks,
Subir


Return to “Scalix Mobile Web Client”



Who is online

Users browsing this forum: No registered users and 2 guests

cron