#124 JDiff Not Working, Causes Beanshell Error

closed-fixed
Andre Kaplan
None
9
2004-11-08
2003-06-18
Forrest Evans
No

When trying to JDiff 2 files I get the following beanshell
error:

java.lang.NullPointerException

at java.awt.Container.remove
(Container.java:759)

at jdiff.DualDiff.addOverviews(Unknown Source)

at jdiff.DualDiff.<init>(Unknown Source)

at jdiff.DualDiff.<init>(Unknown Source)

at jdiff.DualDiff.addTo(Unknown Source)

at jdiff.DualDiff.toggleFor(Unknown Source)

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:324)

at bsh.Reflect.invokeOnMethod
(Reflect.java:116)

at bsh.Reflect.invokeStaticMethod
(Reflect.java:108)

at bsh.Name.invokeMethod(Name.java:703)

at bsh.BSHMethodInvocation.eval
(BSHMethodInvocation.java:55)

at bsh.BSHPrimaryExpression.eval
(BSHPrimaryExpression.java:69)

at bsh.BSHBlock.eval(BSHBlock.java:79)

at bsh.BshMethod.invoke(BshMethod.java:193)

at bsh.BshMethod.invoke(BshMethod.java:101)

at org.gjt.sp.jedit.BeanShell.runCachedBlock
(BeanShell.java:463)

at org.gjt.sp.jedit.BeanShellAction.invoke
(BeanShellAction.java:76)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction
(InputHandler.java:243)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction
(InputHandler.java:209)

at
org.gjt.sp.jedit.gui.DefaultInputHandler.keyPressed
(DefaultInputHandler.java:271)

at org.gjt.sp.jedit.View.processKeyEvent
(View.java:513)

at
org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent
(JEditTextArea.java:4761)

at java.awt.Component.processEvent
(Component.java:4943)

at java.awt.Container.processEvent
(Container.java:1566)

at java.awt.Component.dispatchEventImpl
(Component.java:3639)

at java.awt.Container.dispatchEventImpl
(Container.java:1623)

at java.awt.Component.dispatchEvent
(Component.java:3480)

at
java.awt.KeyboardFocusManager.redispatchEvent
(KeyboardFocusManager.java:1708)

at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEven
t(DefaultKeyboardFocusManager.java:593)

at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyE
vent(DefaultKeyboardFocusManager.java:765)

at
java.awt.DefaultKeyboardFocusManager.typeAheadAsser
tions(DefaultKeyboardFocusManager.java:698)

at
java.awt.DefaultKeyboardFocusManager.dispatchEvent
(DefaultKeyboardFocusManager.java:559)

at java.awt.Component.dispatchEventImpl
(Component.java:3509)

at java.awt.Container.dispatchEventImpl
(Container.java:1623)

at java.awt.Window.dispatchEventImpl
(Window.java:1590)

at java.awt.Component.dispatchEvent
(Component.java:3480)

at java.awt.EventQueue.dispatchEvent
(EventQueue.java:450)

at
java.awt.EventDispatchThread.pumpOneEventForHierarch
y(EventDispatchThread.java:197)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:150)

at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:136)

at java.awt.EventDispatchThread.run
(EventDispatchThread.java:99)

