Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" #7

Closed
arghavanMor opened this issue Nov 16, 2022 · 1 comment
Closed

Comments

@arghavanMor
Copy link

arghavanMor commented Nov 16, 2022

Hi,
Thank you for this interesting tool. I faced another issue while running mBERT on the same SampleMethods.java in the example folder. But It generated zero mutant files. It generates map text file and mapping csv file but with zerto entry.

The only msg or error that I receive is:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
792: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0

I tried to add log4j dependencies into pom.xml, but It doesn't solve the issue.

Here is the whole output:

Input: ./SimpleMethods.java
Output: ./method_sample/Out/
Settings{CODEBERT_TIMEOUT=60, MAX_NUM_OF_MUTANTS=3}
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Here is the standard error of the command (if any):

2022-11-16 18:37:47.121643: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Here is the standard error of the command (if any):

2022-11-16 18:37:54.992443: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Here is the standard error of the command (if any):

2022-11-16 18:38:03.246794: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Here is the standard error of the command (if any):

2022-11-16 18:38:11.397682: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Here is the standard error of the command (if any):

2022-11-16 18:38:19.358529: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Here is the standard error of the command (if any):

2022-11-16 18:38:27.984133: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Here is the standard error of the command (if any):

2022-11-16 18:38:37.259234: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Saving mutants...
Settings{CODEBERT_TIMEOUT=60, MAX_NUM_OF_MUTANTS=3}


@rdegiovanni
Copy link
Owner

Dear Arghavan,
To me, it seams that what is not working is the invocation to CodeBERT.
Could you please let me know which java, torch and transformers versions you are using?
In my case I'm using Java 11, torch:1.10.1 and transformers:4.15.0

If I run python3 run-codebert.py "int <mask> = b;" I get the following output:
{'masked_seq':'int<mask>= b;'} {'score': 0.23396340012550354, 'token': 740, 'token_str': 'c', 'sequence': 'int c= b;'} {'score': 0.05450829118490219, 'token': 939, 'token_str': 'i', 'sequence': 'int i= b;'} {'score': 0.05004948750138283, 'token': 741, 'token_str': 'b', 'sequence': 'int b= b;'} {'score': 0.04164685681462288, 'token': 10, 'token_str': 'a', 'sequence': 'int a= b;'} {'score': 0.023635799065232277, 'token': 181, 'token_str': 'p', 'sequence': 'int p= b;'}

Do you get any warnings here?

Best,
Renzo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants