tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: arquillian-tomee-remote nullptr
Date Wed, 12 Apr 2017 07:11:20 GMT
Hi

sadly in 1.7.4 this NPE hides the real error (fixed on 7.x branch). Maybe
give a try to put a breakpoint at
https://github.com/apache/tomee/blob/tomee-1.7.x/arquillian/arquillian-tomee-remote/src/main/java/org/apache/tomee/arquillian/remote/RemoteTomEEContainer.java#L132
and check what's the actual exception.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-04-12 9:09 GMT+02:00 Me Self <wmsopou@gmail.com>:

> Hi All
>
> Running the tomee-remote adapter 1.7.4 I get the nullptr listed at the
> bottom. Is some sort of configuration missing? And where can I find the
> branch on github -
> there are branches named 1.7.0, 1.7.1, 1.7.2 but no 1.7.4?
>
> arquillian.xml:
>
> <container qualifier="tomee-remote" default="true">
>
>                  <configuration>
>
>                                    <property name="httpPort">-1</property>
>
>                                    <property name="stopPort">-1</property>
>
>                                    <property name="version">1.7.4</
> property>
>
>                                    <property
> name="classifier">webprofile</property>
>
>                  </configuration>
>
> </container>
>
>
> pom.xml snippets:
>
>
>
>
>  <tomee.version>1.7.4</tomee.version>
>
>  <tomee.classifier>webprofile</tomee.classifier>
>
>  <arquillian.version>1.0.3.Final</arquillian.version>
>
>  ...
>
> <profile>
>
>                  <id>tomee-remote</id>
>
>                  <dependencies>
>
>                                    <dependency>
>
>
> <groupId>org.apache.openejb</groupId>
>
>
> <artifactId>arquillian-tomee-remote</artifactId>
>
>
> <version>${tomee.version}</version>
>
>                                    </dependency>
>
>                                    <dependency>
>
>
> <groupId>org.apache.openejb</groupId>
>
>
> <artifactId>apache-tomee</artifactId>
>
>
> <version>${tomee.version}</version>
>
>                                                     <classifier>${tomee.
> classifier}</classifier>
>
>                                                     <type>zip</type>
>
>                                    </dependency>
>
>                  </dependencies>
>
>                  <build>
>
>                                    <plugins>
>
>                                                     <plugin>
>
>
> <groupId>org.apache.maven.plugins</groupId>
>
>
> <artifactId>maven-surefire-plugin</artifactId>
>
>
> <configuration>
>
>
> <systemPropertyVariables>
>
>
>                                             <arquillian.launch>tomee-
> remote</arquillian.launch>
>
>
>                  <tomee.classifier>${tomee.classifier}</tomee.classifier>
>
>
>                  <tomee.version>${tomee.version}</tomee.version>
>
>
> </systemPropertyVariables>
>
>
> </configuration>
>
>                                                     </plugin>
>
>                                    </plugins>
>
>                  </build>
>
> </profile>
>
>
>
> java.lang.NullPointerException: null
>
>         at
> org.apache.tomee.arquillian.remote.RemoteTomEEContainer.
> start(RemoteTomEEContainer.java:132)
>
>         at
> org.jboss.arquillian.container.impl.ContainerImpl.
> start(ContainerImpl.java:199)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController$8.perform(ContainerLifecycleController.
> java:163)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController$8.perform(ContainerLifecycleController.
> java:157)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController.forContainer(ContainerLifecycleController.
> java:255)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController.startContainer(ContainerLifecycleController.
> java:156)
>
>         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:498)
>
>         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.container.impl.client.ContainerDeploymentContextHand
> ler.createContainerContext(ContainerDeploymentContextHandler.java:57)
>
>         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:498)
>
>         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:135)
>
>         at
> org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
>
>         at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.
> java:67)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController$2.perform(ContainerLifecycleController.
> java:77)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController$2.perform(ContainerLifecycleController.
> java:70)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController.forEachSuiteContainer(
> ContainerLifecycleController.java:221)
>
>         at
> org.jboss.arquillian.container.impl.client.container.
> ContainerLifecycleController.startSuiteContainers(
> ContainerLifecycleController.java:69)
>
>         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:498)
>
>         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.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
>
>         at
> org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
>
>         at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.
> java:67)
>
>         at
> org.jboss.arquillian.container.test.impl.client.ContainerEventController.
> execute(ContainerEventController.java:86)
>
>         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:498)
>
>         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:60)
>
>         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:498)
>
>         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:135)
>
>         at
> org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
>
>        at
> org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(
> EventTestRunnerAdaptor.java:68)
>
>         at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:97)
>
>         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)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message