Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Is there a way to disable logging?
Is there a way to disable logging? [message #728115] Thu, 22 September 2011 14:54 Go to next message
Victor Martin is currently offline Victor MartinFriend
Messages: 29
Registered: July 2009
Junior Member
Is there a way to disable logging in Jubula?

The reason I asked is because we are seeing our AUT crashing and we think it is because of different loggers. This is the error we are seeing:


*** STDERR ***
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/CB_Release/jubula_5.1.00156/server/lib/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/CB_Release/jubula_5.1.00156/server/../server/lib/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Picked up _JAVA_OPTIONS: "-javaagent:E:/CB_Release/jubula_5.1.00156/server/./org.eclipse.jubula.rc.common.agent.jar" -Duser.country=US -Duser.language=en -Djava.util.logging.config.file="E:/CB_Release/jubula_5.1.00156/server/./resources/logging.properties"
*** EXITCODE = 0 ***
Re: Is there a way to disable logging? [message #728366 is a reply to message #728115] Fri, 23 September 2011 06:39 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

As far as I'm aware, the logging can't be disabled (I'll check though Smile ). However, I'm unsure as to whether that's actually the problem, as I believe I've observed the message with multiple bindings even when there are no problems with the AUT. The best thing to do would be to attach the stack trace for the problem that is causing the AUT to crash, and we can see from there.

Regards,
Alex
Re: Is there a way to disable logging? [message #730115 is a reply to message #728366] Tue, 27 September 2011 16:31 Go to previous messageGo to next message
Victor Martin is currently offline Victor MartinFriend
Messages: 29
Registered: July 2009
Junior Member
Alex, I just wanted to follow up and let you know that the multiple binding error is now gone when using jubula_5.2.00266.

I also found a way to disable the AUT Agent logger by un-commenting out the line "log4j.appender.all=org.apache.log4j.varia.NullAppender" in the server/resources/log4j.properties file. A total hack...
Re: Is there a way to disable logging? [message #733917 is a reply to message #730115] Wed, 05 October 2011 23:25 Go to previous messageGo to next message
Victor Martin is currently offline Victor MartinFriend
Messages: 29
Registered: July 2009
Junior Member
Alex, I just found that the problem with the multiple bindings does not happen when connected to the Embedded AUT Agent but it still there when connected to an agent that was started from the command line. Why is that? This kills our possibility to use Jubula as part of our build cycle in a Jenkins job...

Thanks
Victor.
Re: Is there a way to disable logging? [message #734885 is a reply to message #733917] Mon, 10 October 2011 09:50 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Victor,

Does the AUT only crash then when working with the non-embedded agent?

If the AUT crashes regardless of which agent you use, then it has nothing to do with the logging, and a stack trace of the problem might help further. You could open a ticket with the information.

If the AUT only crashes with the non-embedded agent, then it could be the logging and you should also open a ticket with as much information as possible.

Best regards,
Alex
Re: Is there a way to disable logging? [message #734966 is a reply to message #728115] Mon, 10 October 2011 14:33 Go to previous messageGo to next message
Victor Martin is currently offline Victor MartinFriend
Messages: 29
Registered: July 2009
Junior Member
Alex, the AUT only crashes with the non-embedded agent. So for now the workaround is to use Jubula to drive Jubula. We have a Jenkins job where testexec connects to the non-embedded agent and runs a test case that launches Jubula, connects to the embedded agent on a different port and runs our tests without the crash.

Could you point me to the correct place to open a ticket.

Thanks
Victor.
Re: Is there a way to disable logging? [message #734967 is a reply to message #734885] Mon, 10 October 2011 14:33 Go to previous messageGo to next message
Victor Martin is currently offline Victor MartinFriend
Messages: 29
Registered: July 2009
Junior Member
Alex, the AUT only crashes with the non-embedded agent. So for now the workaround is to use Jubula to drive Jubula. We have a Jenkins job where testexec connects to the non-embedded agent and runs a test case that launches Jubula, connects to the embedded agent on a different port and runs our tests without the crash.

Could you point me to the correct place to open a ticket.

Thanks
Victor.
Re: Is there a way to disable logging? [message #735152 is a reply to message #734967] Tue, 11 October 2011 06:16 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jubula

Best regards,
Alex
Re: Is there a way to disable logging? [message #1383984 is a reply to message #735152] Tue, 27 May 2014 16:05 Go to previous messageGo to next message
Plinio Froener is currently offline Plinio FroenerFriend
Messages: 13
Registered: May 2014
Junior Member
Hi Alex,

Do you know if have any work'around for this problem related ?

I'm facing the same problem when i use non-embedded agent.

Could I run embedded mode by command line?

thanks in advanced.

Plinio




[Updated on: Tue, 27 May 2014 19:26]

Report message to a moderator

Re: Is there a way to disable logging? [message #1384111 is a reply to message #1383984] Wed, 28 May 2014 06:59 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Plinio, In version 8.0 you can use the embedded agent with testexec as well, yes.
Re: Is there a way to disable logging? [message #1384304 is a reply to message #1384111] Wed, 28 May 2014 17:09 Go to previous messageGo to next message
Plinio Froener is currently offline Plinio FroenerFriend
Messages: 13
Registered: May 2014
Junior Member
Alex,
I'm trying autagent.exe -p "60001" (embedded set to the port 60001)
Is this the correct way to run embedded mode? Because i'm still have problem with "Picked up _JAVA_OPTIONS: "-javaagent....."

Best regards,

Plinio
Re: Is there a way to disable logging? [message #1384885 is a reply to message #1384304] Mon, 02 June 2014 19:13 Go to previous messageGo to next message
Plinio Froener is currently offline Plinio FroenerFriend
Messages: 13
Registered: May 2014
Junior Member
Hi All,

Someone could help me about 'how start autagent embedded'(command line)?


Thanks in advance!!

[Updated on: Mon, 02 June 2014 19:14]

Report message to a moderator

Re: Is there a way to disable logging? [message #1384915 is a reply to message #1384885] Tue, 03 June 2014 06:24 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Plino,

The documentation on starting the embedded AUT agent manually is here:
http://help.eclipse.org/kepler/topic/org.eclipse.jubula.client.ua.help/html/manual/node39.html?cp=34_2_0_1

The documentation on starting the embedded AUT agent during testexec is currently only in the user manual (available in the installation or for download from the testing portal (http://testing.bredex.de). It's in the chapter on using testexec. Bear in mind that this feature is available as of 8.0.

Best regards,
Alex

Previous Topic:How to check a part of Text on TextComponent
Next Topic:Use a different Datasets on a nested case
Goto Forum:
  


Current Time: Fri Apr 19 20:28:34 GMT 2024

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

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

Back to the top