SV: SV: SV: PersistenceFacade

2010-05-26 Thread Søren Blidorf
I feel like such an ass. During the upgrade I must have deleted an initparam from the struts-config, and that was why the PersistenceFacade didn’t work. Sorry for wasting your time, but thanks for the effort. Soren -Oprindelig meddelelse- Fra: ch...@chrismiles.org [mailto:ch

Re: SV: SV: PersistenceFacade

2010-05-26 Thread chris
les.org] > Sendt: 26. maj 2010 17:15 > Til: Struts Users Mailing List > Emne: Re: SV: PersistenceFacade > > This appears not to be a Struts problem, just a coincidence as it clearly > states the problem is a null pointer exception, but I will point you to an > partial answer any

SV: SV: PersistenceFacade

2010-05-26 Thread Søren Blidorf
...@chrismiles.org] Sendt: 26. maj 2010 17:15 Til: Struts Users Mailing List Emne: Re: SV: PersistenceFacade This appears not to be a Struts problem, just a coincidence as it clearly states the problem is a null pointer exception, but I will point you to an partial answer anyway. When closing a

Re: SV: PersistenceFacade

2010-05-26 Thread chris
This appears not to be a Struts problem, just a coincidence as it clearly states the problem is a null pointer exception, but I will point you to an partial answer anyway. When closing a database connection like that you should always check that it is not null before closing it. Why it is null I c

RE: PersistenceFacade

2010-05-26 Thread Martin Gainty
e contenu fourni. > From: ch...@chrismiles.org > Date: Wed, 26 May 2010 09:39:54 -0400 > Subject: Re: PersistenceFacade > To: user@struts.apache.org > > Hi, > > You would need to post your strack trace and where the problem happens. > > Chris > > > Hi. >

SV: PersistenceFacade

2010-05-26 Thread Søren Blidorf
meddelelse- Fra: ch...@chrismiles.org [mailto:ch...@chrismiles.org] Sendt: 26. maj 2010 15:40 Til: Struts Users Mailing List Emne: Re: PersistenceFacade Hi, You would need to post your strack trace and where the problem happens. Chris > Hi. > > > > I have used the following code w

Re: PersistenceFacade

2010-05-26 Thread chris
n I try to login to my Struts app. > > > > Can anybody point me in the right direction. > > > > Soren, DK > > > > The Code: > > > > package nc.persistence; > > > > import java.sql.Connection; > > import java.sql.SQLException; > > import

PersistenceFacade

2010-05-26 Thread Søren Blidorf
; import java.sql.Connection; import java.sql.SQLException; import javax.servlet.http.HttpServlet; import java.sql.DriverManager; public class PersistenceFacade { //--- fields -// public static final String CONNECTION_DRIVER