You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "James Black (JIRA)" <be...@incubator.apache.org> on 2005/05/09 20:05:24 UTC

[jira] Created: (BEEHIVE-621) re: NPE thrown but no stack trace when going straight to auth/Controller

re: NPE thrown but no stack trace when going straight to auth/Controller
------------------------------------------------------------------------

         Key: BEEHIVE-621
         URL: http://issues.apache.org/jira/browse/BEEHIVE-621
     Project: Beehive
        Type: Bug
 Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
    Reporter: James Black
 Attachments: npe_on_controller.tar.gz

When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.


-- 
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] Commented: (BEEHIVE-621) re: NPE thrown but no stack trace when going straight to auth/Controller

Posted by "James Black (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-621?page=comments#action_64775 ]
     
James Black commented on BEEHIVE-621:
-------------------------------------

I don't know if the bundle problem is an issue, as I got that later, when I was able to go to the loginError.jsp page.

All I did was install the webapp, and to ensure there was nothing residual I restarted Tomcat, and then went to auth/Controller.jpf, and got the NPE.

I then tarred up the directory, at that point, after doing 'ant clean'.

I forgot about the changes to build.xml and build.properties.

> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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-621) re: NPE thrown but no stack trace when going straight to auth/Controller

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

     Assign To: Alejandro Ramirez  (was: Rich Feit)
    Resolution: Cannot Reproduce

OK, this may have been a Tomcat issue, masked by our old <error-page> entry.  James, if you run into this again, please feel free to reopen the bug.

> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>     Assignee: Alejandro Ramirez
>      Fix For: V1
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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] Commented: (BEEHIVE-621) re: NPE thrown but no stack trace when going straight to auth/Controller

Posted by "Jeremiah Johnson (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-621?page=comments#action_64766 ]
     
Jeremiah Johnson commented on BEEHIVE-621:
------------------------------------------

I wanted to reproduce this issue to learn what I could from it.  Here are a couple comments:

Beehive Devs: build.xml will need to be edited for you to run this.  I made the following changes - hope this is helpful.
- WEB-INF/build.xml has basedir listed as ../..; I changed it to ..
- removed beehive.home and basedir property definitions from WEB-INF/build.xml
- changed the property file location to WEB-INF/src/build.properties (and updated build.properties to use ${os.BEEHIVE_HOME} and ${os.CATALINA_HOME})
- changed webapp.dir property to location of ${basedir}

I did 'ant build war' and got the lmsstats.war file; copied the file to $CATALINA_HOME/webapps and then pointed by browser at http://localhost:8080/lmsstats/auth/Controller.jpf  I got a login page and I put in some arbitrary values.  The result was a 'Can't find bundle for base name...'  Not sure if this is the same thing that is causing James the NPE.

James,

Is there anything more specific I should do to reproduce?

- jeremiah

> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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-621) re: NPE thrown but no stack trace when going straight to auth/Controller

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

Alejandro Ramirez reassigned BEEHIVE-621:
-----------------------------------------

    Assign To: Krista Baker  (was: Alejandro Ramirez)

Please verify

> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>     Assignee: Krista Baker
>      Fix For: V1
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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-621) re: NPE thrown but no stack trace when going straight to auth/Controller

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


Using the attached repro case, I am also unable to reproduce the NPE, but am able to see the username and password login screen.

> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>     Assignee: Krista Baker
>      Fix For: V1
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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] Commented: (BEEHIVE-621) re: NPE thrown but no stack trace when going straight to auth/Controller

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-621?page=comments#action_64783 ]
     
Rich Feit commented on BEEHIVE-621:
-----------------------------------

I haven't been able to reproduce the NPE -- when I hit /auth/Controller.jpf, I get the login screen ("Please enter your username and password", etc.).  

James, there's one thing that might help here.  Can you remove the following entry in web.xml?

    <error-page>
        <error-code>500</error-code>
        <location>/error.jsp</location>
    </error-page>

Having this there causes non-NetUI errors to go to the NetUI error page, which produces the blank stacktrace that you're talking about.  See http://issues.apache.org/jira/browse/BEEHIVE-489 for more info on the history of this.  Hopefully this will at least get us to a more informative error page (i.e., the default Tomcat error page).


> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>     Assignee: Rich Feit
>      Fix For: V1
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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-621) re: NPE thrown but no stack trace when going straight to auth/Controller

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

Rich Feit updated BEEHIVE-621:
------------------------------

      Assign To: Rich Feit
        Version: V1
      Component: NetUI
    Fix Version: V1

> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>     Assignee: Rich Feit
>      Fix For: V1
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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-621) re: NPE thrown but no stack trace when going straight to auth/Controller

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

James Black updated BEEHIVE-621:
--------------------------------

    Attachment: npe_on_controller.tar.gz

This is my zipped up webapp, just do
cd LmsStats/WEB-INF
ant build war


> re: NPE thrown but no stack trace when going straight to auth/Controller
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-621
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-621
>      Project: Beehive
>         Type: Bug
>  Environment: Solaris 8, JDK1.5, Tomcat 5.0.27, Beehive nightly from 20050505
>     Reporter: James Black
>  Attachments: npe_on_controller.tar.gz
>
> When I went directly to auth/Controller I get a NetUI error of type NPE, but the stacktrace is completely empty.

-- 
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