[JBoss JIRA] (ARQ-1989) Video-impl-base fail if no impl is on classpath
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1989?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic reassigned ARQ-1989:
--------------------------------------
Assignee: Stefan Miklosovic
> Video-impl-base fail if no impl is on classpath
> -----------------------------------------------
>
> Key: ARQ-1989
> URL: https://issues.jboss.org/browse/ARQ-1989
> Project: Arquillian
> Issue Type: Enhancement
> Components: Extension - Recorder
> Affects Versions: recorder_1.1.0.Alpha3
> Reporter: Aslak Knutsen
> Assignee: Stefan Miklosovic
> Fix For: recorder_1.1.0.Alpha5
>
>
> {code}
> java.lang.NullPointerException
> at org.arquillian.extension.recorder.video.impl.VideoLifecycleObserver.beforeSuite(VideoLifecycleObserver.java:93)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> {code}
> With no Video Recorder Implementation on classpath the Video Impl fail. Even tho it has a DefaultVideoStrategy it can use, the registration of this service rely on the VideoExtensionConfigured event which is never fired if no Video impl is found on classpath. Attempting to read that strategy then fails with a NPE.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)