Sorry to hear it didn't work. It seems that the preferred mime type id as set 
in your detected client (browser) can't be found from the available mime types. 
From the code I see that Jetspeed should give an error logging with text: 
"Could not find preferred Mime Type for <prefMimeTypeId>", do you see that?

Jeroen


________________________________

Van: Mansour Al Akeel [mailto:[EMAIL PROTECTED]
Verzonden: ma 13-10-2008 22:46
Aan: Jetspeed Users List
Onderwerp: Re: mime type for the psml pages



Jeroen, thnk you for your help.
I tested this method but unforetunately, It didn't work for me.  Here's
the error:
=================================================================================

*type* Exception report

*message*

*description* _The server encountered an internal error () that
prevented it from fulfilling this request._

*exception*

java.lang.NullPointerException
        
org.apache.jetspeed.capabilities.impl.JetspeedCapabilities.getCapabilityMap(JetspeedCapabilities.java:243)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
        
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
        
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        $Proxy0.getCapabilityMap(Unknown Source)
        
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:65)
        
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
        
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:146)
        
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:227)
        
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:242)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        
org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)

*note* _The full stack trace of the root cause is available in the
Apache Tomcat/5.5.23 logs._

=====================================================================

Can you tell, what is going on ?

Jeroen Hoffman wrote:
> Hi Mansour,
> Well, Jetspeed's table called 'mimetype' holds the know mimetype, of
> which the entry with id 1 stands for application/xhtml+xml and 2 for
> text/html.
> In the table called 'client', various browsers for different platforms
> can be identified. Each entry has a value preferred_mimetype_id that
> sets the default mimetype to be set as content type of the response.
>
> So to change it you need to update your client table.
> Using SQL this would be:
> > update client set preferred_mimetype_id=1 where
> preferred_mimetype_id=2;
>
>
> HTH
> Jeroen
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to