Adel Aneiba

Greenhorn
+ Follow
since Sep 01, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Adel Aneiba

Hi All

does anyone have an idea why sometime i am having the below error when i test my code using cactus framework.

P.S. most the time the test work just fine

Failed to get the test results at [http://localhost:8998/test/ServletRedirector]

Thanks in advacne

Adel Aneiba
19 years ago
Hi All,

I am having this kind of "error" while i run my cactus test, the test seems to me is working ok, but still having an error or a mesaage below as you can see. Any help will be apppricated

Thanks in advance

Adel Aneiba

test:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against JBoss 3.2
[cactus] -----------------------------------------------------------------
[cactus] Running alpha.testCactus.AllTests
[cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.422 sec


[cactus] Shutdown complete



report:
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 8022ms

BUILD SUCCESSFUL
Total time: 1 minute 43 seconds
java.lang.reflect.InvocationTargetException
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:324)
at org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:116)
at org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:186)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:702)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:161)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
at org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.startUp(JBoss3xContainer.java:235)
at org.apache.cactus.integration.ant.container.ContainerRunner$1.run(ContainerRunner.java:140)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.remove(Shutdown.java:102)
at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
... 13 more
[cactus] Java Result: 1
19 years ago
Lasse Koskela,

I have updated my profile.

Sorry for that

Adel Aneiba
19 years ago
Hi All,

I have been working on cactus framework for a month now, i could manage to make it work now finally , but as usual still have problems, anyway, does anyone have any idea about the below error. The test seems work fine but still having annoying error as you can see below

Many thanks in advance

Adel

test:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against JBoss 3.2
[cactus] -----------------------------------------------------------------
[cactus] Running alpha.testCactus.AllTests
[cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.536 sec
[cactus] Testsuite: alpha.testCactus.AllTests
[cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.536 sec



[cactus] Shutdown complete



report:
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 881ms

BUILD SUCCESSFUL
Total time: 2 minutes 58 seconds
java.lang.reflect.InvocationTargetException
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:324)
at org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:116)
at org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:186)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:702)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:161)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
at org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.startUp(JBoss3xContainer.java:235)
at org.apache.cactus.integration.ant.container.ContainerRunner$1.run(ContainerRunner.java:140)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.remove(Shutdown.java:102)
at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
... 13 more
19 years ago
Hi Lasse Koskela,

Here it is:

<!-- =================================================================== -->
<!-- Generate the JUnit reports -->
<!-- =================================================================== -->
<target name="report" depends="test">
<mkdir dir="${complied.code.dir}/jboss3x" />
<junitreport todir="${complied.code.dir}/jboss3x">
<fileset dir="${basedir}" includes="TEST-*.xml" />
<report todir="${complied.code.dir}/jboss3x" format="frames" />
</junitreport>
<!--
<fail if="tests.failed">At least one test failed!</fail> -->
</target>
19 years ago
Hi All,

I am having somethims the below error with my test.

P.S. sometimes is working just right.

Any help will be appreciated

Regards,

Adel

test:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against JBoss 3.2
[cactus] -----------------------------------------------------------------
[cactus] Running alpha.testCactus.TestbirthdayformEJB
[cactus] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.292 sec
[cactus] Testsuite: alpha.testCactus.TestbirthdayformEJB
[cactus] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.292 sec

[cactus] Testcase: testbirthdayformOk(alpha.testCactus.TestbirthdayformEJB): Caused an ERROR
[cactus] Failed to get the test results at [http://localhost:8998/test/ServletRedirector]
[cactus] org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://localhost:899
est/ServletRedirector]
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHtt
ient.java:92)
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(Def
tHttpClient.java:206)
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHand
.java:159)
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpPro
olHandler.java:80)
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(
pProtocolHandler.java:206)
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler
va)
[cactus] at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
[cactus] at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
[cactus] at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
[cactus] org.apache.cactus.internal.client.ParsingException: Not a valid response [404 %2Ftest%2FServletRedirect
Not+Found]
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClie
java:211)
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHtt
ient.java:87)
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(Def
tHttpClient.java:206)
[cactus] at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHand
.java:159)
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpPro
olHandler.java:80)
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(
pProtocolHandler.java:206)
[cactus] at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler
va)
[cactus] at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
[cactus] at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
[cactus] at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
19 years ago
Hi all,

I'm having a problem for two weeks now and i am really looking for someone to help me out. I am trying to test some EJB classes using cactus framework, i think i did almost everything to make this test run, but still having some problems with my HTML-report and other problems as well with the server. the report one i got text report on the screen saying BUILD SUCCESSFUL* but i can see get this info into the browser using report tag due to empty test.xml and also some time have problem saying "failed to get resutl from the server". I am really confus. so if anyone can help me out i would be morethan gratful.

the output looks like:

test:
[cactus] ---------------------------------------------------------------
[cactus] Running tests against JBoss 3.2
[cactus] ---------------------------------------------------------------
[cactus] Running alpha.testCactus.TestbirthdayformEJB
[cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.46 sec
[cactus] Testsuite: alpha.testCactus.TestbirthdayformEJB
[cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.46 sec


report:
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 291ms

BUILD SUCCESSFUL

Many thanks

Adel
19 years ago
Hi,

There are two nice books explain how to use Junit and other realted topics. The books are:

Junit in action: ISBN:1-930110-99-5
Junit Recipes: ISBN:1932394230

Good Luck

Adel
19 years ago