cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2147
Views
0
Helpful
15
Replies

NoSuchElementException

muzicman61
Level 1
Level 1

First post, so I hope I am placing it the correct forum.  I get the following error in my ErrorLog folder for my CVP app.  I'm trying to find out where the full log is.  Where can I find these "26 more" lines of the debug log?

 

WW.X.YY.ZZ.1590704235019.1329604.CCCServiceSales,05/28/2020 17:18:09.446, The error was: A built-in element encountered an exception of type java.util.NoSuchElementException. The root cause was: java.util.NoSuchElementException
com.audium.server.AudiumException: A built-in element encountered an exception of type java.util.NoSuchElementException.
at com.audium.server.voiceElement.VoiceElementBase.getVoiceElementResult(VoiceElementBase.java:773)
at com.audium.server.voiceElement.VoiceElementBase.service(VoiceElementBase.java:519)
at com.audium.server.controller.Controller.goToVoiceElement(Controller.java:4246)
at com.audium.server.controller.Controller.doPost(Controller.java:1127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(Unknown Source)
at com.audium.server.voiceElement.form.MFoundationForm.addXmlBody(MFoundationForm.java:1003)
at com.audium.server.voiceElement.VoiceElementBase.getVoiceElementResult(VoiceElementBase.java:746)
... 26 more

15 Replies 15

walemark61590
Level 1
Level 1

The NoSuchElementException in Java is thrown when one tries to access an iterable beyond its maximum limit. This means that, this exception is thrown by various accessor methods to indicate that the element being requested does not exist . The next() method in Java returns the next element in the iteration or NoSuchElementException if the iteration has no more elements.

 

The solution to this exception is to check whether the next position of an iterable is filled or empty . The following methods are used to check the next position:

 

  • hasNext()
  • hasMoreElements()