java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I am getting exceptions when a Roo script ends. Everything generated by Roo seems to work OK, but it is disconcerting. I have seen two exceptions - one involving Zip, one involving a Timer: ** EXCEPTION 1 ** ... snip> ... quit // Spring Roo 1.1.0.M2 [rev 2034662] log closed at 2010-06-21 15:48:36 Milliseconds required: 74451 Total execution time 82226 ms ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed) java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403) at java.util.zip.ZipFile.getEntry(ZipFile.java:148) at java.util.jar.JarFile.getEntry(JarFile.java:208) at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61) at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1781) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.springframework.roo.process.manager.internal.DefaultProcessManager.logException(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:117) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:225) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Roo exited with code 0 ** EXCEPTION 2 ** quit // Spring Roo 1.1.0.M2 [rev 2034662] log closed at 2010-06-21 15:48:36 Milliseconds required: 79280 [Timer-1] java.lang.NullPointerException at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:192) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:114) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:225) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)
    via by Paul Chapman,
  • I am getting exceptions when a Roo script ends. Everything generated by Roo seems to work OK, but it is disconcerting. I have seen two exceptions - one involving Zip, one involving a Timer: ** EXCEPTION 1 ** ... snip> ... quit // Spring Roo 1.1.0.M2 [rev 2034662] log closed at 2010-06-21 15:48:36 Milliseconds required: 74451 Total execution time 82226 ms ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed) java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403) at java.util.zip.ZipFile.getEntry(ZipFile.java:148) at java.util.jar.JarFile.getEntry(JarFile.java:208) at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61) at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1781) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.springframework.roo.process.manager.internal.DefaultProcessManager.logException(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:117) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:225) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Roo exited with code 0 ** EXCEPTION 2 ** quit // Spring Roo 1.1.0.M2 [rev 2034662] log closed at 2010-06-21 15:48:36 Milliseconds required: 79280 [Timer-1] java.lang.NullPointerException at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:192) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:114) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:225) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)
    via by Paul Chapman,
  • I have been working with Roo on Windows for some time. When I switched to Mac, the command line takes forever and at the end does nothing. Shris-MacBook-Pro:~ shrikant$ roo.sh ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.1.RELEASE [rev 6eae723] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> roo> roo> roo> hint Version is required roo> Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: Java heap space at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method) at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767) at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42) at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700) at java.lang.Thread.run(Thread.java:680) java.lang.NullPointerException at org.springframework.roo.process.manager.internal.DefaultProcessManager.logException(DefaultProcessManager.java:264) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:121) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:335) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:83) at java.lang.Thread.run(Thread.java:680) roo> So when I pushed "hint" command it takes forever to show "Version is required" which I suppose is Maven issue but not sure why. After sometime it gives OutofMemoryError.
    via by Shrikant Vashishtha,
  • I have been working with Roo on Windows for some time. When I switched to Mac, the command line takes forever and at the end does nothing. Shris-MacBook-Pro:~ shrikant$ roo.sh ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.1.RELEASE [rev 6eae723] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> roo> roo> roo> hint Version is required roo> Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: Java heap space at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method) at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767) at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42) at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700) at java.lang.Thread.run(Thread.java:680) java.lang.NullPointerException at org.springframework.roo.process.manager.internal.DefaultProcessManager.logException(DefaultProcessManager.java:264) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:121) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:335) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:83) at java.lang.Thread.run(Thread.java:680) roo> So when I pushed "hint" command it takes forever to show "Version is required" which I suppose is Maven issue but not sure why. After sometime it gives OutofMemoryError.
    via by Shrikant Vashishtha,
    • java.lang.NullPointerException at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:192) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:114) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:225) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:75) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)
    No Bugmate found.