java.lang.NoSuchMethodError: java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String;

QOS.ch JIRA | David Sills | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I noted when running a JUnit test using SLF4J 1.6.1 under Java 1.4.2 that a Java 5 API method was used, which created a problem but did not prevent logging altogether, simply printed out a stack trace. It should be no great issue to fix, I should think: Unexpected problem occured during version sanity check Reported exception: java.lang.NoSuchMethodError: java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String; at org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:161) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:106) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221) at com.datasourceinc.alerts.util.AlertsFileParser.<init>(AlertsFileParser.java:15) at com.datasourceinc.alerts.util.FileParsingTest.testParse(FileParsingTest.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) (BTW, I note that Windows 7 is not on your OS list and used Windows XP so as to come as close as I could.)

    QOS.ch JIRA | 6 years ago | David Sills
    java.lang.NoSuchMethodError: java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String;
  2. 0

    I noted when running a JUnit test using SLF4J 1.6.1 under Java 1.4.2 that a Java 5 API method was used, which created a problem but did not prevent logging altogether, simply printed out a stack trace. It should be no great issue to fix, I should think: Unexpected problem occured during version sanity check Reported exception: java.lang.NoSuchMethodError: java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String; at org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:161) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:106) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221) at com.datasourceinc.alerts.util.AlertsFileParser.<init>(AlertsFileParser.java:15) at com.datasourceinc.alerts.util.FileParsingTest.testParse(FileParsingTest.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) (BTW, I note that Windows 7 is not on your OS list and used Windows XP so as to come as close as I could.)

    QOS.ch JIRA | 6 years ago | David Sills
    java.lang.NoSuchMethodError: java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String;
  3. 0

    Running 5min setup example leads to slf4j-api 1.6.x (or later) is incompatible with this binding.

    GitHub | 4 years ago | jaksky
    java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Faunus SLF4J issues with Titan 0.4.0-SNAPSHOT

    GitHub | 3 years ago | okram
    java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
  6. 0

    SLF4J: Exception in thread "main" java.lang.NoSuchMethodError

    Stack Overflow | 2 years ago | macha
    java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;

  1. andyglick 2 times, last 3 weeks ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoSuchMethodError

    java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String;

    at org.slf4j.LoggerFactory.versionSanityCheck()
  2. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:161)
    2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:106)
    3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235)
    4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208)
    5. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221)
    5 frames
  3. com.datasourceinc.alerts
    FileParsingTest.testParse
    1. com.datasourceinc.alerts.util.AlertsFileParser.<init>(AlertsFileParser.java:15)
    2. com.datasourceinc.alerts.util.FileParsingTest.testParse(FileParsingTest.java:19)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  5. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runTest(TestCase.java:164)
    2. junit.framework.TestCase.runBare(TestCase.java:130)
    3. junit.framework.TestResult$1.protect(TestResult.java:106)
    4. junit.framework.TestResult.runProtected(TestResult.java:124)
    5. junit.framework.TestResult.run(TestResult.java:109)
    6. junit.framework.TestCase.run(TestCase.java:120)
    7. junit.framework.TestSuite.runTest(TestSuite.java:230)
    8. junit.framework.TestSuite.run(TestSuite.java:225)
    8 frames
  6. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    2. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    6 frames