javax.faces.event.AbortProcessingException: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive

ICEsoft JIRA Issue Tracker | Carlo Guglielmin | 6 years ago
  1. 0

    The compat auctionMonitor demo uses a preset list of colors for usernames in the chat. Each time a user joins the chat a new color is selected for them and removed from the list. The problem is the colors are not reliably added back into the list, so eventually it becomes empty. At this point a new user will be unable to join the chat as the random color chooser will throw an exception as such: May 17, 2011 11:18:23 AM com.sun.faces.context.AjaxExceptionHandlerImpl log SEVERE: JSF1073: javax.faces.event.AbortProcessingException caught during processing of INVOKE_APPLICATION 5 : UIComponent-ClientId=chat:join_chat_button, Message=/auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive May 17, 2011 11:18:23 AM com.sun.faces.context.AjaxExceptionHandlerImpl log SEVERE: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive javax.faces.event.AbortProcessingException: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:182) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:250) at com.icesoft.applications.faces.auctionMonitor.ChatState.generateColorCode(ChatState.java:161) at com.icesoft.applications.faces.auctionMonitor.ChatState.addUserChild(ChatState.java:93) at com.icesoft.applications.faces.auctionMonitor.beans.UserBean.enterConversation(UserBean.java:314) at sun.reflect.GeneratedMethodAccessor105827.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148) ... 25 more

    ICEsoft JIRA Issue Tracker | 6 years ago | Carlo Guglielmin
    javax.faces.event.AbortProcessingException: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive
  2. 0

    The compat auctionMonitor demo uses a preset list of colors for usernames in the chat. Each time a user joins the chat a new color is selected for them and removed from the list. The problem is the colors are not reliably added back into the list, so eventually it becomes empty. At this point a new user will be unable to join the chat as the random color chooser will throw an exception as such: May 17, 2011 11:18:23 AM com.sun.faces.context.AjaxExceptionHandlerImpl log SEVERE: JSF1073: javax.faces.event.AbortProcessingException caught during processing of INVOKE_APPLICATION 5 : UIComponent-ClientId=chat:join_chat_button, Message=/auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive May 17, 2011 11:18:23 AM com.sun.faces.context.AjaxExceptionHandlerImpl log SEVERE: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive javax.faces.event.AbortProcessingException: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:182) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:250) at com.icesoft.applications.faces.auctionMonitor.ChatState.generateColorCode(ChatState.java:161) at com.icesoft.applications.faces.auctionMonitor.ChatState.addUserChild(ChatState.java:93) at com.icesoft.applications.faces.auctionMonitor.beans.UserBean.enterConversation(UserBean.java:314) at sun.reflect.GeneratedMethodAccessor105827.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148) ... 25 more

    ICEsoft JIRA Issue Tracker | 6 years ago | Carlo Guglielmin
    javax.faces.event.AbortProcessingException: /auctionMonitor.xhtml @260,89 actionListener="#{UserBean.enterConversation}": java.lang.IllegalArgumentException: n must be positive
  3. 0

    Illegal argument exception: n must be positive

    Stack Overflow | 3 years ago | Leo Rickayzen
    java.lang.IllegalArgumentException: n must be positive
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Actor creation error in akka

    Stack Overflow | 3 years ago | nitinsh99
    java.lang.IllegalArgumentException: n must be positive
  6. 0

    Exception using cloudera hadoop maven dependency

    Stack Overflow | 3 years ago | abhijeet
    java.lang.IllegalArgumentException: n must be positive

  1. gehel 12 times, last 1 month ago
  2. sriharshakiran 1 times, last 7 months ago
3 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.IllegalArgumentException

    n must be positive

    at java.util.Random.nextInt()
  2. Java RT
    Random.nextInt
    1. java.util.Random.nextInt(Random.java:250)
    1 frame
  3. com.icesoft.applications
    UserBean.enterConversation
    1. com.icesoft.applications.faces.auctionMonitor.ChatState.generateColorCode(ChatState.java:161)
    2. com.icesoft.applications.faces.auctionMonitor.ChatState.addUserChild(ChatState.java:93)
    3. com.icesoft.applications.faces.auctionMonitor.beans.UserBean.enterConversation(UserBean.java:314)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor105827.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  5. Pax Jsp
    MethodExpressionImpl.invoke
    1. org.apache.el.parser.AstValue.invoke(AstValue.java:262)
    2. org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
    2 frames
  6. JSF
    TagMethodExpression.invoke
    1. com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
    1 frame
  7. JavaEE 7
    UIViewRoot.processApplication
    1. javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
    2. javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
    3. javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
    4. javax.faces.component.UICommand.broadcast(UICommand.java:300)
    5. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
    6. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
    6 frames
  8. JSF
    LifecycleImpl.execute
    1. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
    2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    3 frames
  9. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
    1 frame
  10. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
    10 frames
  11. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    3 frames
  12. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:619)
    3 frames