You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Carlin Rogers (JIRA)" <be...@incubator.apache.org> on 2005/05/16 19:35:42 UTC

[jira] Created: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

A url template ref without a key element causes an NPE in URLTemplatesFactory.
------------------------------------------------------------------------------

         Key: BEEHIVE-739
         URL: http://issues.apache.org/jira/browse/BEEHIVE-739
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Carlin Rogers
    Priority: Minor
     Fix For: TBD


Need to improve the error condition checking and handling in the
URLTemplatesFactory class.

If a template ref in the beehive-url-template-config file does not have a 
key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.

I think this can be done in a post v1.0 patch. 

Here's a stack trace...
java.lang.NullPointerException
        at
org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
tesFromConfig(URLTemplatesFactory.java:213)
        at
org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
tes(URLTemplatesFactory.java:139)
        at
org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
LTemplateDescriptor.java:130)
        at
org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
izations(PageFlowContextListener.java:107)
        at
org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
lter.java:86)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]

Carlin Rogers updated BEEHIVE-739:
----------------------------------

    Attachment: j739patch.txt

Attaching a patch to fix this bug as well as provide additional
error condition checking and logging.

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>     Priority: Minor
>      Fix For: TBD
>  Attachments: j739patch.txt
>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]

Alejandro Ramirez reassigned BEEHIVE-739:
-----------------------------------------

    Assign To: Julie Zhuo  (was: Alejandro Ramirez)

Please verify in trunk.

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: TBD
>  Attachments: j739patch.txt
>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]
     
Rich Feit resolved BEEHIVE-739:
-------------------------------

    Resolution: Fixed
     Assign To: Alejandro Ramirez  (was: Rich Feit)

Applied the patch with revision 188831.  Thanks Carlin!

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Alejandro Ramirez
>     Priority: Minor
>      Fix For: TBD
>  Attachments: j739patch.txt
>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]

Carlin Rogers updated BEEHIVE-739:
----------------------------------

    Fix Version: V1
                     (was: TBD)
    Description: 
Need to improve the error condition checking and handling in the
URLTemplatesFactory class.

If a template ref in the beehive-url-template-config file does not have a 
key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.

I think this can be done in a post v1.0 patch. 

Here's a stack trace...
java.lang.NullPointerException
        at
org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
tesFromConfig(URLTemplatesFactory.java:213)
        at
org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
tes(URLTemplatesFactory.java:139)
        at
org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
LTemplateDescriptor.java:130)
        at
org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
izations(PageFlowContextListener.java:107)
        at
org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
lter.java:86)


  was:
Need to improve the error condition checking and handling in the
URLTemplatesFactory class.

If a template ref in the beehive-url-template-config file does not have a 
key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.

I think this can be done in a post v1.0 patch. 

Here's a stack trace...
java.lang.NullPointerException
        at
org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
tesFromConfig(URLTemplatesFactory.java:213)
        at
org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
tes(URLTemplatesFactory.java:139)
        at
org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
LTemplateDescriptor.java:130)
        at
org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
izations(PageFlowContextListener.java:107)
        at
org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
lter.java:86)


    Environment: 

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: v1m1
>     Reporter: Carlin Rogers
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: V1
>  Attachments: j739patch.txt
>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]

Carlin Rogers reassigned BEEHIVE-739:
-------------------------------------

    Assign To: Rich Feit  (was: Carlin Rogers)

Assigning to Rich for review. Thanks.

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Rich Feit
>     Priority: Minor
>      Fix For: TBD
>  Attachments: j739patch.txt
>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]

Carlin Rogers reassigned BEEHIVE-739:
-------------------------------------

    Assign To: Carlin Rogers

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>     Priority: Minor
>      Fix For: TBD

>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-739) A url template ref without a key element causes an NPE in URLTemplatesFactory.

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-739?page=all ]
     
Julie Zhuo closed BEEHIVE-739:
------------------------------


Verified at rev227121. It now produces the following error log,

05 Aug 2005 04:08:26,031 ERROR DefaultURLTemplatesFactory []: Malformed URL template descriptor in /WEB-INF/beehive-url-template-config.xml. The url-template-ref key is missing.
05 Aug 2005 04:08:26,231 ERROR AutoRegisterActionServlet []: Could not load Struts module configuration for /WEB-INF/.pageflow-struts-generated/jpf-struts-config.xml.
05 Aug 2005 04:08:39,170 ERROR DefaultURLTemplatesFactory []: Malformed URL template descriptor in /WEB-INF/beehive-url-template-config.xml. The url-template-ref key is missing.
05 Aug 2005 04:08:40,051 ERROR AutoRegisterActionServlet []: Could not load Struts module configuration for /WEB-INF/.pageflow-struts-generated/jpf-struts-config.xml.

> A url template ref without a key element causes an NPE in URLTemplatesFactory.
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-739
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-739
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: v1m1
>     Reporter: Carlin Rogers
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: V1
>  Attachments: j739patch.txt
>
> Need to improve the error condition checking and handling in the
> URLTemplatesFactory class.
> If a template ref in the beehive-url-template-config file does not have a 
> key element, URLTemplatesFactory.getTemplatesFromConfig() throws an NPE.
> I think this can be done in a post v1.0 patch. 
> Here's a stack trace...
> java.lang.NullPointerException
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tesFromConfig(URLTemplatesFactory.java:213)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTempla
> tes(URLTemplatesFactory.java:139)
>         at
> org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(UR
> LTemplateDescriptor.java:130)
>         at
> org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitial
> izations(PageFlowContextListener.java:107)
>         at
> org.apache.beehive.netui.pageflow.PageFlowPageFilter.init(PageFlowPageFi
> lter.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira