Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce Bug
    • Affects Version/s: 1.0.0.Beta2
    • Fix Version/s: None
    • Component/s: UI - Shell, Windows
    • Labels:
      None
    • Environment:
      Windows 7
    • Steps to Reproduce:
      Hide

      Hold Ctrl and press any arrow (Left, Right, Up, Down)

      Show
      Hold Ctrl and press any arrow (Left, Right, Up, Down)

      Description

      The following stacktrace is presented with "set VERBOSE true":

      java.lang.NullPointerException
              at jline.WindowsTerminal.readVirtualKey(WindowsTerminal.java:200)
              at jline.console.ConsoleReader.readVirtualKey(ConsoleReader.java:983)
              at jline.console.ConsoleReader.readBinding(ConsoleReader.java:1208)
              at jline.console.ConsoleReader.readLine(ConsoleReader.java:1300)
              at jline.console.ConsoleReader.readLine(ConsoleReader.java:1246)
              at jline.console.ConsoleReader.readLine(ConsoleReader.java:1232)
              at org.jboss.seam.forge.shell.ShellImpl.readLine(ShellImpl.java:601)
              at org.jboss.seam.forge.shell.ShellImpl.doShell(ShellImpl.java:486)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
              at org.jboss.seam.forge.shell.org$jboss$weld$bean-classpath-ManagedBean-class_org$jboss$seam$forge$shell$ShellImpl_$$_WeldClientProxy.doShell(org$jboss$weld$bean-classpath-ManagedBean-class_or
      g$jboss$seam$forge$shell$ShellImpl_$$_WeldClientProxy.java)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
              at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:270)
              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)
              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
              at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:632)
              at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:619)
              at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:613)
              at org.jboss.seam.forge.shell.Bootstrap$2.run(Bootstrap.java:92)
      

        Gliffy Diagrams

          Activity

          Hide
          gastaldi George Gastaldi added a comment -

          Holding ALT throws the same exception also.

          Show
          gastaldi George Gastaldi added a comment - Holding ALT throws the same exception also.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          I was not able to reproduce this. Still occurring?

          Show
          lincolnthree Lincoln Baxter III added a comment - I was not able to reproduce this. Still occurring?
          Hide
          gastaldi George Gastaldi added a comment -

          Yup, still occurring. Tested Beta2 on Windows.

          Show
          gastaldi George Gastaldi added a comment - Yup, still occurring. Tested Beta2 on Windows.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          I still cannot reproduce this. Could you please "set VERBOSE on" and post the full stack-trace?

          Also, as an attempt to clear this up, could you try deleting your ~/.forge directory?

          Thanks,
          Lincoln

          Show
          lincolnthree Lincoln Baxter III added a comment - I still cannot reproduce this. Could you please "set VERBOSE on" and post the full stack-trace? Also, as an attempt to clear this up, could you try deleting your ~/.forge directory? Thanks, Lincoln
          Hide
          gastaldi George Gastaldi added a comment -

          It´s occurring on Windows. Here is the full stacktrace:

          java.lang.NullPointerException
                  at jline.WindowsTerminal.readVirtualKey(WindowsTerminal.java:200)
                  at jline.console.ConsoleReader.readVirtualKey(ConsoleReader.java:983)
                  at jline.console.ConsoleReader.readBinding(ConsoleReader.java:1208)
                  at jline.console.ConsoleReader.readLine(ConsoleReader.java:1300)
                  at jline.console.ConsoleReader.readLine(ConsoleReader.java:1246)
                  at jline.console.ConsoleReader.readLine(ConsoleReader.java:1232)
                  at org.jboss.forge.shell.ShellImpl.readLine(ShellImpl.java:629)
                  at org.jboss.forge.shell.ShellImpl.readLine(ShellImpl.java:616)
                  at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:488)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
                  at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
                  at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
                  at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
                  at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
                  at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
                  at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
                  at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
                  at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
                  at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
                  at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
                  at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
                  at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
                  at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
                  at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
                  at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:83)
                  at java.lang.Thread.run(Thread.java:662)
          

          Show
          gastaldi George Gastaldi added a comment - It´s occurring on Windows. Here is the full stacktrace: java.lang.NullPointerException at jline.WindowsTerminal.readVirtualKey(WindowsTerminal.java: 200 ) at jline.console.ConsoleReader.readVirtualKey(ConsoleReader.java: 983 ) at jline.console.ConsoleReader.readBinding(ConsoleReader.java: 1208 ) at jline.console.ConsoleReader.readLine(ConsoleReader.java: 1300 ) at jline.console.ConsoleReader.readLine(ConsoleReader.java: 1246 ) at jline.console.ConsoleReader.readLine(ConsoleReader.java: 1232 ) at org.jboss.forge.shell.ShellImpl.readLine(ShellImpl.java: 629 ) at org.jboss.forge.shell.ShellImpl.readLine(ShellImpl.java: 616 ) at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java: 488 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 ) at java.lang.reflect.Method.invoke(Method.java: 597 ) at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java: 48 ) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java: 125 ) at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 ) at java.lang.reflect.Method.invoke(Method.java: 597 ) at org.jboss.weld.util.reflection.SecureReflections$ 13 .work(SecureReflections.java: 305 ) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java: 54 ) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java: 163 ) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java: 299 ) at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java: 188 ) at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java: 59 ) at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java: 198 ) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java: 282 ) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java: 265 ) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java: 234 ) at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java: 635 ) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java: 622 ) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java: 616 ) at org.jboss.forge.shell.Bootstrap$ 1 .run(Bootstrap.java: 83 ) at java.lang.Thread.run(Thread.java: 662 )
          Hide
          gastaldi George Gastaldi added a comment - - edited

          Confirmed it is a Jline bug from the version Forge is running.
          Tested with an example downloaded on http://jline.sourceforge.net and the error did not occur on latest available version (1.0).

          Show
          gastaldi George Gastaldi added a comment - - edited Confirmed it is a Jline bug from the version Forge is running. Tested with an example downloaded on http://jline.sourceforge.net and the error did not occur on latest available version (1.0).
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          Any chance you could figure out what the difference is? I am unable to reproduce this issue. We have also now forked JLine into Forge itself, so we can directly fix any issue.

          Show
          lincolnthree Lincoln Baxter III added a comment - Any chance you could figure out what the difference is? I am unable to reproduce this issue. We have also now forked JLine into Forge itself, so we can directly fix any issue.

            People

            • Assignee:
              lincolnthree Lincoln Baxter III
              Reporter:
              gastaldi George Gastaldi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development