You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Siegfried Goeschl (JIRA)" <ji...@apache.org> on 2007/06/01 18:08:17 UTC
[jira] Created: (TRB-66) JUnit tests for fulcrum-security-torque
are broken
JUnit tests for fulcrum-security-torque are broken
--------------------------------------------------
Key: TRB-66
URL: https://issues.apache.org/jira/browse/TRB-66
Project: Turbine
Issue Type: Bug
Components: Fulcrum
Environment: Mac OS X
Maven 1.0.2
Reporter: Siegfried Goeschl
I'm still unable to run the regeression tests successfully
+) TV points out that the tests are working
+) this is the only component using torque-3.3-RC1 - I just redownload the library to avoid a stale copy
CONSOLE OUTPUT
=======================================================================
test:test:
[junit] Running org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
[junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest FAILED
[junit] Running org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest
[junit] Tests run: 12, Failures: 11, Errors: 0, Time elapsed: 1.029 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest FAILED
[junit] Running org.apache.fulcrum.security.torque.StartingSecurityServicesTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec
[junit] Running org.apache.fulcrum.security.torque.TorqueGroupManagerTest
[junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.038 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueGroupManagerTest FAILED
[junit] Running org.apache.fulcrum.security.torque.TorquePermissionManagerTest
[junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.018 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorquePermissionManagerTest FAILED
[junit] Running org.apache.fulcrum.security.torque.TorqueRoleManagerTest
[junit] Tests run: 11, Failures: 0, Errors: 9, Time elapsed: 1.023 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueRoleManagerTest FAILED
[junit] Running org.apache.fulcrum.security.torque.TorqueUserManagerTest
[junit] Tests run: 17, Failures: 0, Errors: 14, Time elapsed: 1.174 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueUserManagerTest FAILED
[junit] Running org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest
[junit] Tests run: 7, Failures: 6, Errors: 0, Time elapsed: 0.917 sec
[junit] [ERROR] TEST org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest FAILED
TEST REPORT
=========================================================================================
Testsuite: org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
------------- Standard Output ---------------
src/test/fulcrum-basic-schema.sql
src/test/id-table-schema.sql
src/test/fulcrum-basic-schema-idtable-init.sql
[DEBUG] Starting container...
[DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
[DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
[DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
<fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
[DEBUG] Using the following container type : yaafi
[DEBUG] YAAFI Service Framework is starting up
[DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
[DEBUG] Setting tempRootDir to /tmp
[DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
[DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
[DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
[DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
[DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
[DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
[DEBUG] Looking for /parameters.properties in the root directory
[DEBUG] Looking for /parameters.properties as absolute file location
[DEBUG] Looking for /parameters.properties using the class loader
[WARNING] Unable to locate /parameters.properties
[DEBUG] Incarnating the service torqueService
[DEBUG] Instantiating the implementation class for torqueService
[DEBUG] Incarnating the service torqueService
[DEBUG] LogEnabled.enableLogging() for torqueService
[DEBUG] Contextualizable.contextualize() for torqueService
[DEBUG] Configurable.configure() for torqueService
[DEBUG] configure(torqueService::<no value>:@null:33:20)
[DEBUG] Config File changes to src/test/Torque.properties
[DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
[DEBUG] Initializable.initialize() for torqueService
[DEBUG] initialize()
[DEBUG] Startable.start() for torqueService
[DEBUG] start()
[DEBUG] Incarnating the service securityService
[DEBUG] Instantiating the implementation class for securityService
[DEBUG] Incarnating the service securityService
[DEBUG] LogEnabled.enableLogging() for securityService
[DEBUG] Serviceable.service() for securityService
[DEBUG] Configurable.configure() for securityService
[DEBUG] Initializable.initialize() for securityService
[DEBUG] Incarnating the service userManager
[DEBUG] Instantiating the implementation class for userManager
[DEBUG] Incarnating the service userManager
[DEBUG] LogEnabled.enableLogging() for userManager
[DEBUG] Serviceable.service() for userManager
[DEBUG] Configurable.configure() for userManager
[DEBUG] Incarnating the service groupManager
[DEBUG] Instantiating the implementation class for groupManager
[DEBUG] Incarnating the service groupManager
[DEBUG] LogEnabled.enableLogging() for groupManager
[DEBUG] Serviceable.service() for groupManager
[DEBUG] Configurable.configure() for groupManager
[DEBUG] Incarnating the service modelManager
[DEBUG] Instantiating the implementation class for modelManager
[DEBUG] Incarnating the service modelManager
[DEBUG] LogEnabled.enableLogging() for modelManager
[DEBUG] Serviceable.service() for modelManager
[DEBUG] Incarnating the service authenticator
[DEBUG] Instantiating the implementation class for authenticator
[DEBUG] Incarnating the service authenticator
[DEBUG] LogEnabled.enableLogging() for authenticator
[DEBUG] Incarnating the service aclFactory
[DEBUG] Instantiating the implementation class for aclFactory
[DEBUG] Incarnating the service aclFactory
[DEBUG] LogEnabled.enableLogging() for aclFactory
[DEBUG] Serviceable.service() for aclFactory
[INFO] YAAFI Avalon Service Container is up and running
[INFO] YaffiContainer ready.
[DEBUG] Starting container...
[DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
[DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
[DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
<fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
[DEBUG] Using the following container type : yaafi
[DEBUG] YAAFI Service Framework is starting up
[DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
[DEBUG] Setting tempRootDir to /tmp
[DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
[DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
[DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
[DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
[DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
[DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
[DEBUG] Looking for /parameters.properties in the root directory
[DEBUG] Looking for /parameters.properties as absolute file location
[DEBUG] Looking for /parameters.properties using the class loader
[WARNING] Unable to locate /parameters.properties
[DEBUG] Incarnating the service torqueService
[DEBUG] Instantiating the implementation class for torqueService
[DEBUG] Incarnating the service torqueService
[DEBUG] LogEnabled.enableLogging() for torqueService
[DEBUG] Contextualizable.contextualize() for torqueService
[DEBUG] Configurable.configure() for torqueService
[DEBUG] configure(torqueService::<no value>:@null:33:20)
[DEBUG] Config File changes to src/test/Torque.properties
[DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
[DEBUG] Initializable.initialize() for torqueService
[DEBUG] initialize()
[DEBUG] Startable.start() for torqueService
[DEBUG] start()
[DEBUG] Incarnating the service securityService
[DEBUG] Instantiating the implementation class for securityService
[DEBUG] Incarnating the service securityService
[DEBUG] LogEnabled.enableLogging() for securityService
[DEBUG] Serviceable.service() for securityService
[DEBUG] Configurable.configure() for securityService
[DEBUG] Initializable.initialize() for securityService
[DEBUG] Incarnating the service userManager
[DEBUG] Instantiating the implementation class for userManager
[DEBUG] Incarnating the service userManager
[DEBUG] LogEnabled.enableLogging() for userManager
[DEBUG] Serviceable.service() for userManager
[DEBUG] Configurable.configure() for userManager
[DEBUG] Incarnating the service groupManager
[DEBUG] Instantiating the implementation class for groupManager
[DEBUG] Incarnating the service groupManager
[DEBUG] LogEnabled.enableLogging() for groupManager
[DEBUG] Serviceable.service() for groupManager
[DEBUG] Configurable.configure() for groupManager
[DEBUG] Incarnating the service modelManager
[DEBUG] Instantiating the implementation class for modelManager
[DEBUG] Incarnating the service modelManager
[DEBUG] LogEnabled.enableLogging() for modelManager
[DEBUG] Serviceable.service() for modelManager
[DEBUG] Incarnating the service authenticator
[DEBUG] Instantiating the implementation class for authenticator
[DEBUG] Incarnating the service authenticator
[DEBUG] LogEnabled.enableLogging() for authenticator
[DEBUG] Incarnating the service aclFactory
[DEBUG] Instantiating the implementation class for aclFactory
[DEBUG] Incarnating the service aclFactory
[DEBUG] LogEnabled.enableLogging() for aclFactory
[DEBUG] Serviceable.service() for aclFactory
[INFO] YAAFI Avalon Service Container is up and running
[INFO] YaffiContainer ready.
[DEBUG] Starting container...
[DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
[DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
[DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
<fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
[DEBUG] Using the following container type : yaafi
[DEBUG] YAAFI Service Framework is starting up
[DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
[DEBUG] Setting tempRootDir to /tmp
[DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
[DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
[DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
[DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
[DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
[DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
[DEBUG] Looking for /parameters.properties in the root directory
[DEBUG] Looking for /parameters.properties as absolute file location
[DEBUG] Looking for /parameters.properties using the class loader
[WARNING] Unable to locate /parameters.properties
[DEBUG] Incarnating the service torqueService
[DEBUG] Instantiating the implementation class for torqueService
[DEBUG] Incarnating the service torqueService
[DEBUG] LogEnabled.enableLogging() for torqueService
[DEBUG] Contextualizable.contextualize() for torqueService
[DEBUG] Configurable.configure() for torqueService
[DEBUG] configure(torqueService::<no value>:@null:33:20)
[DEBUG] Config File changes to src/test/Torque.properties
[DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
[DEBUG] Initializable.initialize() for torqueService
[DEBUG] initialize()
[DEBUG] Startable.start() for torqueService
[DEBUG] start()
[DEBUG] Incarnating the service securityService
[DEBUG] Instantiating the implementation class for securityService
[DEBUG] Incarnating the service securityService
[DEBUG] LogEnabled.enableLogging() for securityService
[DEBUG] Serviceable.service() for securityService
[DEBUG] Configurable.configure() for securityService
[DEBUG] Initializable.initialize() for securityService
[DEBUG] Incarnating the service userManager
[DEBUG] Instantiating the implementation class for userManager
[DEBUG] Incarnating the service userManager
[DEBUG] LogEnabled.enableLogging() for userManager
[DEBUG] Serviceable.service() for userManager
[DEBUG] Configurable.configure() for userManager
[DEBUG] Incarnating the service groupManager
[DEBUG] Instantiating the implementation class for groupManager
[DEBUG] Incarnating the service groupManager
[DEBUG] LogEnabled.enableLogging() for groupManager
[DEBUG] Serviceable.service() for groupManager
[DEBUG] Configurable.configure() for groupManager
[DEBUG] Incarnating the service modelManager
[DEBUG] Instantiating the implementation class for modelManager
[DEBUG] Incarnating the service modelManager
[DEBUG] LogEnabled.enableLogging() for modelManager
[DEBUG] Serviceable.service() for modelManager
[DEBUG] Incarnating the service authenticator
[DEBUG] Instantiating the implementation class for authenticator
[DEBUG] Incarnating the service authenticator
[DEBUG] LogEnabled.enableLogging() for authenticator
[DEBUG] Incarnating the service aclFactory
[DEBUG] Instantiating the implementation class for aclFactory
[DEBUG] Incarnating the service aclFactory
[DEBUG] LogEnabled.enableLogging() for aclFactory
[DEBUG] Serviceable.service() for aclFactory
[INFO] YAAFI Avalon Service Container is up and running
[INFO] YaffiContainer ready.
------------- ---------------- ---------------
------------- Standard Error -----------------
org.apache.torque.TorqueException: java.lang.NullPointerException
at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Caused by: java.lang.NullPointerException
at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
... 13 more
org.apache.torque.TorqueException: java.lang.NullPointerException
at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Caused by: java.lang.NullPointerException
at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
... 13 more
------------- ---------------- ---------------
Testcase: testGrantUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
org.apache.torque.TorqueException: java.lang.NullPointerException
junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
Testcase: testRevokeUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
org.apache.torque.TorqueException: java.lang.NullPointerException
junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org
[jira] Commented: (TRB-66) JUnit tests for fulcrum-security-torque
are broken
Posted by "Thomas Vandahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TRB-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501032 ]
Thomas Vandahl commented on TRB-66:
-----------------------------------
To make sure that we both work on the same basis, I reverted to Torque 3.2.
This gives me (as before):
---8<---
test:test:
[junit] Running org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1,028 sec
[junit] Running org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 1,473 sec
[junit] Running org.apache.fulcrum.security.torque.StartingSecurityServicesTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,609 sec
[junit] Running org.apache.fulcrum.security.torque.TorqueGroupManagerTest
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 1,355 sec
[junit] Running org.apache.fulcrum.security.torque.TorquePermissionManagerTest
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 1,324 sec
[junit] Running org.apache.fulcrum.security.torque.TorqueRoleManagerTest
[junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 1,305 sec
[junit] Running org.apache.fulcrum.security.torque.TorqueUserManagerTest
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed: 1,539 sec
[junit] Running org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 1,246 sec
---8<---
Would you please check if the maven-torque-plugin you are using is indeed the same version as the Torque runtime? This is not a silly question, because
Maven chooses to ignore the version requirement for the plugin for some reason. It may be necessary to remove the plugin and re-install it.
> JUnit tests for fulcrum-security-torque are broken
> --------------------------------------------------
>
> Key: TRB-66
> URL: https://issues.apache.org/jira/browse/TRB-66
> Project: Turbine
> Issue Type: Bug
> Components: Fulcrum
> Environment: Mac OS X
> Maven 1.0.2
> Reporter: Siegfried Goeschl
>
> I'm still unable to run the regeression tests successfully
> +) TV points out that the tests are working
> +) this is the only component using torque-3.3-RC1 - I just redownload the library to avoid a stale copy
> CONSOLE OUTPUT
> =======================================================================
> test:test:
> [junit] Running org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
> [junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest
> [junit] Tests run: 12, Failures: 11, Errors: 0, Time elapsed: 1.029 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.StartingSecurityServicesTest
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec
> [junit] Running org.apache.fulcrum.security.torque.TorqueGroupManagerTest
> [junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.038 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueGroupManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorquePermissionManagerTest
> [junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.018 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorquePermissionManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorqueRoleManagerTest
> [junit] Tests run: 11, Failures: 0, Errors: 9, Time elapsed: 1.023 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueRoleManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorqueUserManagerTest
> [junit] Tests run: 17, Failures: 0, Errors: 14, Time elapsed: 1.174 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueUserManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest
> [junit] Tests run: 7, Failures: 6, Errors: 0, Time elapsed: 0.917 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest FAILED
> TEST REPORT
> =========================================================================================
> Testsuite: org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
> Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
> ------------- Standard Output ---------------
> src/test/fulcrum-basic-schema.sql
> src/test/id-table-schema.sql
> src/test/fulcrum-basic-schema-idtable-init.sql
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> ------------- ---------------- ---------------
> ------------- Standard Error -----------------
> org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
> Caused by: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
> ... 13 more
> org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
> Caused by: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
> ... 13 more
> ------------- ---------------- ---------------
> Testcase: testGrantUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
> org.apache.torque.TorqueException: java.lang.NullPointerException
> junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
> Testcase: testRevokeUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
> org.apache.torque.TorqueException: java.lang.NullPointerException
> junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org
[jira] Closed: (TRB-66) JUnit tests for fulcrum-security-torque are
broken
Posted by "Siegfried Goeschl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TRB-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Siegfried Goeschl closed TRB-66.
--------------------------------
Resolution: Fixed
The regression tests now work without any problems
> JUnit tests for fulcrum-security-torque are broken
> --------------------------------------------------
>
> Key: TRB-66
> URL: https://issues.apache.org/jira/browse/TRB-66
> Project: Turbine
> Issue Type: Bug
> Components: Fulcrum
> Environment: Mac OS X
> Maven 1.0.2
> Reporter: Siegfried Goeschl
>
> I'm still unable to run the regeression tests successfully
> +) TV points out that the tests are working
> +) this is the only component using torque-3.3-RC1 - I just redownload the library to avoid a stale copy
> CONSOLE OUTPUT
> =======================================================================
> test:test:
> [junit] Running org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
> [junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest
> [junit] Tests run: 12, Failures: 11, Errors: 0, Time elapsed: 1.029 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.StartingSecurityServicesTest
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec
> [junit] Running org.apache.fulcrum.security.torque.TorqueGroupManagerTest
> [junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.038 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueGroupManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorquePermissionManagerTest
> [junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.018 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorquePermissionManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorqueRoleManagerTest
> [junit] Tests run: 11, Failures: 0, Errors: 9, Time elapsed: 1.023 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueRoleManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorqueUserManagerTest
> [junit] Tests run: 17, Failures: 0, Errors: 14, Time elapsed: 1.174 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueUserManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest
> [junit] Tests run: 7, Failures: 6, Errors: 0, Time elapsed: 0.917 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest FAILED
> TEST REPORT
> =========================================================================================
> Testsuite: org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
> Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
> ------------- Standard Output ---------------
> src/test/fulcrum-basic-schema.sql
> src/test/id-table-schema.sql
> src/test/fulcrum-basic-schema-idtable-init.sql
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> ------------- ---------------- ---------------
> ------------- Standard Error -----------------
> org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
> Caused by: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
> ... 13 more
> org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
> Caused by: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
> ... 13 more
> ------------- ---------------- ---------------
> Testcase: testGrantUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
> org.apache.torque.TorqueException: java.lang.NullPointerException
> junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
> Testcase: testRevokeUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
> org.apache.torque.TorqueException: java.lang.NullPointerException
> junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org
[jira] Commented: (TRB-66) JUnit tests for fulcrum-security-torque
are broken
Posted by "Siegfried Goeschl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TRB-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501184 ]
Siegfried Goeschl commented on TRB-66:
--------------------------------------
+) the tests seem to work now - I try to regenerate the site
+) I removed my cached torque libraries as you suggested
> JUnit tests for fulcrum-security-torque are broken
> --------------------------------------------------
>
> Key: TRB-66
> URL: https://issues.apache.org/jira/browse/TRB-66
> Project: Turbine
> Issue Type: Bug
> Components: Fulcrum
> Environment: Mac OS X
> Maven 1.0.2
> Reporter: Siegfried Goeschl
>
> I'm still unable to run the regeression tests successfully
> +) TV points out that the tests are working
> +) this is the only component using torque-3.3-RC1 - I just redownload the library to avoid a stale copy
> CONSOLE OUTPUT
> =======================================================================
> test:test:
> [junit] Running org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
> [junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest
> [junit] Tests run: 12, Failures: 11, Errors: 0, Time elapsed: 1.029 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.dynamic.TorqueDynamicModelManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.StartingSecurityServicesTest
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec
> [junit] Running org.apache.fulcrum.security.torque.TorqueGroupManagerTest
> [junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.038 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueGroupManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorquePermissionManagerTest
> [junit] Tests run: 12, Failures: 0, Errors: 10, Time elapsed: 1.018 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorquePermissionManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorqueRoleManagerTest
> [junit] Tests run: 11, Failures: 0, Errors: 9, Time elapsed: 1.023 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueRoleManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.TorqueUserManagerTest
> [junit] Tests run: 17, Failures: 0, Errors: 14, Time elapsed: 1.174 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.TorqueUserManagerTest FAILED
> [junit] Running org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest
> [junit] Tests run: 7, Failures: 6, Errors: 0, Time elapsed: 0.917 sec
> [junit] [ERROR] TEST org.apache.fulcrum.security.torque.turbine.TorqueTurbineModelManagerTest FAILED
> TEST REPORT
> =========================================================================================
> Testsuite: org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest
> Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 0.79 sec
> ------------- Standard Output ---------------
> src/test/fulcrum-basic-schema.sql
> src/test/id-table-schema.sql
> src/test/fulcrum-basic-schema-idtable-init.sql
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> [DEBUG] Starting container...
> [DEBUG] Loading the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Instantiating the service container class org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
> [DEBUG] Using the following configuration : <?xml version="1.0" encoding="UTF-8"?>
> <fulcrum-yaafi><containerFlavour>yaafi</containerFlavour><containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName><componentRoles><location>src/test/BasicTorqueRoleConfig.xml</location><isEncrypted>false</isEncrypted></componentRoles><componentConfiguration><location>src/test/BasicTorqueComponentConfig.xml</location><isEncrypted>false</isEncrypted></componentConfiguration><parameters><location/><isEncrypted>false</isEncrypted></parameters></fulcrum-yaafi>
> [DEBUG] Using the following container type : yaafi
> [DEBUG] YAAFI Service Framework is starting up
> [DEBUG] Setting applicationRootDir to /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque
> [DEBUG] Setting tempRootDir to /tmp
> [DEBUG] Looking for src/test/BasicTorqueRoleConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueRoleConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueRoleConfig.xml
> [DEBUG] Looking for src/test/BasicTorqueComponentConfig.xml in the root directory
> [DEBUG] Found src/test/BasicTorqueComponentConfig.xml as /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Successfully located src/test/BasicTorqueComponentConfig.xml
> [DEBUG] Looking for /parameters.properties in the root directory
> [DEBUG] Looking for /parameters.properties as absolute file location
> [DEBUG] Looking for /parameters.properties using the class loader
> [WARNING] Unable to locate /parameters.properties
> [DEBUG] Incarnating the service torqueService
> [DEBUG] Instantiating the implementation class for torqueService
> [DEBUG] Incarnating the service torqueService
> [DEBUG] LogEnabled.enableLogging() for torqueService
> [DEBUG] Contextualizable.contextualize() for torqueService
> [DEBUG] Configurable.configure() for torqueService
> [DEBUG] configure(torqueService::<no value>:@null:33:20)
> [DEBUG] Config File changes to src/test/Torque.properties
> [DEBUG] Config File is /Users/siegfriedgoeschl/work/jakarta/turbine/fulcrum/trunk/security/torque/src/test/Torque.properties
> [DEBUG] Initializable.initialize() for torqueService
> [DEBUG] initialize()
> [DEBUG] Startable.start() for torqueService
> [DEBUG] start()
> [DEBUG] Incarnating the service securityService
> [DEBUG] Instantiating the implementation class for securityService
> [DEBUG] Incarnating the service securityService
> [DEBUG] LogEnabled.enableLogging() for securityService
> [DEBUG] Serviceable.service() for securityService
> [DEBUG] Configurable.configure() for securityService
> [DEBUG] Initializable.initialize() for securityService
> [DEBUG] Incarnating the service userManager
> [DEBUG] Instantiating the implementation class for userManager
> [DEBUG] Incarnating the service userManager
> [DEBUG] LogEnabled.enableLogging() for userManager
> [DEBUG] Serviceable.service() for userManager
> [DEBUG] Configurable.configure() for userManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] Instantiating the implementation class for groupManager
> [DEBUG] Incarnating the service groupManager
> [DEBUG] LogEnabled.enableLogging() for groupManager
> [DEBUG] Serviceable.service() for groupManager
> [DEBUG] Configurable.configure() for groupManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] Instantiating the implementation class for modelManager
> [DEBUG] Incarnating the service modelManager
> [DEBUG] LogEnabled.enableLogging() for modelManager
> [DEBUG] Serviceable.service() for modelManager
> [DEBUG] Incarnating the service authenticator
> [DEBUG] Instantiating the implementation class for authenticator
> [DEBUG] Incarnating the service authenticator
> [DEBUG] LogEnabled.enableLogging() for authenticator
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] Instantiating the implementation class for aclFactory
> [DEBUG] Incarnating the service aclFactory
> [DEBUG] LogEnabled.enableLogging() for aclFactory
> [DEBUG] Serviceable.service() for aclFactory
> [INFO] YAAFI Avalon Service Container is up and running
> [INFO] YaffiContainer ready.
> ------------- ---------------- ---------------
> ------------- Standard Error -----------------
> org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
> Caused by: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
> ... 13 more
> org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:109)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:392)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:319)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:500)
> at org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer.doDelete(BaseTorqueBasicUserGroupPeer.java:477)
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:72)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
> Caused by: java.lang.NullPointerException
> at org.apache.torque.util.BasePeer.processTables(BasePeer.java:1670)
> at org.apache.torque.util.BasePeer.doDelete(BasePeer.java:381)
> ... 13 more
> ------------- ---------------- ---------------
> Testcase: testGrantUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
> org.apache.torque.TorqueException: java.lang.NullPointerException
> junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
> Testcase: testRevokeUserGroup(org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest): FAILED
> org.apache.torque.TorqueException: java.lang.NullPointerException
> junit.framework.AssertionFailedError: org.apache.torque.TorqueException: java.lang.NullPointerException
> at org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerTest.tearDown(TorqueBasicModelManagerTest.java:85)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org