Alfresco / alfresco-sdk

The Alfresco In-Process SDK is based on Apache Maven, includes support for rapid and standard development, testing, packaging, versioning and release of your Alfresco integration and extension projects
Apache License 2.0
186 stars 113 forks source link

DemoComponent unit test is not started "Could not start JUnit remoteServer because of: null" #252

Closed karolbe closed 9 years ago

karolbe commented 9 years ago

How to reproduce the issue:

  1. mvn archetype:generate -Dfilter=org.alfresco.maven.archetype: Select "remote -> org.alfresco.maven.archetype:alfresco-amp-archetype (Sample project with full support for lifecycle and rapid development of Repository AMPs (Alfresco Module Packages))", then alfresco-amp-archetype version 2.0.0, alfresco_target_version = 5.0.c
  2. run mvn test, you will see something like:
 T E S T S
-------------------------------------------------------
Running org.alfresco.demoamp.test.DemoComponentTest
2014-12-29 13:10:09,299  WARN  [alfresco.util.RuntimeSystemPropertiesSetter] [main] Could not find alfresco-jmxrmi.password on classpath
 2014-12-29 13:10:09,480  INFO  [alfresco.repo.admin] [main] Using database URL 'jdbc:h2:./alf_data_dev/h2_data/alf_dev;MODE=PostgreSQL;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0' with user 'alfresco'.
 2014-12-29 13:10:09,708  INFO  [alfresco.repo.admin] [main] Connected to database H2 version 1.4.182 (2014-10-17)
 2014-12-29 13:10:14,331  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
 2014-12-29 13:10:14,346  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
 2014-12-29 13:10:14,353  INFO  [domain.schema.SchemaBootstrap] [main] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
 SDK Demo AMP class has been loaded
2014-12-29 13:10:18,232  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
 2014-12-29 13:10:18,253  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete
 2014-12-29 13:10:18,256  INFO  [domain.schema.SchemaBootstrap] [main] Connecting to database: jdbc:h2:./alf_data_dev/h2_data/alf_dev, UserName=ALFRESCO, H2 JDBC Driver
 2014-12-29 13:10:18,256  INFO  [domain.schema.SchemaBootstrap] [main] Schema managed by database dialect org.hibernate.dialect.H2Dialect.
 Server running at http://localhost:4578
