NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null #49

Open
opened 2024-12-02 15:31:30 +01:00 by ansv7779 · 0 comments
Owner
2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Current user: User(id=32975, identifier=177579, firstName=xxx, lastName=xxx, emailAddress=xxx, deceased=false, degreeType=MASTER)
2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Request url: GET projectideas/allsupervisor?2&apid=76
2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Request parameter: 2=[]
2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Request parameter: apid=[76]
2024-11-11 19:18:27 [ERROR] DefaultExceptionMapper: Unexpected error occurred
org.apache.wicket.WicketRuntimeException: An error occurred while getting the model object for Component: [ListView [Component id = languages, page = se.su.dsv.scipro.match.ProjectNewAllSupervisorIdeasPage, path = ideaPanel:dialog:body:form:details:languages, type = org.apache.wicket.markup.html.list.ListView, isVisible = true, isVersioned = true], children =  [ListItem [Component id = 0]][ListItem [Component id = 1]]]
        at org.apache.wicket.Component.getDefaultModelObject(Component.java:1599)
        at org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:218)
        at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:472)
        at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747)
        at org.apache.wicket.Component.onBeforeRender(Component.java:3832)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747)
        at org.apache.wicket.Component.onBeforeRender(Component.java:3832)
        at org.apache.wicket.markup.html.form.Form.onBeforeRender(Form.java:1902)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747)
        at org.apache.wicket.Component.onBeforeRender(Component.java:3832)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747)
        at org.apache.wicket.Component.onBeforeRender(Component.java:3832)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747)
        at org.apache.wicket.Component.onBeforeRender(Component.java:3832)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747)
        at org.apache.wicket.Component.onBeforeRender(Component.java:3832)
        at org.apache.wicket.Page.onBeforeRender(Page.java:788)
        at org.apache.wicket.Component.beforeRender(Component.java:949)
        at org.apache.wicket.Page.renderPage(Page.java:990)
        at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124)
        at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195)
        at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)
        at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:910)
        at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:63)
        at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:294)
        at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:255)
        at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:277)
        at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:208)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:307)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94) [guice-persist-7.0.0.jar:?]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:166)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:676)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
        at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:440)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:894)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null
        at java.util.ArrayList.<init>(ArrayList.java:181)
        at se.su.dsv.scipro.components.ListAdapterModel.getObject(ListAdapterModel.java:18)
        at se.su.dsv.scipro.components.ListAdapterModel.getObject(ListAdapterModel.java:9)
        at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592)
        ... 59 more
``` 2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Current user: User(id=32975, identifier=177579, firstName=xxx, lastName=xxx, emailAddress=xxx, deceased=false, degreeType=MASTER) 2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Request url: GET projectideas/allsupervisor?2&apid=76 2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Request parameter: 2=[] 2024-11-11 19:18:27 [INFO] AdditionalExceptionLogger: Request parameter: apid=[76] 2024-11-11 19:18:27 [ERROR] DefaultExceptionMapper: Unexpected error occurred org.apache.wicket.WicketRuntimeException: An error occurred while getting the model object for Component: [ListView [Component id = languages, page = se.su.dsv.scipro.match.ProjectNewAllSupervisorIdeasPage, path = ideaPanel:dialog:body:form:details:languages, type = org.apache.wicket.markup.html.list.ListView, isVisible = true, isVersioned = true], children = [ListItem [Component id = 0]][ListItem [Component id = 1]]] at org.apache.wicket.Component.getDefaultModelObject(Component.java:1599) at org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:218) at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:472) at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747) at org.apache.wicket.Component.onBeforeRender(Component.java:3832) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747) at org.apache.wicket.Component.onBeforeRender(Component.java:3832) at org.apache.wicket.markup.html.form.Form.onBeforeRender(Form.java:1902) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747) at org.apache.wicket.Component.onBeforeRender(Component.java:3832) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747) at org.apache.wicket.Component.onBeforeRender(Component.java:3832) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747) at org.apache.wicket.Component.onBeforeRender(Component.java:3832) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1747) at org.apache.wicket.Component.onBeforeRender(Component.java:3832) at org.apache.wicket.Page.onBeforeRender(Page.java:788) at org.apache.wicket.Component.beforeRender(Component.java:949) at org.apache.wicket.Page.renderPage(Page.java:990) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:910) at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:63) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:294) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:255) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:277) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:208) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:307) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94) [guice-persist-7.0.0.jar:?] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:166) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:676) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:440) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:894) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:840) Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null at java.util.ArrayList.<init>(ArrayList.java:181) at se.su.dsv.scipro.components.ListAdapterModel.getObject(ListAdapterModel.java:18) at se.su.dsv.scipro.components.ListAdapterModel.getObject(ListAdapterModel.java:9) at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592) ... 59 more ```
ansv7779 added the
new
label 2024-12-02 15:31:30 +01:00
ansv7779 added the
bug
label 2024-12-02 15:39:52 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: DMC/scipro#49
No description provided.