Bug #543

java.lang.ClassCastException: org.endurox.TypedView cannot be cast to org.endurox.TypedUbf

Added by Madars Vitolins 7 months ago. Updated 3 months ago.

Status:NewStart date:04/28/2020
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Scanning for leaks... bufferCrossTestAsync (sleep 5 for plot results...)
leaks=[]
JUnit version 4.12
....E.
Time: 13.785
There was 1 failure:
1) bufferCrossTest(TpcallTests)
java.lang.ClassCastException: org.endurox.TypedView cannot be cast to org.endurox.TypedUbf
    at Commons.testerX(Commons.java:163)
    at Commons.bufferCrossTestX(Commons.java:199)
    at TpcallTests.bufferCrossTest(TpcallTests.java:240)
    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:622)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)
    at org.junit.runner.JUnitCore.main(JUnitCore.java:36)

History

#1 Updated by Madars Vitolins 3 months ago

centos 6:

java version "1.7.0_131"
OpenJDK Runtime Environment (rhel-2.6.9.0.el6_8-x86_64 u131-b00)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)

Time: 201.231

OK (6 tests)

* Shared resources opened...
* ndrxd PID (from PID file): 26644
Server executable = tmqueue    Id = 300 :    Shutdown succeeded.
Server executable = tmsrv    Id = 200 :    Shutdown succeeded.
Server executable = jserver01_2b    Id = 100 :    Shutdown succeeded.
Server executable = jserver01    Id = 1 :    Shutdown succeeded.
Shutdown finished. 4 processes stopped.
* Shared resources opened...
* Enduro/X back-end (ndrxd) is not running
* ndrxd PID (from PID file): 27291
* ndrxd idle instance started.
exec jserver01 -k 0myWI5nu -i 1 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/JAVA -r --  :
    process id=27296 ... Started.
exec jserver01_2b -k 0myWI5nu -i 100 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/JSERVER01_2B -r --  :
    process id=27310 ... Started.
exec tmsrv -k 0myWI5nu -i 200 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/tmsrv-dom1.log -r -- -t1 -l/home/user1/modules/endurox-java/tests/01_basic_server/RM1 --  :
    process id=27324 ... Started.
exec tmqueue -k 0myWI5nu -i 300 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/tmqueue-dom1.log -r -- -m MYSPACE -s1 --  :
    process id=27339 ... Started.
Startup finished. 4 processes started.
Scanning for leaks... bufferCrossTestAsync (sleep 5 for plot results...)
leaks=[]
JUnit version 4.12
....E.
Time: 21.398
There was 1 failure:
1) bufferCrossTest(TpcallTests)
java.lang.ClassCastException: org.endurox.TypedJson cannot be cast to org.endurox.TypedString
    at Commons.testerX(Commons.java:151)
    at Commons.bufferCrossTestX(Commons.java:220)
    at TpcallTests.bufferCrossTest(TpcallTests.java:243)
    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:622)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)
    at org.junit.runner.JUnitCore.main(JUnitCore.java:36)

FAILURES!!!
Tests run: 5,  Failures: 1

Test exiting with: 8
* Shared resources opened...
* ndrxd PID (from PID file): 27291
Server executable = tmqueue    Id = 300 :    Shutdown succeeded.
Server executable = tmsrv    Id = 200 :    Shutdown succeeded.
Server executable = jserver01_2b    Id = 100 :    Shutdown succeeded.
Server executable = jserver01    Id = 1 :    Shutdown succeeded.
Shutdown finished. 4 processes stopped.
Killing [xmemck] ... Signaled/killed
~/modules/endurox-java/tests

#2 Updated by Madars Vitolins 3 months ago

Another on centos 6:

Time: 201.231

OK (6 tests)

* Shared resources opened...
* ndrxd PID (from PID file): 26644
Server executable = tmqueue    Id = 300 :    Shutdown succeeded.
Server executable = tmsrv    Id = 200 :    Shutdown succeeded.
Server executable = jserver01_2b    Id = 100 :    Shutdown succeeded.
Server executable = jserver01    Id = 1 :    Shutdown succeeded.
Shutdown finished. 4 processes stopped.
* Shared resources opened...
* Enduro/X back-end (ndrxd) is not running
* ndrxd PID (from PID file): 27291
* ndrxd idle instance started.
exec jserver01 -k 0myWI5nu -i 1 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/JAVA -r --  :
    process id=27296 ... Started.
exec jserver01_2b -k 0myWI5nu -i 100 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/JSERVER01_2B -r --  :
    process id=27310 ... Started.
exec tmsrv -k 0myWI5nu -i 200 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/tmsrv-dom1.log -r -- -t1 -l/home/user1/modules/endurox-java/tests/01_basic_server/RM1 --  :
    process id=27324 ... Started.
exec tmqueue -k 0myWI5nu -i 300 -e /home/user1/modules/endurox-java/tests/01_basic_server/log/tmqueue-dom1.log -r -- -m MYSPACE -s1 --  :
    process id=27339 ... Started.
Startup finished. 4 processes started.
Scanning for leaks... bufferCrossTestAsync (sleep 5 for plot results...)
leaks=[]
JUnit version 4.12
....E.
Time: 21.398
There was 1 failure:
1) bufferCrossTest(TpcallTests)
java.lang.ClassCastException: org.endurox.TypedJson cannot be cast to org.endurox.TypedString
    at Commons.testerX(Commons.java:151)
    at Commons.bufferCrossTestX(Commons.java:220)
    at TpcallTests.bufferCrossTest(TpcallTests.java:243)
    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:622)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)
    at org.junit.runner.JUnitCore.main(JUnitCore.java:36)

FAILURES!!!
Tests run: 5,  Failures: 1

Test exiting with: 8
* Shared resources opened...
* ndrxd PID (from PID file): 27291
Server executable = tmqueue    Id = 300 :    Shutdown succeeded.
Server executable = tmsrv    Id = 200 :    Shutdown succeeded.
Server executable = jserver01_2b    Id = 100 :    Shutdown succeeded.
Server executable = jserver01    Id = 1 :    Shutdown succeeded.
Shutdown finished. 4 processes stopped.
Killing [xmemck] ... Signaled/killed
~/modules/endurox-java/tests

Trying to upgrade JDK to: java-1.7.0-openjdk-1.7.0.261-2.6.22.1.el6_10.x86_64.rpm

Also available in: Atom PDF