2014-12-29 13:10:18,317  WARN  [domain.schema.SchemaBootstrap] [main] Schema validation found 83 potential problems, results written to: /tmp/Alfresco/Alfresco-H2Dialect-Validation-Pre-Upgrade-alf_-404660820180587651.txt
 2014-12-29 13:10:18,326  WARN  [domain.schema.SchemaBootstrap] [main] Schema validation found 28 potential problems, results written to: /tmp/Alfresco/Alfresco-H2Dialect-Validation-Pre-Upgrade-jbpm_-5202106591859205406.txt
 2014-12-29 13:10:18,334  WARN  [domain.schema.SchemaBootstrap] [main] Schema validation found 25 potential problems, results written to: /tmp/Alfresco/Alfresco-H2Dialect-Validation-Pre-Upgrade-act_-5797620205046308129.txt
 2014-12-29 13:10:18,357  INFO  [domain.schema.SchemaBootstrap] [main] Normalized schema dumped to file /tmp/Alfresco/Alfresco-schema-H2Dialect-pre-upgrade-alf_-8390570783725035092.xml.
 2014-12-29 13:10:18,357  INFO  [domain.schema.SchemaBootstrap] [main] Normalized schema dumped to file /tmp/Alfresco/Alfresco-schema-H2Dialect-pre-upgrade-jbpm_-4830067128557540539.xml.
 2014-12-29 13:10:18,357  INFO  [domain.schema.SchemaBootstrap] [main] Normalized schema dumped to file /tmp/Alfresco/Alfresco-schema-H2Dialect-pre-upgrade-act_-2043845882645385896.xml.
 2014-12-29 13:10:18,358  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-657479328344365725.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-RepoTables.sql).
 2014-12-29 13:10:18,426  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-938227241184442847.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-LockTables.sql).
 2014-12-29 13:10:18,431  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-7409962818087718897.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-ContentTables.sql).
 2014-12-29 13:10:18,441  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-2022034379693399884.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-PropertyValueTables.sql).
 2014-12-29 13:10:18,457  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-1644004195155680811.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-ContentUrlEncryptionTables.sql).
 2014-12-29 13:10:18,460  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-3925411343449407103.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-AuditTables.sql).
 2014-12-29 13:10:18,469  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-2917985175764586199.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-ActivityTables.sql).
 2014-12-29 13:10:18,473  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-2513360460537849406.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-UsageTables.sql).
 2014-12-29 13:10:18,475  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-8998323729851415646.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-SubscriptionTables.sql).
 2014-12-29 13:10:18,478  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-7082824933527480049.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoCreate-TenantTables.sql).
 2014-12-29 13:10:18,510  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-7791657901966836418.sql (Generated).
 2014-12-29 13:10:18,586  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-7733227549416395919.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoPostCreate-JBPM-Extra.sql).
 2014-12-29 13:10:18,587  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-1982975251169859536.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoPostCreate-JBPM-FK-indexes.sql).
 2014-12-29 13:10:18,603  INFO  [domain.schema.SchemaBootstrap] [main] Executing database script /tmp/Alfresco/AlfrescoSchema-H2Dialect-Update-7384518326172099694.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.H2Dialect/AlfrescoPostCreate-JBPM-varinst-indexes.sql).
 2014-12-29 13:10:18,603  INFO  [domain.schema.SchemaBootstrap] [main] Create scripts executed in 329 ms
 2014-12-29 13:10:18,989  INFO  [domain.schema.SchemaBootstrap] [main] All executed statements:  /tmp/Alfresco/AlfrescoSchema-H2Dialect-All_Statements-3996416967187385608.sql.
 2014-12-29 13:10:19,462  WARN  [domain.schema.SchemaBootstrap] [main] Schema validation found 737 potential problems, results written to: /tmp/Alfresco/Alfresco-H2Dialect-Validation-Post-Upgrade-alf_-2613180022673161596.txt
 2014-12-29 13:10:19,589  WARN  [domain.schema.SchemaBootstrap] [main] Schema validation found 760 potential problems, results written to: /tmp/Alfresco/Alfresco-H2Dialect-Validation-Post-Upgrade-jbpm_-1062470349847009311.txt
 2014-12-29 13:10:19,688  ERROR [domain.schema.SchemaBootstrap] [main] Unable to validate database schema.
 java.lang.IllegalArgumentException: dbObject cannot be null.
    at org.alfresco.util.schemacomp.DbProperty.<init>(DbProperty.java:51)
    at org.alfresco.util.schemacomp.DbProperty.<init>(DbProperty.java:113)
    at org.alfresco.util.schemacomp.model.AbstractDbObject.diff(AbstractDbObject.java:175)
    at org.alfresco.util.schemacomp.model.Table.doDiff(Table.java:220)
    at org.alfresco.util.schemacomp.model.AbstractDbObject.diff(AbstractDbObject.java:178)
    at org.alfresco.util.schemacomp.DefaultComparisonUtils.compareCollections(DefaultComparisonUtils.java:208)
    at org.alfresco.util.schemacomp.model.Schema.doDiff(Schema.java:181)
    at org.alfresco.util.schemacomp.model.AbstractDbObject.diff(AbstractDbObject.java:178)
    at org.alfresco.util.schemacomp.SchemaComparator.compare(SchemaComparator.java:66)
    at org.alfresco.util.schemacomp.SchemaComparator.validateAndCompare(SchemaComparator.java:57)
    at org.alfresco.repo.domain.schema.SchemaBootstrap.attemptValidateSchema(SchemaBootstrap.java:1920)
    at org.alfresco.repo.domain.schema.SchemaBootstrap.validateSchema(SchemaBootstrap.java:1862)
    at org.alfresco.repo.domain.schema.SchemaBootstrap.validateSchema(SchemaBootstrap.java:1849)
    at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1749)
    at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
    at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
    at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
    at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
    at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
    at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
    at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
    at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
    at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
    at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
    at com.tradeshift.test.remote.RemoteTestRunner.run(RemoteTestRunner.java:73)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2014-12-29 13:10:20,051  INFO  [domain.schema.SchemaBootstrap] [main] Normalized schema dumped to file /tmp/Alfresco/Alfresco-schema-H2Dialect-post-upgrade-alf_-1133306521667327199.xml.
 2014-12-29 13:10:20,051  INFO  [domain.schema.SchemaBootstrap] [main] Normalized schema dumped to file /tmp/Alfresco/Alfresco-schema-H2Dialect-post-upgrade-jbpm_-6237123780046442465.xml.
 2014-12-29 13:10:20,051  INFO  [domain.schema.SchemaBootstrap] [main] Normalized schema dumped to file /tmp/Alfresco/Alfresco-schema-H2Dialect-post-upgrade-act_-3570957450147681477.xml.
 2014-12-29 13:10:20,260  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, hidden]
 2014-12-29 13:10:20,396  ERROR [lucene.fts.FullTextSearchIndexerBootstrapBean] [main] The lucene search subsystem is not supported. Please see http://docs.alfresco.com/5.0/tasks/lucene-solr4-migration.html
 2014-12-29 13:10:20,397  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Search' subsystem, ID: [Search, hidden] complete
 2014-12-29 13:10:20,804  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Transformers' subsystem, ID: [Transformers, default]
 2014-12-29 13:10:20,907  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
 2014-12-29 13:10:20,908  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
 2014-12-29 13:10:20,925  ERROR [content.transform.RuntimeExecutableContentTransformerWorker] [main] Failed to start a runtime executable content transformer: 
