java.util.NoSuchElementException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Nexus 3.0.0-03 startup on Ubuntu
    via Stack Overflow by Michał Schielmann
    ,
  • There is a serious problem starting the m6 release on ubuntu server without X11 installed and the documentation is not up to date. After unpacking nexus-installer-3.0.0-m6-unix-archive.tar.gz on my server I changed run_as_user in nexus.rc. I tried to start it with *./nexus-3.0.0-b2015110601/bin/nexus run* su: invalid option -- 'D' Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd After debuging the scipt I tried to start the Nexus server outside the script with nexus@node01:*/opt/nexus$ /usr/lib/jvm/java-8-oracle/jre/bin/java -server -Dinstall4j.jvmDir=/usr/lib/jvm/java-8-oracle/jre -Dexe4j.moduleName=/opt/nexus/nexus-3.0.0-b2015110601/bin/nexus -Dinstall4j.launcherId=245 -Dinstall4j.swt=false -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Xms256M -Xmx768M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Djava.net.preferIPv4Stack=true -Dkaraf.home=. -Dkaraf.base=. -Dkaraf.etc=etc -Djava.util.logging.config.file=etc/java.util.logging.properties -Dkaraf.data=data -Dkaraf.instances=data/instances -Djava.io.tmpdir=data/tmp -Dkaraf.startLocalConsole=false -Di4j.vpt=true -classpath /opt/nexus/nexus-3.0.0-b2015110601/.install4j/i4jruntime.jar:/opt/nexus/nexus-3.0.0-b2015110601/lib/karaf.jar:/opt/nexus/nexus-3.0.0-b2015110601/lib/karaf-org.osgi.core.jar:/opt/nexus/nexus-3.0.0-b2015110601/lib/karaf-jmx-boot.jar:/opt/nexus/nexus-3.0.0-b2015110601/lib/karaf-jaas-boot.jar:/opt/nexus/nexus-3.0.0-b2015110601/lib/karaf-nexus-branding.jar com.install4j.runtime.launcher.UnixLauncher run 9d17dc87 org.apache.karaf.main.Main* java.util.NoSuchElementException at java.util.LinkedList.removeFirst(LinkedList.java:270) at com.exe4j.runtime.util.ArgumentStack.popString(ArgumentStack.java:14) at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:37) java.util.NoSuchElementException Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) at java.awt.Button.<init>(Button.java:152) at com.exe4j.runtime.util.MessageBox.addChoice(MessageBox.java:151) at com.exe4j.runtime.util.MessageBox.addChoice(MessageBox.java:163) at com.install4j.runtime.launcher.ErrorHandler.displayGuiErrorMessage(ErrorHandler.java:14) at com.install4j.runtime.launcher.ErrorHandler.reportError(ErrorHandler.java:22) at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:71)
    via by Nicolai Ødum,
  • GitHub comment 20#89799961
    via GitHub by robertpanzer
    ,
  • Strack traces like these are logged on igniterealtime.org: {code}2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - Ack: h=36 mine=30 length=5 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=31 length=4 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=32 length=3 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=33 length=2 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=34 length=1 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=35 length=0 2016.01.06 00:11:22 ERROR [socket_c2s-thread-4]: org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <a h="36" xmlns="urn:xmpp:sm:3"/> java.util.NoSuchElementException at java.util.LinkedList.removeFirst(LinkedList.java:270) at org.jivesoftware.openfire.streammanagement.StreamManager.processClientAcknowledgement(StreamManager.java:144) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:202) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:181) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:407) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:236) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:745) {code}
    via by Guus der Kinderen,
  • Strack traces like these are logged on igniterealtime.org: {code}2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - Ack: h=36 mine=30 length=5 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=31 length=4 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=32 length=3 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=33 length=2 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=34 length=1 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=35 length=0 2016.01.06 00:11:22 ERROR [socket_c2s-thread-4]: org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <a h="36" xmlns="urn:xmpp:sm:3"/> java.util.NoSuchElementException at java.util.LinkedList.removeFirst(LinkedList.java:270) at org.jivesoftware.openfire.streammanagement.StreamManager.processClientAcknowledgement(StreamManager.java:144) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:202) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:181) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:407) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:236) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:745) {code}
    via by Guus der Kinderen,
  • Strack traces like these are logged on igniterealtime.org: {code}2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - Ack: h=36 mine=30 length=5 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=31 length=4 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=32 length=3 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=33 length=2 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=34 length=1 2016.01.06 00:11:22 DEBUG [socket_c2s-thread-4]: org.jivesoftware.openfire.streammanagement.StreamManager - In Ack: h=36 mine=35 length=0 2016.01.06 00:11:22 ERROR [socket_c2s-thread-4]: org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <a h="36" xmlns="urn:xmpp:sm:3"/> java.util.NoSuchElementException at java.util.LinkedList.removeFirst(LinkedList.java:270) at org.jivesoftware.openfire.streammanagement.StreamManager.processClientAcknowledgement(StreamManager.java:144) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:202) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:181) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:407) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:236) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:745) {code}
    via by Guus der Kinderen,
    • java.util.NoSuchElementException at java.util.LinkedList.removeFirst(LinkedList.java:270) at com.exe4j.runtime.util.ArgumentStack.popString(ArgumentStack.java:14) at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:37)
    No Bugmate found.