tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33080] New: - JasperLoader throws NullPointerException
Date Thu, 13 Jan 2005 12:49:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33080>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33080

           Summary: JasperLoader throws NullPointerException
           Product: Tomcat 5
           Version: Unknown
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: cosjak@ukr.net


When Im trying to get name of class (which is java.sql.Connection)

String name=connection.getClass().getName();

Iv got this Exception:

Error java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.jasper.servlet.JasperLoader$1.run(JasperLoader.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.jasper.servlet.JasperLoader.loadClass
(JasperLoader.java:174)
        at org.apache.jasper.servlet.JasperLoader.loadClass
(JasperLoader.java:110)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at org.apache.jsp.WEB.SYST_005fPERF.SPView_jsp$DbModule.finalize
(SPView_jsp.java:175)
        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
        at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
        at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Also when I write 

if(connection instanceof org.apache.commons.dbcp.PoolableConnection){}

Iv got the same Exception. But connection.toString() 
returns "org.apache.commons.dbcp.PoolableConnection@xxxxx"

What's up??

May be that is my bug?

With best regards 
             Konstantin

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message