[arquillian-issues] [JBoss JIRA] Updated: (ARQ-452) NPE in ServletUtil.determineBaseURI(ServletUtil.java:44) with multiple @Deployment methods that have non-unique names (or no name)

Joshua Davis (JIRA) jira-events at lists.jboss.org
Thu May 19 16:11:01 EDT 2011


     [ https://issues.jboss.org/browse/ARQ-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Davis updated ARQ-452:
-----------------------------

           Description: 
When there are multiple {{@Deployment}} methods in a test, and the {{@Deployment}} methods have the same name Arquillian will throw a {{NullPointerException}}:

{code}
testSomething(eg.domainmodel.UserTest)  Time elapsed: 0.019 sec  <<< ERROR!
java.lang.NullPointerException
        at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:44)
        at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:56)
        at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:30)
        at org.jboss.arquillian.impl.execution.RemoteTestExecuter.getContainerMethodExecutor(RemoteTestExecuter.java:105)
        at org.jboss.arquillian.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
{code}


  was:
When there are multiple {{@Deployment}} methods in a test, and the {{@Deployment}}s have the same name Arquillian will throw a {{NullPointerException}}:

{code}
testSomething(eg.domainmodel.UserTest)  Time elapsed: 0.019 sec  <<< ERROR!
java.lang.NullPointerException
        at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:44)
        at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:56)
        at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:30)
        at org.jboss.arquillian.impl.execution.RemoteTestExecuter.getContainerMethodExecutor(RemoteTestExecuter.java:105)
        at org.jboss.arquillian.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
{code}


    Steps to Reproduce: 
# Create a test something like this
# Run the test in JBoss 6 remote mode.


> NPE in ServletUtil.determineBaseURI(ServletUtil.java:44) with multiple @Deployment methods that have non-unique names (or no name)
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARQ-452
>                 URL: https://issues.jboss.org/browse/ARQ-452
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.0.Alpha5
>         Environment: Maven 3, Linux, Arquillian 1.0.0.Alpha5
>            Reporter: Joshua Davis
>
> When there are multiple {{@Deployment}} methods in a test, and the {{@Deployment}} methods have the same name Arquillian will throw a {{NullPointerException}}:
> {code}
> testSomething(eg.domainmodel.UserTest)  Time elapsed: 0.019 sec  <<< ERROR!
> java.lang.NullPointerException
>         at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:44)
>         at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:56)
>         at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:30)
>         at org.jboss.arquillian.impl.execution.RemoteTestExecuter.getContainerMethodExecutor(RemoteTestExecuter.java:105)
>         at org.jboss.arquillian.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:96)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list