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

RAD unavailable in 2.1.1 and 2.2.0 projects #371

Closed alex4u2nv closed 7 years ago

alex4u2nv commented 8 years ago

Tried with AIO and single repo amp, tested different versions of Java, windows/mac, and intellij/eclipse For the Single Repo Amp, the following error is returned: java.lang.RuntimeException: Unable to send request to http://localhost:4578/ecm.behavior.test.ImmutableBehaviorTest?method=testImmutableBehavior&runner=org.springframework.test.context.junit4.SpringJUnit4ClassRunner:

Error 500 ecm.behavior.test.ImmutableBehaviorTest

HTTP ERROR: 500

Problem accessing /ecm.behavior.test.ImmutableBehaviorTest. Reason:

   ecm.behavior.test.ImmutableBehaviorTest


Powered by Jetty://

at com.tradeshift.test.remote.internal.InternalRemoteRunner.handleError(InternalRemoteRunner.java:189)
at com.tradeshift.test.remote.internal.InternalRemoteRunner.runChild(InternalRemoteRunner.java:143)
at com.tradeshift.test.remote.internal.InternalRemoteRunner.runChild(InternalRemoteRunner.java:41)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Any thoughts or workarounds available?

alex4u2nv commented 8 years ago

2.1.0 Seems to work for now.

alex4u2nv commented 8 years ago

Traced down the issue to be because of ClassLoader that is being passed to the RemoteServer and SpringJUnit4ClassRunner

ohej commented 7 years ago

We have a whole new approach to integration testing with SDK3 which seems to be much more reliable. Closing this issue