You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jan-Kees van Andel (JIRA)" <de...@myfaces.apache.org> on 2010/07/03 20:51:50 UTC
[jira] Created: (MYFACES-2784) NPE when I forget to add an
interface to a composite component
NPE when I forget to add an interface to a composite component
--------------------------------------------------------------
Key: MYFACES-2784
URL: https://issues.apache.org/jira/browse/MYFACES-2784
Project: MyFaces Core
Issue Type: Bug
Reporter: Jan-Kees van Andel
When I write a composite component like the following:
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition ...>
<div>
<h2>Spaces</h2>
<ul>
<ui:repeat value="#{spacesBean.spaces}" var="space">
<li>
<parleys:spaceLink space="#{space}" renderThumbnail="true" renderLabel="true"/>
</li>
</ui:repeat>
</ul>
</div>
</ui:composition>
I get a NPE on line 1101 in ApplicationImpl, because there is no component metadata. Of course I made a mistake here, but a NPE isn't very helpful. :)
There is a "SEVERE: Cannot found composite bean descriptor UIComponent.BEANINFO_KEY" in the logs, but it's swallowed by a huge stack trace.
I suggest to throw a descriptive exception instead of logging the message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (MYFACES-2784) NPE when I forget to add an
interface to a composite component
Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Korherr resolved MYFACES-2784.
------------------------------------
Fix Version/s: 2.0.1-SNAPSHOT
Resolution: Fixed
> NPE when I forget to add an interface to a composite component
> --------------------------------------------------------------
>
> Key: MYFACES-2784
> URL: https://issues.apache.org/jira/browse/MYFACES-2784
> Project: MyFaces Core
> Issue Type: Bug
> Reporter: Jan-Kees van Andel
> Assignee: Jakob Korherr
> Fix For: 2.0.1-SNAPSHOT
>
>
> When I write a composite component like the following:
> <?xml version="1.0" encoding="UTF-8"?>
> <ui:composition ...>
> <div>
> <h2>Spaces</h2>
> <ul>
> <ui:repeat value="#{spacesBean.spaces}" var="space">
> <li>
> <parleys:spaceLink space="#{space}" renderThumbnail="true" renderLabel="true"/>
> </li>
> </ui:repeat>
> </ul>
> </div>
> </ui:composition>
> I get a NPE on line 1101 in ApplicationImpl, because there is no component metadata. Of course I made a mistake here, but a NPE isn't very helpful. :)
> There is a "SEVERE: Cannot found composite bean descriptor UIComponent.BEANINFO_KEY" in the logs, but it's swallowed by a huge stack trace.
> I suggest to throw a descriptive exception instead of logging the message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.