Return-Path: Mailing-List: contact turbine-torque-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-torque-user@jakarta.apache.org Received: (qmail 7497 invoked by uid 98); 24 Jan 2003 13:57:15 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 7478 invoked from network); 24 Jan 2003 13:57:13 -0000 Received: from unknown (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 24 Jan 2003 13:57:13 -0000 Received: (qmail 76662 invoked by uid 500); 24 Jan 2003 13:55:49 -0000 Received: (qmail 76655 invoked from network); 24 Jan 2003 13:55:49 -0000 Received: from unknown (HELO smtp3.crystaltech.com) (216.119.106.212) by 208.185.179.12.available.above.net with SMTP; 24 Jan 2003 13:55:49 -0000 Received: (qmail 822 invoked from network); 24 Jan 2003 13:59:20 -0000 Received: from mail1.crystaltech.com (HELO webterminator19.CRYSTALTECH.COM) (216.119.106.20) by smtp3.crystaltech.com with SMTP; 24 Jan 2003 13:59:20 -0000 Received: from pool-151-201-11-254.pitt.east.verizon.net [151.201.11.254] by webterminator19.CRYSTALTECH.COM with ESMTP (SMTPD32-7.13) id A5E41770094; Fri, 24 Jan 2003 06:55:48 -0700 Subject: Re: Null Connection Object From: Patryk Laurent To: Turbine Torque Users List In-Reply-To: <001d01c2c350$c6fa2f00$6601a8c0@xenom> References: <001d01c2c350$c6fa2f00$6601a8c0@xenom> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8aevz1CD6Dz3tgHuuPjZ" X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 24 Jan 2003 08:59:24 -0500 Message-Id: <1043416765.16808.579.camel@tanooki> Mime-Version: 1.0 X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N --=-8aevz1CD6Dz3tgHuuPjZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Derick, Maybe this is too obvious, but I always get that error 1 - if I forget to start up mysql/psql on the new box, or=20 2 - if I forget to allow TCP/IP connections on that instance of the server (such as postmaster -i with PostgreSQL). However I think mysql allows connections by defauly so this may not apply. Patryk =20 On Thu, 2003-01-23 at 21:32, Derick Fernando wrote: > Hello, >=20 > I keep getting: >=20 > java.lang.NullPointerException: Connection object was null. This could be > due to a misconfiguration of the DataSourceFactory. Check the logs and > Torque.properties to better determine the cause. > at org.apache.torque.util.Transaction.rollback(Transaction.java:179) > at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1333) > at > com.aurajen46.web.om.BaseProductsPeer.doSelectVillageRecords(BaseProducts= Pee > r.java:515) > at > com.aurajen46.web.om.BaseProductsPeer.doSelectVillageRecords(BaseProducts= Pee > r.java:435) > at com.aurajen46.web.om.BaseProductsPeer.doSelect(BaseProductsPeer.java:4= 03) > at com.aurajen46.web.modules.screens.Man.getDefaultShirt(Man.java:111) > at com.aurajen46.web.modules.screens.Man.getcurrentItem(Man.java:165) > at com.aurajen46.web.modules.screens.Man.doBuildTemplate(Man.java:63) > at > org.apache.turbine.modules.screens.VelocityScreen.doBuildTemplate(Velocit= ySc > reen.java:111) > at > org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.= jav > a:129) > at org.apache.turbine.modules.Screen.build(Screen.java:99) > at org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129) > ####################### >=20 > But the same webapp, with the same databse name and same username etc wor= ks > perfectly on two development stations. When I upload it to the host howev= er, > I keep getting this error. I've checked Torque.properties over and over, = and > can't find anything wrong with it: >=20 > torque.database.default=3Dweb > torque.database.web.adapter=3Dmysql > ## Using torque's old pool > torque.dsfactory.web.factory=3Dorg.apache.torque.dsfactory.TorqueDataSour= ceFac > tory > torque.dsfactory.web.pool.defaultMaxConnections=3D10 > torque.dsfactory.web.pool.maxExpiryTime=3D3600 > torque.dsfactory.web.pool.connectionWaitTimeout=3D10 > torque.dsfactory.web.connection.driver =3D org.gjt.mm.mysql.Driver > torque.dsfactory.web.connection.url =3D jdbc:mysql://localhost/aura > torque.dsfactory.web.connection.user =3D aurauser > torque.dsfactory.web.connection.password =3D password >=20 >=20 > Any Ideas? > Thanks, > Derick >=20 >=20 > -- > To unsubscribe, e-mail: > For additional commands, e-mail: >=20 >=20 --=-8aevz1CD6Dz3tgHuuPjZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA+MUa8Ng67vCDdkt4RAisZAJ96hUgUPuodHw5PHyQRrGOPoBlfGgCfZGTt vUlR0m9Lp2AKN+EiGT+eElA= =oxK2 -----END PGP SIGNATURE----- --=-8aevz1CD6Dz3tgHuuPjZ--