|
[jira] Commented: (TORQUE-68) DatabaseMap remains empty if Torque is stoppe: msg#00071jakarta.turbine.torque.devel
[ http://issues.apache.org/jira/browse/TORQUE-68?page=comments#action_12459268 ] Thomas Vandahl commented on TORQUE-68: -------------------------------------- I strongly believe that the reinstantiation of the component should work without any copying. If I start a new instance of Torque, no matter if in Avalon mode or not, I would expect everything to be as clean as if I started the first instance. This, in turn, means that we need to remove all static references in static classes to runtime-dependent objects. > DatabaseMap remains empty if Torque is stopped and restarted, causes NPEs > ------------------------------------------------------------------------- > > Key: TORQUE-68 > URL: http://issues.apache.org/jira/browse/TORQUE-68 > Project: Torque > Issue Type: Bug > Components: Runtime, Generator > Affects Versions: 3.3 > Environment: Avalon, JUnit-Tests > Reporter: Thomas Vandahl > > When running tests with the Fulcrum-Testcontainer, the TorqueComponent is > instantiated on every lookup (setUp()) and shutdown on every tearDown(). In > this scenario the first test succeeds and all others fail because the > DatabaseMap contains no tables. This is probably caused by invalid static > references to the DatabaseMap of the previous instance. This situation causes > NullPointerExceptions in several BasePeer methods(e.g. processTables()). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [jira] Commented: (TORQUE-68) DatabaseMap remains empty if Torque is stopped and restarted, causes NPEs: 00071, Thomas Fischer (JIRA) |
|---|---|
| Next by Date: | svn commit: r488235 - /db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java: 00071, tfischer |
| Previous by Thread: | [jira] Commented: (TORQUE-68) DatabaseMap remains empty if Torque is stopped and restarted, causes NPEsi: 00071, Thomas Fischer (JIRA) |
| Next by Thread: | [jira] Commented: (TORQUE-68) DatabaseMap remains empty if Torque is stopped and restarted, causes NPEs: 00071, Thomas Fischer (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |