Hi Matthias, hi Edmond,

I was facing the same error (during initialization of Trinidad) when I tried a 
simple example last weekend.
I could track it down to the following:

During Context-Initialization (ContextServletListener) MyFaces uses a fake 
Proxy (org.apache.myfaces.application._SystemEventServletRequest) for 
HttpRequest.
This proxy returns
java.lang.UnsupportedOperationException: This request class is an empty 
placeholder
regardless which method is invoked.

On the other hand Trinidad tries to detect if this request is a partial request.
This detection wants to read request header "Tr-XHR-Message".

org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isAjaxRequest(CoreRenderKit.java:148)
at 
org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isPartialRequest(CoreRenderKit.java:163)
at 
org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator.getExternalContext(XmlHttpConfigurator.java:61)
at 
org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:351)
at 
org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.<init>(FacesContextFactoryImpl.java:90)

I don’t really know who is using the wrong assumptions.
Should the MyFaces HttpRequest-Proxy allow method invocations like 
request.getHeader("Tr-XHR-Message ")?
Or should Trinidad not try to read any request values, headers, attributes, 
etc. during initialization?

Hopefully this could point you in the right direction.

Regards

  Harald


Harald Kuhn
AirPlus International
Business Information Services
Dornhofstr. 36
63263 Neu-Isenburg
T  +49 (0) 61 02. 2 04 - 8 21
F  +49 (0) 61 02. 2 04 - 77 8 21
hk...@airplus.com
www.airplus.com



Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Klaus 
Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: 
Amtsgericht Offenbach/Main, HRB 8119


-----Original Message-----
From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of 
Matthias Wessendorf
Sent: Thursday, January 21, 2010 1:07 PM
To: MyFaces Discussion; edmond.mulemang...@uclouvain.be
Subject: Re: problem using myfaces-core-2.0.0-SNAPSHOT + 
myfaces-orchestra20-1.5-SNAPSHOT

ok, I asked as it looks like a myfaces2 bug..

On Thu, Jan 21, 2010 at 11:43 AM, Edmond B. Mulemangabo
<edmond.mulemang...@uclouvain.be> wrote:
> On 01/21/2010 09:53 AM, Matthias Wessendorf wrote:
>>
>> Quick follow-up: Does it work with the RI/Mojarra ?
>
> I haven't given RI/Mojarra a try yet. I've never used RI/Mojarra; I hope
> I'll be able to set it up and give it a try.
>
>
>> If so, do you mind to create a JIRA ticket against MyFaces2 ?
>>
>> -Matthias
>>
>> On Wed, Jan 20, 2010 at 11:29 PM, Edmond B. Mulemangabo
>> <edmond.mulemang...@uclouvain.be>  wrote:
>>>
>>> On 01/20/2010 11:46 AM, Matthias Wessendorf wrote:
>>>>
>>>> Hello Edmond,
>>>>
>>>> I see you are using Trinidad; Did you give the 2.0.0-alpha a try ?
>>>
>>> Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The
>>> application that is failing is using Myfaces-2.0.0-alpha,
>>> Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk
>>> and Tomcat-6
>>>
>>> regards.
>
> Edmond/
>



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Reply via email to