Execution result: 
   os:         Linux
   command:    ./bin/pdf2swf -V
   succeeded:  false
   exit code:  1
   out:        
   err:        Cannot run program "./bin/pdf2swf": error=2, No such file or directory
 2014-12-29 13:10:20,949  ERROR [transform.magick.AbstractImageMagickContentTransformerWorker] [main] ImageMagickContentTransformerWorker not available: 11290000 Failed to perform ImageMagick transformation: 
Execution result: 
   os:         Linux
   command:    ./ImageMagick/bin/convert /tmp/Alfresco/ImageMagickContentTransformerWorker_init_source_3890940907346501187.gif /tmp/Alfresco/ImageMagickContentTransformerWorker_init_target_1650176244208975675.png
   succeeded:  false
   exit code:  410
   out:        
   err:        Cannot run program "./ImageMagick/bin/convert": error=2, No such file or directory
 2014-12-29 13:10:20,950  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
 2014-12-29 13:10:20,953  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
 2014-12-29 13:10:21,068  WARN  [alfresco.util.OpenOfficeConnectionTester] [main] An initial OpenOffice connection could not be established.
 2014-12-29 13:10:21,070  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
 2014-12-29 13:10:27,153  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
 2014-12-29 13:10:27,196  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
 2014-12-29 13:10:27,354  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,361  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,388  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,389  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,437  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,437  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,464  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,464  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,486  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,486  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,507  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,508  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,530  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,531  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,553  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,554  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,580  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,581  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,609  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,610  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,640  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,641  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,669  WARN  [jpdl.xml.JpdlXmlReader] [main] process xml warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:27,669  WARN  [jpdl.xml.JpdlXmlReader] [main] process parse warning: swimlane 'initiator' does not have an assignment
 2014-12-29 13:10:28,113  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = activitiReview | processDefinitionName = Review And Approve Activiti Process |  | id = reviewDecision |  | activityName = Review Decision | ] ( line: 48, column: 9)

 2014-12-29 13:10:28,222  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = activitiReviewPooled | processDefinitionName = Pooled Review And Approve Activiti Process |  | id = reviewDecision |  | activityName = Review Decision | ] ( line: 49, column: 9)

 2014-12-29 13:10:28,298  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = activitiParallelReview | processDefinitionName = Parallel Review And Approve Activiti Process |  | id = reviewDecision |  | activityName = Review Decision | ] ( line: 86, column: 9)

 2014-12-29 13:10:28,356  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = activitiParallelGroupReview | processDefinitionName = Parallel Group Review And Approve Activiti Process |  | id = reviewDecision |  | activityName = Review Decision | ] ( line: 108, column: 9)

 2014-12-29 13:10:28,406  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = activitiInvitationModerated | processDefinitionName = Moderated activiti invitation process |  | id = reviewDecision |  | activityName = Review Decision | ] ( line: 46, column: 7)

 2014-12-29 13:10:28,428  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = activitiInvitationNominated | processDefinitionName = Nominated activiti invitation process |  | id = inviteGateway |  | activityName = Invite Gateway | ] ( line: 48, column: 7)

 2014-12-29 13:10:28,517  INFO  [repo.admin.ConfigurationChecker] [main] The Alfresco root data directory ('dir.root') is: alf_data_dev
 2014-12-29 13:10:28,553  INFO  [admin.patch.PatchExecuter] [main] Checking for patches to apply ...
 2014-12-29 13:10:28,588  WARN  [admin.patch.PatchExecuter] [main] Patch description is not available: Patch[ id=patch.contentFormFolderType, description=patch.contentFormFolderType.description, fixesFromSchema=0, fixesToSchema=36, targetSchema=37, ignored=false]
 2014-12-29 13:10:28,595  WARN  [admin.patch.PatchExecuter] [main] Patch description is not available: Patch[ id=patch.redeploySubmitProcess, description=patch.redeploySubmitProcess.description, fixesFromSchema=0, fixesToSchema=57, targetSchema=58, ignored=false]
 2014-12-29 13:10:28,711  INFO  [admin.patch.PatchExecuter] [main]  Applying patch 'patch.siteLoadPatch.swsdp' (Loads a sample site into the repository.).
 2014-12-29 13:10:31,287  INFO  [admin.patch.PatchExecuter] [main]  Applying patch 'patch.exampleJavaScript' (Loads sample Javascript file into datadictionary scripts folder).
 2014-12-29 13:10:31,438  INFO  [admin.patch.PatchExecuter] [main] 
