struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-4716) HelloWorldTest throws NullPointerException
Date Sun, 20 Nov 2016 16:34:58 GMT
Lukasz Lenart created WW-4716:
---------------------------------

             Summary: HelloWorldTest throws NullPointerException
                 Key: WW-4716
                 URL: https://issues.apache.org/jira/browse/WW-4716
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - JUnit, Plugin - TestNG, Unit Tests
    Affects Versions: 2.5.5
            Reporter: Lukasz Lenart
            Assignee: Lukasz Lenart
             Fix For: 2.5.6


{noformat}
estHelloWorld(example.HelloWorldTest)  Time elapsed: 0.053 sec  <<< ERROR!
java.lang.NullPointerException
	at com.opensymphony.xwork2.ActionSupport.getLocale(ActionSupport.java:68)
	at com.opensymphony.xwork2.TextProviderSupport.getLocale(TextProviderSupport.java:329)
	at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:204)
	at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:119)
	at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:86)
	at example.HelloWorld.execute(HelloWorld.java:33)
	at example.HelloWorldTest.testHelloWorld(HelloWorldTest.java:31)
	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 junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message