0 Replies Latest reply on Dec 7, 2012 11:58 AM by Adriano Schmidt

    Error - arquillian - WEBSPHERE_AS_EMBEDDED_8.X

    Adriano Schmidt Master

      Hello, I'm trying to create a project to use arquillian with websphere embedded, but happens the following error:

       

      JBoss Forge, version [ 1.1.1.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]

      [no project] workspace-juno-4 $

      [no project] workspace-juno-4 $ new-project

      ? [named=The name of the new project (of type java.lang.String)]:

      ***INFO*** The option is required to execute this command.

      ? [named=The name of the new project (of type java.lang.String)]: test07

      ? Use [C:\/work/workspaces/workspace-juno-4/test07] as project directory? [Y/n] y

      ? Add new project as a sub-project of [C:\/work/workspaces/workspace-juno-4]? [Y/n] n

      ***SUCCESS*** Created project [test07] in new working directory [C:\/work/workspaces/workspace-juno-4/test07]

      Wrote C:\/work/workspaces/workspace-juno-4/test07

      Wrote C:\/work/workspaces/workspace-juno-4/test07/pom.xml

      Wrote C:\/work/workspaces/workspace-juno-4/test07/src/main/java

      Wrote C:\/work/workspaces/workspace-juno-4/test07/src/test/java

      Wrote C:\/work/workspaces/workspace-juno-4/test07/src/main/resources

      Wrote C:\/work/workspaces/workspace-juno-4/test07/src/test/resources

      Wrote C:\/work/workspaces/workspace-juno-4/test07/src/main/java/com/example/test07

      [test07] test07 $

      [test07] test07 $

      [test07] test07 $

      [test07] test07 $ arquillian setup --container WEBSPHERE_AS_EMBEDDED_8.X

      Which version of Arquillian do you want to install?

       

       

        1 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0-SNAPSHOT]

        2 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.Beta1]

        3 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.Beta2]

        4 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR1]

        5 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR1-as734-SNAPSHOT]

        6 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR2]

        7 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR3]

        8 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR4]

        9 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR5]

        10 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR6]

        11 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR7]

        12 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.CR8]

        13 - [org.jboss.arquillian:arquillian-bom:pom::1.0.0.Final]

        14 - [org.jboss.arquillian:arquillian-bom:pom::1.0.1.Final]

        15 - [org.jboss.arquillian:arquillian-bom:pom::1.0.2.Final]

        16 - [org.jboss.arquillian:arquillian-bom:pom::1.0.3.Final]*

       

       

      ? Choose an option by typing the number of the selection [*-default]  [0] 16

      Which version of JUnit do you want to install?

       

       

        1 - [junit:junit:::3.7]

        2 - [junit:junit:::3.8]

        3 - [junit:junit:::3.8.1]

        4 - [junit:junit:::3.8.2]

        5 - [junit:junit:::3.8.2-brew]

        6 - [junit:junit:::4.0]

        7 - [junit:junit:::4.1]

        8 - [junit:junit:::4.2]

        9 - [junit:junit:::4.3]

        10 - [junit:junit:::4.3.1]

        11 - [junit:junit:::4.4]

        12 - [junit:junit:::4.5]

        13 - [junit:junit:::4.6]

        14 - [junit:junit:::4.7]

        15 - [junit:junit:::4.8]

        16 - [junit:junit:::4.8.1]

        17 - [junit:junit:::4.8.2]

        18 - [junit:junit:::4.9]

        19 - [junit:junit:::4.10]

        20 - [junit:junit:::4.11-beta-1]

        21 - [junit:junit:::4.11]*

       

       

      ? Choose an option by typing the number of the selection [*-default]  [0] 21

      java.lang.ArrayIndexOutOfBoundsException: -1

      Wrote C:\/work/workspaces/workspace-juno-4/test07/pom.xml

      ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)

      [test07] test07 $           at java.util.ArrayList.elementData(ArrayList.java:371)

                at java.util.ArrayList.get(ArrayList.java:384)

                at org.jboss.forge.arquillian.DependencyUtil.getLatestNonSnapshotVersion(DependencyUtil.java:48)

                at org.jboss.forge.arquillian.ContainerInstaller.resolveVersion(ContainerInstaller.java:53)

                at org.jboss.forge.arquillian.ContainerInstaller.installContainer(ContainerInstaller.java:35)

                at org.jboss.forge.arquillian.ArquillianPlugin.installContainer(ArquillianPlugin.java:114)

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

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

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

                at java.lang.reflect.Method.invoke(Method.java:601)

                at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)

                at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818)

                at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841)

                at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:631)

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

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

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

                at java.lang.reflect.Method.invoke(Method.java:601)

                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

                at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)

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

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

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

                at java.lang.reflect.Method.invoke(Method.java:601)

                at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)

                at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)

                at java.lang.Thread.run(Thread.java:722)