=== Applied patch                 === 
ID: patch.db-V3.4-UsageTables
RESULT: 
Script completed
=====================================
 2014-12-29 13:10:31,438  INFO  [admin.patch.PatchExecuter] [main] 
=== Applied patch                 === 
ID: patch.db-V4.0-TenantTables
RESULT: 
Script completed
=====================================
 2014-12-29 13:10:31,439  INFO  [admin.patch.PatchExecuter] [main] 
=== Applied patch                 === 
ID: patch.db-V3.4-JBPM-varinst-indexes
RESULT: 
Script completed
=====================================
 2014-12-29 13:10:31,439  INFO  [admin.patch.PatchExecuter] [main] 
=== Applied patch                 === 
ID: patch.db-V5.0-ContentUrlEncryptionTables
RESULT: 
Script completed
=====================================
 2014-12-29 13:10:31,439  INFO  [admin.patch.PatchExecuter] [main] 
=== Applied patch                 === 
ID: patch.siteLoadPatch.swsdp
RESULT: 
Site swsdp imported.
=====================================
 2014-12-29 13:10:31,439  INFO  [admin.patch.PatchExecuter] [main] 
=== Applied patch                 === 
ID: patch.exampleJavaScript
RESULT: 
Imported view into bootstrap location: /app:company_home/app:dictionary/app:scripts (workspace://SpacesStore/c8774e03-3d06-49ed-99a8-034f720b7fd3)
=====================================
 2014-12-29 13:10:31,446  INFO  [repo.module.ModuleServiceImpl] [main] Found 1 module(s).
 2014-12-29 13:10:31,456  INFO  [repo.module.ModuleServiceImpl] [main] Installing module 'test-amp' version 1.0.1412291310.
 2014-12-29 13:10:31,521  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'fileServers' subsystem, ID: [fileServers, default]
 2014-12-29 13:10:31,674  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
 2014-12-29 13:10:31,674  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'imap' subsystem, ID: [imap, default]
 2014-12-29 13:10:31,714  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'imap' subsystem, ID: [imap, default] complete
 2014-12-29 13:10:31,715  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'email' subsystem, ID: [email, outbound]
 2014-12-29 13:10:31,747  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'email' subsystem, ID: [email, outbound] complete
 2014-12-29 13:10:31,747  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'email' subsystem, ID: [email, inbound]
 2014-12-29 13:10:31,773  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'email' subsystem, ID: [email, inbound] complete
 2014-12-29 13:10:31,773  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Subscriptions' subsystem, ID: [Subscriptions, default]
 2014-12-29 13:10:31,783  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete
 2014-12-29 13:10:31,789  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
 2014-12-29 13:10:31,819  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
 2014-12-29 13:10:31,833  INFO  [service.descriptor.DescriptorService] [main] Alfresco JVM - v1.7.0_72-b14; maximum heap size 1355.000MB
 2014-12-29 13:10:31,833  INFO  [service.descriptor.DescriptorService] [main] Server Mode :UNKNOWN
 2014-12-29 13:10:31,833  INFO  [service.descriptor.DescriptorService] [main] Alfresco started (Community). Current version: 5.0.0 (c r91299-b145) schema 8,009. Originally installed version: 5.0.0 (c r91299-b145) schema 8,009.
 2014-12-29 13:10:31,837  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
 2014-12-29 13:10:31,947  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
 2014-12-29 13:10:31,947  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Replication' subsystem, ID: [Replication, default]
 2014-12-29 13:10:31,956  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Replication' subsystem, ID: [Replication, default] complete
 2014-12-29 13:10:32,840  WARN  [bpmn.parser.BpmnParse] [main] Following warnings encountered during process validation: [Validation set: 'activiti-executable-process' | Problem: 'activiti-exclusive-gateway-seq-flow-without-conditions'] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn't the default one) - [Extra info : processDefinitionId = publishWebContent | processDefinitionName = Publish Web Content Activiti Process |  | id = checkForScheduledTime |  | activityName = Check Schedule | ] ( line: 46, column: 9)

 2014-12-29 13:10:32,977  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 13 Web Scripts (+0 failed), 15 URLs
 2014-12-29 13:10:32,977  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 1 Package Description Documents (+0 failed) 
 2014-12-29 13:10:32,977  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 0 Schema Description Documents (+0 failed) 
 2014-12-29 13:10:32,979  INFO  [extensions.webscripts.AbstractRuntimeContainer] [main] Initialised Spring Web Scripts Container Web Script Container (in 67.86741ms)
 2014-12-29 13:10:32,995  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
 2014-12-29 13:10:32,998  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.583 sec - in org.alfresco.demoamp.test.DemoComponentTest
Could not start JUnit remoteServer because of: null
2014-12-29 13:10:33,059  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'Replication' subsystem, ID: [Replication, default]
 2014-12-29 13:10:33,059  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'Replication' subsystem, ID: [Replication, default]
 2014-12-29 13:10:33,078  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'Subscriptions' subsystem, ID: [Subscriptions, default]
 2014-12-29 13:10:33,079  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'Subscriptions' subsystem, ID: [Subscriptions, default]
 2014-12-29 13:10:33,079  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'email' subsystem, ID: [email, inbound]
 2014-12-29 13:10:33,079  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'email' subsystem, ID: [email, inbound]
 2014-12-29 13:10:33,079  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'fileServers' subsystem, ID: [fileServers, default]
 2014-12-29 13:10:33,080  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'fileServers' subsystem, ID: [fileServers, default]
 2014-12-29 13:10:33,082  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
 2014-12-29 13:10:33,082  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
 2014-12-29 13:10:33,082  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'solrSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
 2014-12-29 13:10:33,082  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'activitiesSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
 2014-12-29 13:10:33,083  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'OOoDirect' subsystem, ID: [OOoDirect, default]
 2014-12-29 13:10:33,083  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'OOoDirect' subsystem, ID: [OOoDirect, default]
 2014-12-29 13:10:33,083  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
 2014-12-29 13:10:33,084  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
 2014-12-29 13:10:33,084  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'Synchronization' subsystem, ID: [Synchronization, default]
 2014-12-29 13:10:33,085  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'Synchronization' subsystem, ID: [Synchronization, default]
 2014-12-29 13:10:33,085  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'email' subsystem, ID: [email, outbound]
 2014-12-29 13:10:33,085  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'email' subsystem, ID: [email, outbound]
 2014-12-29 13:10:33,086  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'imap' subsystem, ID: [imap, default]
 2014-12-29 13:10:33,087  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'imap' subsystem, ID: [imap, default]
 2014-12-29 13:10:33,212  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'Search' subsystem, ID: [Search, hidden]
 2014-12-29 13:10:33,371  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'Search' subsystem, ID: [Search, hidden]
 2014-12-29 13:10:33,422  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'locksSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
 2014-12-29 13:10:33,423  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'propertyValueSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
 2014-12-29 13:10:33,423  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'thirdparty' subsystem, ID: [thirdparty, default]
 2014-12-29 13:10:33,424  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'thirdparty' subsystem, ID: [thirdparty, default]
 2014-12-29 13:10:33,424  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'Transformers' subsystem, ID: [Transformers, default]
 2014-12-29 13:10:33,425  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'Transformers' subsystem, ID: [Transformers, default]
 2014-12-29 13:10:33,425  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'auditSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
 2014-12-29 13:10:33,425  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
 2014-12-29 13:10:33,426  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
 2014-12-29 13:10:33,427  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'contentSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
 2014-12-29 13:10:33,427  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default]
 2014-12-29 13:10:33,427  INFO  [management.subsystems.ChildApplicationContextFactory] [Thread-30] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default]
 2014-12-29 13:10:33,429  WARN  [factory.support.DisposableBeanAdapter] [Thread-30] Invocation of destroy method 'close' failed on bean with name 'repoSqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.225 s
[INFO] Finished at: 2014-12-29T13:10:33+01:00
[INFO] Final Memory: 45M/431M
[INFO] ------------------------------------------------------------------------

The test was not executed but still the result is positive, the error is:

org.alfresco.demoamp.test.DemoComponentTest Could not start JUnit remoteServer because of: null

karolbe commented 9 years ago

In fact, the tests were executed, but still the message is confusing.

How the tests should be executed to avoid that message?

mindthegab commented 9 years ago

This is a problem with the buggy implementation of the remote Junit test framework.

Will go away when we finally integrate this PR https://github.com/Alfresco/alfresco-sdk/pull/222.

ghost commented 8 years ago

This still applies to a SDK 2.2.0 repository simple (JAR) module. How is anybody supposed to use the SDK if tests can't be run?