1 Reply Latest reply on Jan 2, 2013 9:40 AM by Karel Piwko

    NullPointer on injected EJB when deploying two ear files

    Eduardo de Vera Toquero Newbie

      When deploying two ears, I get a NullPointerException on an injected EJB despite the fact that I have CDI enabled everywhere!

       

       

      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Didea.launcher.port=7550 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 11.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 11.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 11.app/plugins/junit/lib/junit-rt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar:/Volumes/ZimoryHD/Development/pocs/components/componenta/impl/target/test-classes:/Volumes/ZimoryHD/Development/pocs/components/componenta/impl/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-one/impl/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-one/model/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-two/impl/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-two/model/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-three/impl/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-three/api/target/classes:/Volumes/ZimoryHD/Development/pocs/dataservices/specific-three/model/target/classes:/Users/edevera/.m2/repository/org/jboss/spec/javax/ejb/jboss-ejb-api_3.1_spec/1.0.2.Final/jboss-ejb-api_3.1_spec-1.0.2.Final.jar:/Users/edevera/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/edevera/.m2/repository/javax/persistence/persistence-api/1.0.2/persistence-api-1.0.2.jar:/Users/edevera/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar:/Users/edevera/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar:/Users/edevera/.m2/repository/junit/junit-dep/4.10/junit-dep-4.10.jar:/Users/edevera/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-container/1.0.3.Final/arquillian-junit-container-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-core/1.0.3.Final/arquillian-junit-core-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/test/arquillian-test-spi/1.0.3.Final/arquillian-test-spi-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/core/arquillian-core-spi/1.0.3.Final/arquillian-core-spi-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/core/arquillian-core-api/1.0.3.Final/arquillian-core-api-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/test/arquillian-test-api/1.0.3.Final/arquillian-test-api-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-api/1.0.3.Final/arquillian-container-test-api-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-api/1.0.1/shrinkwrap-api-1.0.1.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-spi/1.0.3.Final/arquillian-container-test-spi-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/container/arquillian-container-spi/1.0.3.Final/arquillian-container-spi-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/config/arquillian-config-api/1.0.3.Final/arquillian-config-api-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-base/2.0.0-alpha-3/shrinkwrap-descriptors-api-base-2.0.0-alpha-3.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/config/arquillian-config-impl-base/1.0.3.Final/arquillian-config-impl-base-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-spi/2.0.0-alpha-3/shrinkwrap-descriptors-spi-2.0.0-alpha-3.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/core/arquillian-core-impl-base/1.0.3.Final/arquillian-core-impl-base-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/test/arquillian-test-impl-base/1.0.3.Final/arquillian-test-impl-base-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/container/arquillian-container-impl-base/1.0.3.Final/arquillian-container-impl-base-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-impl-base/1.0.3.Final/arquillian-container-test-impl-base-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.0.1/shrinkwrap-impl-base-1.0.1.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-spi/1.0.1/shrinkwrap-spi-1.0.1.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api/2.0.0-alpha-5/shrinkwrap-resolver-api-2.0.0-alpha-5.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi/2.0.0-alpha-5/shrinkwrap-resolver-spi-2.0.0-alpha-5.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api-maven/2.0.0-alpha-5/shrinkwrap-resolver-api-maven-2.0.0-alpha-5.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-impl-maven/2.0.0-alpha-5/shrinkwrap-resolver-impl-maven-2.0.0-alpha-5.jar:/Users/edevera/.m2/repository/org/sonatype/aether/aether-api/1.13.1/aether-api-1.13.1.jar:/Users/edevera/.m2/repository/org/sonatype/aether/aether-impl/1.13.1/aether-impl-1.13.1.jar:/Users/edevera/.m2/repository/org/sonatype/aether/aether-spi/1.13.1/aether-spi-1.13.1.jar:/Users/edevera/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar:/Users/edevera/.m2/repository/org/sonatype/aether/aether-connector-wagon/1.13.1/aether-connector-wagon-1.13.1.jar:/Users/edevera/.m2/repository/org/apache/maven/maven-aether-provider/3.0.4/maven-aether-provider-3.0.4.jar:/Users/edevera/.m2/repository/org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.jar:/Users/edevera/.m2/repository/org/apache/maven/maven-model-builder/3.0.4/maven-model-builder-3.0.4.jar:/Users/edevera/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar:/Users/edevera/.m2/repository/org/apache/maven/maven-repository-metadata/3.0.4/maven-repository-metadata-3.0.4.jar:/Users/edevera/.m2/repository/org/apache/maven/maven-settings/3.0.4/maven-settings-3.0.4.jar:/Users/edevera/.m2/repository/org/apache/maven/maven-settings-builder/3.0.4/maven-settings-builder-3.0.4.jar:/Users/edevera/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar:/Users/edevera/.m2/repository/org/apache/maven/wagon/wagon-provider-api/2.2/wagon-provider-api-2.2.jar:/Users/edevera/.m2/repository/org/apache/maven/wagon/wagon-file/2.2/wagon-file-2.2.jar:/Users/edevera/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/2.2/wagon-http-lightweight-2.2.jar:/Users/edevera/.m2/repository/org/apache/maven/wagon/wagon-http-shared4/2.2/wagon-http-shared4-2.2.jar:/Users/edevera/.m2/repository/org/jsoup/jsoup/1.6.1/jsoup-1.6.1.jar:/Users/edevera/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar:/Users/edevera/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-impl-maven-archive/2.0.0-alpha-5/shrinkwrap-resolver-impl-maven-archive-2.0.0-alpha-5.jar:/Users/edevera/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-jboss/2.0.0-alpha-4/shrinkwrap-descriptors-impl-jboss-2.0.0-alpha-4.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-jboss/2.0.0-alpha-3/shrinkwrap-descriptors-api-jboss-2.0.0-alpha-3.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-javaee/2.0.0-alpha-3/shrinkwrap-descriptors-api-javaee-2.0.0-alpha-3.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-javaee/2.0.0-alpha-3/shrinkwrap-descriptors-impl-javaee-2.0.0-alpha-3.jar:/Users/edevera/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-base/2.0.0-alpha-3/shrinkwrap-descriptors-impl-base-2.0.0-alpha-3.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.1_spec/1.0.0.Final/jboss-annotations-api_1.1_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/resource/jboss-connector-api_1.5_spec/1.0.0.Final/jboss-connector-api_1.5_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.1_spec/1.0.0.Final/jboss-transaction-api_1.1_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_2.2_spec/1.0.0.Final/jboss-el-api_2.2_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Final/jboss-interceptors-api_1.1_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/security/jacc/jboss-jacc-api_1.4_spec/1.0.0.Final/jboss-jacc-api_1.4_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/servlet/jboss-servlet-api_3.0_spec/1.0.0.Final/jboss-servlet-api_3.0_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/enterprise/deploy/jboss-jad-api_1.2_spec/1.0.0.Final/jboss-jad-api_1.2_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/security/auth/message/jboss-jaspi-api_1.0_spec/1.0.0.Final/jboss-jaspi-api_1.0_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/xml/registry/jboss-jaxr-api_1.0_spec/1.0.0.Final/jboss-jaxr-api_1.0_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/jms/jboss-jms-api_1.1_spec/1.0.0.Final/jboss-jms-api_1.1_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/servlet/jsp/jboss-jsp-api_2.2_spec/1.0.0.Final/jboss-jsp-api_2.2_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.2_spec/1.0.0.Final/jboss-jaxb-api_2.2_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/xml/rpc/jboss-jaxrpc-api_1.1_spec/1.0.0.Final/jboss-jaxrpc-api_1.1_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/xml/soap/jboss-saaj-api_1.3_spec/1.0.0.Final/jboss-saaj-api_1.3_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/spec/javax/xml/ws/jboss-jaxws-api_2.2_spec/1.0.0.Final/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar:/Users/edevera/.m2/repository/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.jar:/Users/edevera/.m2/repository/com/sun/faces/jsf-api/2.0.3-b05/jsf-api-2.0.3-b05.jar:/Users/edevera/.m2/repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar:/Users/edevera/.m2/repository/javax/mail/mail/1.4.2/mail-1.4.2.jar:/Users/edevera/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar:/Users/edevera/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/resteasy/jaxrs-api/2.1.0.GA/jaxrs-api-2.1.0.GA.jar:/Users/edevera/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/edevera/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-arquillian-container-managed/7.1.1.Final/jboss-as-arquillian-container-managed-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-arquillian-common/7.1.1.Final/jboss-as-arquillian-common-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/container/arquillian-container-osgi/1.0.2.Final/arquillian-container-osgi-1.0.2.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/spi/jbosgi-spi/3.0.1.Final/jbosgi-spi-3.0.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/vfs/jbosgi-vfs/1.0.7.Final/jbosgi-vfs-1.0.7.Final.jar:/Users/edevera/.m2/repository/org/jboss/logging/jboss-logging/3.1.0.GA/jboss-logging-3.1.0.GA.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/testenricher/arquillian-testenricher-cdi/1.0.3.Final/arquillian-testenricher-cdi-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/testenricher/arquillian-testenricher-ejb/1.0.3.Final/arquillian-testenricher-ejb-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/testenricher/arquillian-testenricher-initialcontext/1.0.3.Final/arquillian-testenricher-initialcontext-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/testenricher/arquillian-testenricher-osgi/1.0.2.Final/arquillian-testenricher-osgi-1.0.2.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/testenricher/arquillian-testenricher-resource/1.0.3.Final/arquillian-testenricher-resource-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-arquillian-testenricher-msc/7.1.1.Final/jboss-as-arquillian-testenricher-msc-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/msc/jboss-msc/1.0.2.GA/jboss-msc-1.0.2.GA.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-build-config/7.1.1.Final/jboss-as-build-config-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-controller-client/7.1.1.Final/jboss-as-controller-client-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-protocol/7.1.1.Final/jboss-as-protocol-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/marshalling/jboss-marshalling/1.3.9.GA/jboss-marshalling-1.3.9.GA.jar:/Users/edevera/.m2/repository/org/jboss/remoting3/jboss-remoting/3.2.3.GA/jboss-remoting-3.2.3.GA.jar:/Users/edevera/.m2/repository/org/jboss/xnio/xnio-api/3.0.0.GA/xnio-api-3.0.0.GA.jar:/Users/edevera/.m2/repository/org/jboss/sasl/jboss-sasl/1.0.0.Final/jboss-sasl-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/threads/jboss-threads/2.0.0.GA/jboss-threads-2.0.0.GA.jar:/Users/edevera/.m2/repository/org/jboss/xnio/xnio-nio/3.0.3.GA/xnio-nio-3.0.3.GA.jar:/Users/edevera/.m2/repository/org/jboss/jboss-dmr/1.1.1.Final/jboss-dmr-1.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-jmx/7.1.1.Final/jboss-as-jmx-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/jboss-common-core/2.2.17.GA/jboss-common-core-2.2.17.GA.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-server/7.1.1.Final/jboss-as-server-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-controller/7.1.1.Final/jboss-as-controller-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/modules/jboss-modules/1.1.1.GA/jboss-modules-1.1.1.GA.jar:/Users/edevera/.m2/repository/org/jboss/staxmapper/1.1.0.Final/staxmapper-1.1.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-domain-http-interface/7.1.1.Final/jboss-as-domain-http-interface-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-domain-management/7.1.1.Final/jboss-as-domain-management-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/com/sun/httpserver/httpserver/1.0.0.Final/httpserver-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-deployment-repository/7.1.1.Final/jboss-as-deployment-repository-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/jboss-vfs/3.1.0.Final/jboss-vfs-3.1.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-embedded/7.1.1.Final/jboss-as-embedded-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/jandex/1.0.3.Final/jandex-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-platform-mbean/7.1.1.Final/jboss-as-platform-mbean-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-process-controller/7.1.1.Final/jboss-as-process-controller-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/logmanager/jboss-logmanager/1.2.2.GA/jboss-logmanager-1.2.2.GA.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-remoting/7.1.1.Final/jboss-as-remoting-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-network/7.1.1.Final/jboss-as-network-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-threads/7.1.1.Final/jboss-as-threads-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/invocation/jboss-invocation/1.1.1.Final/jboss-invocation-1.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/logmanager/jboss-logmanager-log4j/1.0.0.GA/jboss-logmanager-log4j-1.0.0.GA.jar:/Users/edevera/.m2/repository/org/jboss/stdio/jboss-stdio/1.0.1.GA/jboss-stdio-1.0.1.GA.jar:/Users/edevera/.m2/repository/org/jboss/remotingjmx/remoting-jmx/1.0.2.Final/remoting-jmx-1.0.2.Final.jar:/Users/edevera/.m2/repository/org/jboss/marshalling/jboss-marshalling-river/1.3.11.GA/jboss-marshalling-river-1.3.11.GA.jar:/Users/edevera/.m2/repository/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-arquillian-protocol-jmx/7.1.1.Final/jboss-as-arquillian-protocol-jmx-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-osgi-service/7.1.1.Final/jboss-as-osgi-service-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-ee/7.1.1.Final/jboss-as-ee-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.jar:/Users/edevera/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/edevera/.m2/repository/org/jboss/interceptor/jboss-interceptor-spi/2.0.0.Final/jboss-interceptor-spi-2.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/metadata/jboss-metadata-common/7.0.1.Final/jboss-metadata-common-7.0.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/metadata/jboss-metadata-ear/7.0.1.Final/jboss-metadata-ear-7.0.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/as/jboss-as-naming/7.1.1.Final/jboss-as-naming-7.1.1.Final.jar:/Users/edevera/.m2/repository/org/jboss/jboss-remote-naming/1.0.2.Final/jboss-remote-naming-1.0.2.Final.jar:/Users/edevera/.m2/repository/org/jboss/jboss-ejb-client/1.0.0.Final/jboss-ejb-client-1.0.0.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/framework/jbosgi-framework-core/1.1.8.Final/jbosgi-framework-core-1.1.8.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/deployment/jbosgi-deployment/1.0.12.Final/jbosgi-deployment-1.0.12.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/resolver/jbosgi-resolver-felix/1.0.13.Final/jbosgi-resolver-felix-1.0.13.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/resolver/jbosgi-resolver-api/1.0.13.Final/jbosgi-resolver-api-1.0.13.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/metadata/jbosgi-metadata/2.0.3.Final/jbosgi-metadata-2.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/resolver/jbosgi-resolver-spi/1.0.13.Final/jbosgi-resolver-spi-1.0.13.Final.jar:/Users/edevera/.m2/repository/org/jboss/osgi/vfs/jbosgi-vfs30/1.0.7.Final/jbosgi-vfs30-1.0.7.Final.jar:/Users/edevera/.m2/repository/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar:/Users/edevera/.m2/repository/org/jboss/osgi/repository/jbosgi-repository-core/1.0.5/jbosgi-repository-core-1.0.5.jar:/Users/edevera/.m2/repository/org/jboss/osgi/repository/jbosgi-repository-api/1.0.5/jbosgi-repository-api-1.0.5.jar:/Users/edevera/.m2/repository/org/jboss/osgi/resolver/jbosgi-resolver-api-v2/2.0.0.Beta2/jbosgi-resolver-api-v2-2.0.0.Beta2.jar:/Users/edevera/.m2/repository/org/apache/felix/org.apache.felix.resolver/0.1.0.Beta1/org.apache.felix.resolver-0.1.0.Beta1.jar:/Users/edevera/.m2/repository/org/osgi/org.osgi.enterprise/4.2.0/org.osgi.enterprise-4.2.0.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/protocol/arquillian-protocol-jmx/1.0.3.Final/arquillian-protocol-jmx-1.0.3.Final.jar:/Users/edevera/.m2/repository/org/jboss/arquillian/protocol/arquillian-protocol-servlet/1.0.3.Final/arquillian-protocol-servlet-1.0.3.Final.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 com.zimory.components.componenta.impl.RemoteComponentAServiceATest

      Dec 5, 2012 11:22:50 AM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal

      INFO: Starting container with: [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java, -Xmx512m, -XX:MaxPermSize=128m, -ea, -Djboss.home.dir=/Applications/switchyard-as7-0.6, -Dorg.jboss.boot.log.file=/Applications/switchyard-as7-0.6/standalone/log/boot.log, -Dlogging.configuration=file:/Applications/switchyard-as7-0.6/standalone/configuration/logging.properties, -Djboss.modules.dir=/Applications/switchyard-as7-0.6/modules, -Djboss.bundles.dir=/Applications/switchyard-as7-0.6/bundles, -jar, /Applications/switchyard-as7-0.6/jboss-modules.jar, -mp, /Applications/switchyard-as7-0.6/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml]

      Dec 5, 2012 11:22:50 AM org.xnio.Xnio <clinit>

      INFO: XNIO Version 3.0.0.GA

      Dec 5, 2012 11:22:50 AM org.xnio.nio.NioXnio <clinit>

      INFO: XNIO NIO Implementation Version 3.0.0.GA

      Dec 5, 2012 11:22:50 AM org.jboss.remoting3.EndpointImpl <clinit>

      INFO: JBoss Remoting version 3.2.3.GA

      11:22:50,999 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      11:22:51,196 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      11:22:51,245 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      11:22:51,872 INFO  [org.switchyard] SwitchYard version 0.6.0.Final

      11:22:52,001 INFO  [org.xnio] XNIO Version 3.0.3.GA

      11:22:52,003 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      11:22:52,013 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      11:22:52,023 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      11:22:52,041 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      11:22:52,044 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 27) JBAS016200: Activating ConfigAdmin Subsystem

      11:22:52,052 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.

      11:22:52,058 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 39) JBAS011800: Activating Naming Subsystem

      11:22:52,063 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 40) JBAS011940: Activating OSGi Subsystem

      11:22:52,070 INFO  [org.switchyard] (ServerService Thread Pool -- 51) Activating SwitchYard Extension

      11:22:52,070 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013101: Activating Security Subsystem

      11:22:52,078 INFO  [org.jboss.as.security] (MSC service thread 1-14) JBAS013100: Current PicketBox version=4.0.7.Final

      11:22:52,084 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 49) JBAS015537: Activating WebServices Extension

      11:22:52,109 INFO  [org.jboss.as.connector] (MSC service thread 1-12) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      11:22:52,109 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service

      11:22:52,123 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-16) JBAS015400: Bound mail session [java:jboss/mail/Default]

      11:22:52,226 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      11:22:52,248 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-7) JBoss Web Services - Stack CXF Server 4.0.2.GA

      11:22:52,353 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

      11:22:52,626 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-12) JBAS010400: Bound data source [java:jboss/datasources/jbpmDS]

      11:22:52,626 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-9) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      11:22:52,781 INFO  [org.switchyard.as7.extension.cluster.RemoteEndpointListener] (MSC service thread 1-16) Published Remote Service Endpoint /switchyard-remote

      11:22:52,905 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-12) JBAS015012: Started FileSystemDeploymentService for directory /Applications/switchyard-as7-0.6/standalone/deployments

      11:22:52,924 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999

      11:22:52,924 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:4447

      11:22:52,969 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

      11:22:52,969 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 2305ms - Started 141 of 217 services (74 services are passive or on-demand)

      com.zimory.dataservices.providerone.ear-1.0.ear:

      /lib/

      /lib/com.zimory.dataservices.specifictwo.model-1.0.jar

      /lib/com.zimory.dataservices.specificthree.model-1.0.jar

      /lib/com.zimory.dataservices.specificthree.api-1.0.jar

      /lib/com.zimory.dataservices.specificone.model-1.0.jar

      /com.zimory.dataservices.specificthree.impl-1.0.jar

      /com.zimory.dataservices.specificone.impl-1.0.jar

      /META-INF/

      /META-INF/maven/

      /META-INF/maven/com.zimory.dataservices.providerone/

      /META-INF/maven/com.zimory.dataservices.providerone/com.zimory.dataservices.providerone.ear/

      /META-INF/maven/com.zimory.dataservices.providerone/com.zimory.dataservices.providerone.ear/pom.xml

      /META-INF/maven/com.zimory.dataservices.providerone/com.zimory.dataservices.providerone.ear/pom.properties

      /META-INF/MANIFEST.MF

      /META-INF/beans.xml

      /com.zimory.dataservices.specifictwo.impl-1.0.jar

      /persistence.xml

      com.zimory.components.comoponenta.ear:

      /lib/

      /lib/com.zimory.dataservices.specificone.model-2698101575313662001.jar

      /com.zimory.components.componenta.module.jar

      /c28cd5b8-96c2-4f28-8798-9eda007ec88e.war

      /META-INF/

      /META-INF/beans.xml

      11:23:09,909 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900: Content added at location /Applications/switchyard-as7-0.6/standalone/data/content/5b/000f0bb9d422377d84b0a085eb38189e71be80/content

      11:23:09,925 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "com.zimory.dataservices.providerone.ear-1.0.ear"

      11:23:10,356 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "test.war"

      11:23:10,356 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-15) JBAS015876: Starting deployment of "com.zimory.dataservices.specifictwo.impl-1.0.jar"

      11:23:10,356 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "com.zimory.dataservices.specificthree.impl-1.0.jar"

      11:23:10,356 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "com.zimory.dataservices.specificone.impl-1.0.jar"

      11:23:10,523 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016002: Processing weld deployment com.zimory.dataservices.providerone.ear-1.0.ear

      11:23:10,573 INFO  [org.jboss.weld.deployer] (MSC service thread 1-14) JBAS016002: Processing weld deployment com.zimory.dataservices.specificone.impl-1.0.jar

      11:23:10,573 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016002: Processing weld deployment com.zimory.dataservices.specificthree.impl-1.0.jar

      11:23:10,573 INFO  [org.jboss.weld.deployer] (MSC service thread 1-11) JBAS016002: Processing weld deployment com.zimory.dataservices.specifictwo.impl-1.0.jar

      11:23:10,576 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment test.war

      11:23:10,577 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-5) JNDI bindings for session bean named com.zimory.dataservices.specificthree.SpecificThreeDataService in deployment unit subdeployment "com.zimory.dataservices.specificthree.impl-1.0.jar" of deployment "com.zimory.dataservices.providerone.ear-1.0.ear" are as follows:

       

       

                java:global/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specificthree.impl-1.0/com.zimory.dataservices.specificthree.SpecificThreeDataService!com.zimory.dataservices.specificthree.api.SpecificThreeDataService

                java:app/com.zimory.dataservices.specificthree.impl-1.0/com.zimory.dataservices.specificthree.SpecificThreeDataService!com.zimory.dataservices.specificthree.api.SpecificThreeDataService

                java:module/com.zimory.dataservices.specificthree.SpecificThreeDataService!com.zimory.dataservices.specificthree.api.SpecificThreeDataService

                java:global/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specificthree.impl-1.0/com.zimory.dataservices.specificthree.SpecificThreeDataService

                java:app/com.zimory.dataservices.specificthree.impl-1.0/com.zimory.dataservices.specificthree.SpecificThreeDataService

                java:module/com.zimory.dataservices.specificthree.SpecificThreeDataService

       

       

      11:23:10,577 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named com.zimory.dataservices.specificone.SpecificOneDataService in deployment unit subdeployment "com.zimory.dataservices.specificone.impl-1.0.jar" of deployment "com.zimory.dataservices.providerone.ear-1.0.ear" are as follows:

       

       

                java:global/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specificone.impl-1.0/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.LocalSpecificOneDataService

                java:app/com.zimory.dataservices.specificone.impl-1.0/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.LocalSpecificOneDataService

                java:module/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.LocalSpecificOneDataService

                java:global/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specificone.impl-1.0/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.RemoteSpecificOneDataService

                java:app/com.zimory.dataservices.specificone.impl-1.0/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.RemoteSpecificOneDataService

                java:module/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.RemoteSpecificOneDataService

                java:jboss/exported/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specificone.impl-1.0/com.zimory.dataservices.specificone.SpecificOneDataService!com.zimory.dataservices.specificone.api.RemoteSpecificOneDataService

       

       

      11:23:10,577 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-11) JNDI bindings for session bean named com.zimory.dataservices.specifictwo.SpecificTwoDataService in deployment unit subdeployment "com.zimory.dataservices.specifictwo.impl-1.0.jar" of deployment "com.zimory.dataservices.providerone.ear-1.0.ear" are as follows:

       

       

                java:global/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specifictwo.impl-1.0/com.zimory.dataservices.specifictwo.SpecificTwoDataService!com.zimory.dataservices.specifictwo.api.SpecificTwoDataService

                java:app/com.zimory.dataservices.specifictwo.impl-1.0/com.zimory.dataservices.specifictwo.SpecificTwoDataService!com.zimory.dataservices.specifictwo.api.SpecificTwoDataService

                java:module/com.zimory.dataservices.specifictwo.SpecificTwoDataService!com.zimory.dataservices.specifictwo.api.SpecificTwoDataService

                java:global/com.zimory.dataservices.providerone.ear-1.0/com.zimory.dataservices.specifictwo.impl-1.0/com.zimory.dataservices.specifictwo.SpecificTwoDataService

                java:app/com.zimory.dataservices.specifictwo.impl-1.0/com.zimory.dataservices.specifictwo.SpecificTwoDataService

                java:module/com.zimory.dataservices.specifictwo.SpecificTwoDataService

       

       

      11:23:10,610 INFO  [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016005: Starting Services for CDI deployment: com.zimory.dataservices.providerone.ear-1.0.ear

      11:23:10,686 INFO  [org.jboss.weld.Version] (MSC service thread 1-13) WELD-000900 1.1.6 (Final)

      11:23:10,709 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016008: Starting weld service for deployment com.zimory.dataservices.providerone.ear-1.0.ear

      11:23:11,506 INFO  [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /test

      11:23:11,550 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "com.zimory.dataservices.providerone.ear-1.0.ear"

      11:23:12,773 INFO  [org.jboss.as.repository] (management-handler-thread - 3) JBAS014900: Content added at location /Applications/switchyard-as7-0.6/standalone/data/content/38/3191d36b22fcd937e46ac7fe2400ef23b67aef/content

      11:23:12,776 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015876: Starting deployment of "com.zimory.components.comoponenta.ear"

      11:23:12,989 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "c28cd5b8-96c2-4f28-8798-9eda007ec88e.war"

      11:23:12,989 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "com.zimory.components.componenta.module.jar"

      11:23:13,031 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment com.zimory.components.comoponenta.ear

      11:23:13,036 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016002: Processing weld deployment com.zimory.components.componenta.module.jar

      11:23:13,037 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-8) JNDI bindings for session bean named com.zimory.components.componenta.api.ServiceA in deployment unit subdeployment "com.zimory.components.componenta.module.jar" of deployment "com.zimory.components.comoponenta.ear" are as follows:

       

       

                java:global/com.zimory.components.comoponenta/com.zimory.components.componenta.module/com.zimory.components.componenta.api.ServiceA!com.zimory.components.componenta.api.ServiceA

                java:app/com.zimory.components.componenta.module/com.zimory.components.componenta.api.ServiceA!com.zimory.components.componenta.api.ServiceA

                java:module/com.zimory.components.componenta.api.ServiceA!com.zimory.components.componenta.api.ServiceA

                java:global/com.zimory.components.comoponenta/com.zimory.components.componenta.module/com.zimory.components.componenta.api.ServiceA

                java:app/com.zimory.components.componenta.module/com.zimory.components.componenta.api.ServiceA

                java:module/com.zimory.components.componenta.api.ServiceA

       

       

      11:23:13,044 INFO  [org.jboss.weld.deployer] (MSC service thread 1-9) JBAS016002: Processing weld deployment c28cd5b8-96c2-4f28-8798-9eda007ec88e.war

      11:23:13,047 INFO  [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016005: Starting Services for CDI deployment: com.zimory.components.comoponenta.ear

      11:23:13,051 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment com.zimory.components.comoponenta.ear

      11:23:13,195 INFO  [org.jboss.web] (MSC service thread 1-12) JBAS018210: Registering web context: /c28cd5b8-96c2-4f28-8798-9eda007ec88e

      11:23:13,209 INFO  [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "com.zimory.components.comoponenta.ear"

       

       

      java.lang.NullPointerException

                at com.zimory.components.componenta.impl.RemoteComponentAServiceATest.testInjection(RemoteComponentAServiceATest.java:31)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)

                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)

                at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)

                at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                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.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                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.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)

                at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                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.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                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.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                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.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                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.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)

                at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)

                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)

                at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)

                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)

                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)

                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)

                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)

                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

                at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)

                at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)

                at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

       

       

      11:23:13,334 INFO  [org.jboss.weld.deployer] (MSC service thread 1-15) JBAS016009: Stopping weld service for deployment com.zimory.components.comoponenta.ear

      11:23:13,364 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment com.zimory.components.componenta.module.jar in 82ms

      11:23:13,366 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment c28cd5b8-96c2-4f28-8798-9eda007ec88e.war in 83ms

      11:23:13,373 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015877: Stopped deployment com.zimory.components.comoponenta.ear in 91ms

      11:23:13,386 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014901: Content removed from location /Applications/switchyard-as7-0.6/standalone/data/content/38/3191d36b22fcd937e46ac7fe2400ef23b67aef/content

      11:23:13,387 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018558: Undeployed "com.zimory.components.comoponenta.ear"

      11:23:13,430 INFO  [org.jboss.weld.deployer] (MSC service thread 1-16) JBAS016009: Stopping weld service for deployment com.zimory.dataservices.providerone.ear-1.0.ear

      11:23:13,454 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015877: Stopped deployment com.zimory.dataservices.specificthree.impl-1.0.jar in 56ms

      11:23:13,454 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015877: Stopped deployment com.zimory.dataservices.specifictwo.impl-1.0.jar in 57ms

      11:23:13,454 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment com.zimory.dataservices.specificone.impl-1.0.jar in 57ms

      11:23:13,455 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015877: Stopped deployment test.war in 58ms

      11:23:13,462 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-15) JBAS015877: Stopped deployment com.zimory.dataservices.providerone.ear-1.0.ear in 65ms

      11:23:13,480 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014901: Content removed from location /Applications/switchyard-as7-0.6/standalone/data/content/5b/000f0bb9d422377d84b0a085eb38189e71be80/content

      11:23:13,481 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018558: Undeployed "com.zimory.dataservices.providerone.ear-1.0.ear"

       

       

      Process finished with exit code 255

       

       

      The test that throws the exception is the following:

       

      package com.zimory.components.componenta.impl;
      
      
      import javax.ejb.EJB;
      
      
      import com.zimory.components.componenta.api.ServiceA;
      import org.jboss.arquillian.container.test.api.Deployment;
      import org.jboss.arquillian.junit.Arquillian;
      import org.jboss.shrinkwrap.api.Archive;
      import org.jboss.shrinkwrap.api.ShrinkWrap;
      import org.jboss.shrinkwrap.api.asset.EmptyAsset;
      import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
      import org.jboss.shrinkwrap.api.spec.JavaArchive;
      import org.jboss.shrinkwrap.api.spec.WebArchive;
      import org.jboss.shrinkwrap.resolver.api.maven.Maven;
      import org.junit.Test;
      import org.junit.runner.RunWith;
      
      
      /**
      * @author: <a href="mailto:eduardo.devera@gmail.com">Eduardo de Vera</a>
      * Date: 12/4/12
      * Time: 3:24 PM
      */
      @RunWith(Arquillian.class)
      public class RemoteComponentAServiceATest {
      
      
          @EJB
          private ServiceA _service;
      
      
          @Test
          public void testInjection() {
              _service.operationA();
          }
      
      
      //    @Deployment(name = "DataSourceDeployment", order = 1)
      //    public static Archive createDataSourceDeployment() {
      //        Archive archive = ShrinkWrap.create(JavaArchive.class)
      //                .addAsManifestResource("jbossas-ds.xml");
      //        System.out.println(archive);
      //        return archive;
      //    }
      
      
      
      
          @Deployment(name = "ProviderOneDeployment", order = 2)
          public static Archive createDeployment() {
              Archive archive = ShrinkWrap.createFromZipFile(
                              EnterpriseArchive.class,
                              Maven.resolver()
                                      .resolve("com.zimory.dataservices.providerone:com.zimory.dataservices.providerone.ear:ear:1.0")
                                      .withoutTransitivity()
                                      .asSingleFile());
              System.out.println(archive.toString(true));
              return archive;
          }
      
      
          @Deployment(name="ComponentADeployment", order = 3)
          public static Archive createTestingDeployment() {
              Archive archive = ShrinkWrap.create(EnterpriseArchive.class, "com.zimory.components.comoponenta.ear")
                      .addAsApplicationResource(EmptyAsset.INSTANCE, "beans.xml")
                      //.addAsApplicationResource("MANIFEST.MF")
                      .addAsModule(
                              ShrinkWrap.create(WebArchive.class)
                                      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
                                      .addClass(RemoteComponentAServiceATest.class))
                      .addAsModule(
                              ShrinkWrap.create(JavaArchive.class, "com.zimory.components.componenta.module.jar")
                                      .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
                                      .addClasses(ServiceA.class, RemoteComponentAServiceA.class))
                      .addAsLibraries(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specificone:com.zimory.dataservices.specificone.model:1.0")
                                      .withTransitivity().asFile())
                      ;
              System.out.println(archive.toString(true));
              return archive;
          }
      }
      
      

       

      If I comment out the first ear deployment, then the NullPointerException is gone.

       

      At the same time, I have tested the same classes deploying a single ear and it works:

       

      package com.zimory.components.componenta.impl;
      
      
      import javax.ejb.EJB;
      
      
      import com.zimory.components.componenta.api.ServiceA;
      import org.jboss.arquillian.container.test.api.Deployment;
      import org.jboss.arquillian.junit.Arquillian;
      import org.jboss.shrinkwrap.api.Archive;
      import org.jboss.shrinkwrap.api.ShrinkWrap;
      import org.jboss.shrinkwrap.api.asset.EmptyAsset;
      import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
      import org.jboss.shrinkwrap.api.spec.JavaArchive;
      import org.jboss.shrinkwrap.api.spec.WebArchive;
      import org.jboss.shrinkwrap.resolver.api.maven.Maven;
      import org.junit.Test;
      import org.junit.runner.RunWith;
      
      
      /**
      * @author: <a href="mailto:eduardo.devera@gmail.com">Eduardo de Vera</a>
      * Date: 12/2/12
      * Time: 3:32 PM
      */
      @RunWith(Arquillian.class)
      public class ComponentAServiceATest {
      
      
          @EJB
          private ServiceA _serviceA;
      
      
          @Test
          public void test() {
              _serviceA.operationA();
          }
      
      
          @Deployment
          public static Archive createDeployment() {
              Archive archive = ShrinkWrap.create(EnterpriseArchive.class, "com.zimory.components.componenta.ear")
                      .addAsApplicationResource(EmptyAsset.INSTANCE, "beans.xml")
                      .addAsApplicationResource("jbossas-ds.xml")
                      .addAsApplicationResource("persistence.xml")
                      .addAsModule(
                              ShrinkWrap.create(JavaArchive.class, "com.zimory.components.componenta.module.jar")
                                      .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
                                      .addClasses(ServiceA.class, ComponentAServiceA.class))
                      .addAsModule(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specificone:com.zimory.dataservices.specificone.impl:1.0").withoutTransitivity().asSingleFile())
                      .addAsLibraries(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specificone:com.zimory.dataservices.specificone.model:1.0").withoutTransitivity().asSingleFile())
                      .addAsModule(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specifictwo:com.zimory.dataservices.specifictwo.impl:1.0").withoutTransitivity().asSingleFile())
                      .addAsLibraries(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specifictwo:com.zimory.dataservices.specifictwo.model:1.0").withTransitivity().asFile())
                      .addAsModule(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specificthree:com.zimory.dataservices.specificthree.impl:1.0").withoutTransitivity().asSingleFile())
                      .addAsLibraries(
                              Maven.resolver().loadPomFromFile("pom.xml")
                                      .resolve("com.zimory.dataservices.specificthree:com.zimory.dataservices.specificthree.api:1.0").withTransitivity().asFile())
                      .addAsModule(
                              ShrinkWrap.create(WebArchive.class)
                                      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
                                      .addClasses(ComponentAServiceATest.class))
                      ;
              System.out.println(archive.toString(true));
              return archive;
          }
      }
      
      

       

      How do I get rid of that NullPointerException? Is there a limitation of how many EARs can be deployed with Arquillian? What can be causing this problem?

        • 1. Re: NullPointer on injected EJB when deploying two ear files
          Karel Piwko Master

          Hello Eduardo,

           

          for class injection, it is not possible to specify which deployment should be the source for enriching the test class attribute, so the test execution for multiple deployments relies on JVM ordering. Therefore, it is better to move EJB to test method itself.

          Following should work:

           

           

              @Deployment(name="ear1")
              ...
          
          
          
              @Deployment(name="ear2")
          
              ...
          
          
              
              @Test
              @OperatesOnDeployment("ear1")
              public void test(@EJB ServiceA _serviceA) {
                  _serviceA.operationA();
              }
          

           

          HTH,

           

          Karel