myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: NullPointerException with OSGi Bundle
Date Tue, 22 Feb 2011 09:56:41 GMT
Hi Clovis,

I agree that this issue (MYFACES-3044) should be fixed and not closed
as invalid. Thus I just reopened it.

However, before I commit your proposed solution, are there any
objections? Leonardo?

Regards,
Jakob

2011/2/22 Mark Struberg <struberg@yahoo.de>:
> Hi Clovis!
>
> Please note that there is a new myfaces-2.0.4 out since last week. Afaik this got a bit
love in regards to the OSGi part.
>
> If you like to submit patches, then please open a Jira and provide a svn diff against
the latest trunk from
>
> svn co https://svn.apache.org/repos/asf/myfaces/current20 myfaces-trunk
>
> current20 contains all svn references you need to build the latest MyFaces2 version.
>
> LieGrue,
> strub
>
> --- On Tue, 2/22/11, Clovis.SERAGIOTTO@raibau.at <Clovis.SERAGIOTTO@raibau.at>
wrote:
>
>> From: Clovis.SERAGIOTTO@raibau.at <Clovis.SERAGIOTTO@raibau.at>
>> Subject: NullPointerException with OSGi Bundle
>> To: users@myfaces.apache.org
>> Date: Tuesday, February 22, 2011, 8:05 AM
>> Hello,
>>
>> using the OSGi Bundle of MyFaces
>> (myfaces-bundle-2.0.3.jar), I get first a
>> warning:
>> WARNING: Resource referenced by resourceName jsf.js and
>> libraryName
>> javax.faces not found in call to
>> ResourceHandler.createResource. It will
>> be silenty ignored.
>>
>> and then a NullPointerException:
>> javax.faces.FacesException: java.lang.NullPointerException
>>         at
>> org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(
>> ExceptionHandlerImpl.java:241)
>>         at
>> org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(
>> ExceptionHandlerImpl.java:156)
>>         at
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(
>> LifecycleImpl.java:258)
>>         at
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
>>         ...
>> Caused by: java.lang.NullPointerException
>>         at
>> org.apache.myfaces.shared_impl.renderkit.html.util.ResourceUtils.renderDefaultJsfJsInlineIfNecessary(
>> ResourceUtils.java:204)
>>         at
>> org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(
>> HtmlTextRendererBase.java:69)
>>         at
>> javax.faces.component.UIComponentBase.encodeEnd(
>> UIComponentBase.java:519)
>>         at
>> javax.faces.component.UIComponent.encodeAll(
>> UIComponent.java:626)
>>         at
>> javax.faces.component.UIComponent.encodeAll(
>> UIComponent.java:622)
>>         at
>> javax.faces.component.UIComponent.encodeAll(
>> UIComponent.java:622)
>>         at
>> javax.faces.component.UIComponent.encodeAll(
>> UIComponent.java:622)
>>         at
>> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(
>> FaceletViewDeclarationLanguage.java:1320)
>>         at
>> org.apache.myfaces.application.ViewHandlerImpl.renderView(
>> ViewHandlerImpl.java:263)
>>         at
>> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(
>> RenderResponseExecutor.java:85)
>>         at
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(
>> LifecycleImpl.java:239)
>>         ... 23 more
>>
>> I submitted a bug, but it was closed, as this is the
>> expected behavior. I
>> was able to solve the problem by adding
>> META-INF.internal-resources.javax.faces
>> and
>> META-INF.services
>> to the exported packages in MANIFEST.MF. but I'd like to
>> know anyway how I
>> can avoid the NullPointerException without patching myself
>> the file
>> myfaces-bundle-2.0.3.jar.
>>
>> (The application I used is the first example from the book
>>
>> "JavaServerFaces 2.0, The complete reference" from Ed Burns
>> & Chris
>> Schalk)
>>
>> Thanks in advance
>>
>> Clovis Seragiotto
>>
>> ______________________________________
>> Raiffeisen Bausparkasse Gesellschaft m.b.H., 1050 Wien,
>> Wiedner Hauptstraße 94, Firmenbuchnummer 116309v,
>> Handelsgericht Wien, DVR 0066257, UID ATU15350206
>>
>> Diese E-Mail kann vertrauliche und geschuetzte
>> Informationen enthalten. Wenn diese E-Mail nicht für Sie
>> bestimmt ist, bitten wir Sie, uns unverzueglich zu
>> informieren und sie zu loeschen.
>>
>> This e-mail message may contain information, which is
>> confidential and protected. If you are not the intended
>> recipient of this message, we ask you to inform us
>> immediately and delete the message afterwards.
>>
>
>
>
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Mime
View raw message