Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » testexec on Linux: NullpointerExecption while starting AUT
testexec on Linux: NullpointerExecption while starting AUT [message #1743251] Tue, 13 September 2016 14:42 Go to next message
Danny Tramnitzke is currently offline Danny TramnitzkeFriend
Messages: 25
Registered: April 2014
Junior Member
I try to start an JavaFx application via testexec from Xubuntu on a VirtualBox Host.

First I've started the autagent on port 60001
./autagent -p 60001


Then the test:
./testexec -project V9_Tests -version 1.0 -testsuite V9_Tests -server localhost -port 60001 -autconfig aut_v9client@localhost -resultdir "/home/danny/jubula_8.3.0.122/examples/testresults" -dbscheme "Default Embedded (H2)" -dbuser sa -dbpw ""
9/13/16 11:01:40 AM - AUT Agent:	Connecting to "localhost:60001" ...
9/13/16 11:01:40 AM - AUT Agent:	connection established.
9/13/16 11:01:41 AM - Database:	Connecting as "sa" to "jdbc:h2:~/.jubula/database/embedded;MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE"...
9/13/16 11:01:45 AM - Database:	Connection established.
9/13/16 11:01:45 AM - Database:	Loading project "V9_Tests" in version "1.0"...
9/13/16 11:01:46 AM - Database:	Project loading completed.
9/13/16 11:01:46 AM - Project:	Checking completeness
9/13/16 11:01:46 AM - Checking completeness of Test Suite "V9_Tests"...
9/13/16 11:01:46 AM - ... passed.
9/13/16 11:01:46 AM - AUT:		Starting AUT: "aut_v9client" via configuration "aut_v9client@localhost"...
!!Error occurred !!
	the communication between client and aut server could not established - AUTServer could not start: Unknown AUTServer exit code: 31.
 Picked up _JAVA_OPTIONS: "-javaagent:/home/danny/jubula_8.3.0.122/ite/plugins/org.eclipse.jubula.rc.common.agent_4.0.0.201607281404.jar"
java.lang.reflect.InvocationTargetException
	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.eclipse.jubula.rc.common.AutServerLauncher.main(AutServerLauncher.java:96)
	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.eclipse.jubula.rc.common.agent.RCAgent.premain(RCAgent.java:103)
	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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.lang.NullPointerException
	at org.eclipse.jubula.rc.common.AUTServer.sendExitReason(AUTServer.java:702)
	at org.eclipse.jubula.rc.common.AUTServer.start(AUTServer.java:402)
	at org.eclipse.jubula.rc.common.AUTServer.main(AUTServer.java:308)
	... 16 more

What can be the reason ?
Any ideas?
The application can be started manually without the autagent on that system.

Re: testexec on Linux: NullpointerExecption while starting AUT [message #1743293 is a reply to message #1743251] Wed, 14 September 2016 06:51 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi there,

thanks for the information. If you start the ITE on that system and try to start the AUT via the ITE, do you get the same error?

Best regards,
Alex
Re: testexec on Linux: NullpointerExecption while starting AUT [message #1743309 is a reply to message #1743293] Wed, 14 September 2016 09:14 Go to previous messageGo to next message
Danny Tramnitzke is currently offline Danny TramnitzkeFriend
Messages: 25
Registered: April 2014
Junior Member
Hi Alexandra,

I tried that in the first place, but on this system I'm not able to open a test project in Eclipse, see Jubula on VirtualBox Linux (Xubuntu) - Endless Connecting to Database
Re: testexec on Linux: NullpointerExecption while starting AUT [message #1744371 is a reply to message #1743309] Mon, 26 September 2016 11:42 Go to previous messageGo to next message
Danny Tramnitzke is currently offline Danny TramnitzkeFriend
Messages: 25
Registered: April 2014
Junior Member
However, I think that here at org.eclipse.jubula.rc.common.AUTServer.sendExitReason(AUTServer.java:702) a Null check is missing
protected void sendExitReason(String errorMessage, int exitCode) { 
        try {
            m_iteCommunicator.send(new AUTServerStateMessage(
                    exitCode, errorMessage));
        } catch (CommunicationException ce) {
            log.error("Exception in start()", ce); //$NON-NLS-1$
        }
}


On other spots in this class, m_iteCommunicator is being checked against Null and here it isn't

see https://github.com/eclipse/jubula.core/blob/master/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/AUTServer.java
Re: testexec on Linux: NullpointerExecption while starting AUT [message #1744411 is a reply to message #1743293] Mon, 26 September 2016 15:54 Go to previous message
Danny Tramnitzke is currently offline Danny TramnitzkeFriend
Messages: 25
Registered: April 2014
Junior Member
Alexandra Schladebeck wrote on Wed, 14 September 2016 02:51
Hi there,

thanks for the information. If you start the ITE on that system and try to start the AUT via the ITE, do you get the same error?

Best regards,
Alex


Hi Alex,

Yes, I see the same error in the eclipse environment on linux. As I said before I think, the NullPointerException should be avoided in the code.

index.php/fa/27211/0/
Previous Topic:Select entry by value doesn't work in 8.3 version
Next Topic:Migration to new "execute external command" step
Goto Forum:
  


Current Time: Sat Sep 22 05:15:00 GMT 2018

Powered by FUDForum. Page generated in 0.03895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top