Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 50747 invoked from network); 18 Jun 2002 13:15:57 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Jun 2002 13:15:57 -0000 Received: (qmail 7430 invoked by uid 97); 18 Jun 2002 13:15:35 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 7323 invoked by uid 97); 18 Jun 2002 13:15:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 7245 invoked by uid 98); 18 Jun 2002 13:15:34 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Tue, 18 Jun 2002 08:07:09 -0500 From: Eddie Bush Subject: Re: Null Pointer Exception - would you please take a look? To: Tomcat Users List , augustd@codemagi.com Message-id: <002501c216c9$0e3e59c0$114f8942@adabbs.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: 7bit X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 References: <20020617231400.75081.qmail@web11507.mail.yahoo.com> X-Priority: 3 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Alas, I do not have code to the JDBCRealm =( I figured that this would be a cut-and-dried problem -- either the JDBCRealm implementation or perhaps my driver behaving poorly. In either case, I figured someone would be able to tell right off my my description, but perhaps I described the circumstance poorly. It happens when I visit a page that has a security constraint. I'm never offered a login dialog. I'm using BASIC authentication - no SSL -- transport-guarantee is NONE. I'm just trying to get the BASIC auth down and then move on to configuring SSL and doing it properly via form-based login. Thanks! ----- Original Message ----- From: "August Detlefsen" To: "Tomcat Users List" ; Sent: Monday, June 17, 2002 6:14 PM Subject: RE: Null Pointer Exception - would you please take a look? > Are you sure you are actually getting a Connection? > Are you sure that your PreparedStatement itself is not null? > > Can you post the offending code? > > > > --- John Gregg wrote: > > Is the String you're setting null? I can't say how your driver > > handles that > > case, but maybe it doesn't like it. The jdk javadocs don't mention > > it. Is > > the String too big for the column, does it have weird characters in > > it? If > > you can turn on debugging for the driver, try that. If you have the > > source, > > recompile with debugging on and run in a debugger. If you're > > desperate > > enough, decompile the bytecode, recompile with debugging on, and run > > it in > > the debugger. You didn't hear it from me. > > > > john > > > > > > -----Original Message----- > > From: > > tomcat-user-return-22966-john.gregg=techarch.com@jakarta.apache.org > > > [mailto:tomcat-user-return-22966-john.gregg=techarch.com@jakarta.apache. > > org]On Behalf Of Eddie Bush > > Sent: Monday, June 17, 2002 5:18 PM > > To: Tomcat Users Mailing List > > Subject: Null Pointer Exception - would you please take a look? > > > > > > I'm running Tomcat 4.0.1, InterBase 6 Super Server, and Apache > > 1.3.22. > > > > Everything works super, until I throw in a JDBC realm and try to > > connect to > > an application protected by a security constraint. When I do, I get > > the > > following exception in my server log: > > > > 2002-06-17 12:29:28 > > [org.apache.catalina.connector.warp.WarpRequestHandler] > > java.lang.NullPointerException > > at interbase.interclient.PreparedStatement.setString(Unknown > > Source) > > at > > org.apache.catalina.realm.JDBCRealm.credentials(JDBCRealm.java) > > at > > org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java) > > at > > org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java) > > > > ... and it continues. I hate to paste it all unless it's necessary > > to do > > so. > > > > My thought was that someone may have experienced this - or that it > > may be a > > known issue. I checked the docs to ensure that my driver implements > > PreparedStatement and setString() ... and it does. It's a JDBC 1.0 > > driver > > though. > > > > What would be the recommended course of action? I'm not sure what's > > going > > on here for certain, and that's why I'm posting. > > > > Thanks in Advance! > > > > Eddie > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: