java.lang.NullPointerException: null

Spring JIRA | Torsten Krah | 3 years ago
  1. 0

    Using the interactive shell and displaying some message with {{shell.flash(...)}} does work. However, using {{--cmdfile script/dosomething}} and the commands executed does use the flash api, shell gets interrupted with: {code} java.lang.NullPointerException: null at org.springframework.shell.core.JLineShell.doAnsiFlash(JLineShell.java:489) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.core.JLineShell.flash(JLineShell.java:448) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at de.sf.shell.fcm.InitRelationTypesCommand.init(InitRelationTypesCommand.java:80) ~[fcm-dev-classes.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_55] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_55] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:196) ~[spring-core-4.0.4.RELEASE.jar:4.0.4.RELEASE] at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127) [spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.Bootstrap.run(Bootstrap.java:173) [spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at de.sf.shell.MyBootstrap.main(MyBootstrap.java:81) [util-dev-classes.jar:na] {code}

    Spring JIRA | 3 years ago | Torsten Krah
    java.lang.NullPointerException: null
  2. 0

    Using the interactive shell and displaying some message with {{shell.flash(...)}} does work. However, using {{--cmdfile script/dosomething}} and the commands executed does use the flash api, shell gets interrupted with: {code} java.lang.NullPointerException: null at org.springframework.shell.core.JLineShell.doAnsiFlash(JLineShell.java:489) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.core.JLineShell.flash(JLineShell.java:448) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at de.sf.shell.fcm.InitRelationTypesCommand.init(InitRelationTypesCommand.java:80) ~[fcm-dev-classes.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_55] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_55] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:196) ~[spring-core-4.0.4.RELEASE.jar:4.0.4.RELEASE] at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48) ~[spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127) [spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at org.springframework.shell.Bootstrap.run(Bootstrap.java:173) [spring-shell-1.1.0.RC2.jar:1.1.0.RC2] at de.sf.shell.MyBootstrap.main(MyBootstrap.java:81) [util-dev-classes.jar:na] {code}

    Spring JIRA | 3 years ago | Torsten Krah
    java.lang.NullPointerException: null
  3. 0
    Elasticsearch 1.x and 2.x nodes are not compatible, make sure your setup contains nodes of the same major version.
    via GitHub by dakrone
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    It is a JDK bug, no workaround currently.
    via GitHub by jroper
  6. 0
    Some of the parametes ar enull

    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.NullPointerException

      null

      at org.springframework.shell.core.JLineShell.doAnsiFlash()
    2. org.springframework.shell
      JLineShell.flash
      1. org.springframework.shell.core.JLineShell.doAnsiFlash(JLineShell.java:489)[spring-shell-1.1.0.RC2.jar:1.1.0.RC2]
      2. org.springframework.shell.core.JLineShell.flash(JLineShell.java:448)[spring-shell-1.1.0.RC2.jar:1.1.0.RC2]
      2 frames
    3. de.sf.shell
      InitRelationTypesCommand.init
      1. de.sf.shell.fcm.InitRelationTypesCommand.init(InitRelationTypesCommand.java:80)[fcm-dev-classes.jar:na]
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_55]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_55]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_55]
      4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_55]
      4 frames
    5. Spring Core
      ReflectionUtils.invokeMethod
      1. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:196)[spring-core-4.0.4.RELEASE.jar:4.0.4.RELEASE]
      1 frame
    6. org.springframework.shell
      Bootstrap.run
      1. org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)[spring-shell-1.1.0.RC2.jar:1.1.0.RC2]
      2. org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48)[spring-shell-1.1.0.RC2.jar:1.1.0.RC2]
      3. org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127)[spring-shell-1.1.0.RC2.jar:1.1.0.RC2]
      4. org.springframework.shell.Bootstrap.run(Bootstrap.java:173)[spring-shell-1.1.0.RC2.jar:1.1.0.RC2]
      4 frames
    7. de.sf.shell
      MyBootstrap.main
      1. de.sf.shell.MyBootstrap.main(MyBootstrap.java:81)[util-dev-classes.jar:na]
      1 frame