Discussion

  • Forrest Evans
    Forrest Evans
    2003-06-18

    Logged In: YES
    user_id=803923

    I'm running:
    Jedit 4.2pre2

    Java(TM) Plug-in: Version 1.4.1_03
    Using JRE version 1.4.1_03 Java HotSpot(TM) Client VM

    JDiff Version 1.3.2

     
  • Forrest Evans
    Forrest Evans
    2003-06-20

    • priority: 5 --> 9
    • assigned_to: nobody --> akaplan
     
  • John Wells
    John Wells
    2003-07-11

    Logged In: YES
    user_id=127083

    I'm getting this as well, in jEdit 4.2pre3 with jDiff 1.3.2.

    Any updates on this at all?

    Thanks!
    jbwiv

     
  • Nitsan Vardi
    Nitsan Vardi
    2003-08-15

    Logged In: YES
    user_id=124031

    Getting a similar problem with:
    jEdit 4.2pre4
    os.name=Windows 2000
    java.runtime.version=1.4.0_01-b03

     
  • Dave Hawthorne
    Dave Hawthorne
    2003-08-18

    Logged In: YES
    user_id=492121

    Me too!
    Log: java.vm.version=1.4.2-b28
    Log: java.runtime.version=1.4.2-b28
    Log: os.name=Windows XP
    jEdit: jEdit version 4.2pre4
    (same with java 1.4.0)

    Had no trouble with 4.0 but from around jEdit4.1 jDiff would
    crash when invoked from within jEdit (however it would work
    when started with jedidiff.exe)

    Neither method works with any 4.2preX

     
  • mario fischer
    mario fischer
    2003-09-08

    Logged In: YES
    user_id=823004

    same here.

    [message] Log: java.version=1.4.2-beta
    [message] Log: java.vm.version=1.4.2-beta-b19
    [message] Log: java.runtime.version=1.4.2-beta-b19
    [message] Log: java.vendor=Sun Microsystems Inc.
    [message] Log: java.compiler=null
    [message] Log: os.name=Windows XP
    [message] Log: os.version=5.1
    [message] Log: os.arch=x86

    any news on this topic?
    [notice] jEdit: jEdit version 4.2pre4

     
  • Lapo Luchini
    Lapo Luchini
    2003-10-08

    Logged In: YES
    user_id=6914

    Using latest 4.2pre5 jEdit I've got different error lines:

    java.lang.NullPointerException
    at java.awt.Container.remove(Container.java:762)
    at jdiff.DualDiff.addOverviews(Unknown Source)
    at jdiff.DualDiff.<init>(Unknown Source)
    at jdiff.DualDiff.<init>(Unknown Source)
    at jdiff.DualDiff.addTo(Unknown Source)
    at jdiff.DualDiff.toggleFor(Unknown Source)
    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:324)
    at bsh.Reflect.invokeOnMethod(Unknown Source)
    at bsh.Reflect.invokeStaticMethod(Unknown Source)
    at bsh.Name.invokeMethod(Unknown Source)
    at bsh.BSHMethodInvocation.eval(Unknown Source)
    at bsh.BSHPrimaryExpression.eval(Unknown Source)
    at bsh.BSHPrimaryExpression.eval(Unknown Source)
    at bsh.BSHBlock.evalBlock(Unknown Source)
    at bsh.BSHBlock.eval(Unknown Source)
    at bsh.BshMethod.invokeImpl(Unknown Source)
    at bsh.BshMethod.invoke(Unknown Source)
    at bsh.BshMethod.invoke(Unknown Source)
    at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
    at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
    at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown
    Source)
    at org.gjt.sp.jedit.jEdit$3.invokeAction(Unknown Source)
    at
    org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown
    Source)
    at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at
    java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

     
  • Logged In: YES
    user_id=492370

    Hi,

    Still the same trouble with 4.2pre6 Error in Beanshell and
    no diff (of-course ;-))

    When you use the diff dialog, JEdit opens the 2 files but
    with no diff visible. Another trouble, even if the left pan
    shows the name of the second file, The text in it is from
    the first file. I needs to switch to the first file and then
    back to the second to see the right content.

    Stephane

     
  • Logged In: NO

    Still the same problem with jedit4.2pre7 and jdiff 1.3.2

    Here is the configuration of my PC / OS / JVM :

    [message] Log: java.version=1.4.0
    [message] Log: java.vm.version=1.4.0-b92
    [message] Log: java.runtime.version=1.4.0-b92
    [message] Log: java.vendor=Sun Microsystems Inc.
    [message] Log: java.compiler=null
    [message] Log: os.name=Windows NT
    [message] Log: os.version=4.0
    [message] Log: os.arch=x86

    and the stacktrace

    java.lang.NullPointerException
    at java.awt.Container.remove(Container.java:577)
    at jdiff.DualDiff.addOverviews(Unknown Source)
    at jdiff.DualDiff.<init>(Unknown Source)
    at jdiff.DualDiff.<init>(Unknown Source)
    at jdiff.DualDiff.addTo(Unknown Source)
    at jdiff.DualDiff.toggleFor(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     
  • Logged In: NO

    Same problem. System is
    Mac OS X 10.3.2 on 733 MHz G4,
    JEdit 4.2pre9

    My error lines are the same as Sender: lapo.

    matuszek@central.cis.upenn.edu

     
  • Mark Wickens
    Mark Wickens
    2004-03-18

    Logged In: YES
    user_id=248701

    Beta JDiffPlugin has been committed to the repository and
    should be available within one of the next plugin updates.

     
  • Mark Wickens
    Mark Wickens
    2004-03-18

    • status: open --> open-fixed
     
    • status: open-fixed --> closed-fixed
     
  • Logged In: YES
    user_id=265596

    Fixed in JDiffPlugin 1.4.2.