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

Reply via email to