java.lang.IllegalStateException: More than one non-void public method detected with single argument.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.

,
Expert tip

Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.

Solutions on the web

via Spring JIRA by Veit Hoffmann, 1 year ago
More than one non-void public method detected with single argument.
via Spring JIRA by Veit Hoffmann, 1 year ago
More than one non-void public method detected with single argument.
via Stack Overflow by user3278695
, 8 months ago
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
via Stack Overflow by kaya
, 2 years ago
DataBinder is already initialized with ConversionService
via GitHub by rstoyanchev
, 1 year ago
Can't set AsyncWebRequest with concurrent handling in progress
java.lang.IllegalStateException: More than one non-void public method detected with single argument.
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:473)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:481)
at org.springframework.classify.util.MethodInvokerUtils.getMethodInvokerForSingleArgument(MethodInvokerUtils.java:194)
at org.springframework.classify.ClassifierAdapter.setDelegate(ClassifierAdapter.java:84)
at org.springframework.classify.ClassifierAdapter.(ClassifierAdapter.java:48)
at com.generali.appl.referenz.batch.multipleoutput.BackToBackPatternClassifierTests.testSetRouterDelegate(BackToBackPatternClassifierTests.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.lang.reflect.Method.invoke(Method.java:611)
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)

Users with the same issue

Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
18 times, 6 months ago
Once, 6 months ago
67 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.