Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5751

NullPointerException in IntHashMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.0-M3
    • 7.0.0-M5
    • None
    • None
    • Windows 7 Profession 64-bit
      Embedded Jetty 9.2.3.v20140905

    Description

      I was looking through a tester's log file to track down a separate issue. I came across a NullPointerException with IntHashMap, apparently when the server was shutting down.

      See also WICKET-5584, which also deals with a NullPointerException with IntHashMap, and also seems to relate to a null modCount (judging by the line number).

      INFO  (ExampleServer) [2014-11-06 00:49:24,979] - com.example.server.ExampleServer.stopServer(ExampleServer.java:268): Stopping server.
      INFO  (ServerConnector) [2014-11-06 00:49:24,982] - org.eclipse.jetty.server.AbstractConnector.doStop(AbstractConnector.java:306): Stopped ServerConnector@3b7d3a38{HTTP/1.1}{0.0.0.0:8099}
      INFO  (Application) [2014-11-06 00:49:24,983] - org.apache.wicket.Application.destroyInitializers(Application.java:588): [org.apache.wicket.protocol.http.WicketFilter-55b0dcab] destroy: Wicket core library initializer
      INFO  (Application) [2014-11-06 00:49:24,983] - org.apache.wicket.Application.destroyInitializers(Application.java:588): [org.apache.wicket.protocol.http.WicketFilter-55b0dcab] destroy: Wicket extensions initializer
      ERROR (DiskDataStore) [2014-11-06 00:49:24,988] - org.apache.wicket.pageStore.DiskDataStore.saveIndex(DiskDataStore.java:282): Couldn't write DiskDataStore index to file C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\org.apache.wicket.protocol.http.WicketFilter-55b0dcab-filestore\DiskDataStoreIndex.
      java.lang.NullPointerException
      	at org.apache.wicket.util.collections.IntHashMap$HashIterator.<init>(IntHashMap.java:777)
      	at org.apache.wicket.util.collections.IntHashMap$EntryIterator.<init>(IntHashMap.java:871)
      	at org.apache.wicket.util.collections.IntHashMap$EntryIterator.<init>(IntHashMap.java:871)
      	at org.apache.wicket.util.collections.IntHashMap.newEntryIterator(IntHashMap.java:896)
      	at org.apache.wicket.util.collections.IntHashMap$EntrySet.iterator(IntHashMap.java:1055)
      	at org.apache.wicket.util.collections.IntHashMap.writeObject(IntHashMap.java:1128)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
      	at java.util.HashMap.internalWriteEntries(HashMap.java:1777)
      	at java.util.HashMap.writeObject(HashMap.java:1354)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
      	at org.apache.wicket.pageStore.DiskDataStore.saveIndex(DiskDataStore.java:274)
      	at org.apache.wicket.pageStore.DiskDataStore.destroy(DiskDataStore.java:106)
      	at org.apache.wicket.pageStore.AsynchronousDataStore.destroy(AsynchronousDataStore.java:118)
      	at org.apache.wicket.pageStore.AbstractPageStore.destroy(AbstractPageStore.java:53)
      	at org.apache.wicket.pageStore.AbstractCachingPageStore.destroy(AbstractCachingPageStore.java:102)
      	at org.apache.wicket.page.PageStoreManager.destroy(PageStoreManager.java:437)
      	at org.apache.wicket.Application.internalDestroy(Application.java:659)
      	at org.apache.wicket.protocol.http.WebApplication.internalDestroy(WebApplication.java:607)
      	at org.apache.wicket.protocol.http.WicketFilter.destroy(WicketFilter.java:605)
      	at org.eclipse.jetty.servlet.FilterHolder.destroyInstance(FilterHolder.java:173)
      	at org.eclipse.jetty.servlet.FilterHolder.doStop(FilterHolder.java:151)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
      	at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:230)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
      	at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:411)
      	at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:457)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
      	at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:127)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
      	at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:833)
      	at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:215)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
      	at org.eclipse.jetty.server.Server.doStop(Server.java:456)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      	at com.example.server.ExampleServer.stopServer(ExampleServer.java:269)
      	at com.example.server.ExampleServer.stop(ExampleServer.java:279)
      INFO  (ContextHandler) [2014-11-06 00:49:24,990] - org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:863): Stopped o.e.j.s.ServletContextHandler@63f259c3{/,null,UNAVAILABLE}
      

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            garretwilson Garret Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: