java.lang.IllegalArgumentException: expected one element but was: <null, null, null, null, null, ...>

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

Solutions on the web

via Sonatype JIRA by Benjamin Bentmann, 10 months ago
expected one element but was: <null, null, null, null, null, ...>
via Sonatype JIRA by Ilya Martynov, 10 months ago
expected one element but was: <null, #-2:0{COUNT:0} v0>
via GitHub by gdhruv80
, 5 months ago
expected one element but was: <class java.lang.Double, class java.lang.String>
via GitHub by GoogleCodeExporter
, 4 months ago
expected one element but was: <██████████Activity@b23c7d10, ███████████Activity@b2461610>
via GitHub by GoogleCodeExporter
, 10 months ago
expected one element but was: <██████████Activity@b23c7d10, ███████████Activity@b2461610>
via Stack Overflow by Mitchapp
, 1 day ago
expected one element but was: <C:\Users\USERNAME\AppData\Local\Temp\lambdas5071052945774272158\org\eclipse\jetty\server\AsyncContextEvent$$Lambda$30.class, C:\Users\USERNAME\AppData\Local\Temp\lambdas5071052945774272158\org\eclipse\jetty\server\AsyncContextEvent$$Lambda$9.class>
java.lang.IllegalArgumentException: expected one element but was: <null, null, null, null, null, ...>
at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:322)
at org.sonatype.nexus.repository.browse.internal.BrowseServiceImpl.getCount(BrowseServiceImpl.java:192)
at org.sonatype.nexus.repository.browse.internal.BrowseServiceImpl.browseComponents(BrowseServiceImpl.java:95)
at org.sonatype.nexus.repository.browse.BrowseService$browseComponents.call(Unknown Source)
at org.sonatype.nexus.coreui.ComponentComponent.read(ComponentComponent.groovy:126)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 5 months ago

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