Problems in unit tests execution environment
--------------------------------------------
Key: RF-9288
URL:
https://jira.jboss.org/browse/RF-9288
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: build, component-a4j-core
Reporter: Nick Belaevski
Assignee: Nick Belaevski
Fix For: 4.0.0.Milestone3
Investigate and fix the following problems in project tests execution:
1) 01.09.2010 16:54:29 org.richfaces.resource.ResourceFactoryImpl logResourceProblem
WARNING: Error creating resource org.richfaces.resource.StateHolderResourceImpl
java.lang.NullPointerException
at
org.richfaces.resource.ResourceFactoryImpl.injectProperties(ResourceFactoryImpl.java:201)
at
org.richfaces.resource.ResourceFactoryImpl.createHandlerDependentResource(ResourceFactoryImpl.java:268)
at
org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:354)
at
org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:299)
at
org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:154)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)
at
org.jboss.test.faces.staging.ServletContainer.execute(ServletContainer.java:200)
at
org.jboss.test.faces.staging.StagingConnection.execute(StagingConnection.java:142)
at
org.jboss.test.faces.htmlunit.LocalWebConnection.getResponse(LocalWebConnection.java:61)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1407)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1340)
at
org.richfaces.resource.ResourceHandlerImplTest.testStateHolder(ResourceHandlerImplTest.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
2) Running org.richfaces.javascript.QUnitTest
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument
jsxFunction_getElementById
WARNING: getElementById(script1283349311517) did a getElementByName for Internet Explorer
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'text/javascript'.
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[The data necessary to complete this operation is not yet
available.]
sourceName=[file:/D:/development/richfaces-trunk/core/impl/target/classes/META-INF/resources/jquery.js]
line=[767] lineS
ource=[null] lineOffset=[0]
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy
doAction
WARNING: Unclosed character class near index 27
([#;&,.+*~':"!^$[\]()=>|\/])
^
java.util.regex.PatternSyntaxException: Unclosed character class near index 27
([#;&,.+*~':"!^$[\]()=>|\/])
^
at java.util.regex.Pattern.error(Pattern.java:1713)
at java.util.regex.Pattern.clazz(Pattern.java:2254)
at java.util.regex.Pattern.sequence(Pattern.java:1818)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.group0(Pattern.java:2530)
at java.util.regex.Pattern.sequence(Pattern.java:1806)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.compile(Pattern.java:1460)
at java.util.regex.Pattern.<init>(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:847)
at
com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.doAction(HtmlUnitRegExpProxy.java:91)
at
com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.action(HtmlUnitRegExpProxy.java:63)
at
net.sourceforge.htmlunit.corejs.javascript.NativeString.execIdCall(NativeString.java:388)
at
net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:129)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:450)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:457)
at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:910)
at
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53)
at
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:76)
at
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl$ExecutingJobTracker.run(JavaScriptJobManagerImpl.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
01.09.2010 16:55:11 com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy
doAction
WARNING: Unclosed character class near index 27
([#;&,.+*~':"!^$[\]()=>|\/])
^
java.util.regex.PatternSyntaxException: Unclosed character class near index 27
([#;&,.+*~':"!^$[\]()=>|\/])
^
at java.util.regex.Pattern.error(Pattern.java:1713)
at java.util.regex.Pattern.clazz(Pattern.java:2254)
at java.util.regex.Pattern.sequence(Pattern.java:1818)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.group0(Pattern.java:2530)
at java.util.regex.Pattern.sequence(Pattern.java:1806)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.compile(Pattern.java:1460)
at java.util.regex.Pattern.<init>(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:847)
at
com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.doAction(HtmlUnitRegExpProxy.java:91)
at
com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.action(HtmlUnitRegExpProxy.java:63)
at
net.sourceforge.htmlunit.corejs.javascript.NativeString.execIdCall(NativeString.java:388)
at
net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:129)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:450)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:457)
at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:910)
at
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53)
at
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:76)
at
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl$ExecutingJobTracker.run(JavaScriptJobManagerImpl.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira