I found it last night, with some help from others. I didn't have my
database name specified in the schema.

jrw

On Tue, May 07, 2002 at 06:55:17AM -0700, Steve wrote:
> You may not be connecting to  the database. I have found that Torque.init()
> running successfully does not necessarily mean that the database settings
> are correct. Verify
> that you have the db's jar file in your library. Verify that the username
> and password
> are correct. Once I spent hours trying this, trying that, then it seemed to
> wok when
> I corrected the database name to use proper capitalization. (I tried many
> things, so
> I cannot say for sure that was the problem.)
> 
> Steve B.
> 
> ----- Original Message -----
> From: "Jacob Robert Wilkins" <[EMAIL PROTECTED]>
> To: "Turbine Torque Users List" <[EMAIL PROTECTED]>
> Sent: Friday, May 03, 2002 2:14 PM
> Subject: Re: Errors I don't understand....
> 
> 
> > On Fri, May 03, 2002 at 05:01:24PM -0400, Eric Pugh wrote:
> > > It is because you have not inited Torque first..  Therefore it has no
> pools.
> > >
> > No, I'm calling init. What else could be causing a lack of pools?
> >
> > >
> > <snip>
> > >
> > > Here is the actual code, omitting imports:
> > >
> > > public class Test
> > >  {
> > >      public static void main(String args[])
> > >              throws Exception
> > >                  {
> > >                         System.out.println("Starting CandidateTest");
> > >                         Torque.init("Torque.properties");
> > Right there, init is called, and it doesn't fail.
> > >                         System.out.println("props read");
> > >                         Candidate c = new Candidate();
> > >                         System.out.println("instance created");
> > >                         c.setOffice("President");
> > >                         c.setName("Jacob Robert Wilkins");
> > >                         c.setUrl("http://www.nplus1.net/";);
> > >                         c.setEmail("[EMAIL PROTECTED]");
> > >                         c.setBio("Some really Long text");
> > >                         c.setImage("/path/to/image");
> > >                         c.setActive(true);
> > >                         System.out.println("values set");
> > >                         c.save();
> > >                         System.out.println("save called");
> > >
> > >
> > >                         System.out.println("Finished CandidateTest");
> > >
> > >                  }
> > >  }
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to