Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » ERROR AUT could not be started, because no valid Java JRE was specified(Error occur by using config file)
icon8.gif  ERROR AUT could not be started, because no valid Java JRE was specified [message #1228901] Wed, 08 January 2014 10:07 Go to next message
Dirk Willert is currently offline Dirk WillertFriend
Messages: 22
Registered: January 2014
Junior Member
Hi,
I've the following Problem: If I ussing a config file like:
config_windows.xml
<configuration>
<project>Auto_Test_DOXiS4_CSB_Mandant_Initial</project>
<version>1.3</version>
<autconfig>CSB_Admin_Client@sst-jubula</autconfig>
<dburl>jdbc:oracle:thin:@swt-willert-7:1521:TESTJUBULA</dburl>
<dbuser>Jubula</dbuser>
<dbpw>JUBULA12345</dbpw>
<server>qa-willert-3</server>
<port>60003</port>
<language>en_US</language>
<testsuite>Auto_Test_DOXiS4_CSB_Mandant_Initial</testsuite>
<datadir>.</datadir>
<resultdir>.</resultdir>
</configuration>

and start testexec -c config_windows.xml

the following error occurs:
Wed Jan 08 10:27:35 CET 2014 Using configuration file:
c:\Utils\Jubula\jubula\config_windows.xml
Wed Jan 08 10:27:37 CET 2014 AUT Agent: Connecting to "qa-willert-3:60003" ...
Wed Jan 08 10:27:38 CET 2014 AUT Agent: connection established.
Wed Jan 08 10:27:38 CET 2014 Database: Connecting as "Jubula" to "jdbc:oracle:thin:@swt-willert-7:1521:TESTJUBULA"...
Wed Jan 08 10:27:41 CET 2014 Database: Connection established.
Wed Jan 08 10:27:41 CET 2014 Database: Loading project "Auto_Test_DOXiS4_CSB_Mandant_Initial" in version "1.3"...
Wed Jan 08 10:27:42 CET 2014 Database: Project loading completed.
Wed Jan 08 10:27:42 CET 2014 Project: Checking completeness
Wed Jan 08 10:27:42 CET 2014 Checking completeness of Test Suite "Auto_Test_DOXiS4_CSB_Mandant_Initial"...
Wed Jan 08 10:27:42 CET 2014 AUT: Starting AUT: CSB_Admin_Client
!!Error occurred !!
AUT could not be started, because no valid Java JRE was specified
Wed Jan 08 10:27:48 CET 2014 AUT Agent: connection closed.
Wed Jan 08 10:27:48 CET 2014 Exit: Code 1

The same Project in the command line works:
c:\Utils\Jubula\jubula>C:\Utils\Jubula\jubula\testexec.exe -project Auto_Test_DOXiS4_CSB_Mandant_Initial -version 1.3 -dburl jdbc:oracle:thin:@swt-willert-7:1521:TESTJUBULA -dbuser Jubula -dbpw JUBULA12345 -server qa-willert-3 -port 60003 -language en_US -autconfig CSB_Admin_Client@qa-willert-3 -tes
tsuite Auto_Test_DOXiS4_CSB_Mandant_Initial -resultdir c:\\tmp\\mandant -datadir C:\\Users\\willert\\workspace
Wed Jan 08 10:29:51 CET 2014 AUT Agent: Connecting to "qa-willert-3:60003" ...
Wed Jan 08 10:29:51 CET 2014 AUT Agent: connection established.
Wed Jan 08 10:29:52 CET 2014 Database: Connecting as "Jubula" to "jdbc:oracle:thin:@swt-willert-7:1521:TESTJUBULA"...
Wed Jan 08 10:29:53 CET 2014 Database: Connection established.
Wed Jan 08 10:29:53 CET 2014 Database: Loading project "Auto_Test_DOXiS4_CSB_Mandant_Initial" in version "1.3"...
Wed Jan 08 10:29:54 CET 2014 Database: Project loading completed.
Wed Jan 08 10:29:54 CET 2014 Project: Checking completeness
Wed Jan 08 10:29:54 CET 2014 Checking completeness of Test Suite "Auto_Test_DOXiS4_CSB_Mandant_Initial"...
Wed Jan 08 10:29:54 CET 2014 AUT: Starting AUT: CSB_Admin_Client
Wed Jan 08 10:30:01 CET 2014 Start Test Suite: Auto_Test_DOXiS4_CSB_Mandant_Initial
Wed Jan 08 10:30:01 CET 2014 Executing Test Suite "Auto_Test_DOXiS4_CSB_Mandant_Initial"...
Wed Jan 08 10:30:01 CET 2014 Preparing execution of Test Suite "Auto_Test_DOXiS4_CSB_Mandant_Initial"...
Wed Jan 08 10:30:01 CET 2014 AUT: Connecting to "CSB_Admin_Client_3"...
Wed Jan 08 10:30:05 CET 2014 AUT: Connection established.
Wed Jan 08 10:30:05 CET 2014 Resolving predefined Variables
Wed Jan 08 10:30:05 CET 2014 Resolving Test Steps to execute...
Wed Jan 08 10:30:05 CET 2014 Activating AUT...
Wed Jan 08 10:30:05 CET 2014 Test Suite "Auto_Test_DOXiS4_CSB_Mandant_Initial" execution...
Wed Jan 08 10:30:05 CET 2014 Test Case: Activate CSB client
Wed Jan 08 10:30:05 CET 2014 Step: activate AUT
and so on

testexec runs on a Windows 7 maschine
AUT runs in VM Ware on Windows 8 server

What can I do, to use the config file without error?

Regards
Dirk

Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1229771 is a reply to message #1228901] Fri, 10 January 2014 07:18 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

The two configurations you are starting are different ones. In the config file, you enter "CSB_Admin_Client@sst-jubula" as the configuration to start the AUT. In the command line parameter version, you use "CSB_Admin_Client@qa-willert-3". There must be some difference between these two configuration files.

Hope that helps,
Alex
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1229783 is a reply to message #1229771] Fri, 10 January 2014 07:55 Go to previous messageGo to next message
Dirk Willert is currently offline Dirk WillertFriend
Messages: 22
Registered: January 2014
Junior Member
Hi,

that's the solution. sst-jubula is Linux and qa-willert-3 is Windows. Now it works. Thank you very much.


Dirk
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697242 is a reply to message #1229783] Tue, 02 June 2015 16:08 Go to previous messageGo to next message
sara mel is currently offline sara melFriend
Messages: 22
Registered: April 2015
Junior Member
Hi ,
I'm actualy using Jubula for GUI test automation everything works with ITE , but not with testexec, I always get this error " AUT could not be started, because no valid Java JRE was specified"
this is my config file :

<configuration>
<project>W4_BPMNPlus_Composer</project>
<version>1.0</version>
<autconfig>W4_Composer@localhost</autconfig>
<autid>W4_Composer</autid>
<dburl>jdbc:h2:~/.jubula/database/embedded;MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE</dburl>
<dbuser>sa</dbuser>
<dbpw></dbpw>
<language>en_US</language>
<testjob>Test1</testjob>
<datadir>C:\Users\QA\Desktop\Data\data</datadir>
<resultdir>C:\Users\QA\Desktop\Data\Result</resultdir>
</configuration>

best regards
Sara
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697313 is a reply to message #1697242] Wed, 03 June 2015 06:22 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Sara,

Thanks for your question. Which version of Jubula are you using?
Is the AUT configuration startable on the machine you're running testexec on? It could be the case that paths you have entered in your W4_Composer@localhost are not valid on this machine.
Also, is it intentional that you are using a Test Job? If you only have one AUT to test, it would probably make more sense to have a Test Suite that contains individual Test Cases for each use case you're testing. Test Jobs are mostly used for switching between AUTs in a test.

Let me know if this helps!
Alex
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697325 is a reply to message #1697313] Wed, 03 June 2015 07:58 Go to previous messageGo to next message
sara mel is currently offline sara melFriend
Messages: 22
Registered: April 2015
Junior Member
Hi Alex,
I'm using jubula Version: 8.1.1.018
I changed my config to only execute one test suite but this does not resolve the problem , the AUT is startable in this machine from ITE with the same configuration but not with testexec.
is it necessary to run the AUT with autrun before using testexec ?

thanks for your help
Sara
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697327 is a reply to message #1697325] Wed, 03 June 2015 08:06 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Sara,

Thanks for the further info. Can you post the command line output from the testexec as well as the log files (from the home/.jubula directory) for the time when the error occurs?

It isn't necessary to start the autrun before using testexec - it is started automatically.

Thanks,
Alex
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697332 is a reply to message #1697327] Wed, 03 June 2015 08:31 Go to previous messageGo to next message
sara mel is currently offline sara melFriend
Messages: 22
Registered: April 2015
Junior Member
Thanks for the reply
this is my cmd output :

C:\Program Files\jubula_8.1.00294\jubula>testexec.exe -c testexecTemplate.xml
03/06/15 10:22:47 - Using configuration file:
C:\Program Files\jubula_8.1.00294\jubula\testexecTemplate.xml
03/06/15 10:22:50 - AUT Agent: Connecting to "localhost:60000" ...
03/06/15 10:22:51 - AUT Agent: connection established.
03/06/15 10:22:51 - Database: Connecting as "sa" to "jdbc:h2:~/.jubula/databas
e/embedded;MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE"...
03/06/15 10:22:55 - Database: Connection established.
03/06/15 10:22:55 - Database: Loading project "W4_BPMNPlus_Composer" in versio
n "1.0"...
03/06/15 10:23:00 - Database: Project loading completed.
03/06/15 10:23:00 - Project: Checking completeness
03/06/15 10:23:00 - Checking completeness of Test Suite "Create_New_JPA_Project"
...
03/06/15 10:23:00 - ... passed.
03/06/15 10:23:00 - AUT: Starting AUT: "W4_Composer" via configur
ation "W4_Composer@localhost"...
!!Error occurred !!
AUT could not be started, because no valid Java JRE was specified

03/06/15 10:23:06 - AUT Agent: connection closed.
03/06/15 10:23:06 - Exit: Code 1
------------------------------------------------------------------------------------------------------------------------
and this is my log file content

2015-06-03 10:23:00.441 [Connection.ReaderThread:Socket[addr=/127.0.0.1,port=49374,localport=60000]] ERROR o.e.j.a.c.StartAUTServerCommand - Could not start AUTServer
java.io.IOException: Cannot run program "C:\Program Files\W4\W4 BPMN plus Composer\W4 BPMN plus Composer.exe" (in directory "C:\Program Files\W4\W4 BPMN plus Composer"): CreateProcess error=740, L?opération demandée nécessite une élévatio
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) ~[na:1.7.0_72]
at java.lang.Runtime.exec(Runtime.java:617) ~[na:1.7.0_72]
at org.eclipse.jubula.autagent.commands.AbstractStartToolkitAut.executeCommand(AbstractStartToolkitAut.java:215) ~[na:na]
at org.eclipse.jubula.autagent.commands.AbstractStartToolkitAut.startAut(AbstractStartToolkitAut.java:103) ~[na:na]
at org.eclipse.jubula.autagent.commands.StartAUTServerCommand.execute(StartAUTServerCommand.java:104) ~[na:na]
at org.eclipse.jubula.communication.internal.Communicator$ConnectionListener.received(Communicator.java:840) [org.eclipse.jubula.communication_3.0.0.201501191443.jar:na]
at org.eclipse.jubula.communication.internal.connection.Connection.fireMessageReceived(Connection.java:401) [org.eclipse.jubula.communication_3.0.0.201501191443.jar:na]
at org.eclipse.jubula.communication.internal.connection.Connection.access$2(Connection.java:390) [org.eclipse.jubula.communication_3.0.0.201501191443.jar:na]
at org.eclipse.jubula.communication.internal.connection.Connection$ReaderThread.run(Connection.java:453) [org.eclipse.jubula.communication_3.0.0.201501191443.jar:na]
Caused by: java.io.IOException: CreateProcess error=740, L?opération demandée nécessite une élévatio
at java.lang.ProcessImpl.create(Native Method) ~[na:1.7.0_72]
at java.lang.ProcessImpl.<init>(ProcessImpl.java:385) ~[na:1.7.0_72]
at java.lang.ProcessImpl.start(ProcessImpl.java:136) ~[na:1.7.0_72]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ~[na:1.7.0_72]
... 8 common frames omitted
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697333 is a reply to message #1697332] Wed, 03 June 2015 09:03 Go to previous messageGo to next message
sara mel is currently offline sara melFriend
Messages: 22
Registered: April 2015
Junior Member
I finally found the solution it was because of win7 security parameters...
To resolve the problem you only have to go in control panel > Users accounts > and modify the user control parameters , put the scrollbar at the lowest level then you have to restart your machine and it will be Ok
Re: ERROR AUT could not be started, because no valid Java JRE was specified [message #1697379 is a reply to message #1697333] Wed, 03 June 2015 13:59 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Ah, thanks for posting the answer!
Previous Topic:Explore nodes
Next Topic:Data Set as one Parameter
Goto Forum:
  


Current Time: Mon Aug 20 20:50:50 GMT 2018

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

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

Back to the top