java.lang.IllegalArgumentException: model object cannot be null

JIRA | Tony DeBat | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Steps: 1. Click Participants -> Participant Registry 2. Enter 4 and click Lookup to display Jokull Ingimundson 3. Click Receive to save Jokull as a participant 4. Clicking Receive should also redirect you to the Reception page. Instead the error message "Participant registration failed" is displayed. 5. Click Close to dismiss the error message 6. Click the Participants tab to refresh the list of participants. Jokull will appear in the list indicated that Jokull was successfully saved as a participant but that the redirect the the Reception page failed. Note that the view and receive links are available beside Jokull. 7. Clicking the receive link generates the following exception: 2010-04-22 13:53:04,230 - ERROR - apache.wicket.RequestCycle - model object cannot be null java.lang.IllegalArgumentException: model object cannot be null at org.obiba.wicket.markup.html.table.DetachableEntityModel.<init>(DetachableEntityModel.java:28) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupFragment.addParticipantAttribute(EditParticipantPanel.java:498) at org.obiba.onyx.webapp.participant.panel.ParticipantAttributeGroupFragment.<init>(ParticipantAttributeGroupFragment.java:28) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupFragment.<init>(EditParticipantPanel.java:469) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupsFragment.addAttributeGroupFragment(EditParticipantPanel.java:459) at org.obiba.onyx.webapp.participant.panel.ParticipantAttributeGroupsFragment.<init>(ParticipantAttributeGroupsFragment.java:48) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupsFragment.<init>(EditParticipantPanel.java:454) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.createEditParticipantPanel(EditParticipantPanel.java:286) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.<init>(EditParticipantPanel.java:128) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.<init>(EditParticipantPanel.java:144) at org.obiba.onyx.webapp.participant.panel.EditParticipantFormPanel.<init>(EditParticipantFormPanel.java:28) at org.obiba.onyx.webapp.participant.page.ParticipantReceptionPage.<init>(ParticipantReceptionPage.java:40) at org.obiba.onyx.webapp.participant.page.ParticipantSearchPage$ActionListFragment$3.onClick(ParticipantSearchPage.java:844) at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

    JIRA | 7 years ago | Tony DeBat
    java.lang.IllegalArgumentException: model object cannot be null
  2. 0

    Steps: 1. Click Participants -> Participant Registry 2. Enter 4 and click Lookup to display Jokull Ingimundson 3. Click Receive to save Jokull as a participant 4. Clicking Receive should also redirect you to the Reception page. Instead the error message "Participant registration failed" is displayed. 5. Click Close to dismiss the error message 6. Click the Participants tab to refresh the list of participants. Jokull will appear in the list indicated that Jokull was successfully saved as a participant but that the redirect the the Reception page failed. Note that the view and receive links are available beside Jokull. 7. Clicking the receive link generates the following exception: 2010-04-22 13:53:04,230 - ERROR - apache.wicket.RequestCycle - model object cannot be null java.lang.IllegalArgumentException: model object cannot be null at org.obiba.wicket.markup.html.table.DetachableEntityModel.<init>(DetachableEntityModel.java:28) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupFragment.addParticipantAttribute(EditParticipantPanel.java:498) at org.obiba.onyx.webapp.participant.panel.ParticipantAttributeGroupFragment.<init>(ParticipantAttributeGroupFragment.java:28) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupFragment.<init>(EditParticipantPanel.java:469) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupsFragment.addAttributeGroupFragment(EditParticipantPanel.java:459) at org.obiba.onyx.webapp.participant.panel.ParticipantAttributeGroupsFragment.<init>(ParticipantAttributeGroupsFragment.java:48) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupsFragment.<init>(EditParticipantPanel.java:454) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.createEditParticipantPanel(EditParticipantPanel.java:286) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.<init>(EditParticipantPanel.java:128) at org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.<init>(EditParticipantPanel.java:144) at org.obiba.onyx.webapp.participant.panel.EditParticipantFormPanel.<init>(EditParticipantFormPanel.java:28) at org.obiba.onyx.webapp.participant.page.ParticipantReceptionPage.<init>(ParticipantReceptionPage.java:40) at org.obiba.onyx.webapp.participant.page.ParticipantSearchPage$ActionListFragment$3.onClick(ParticipantSearchPage.java:844) at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

    JIRA | 7 years ago | Tony DeBat
    java.lang.IllegalArgumentException: model object cannot be null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      model object cannot be null

      at org.obiba.wicket.markup.html.table.DetachableEntityModel.<init>()
    2. org.obiba.wicket
      DetachableEntityModel.<init>
      1. org.obiba.wicket.markup.html.table.DetachableEntityModel.<init>(DetachableEntityModel.java:28)
      1 frame
    3. org.obiba.onyx
      ParticipantSearchPage$ActionListFragment$3.onClick
      1. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupFragment.addParticipantAttribute(EditParticipantPanel.java:498)
      2. org.obiba.onyx.webapp.participant.panel.ParticipantAttributeGroupFragment.<init>(ParticipantAttributeGroupFragment.java:28)
      3. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupFragment.<init>(EditParticipantPanel.java:469)
      4. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupsFragment.addAttributeGroupFragment(EditParticipantPanel.java:459)
      5. org.obiba.onyx.webapp.participant.panel.ParticipantAttributeGroupsFragment.<init>(ParticipantAttributeGroupsFragment.java:48)
      6. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel$EditParticipantPanelAttributeGroupsFragment.<init>(EditParticipantPanel.java:454)
      7. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.createEditParticipantPanel(EditParticipantPanel.java:286)
      8. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.<init>(EditParticipantPanel.java:128)
      9. org.obiba.onyx.webapp.participant.panel.EditParticipantPanel.<init>(EditParticipantPanel.java:144)
      10. org.obiba.onyx.webapp.participant.panel.EditParticipantFormPanel.<init>(EditParticipantFormPanel.java:28)
      11. org.obiba.onyx.webapp.participant.page.ParticipantReceptionPage.<init>(ParticipantReceptionPage.java:40)
      12. org.obiba.onyx.webapp.participant.page.ParticipantSearchPage$ActionListFragment$3.onClick(ParticipantSearchPage.java:844)
      12 frames
    4. Wicket Core
      AbstractDefaultAjaxBehavior.onRequest
      1. org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68)
      2. org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
      3. org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
      3 frames
    5. org.apache.wicket
      BehaviorRequestTarget.processEvents
      1. org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
      1 frame
    6. Wicket Request
      AbstractRequestCycleProcessor.processEvents
      1. org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      1 frame
    7. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
      2. org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
      3. org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
      4. org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      5. org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
      6 frames
    8. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    9. Hibernate
      OpenSessionInViewFilter.doFilterInternal
      1. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      1 frame
    10. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      1 frame
    11. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:326)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      16 frames
    12. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame