eclipse application getting an Assertion failed exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravit
    New Member
    • Sep 2007
    • 11

    eclipse application getting an Assertion failed exception

    Hello All,

    I am trying to execute an application that is developed using eclipse libraries.
    Jface, SWT , etc.

    While I execute the application , i have received an exception which I am unable to trace it.

    TextViewer.setS election(100,tr ue);
    is the statement whre it araised.
    TextViewer is org.eclipse.jfa ce.text.SourceV iewer object.

    The error reported is :


    Code:
     
    org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:
    at org.eclipse.jface.text.Assert.isTrue(Assert.java:189)
    at org.eclipse.jface.text.Assert.isTrue(Assert.java:174)
    at org.eclipse.jface.text.source.LineNumberRulerColumn.getBaselineBias(LineNumberRulerColumn.java:815)
    at org.eclipse.jface.text.source.LineNumberRulerColumn.doPaint(LineNumberRulerColumn.java:693)
    at org.eclipse.jface.text.source.LineNumberRulerColumn.doubleBufferPaint(LineNumberRulerColumn.java:624)
    at org.eclipse.jface.text.source.LineNumberRulerColumn.redraw(LineNumberRulerColumn.java:866)
    at org.eclipse.jface.text.source.LineNumberRulerColumn$InternalListener.viewportChanged(LineNumberRulerColumn.java:72)
    at org.eclipse.jface.text.TextViewer.updateViewportListeners(TextViewer.java:2666)
    at org.eclipse.jface.text.TextViewer.internalRevealRange(TextViewer.java:2869)
    at org.eclipse.jface.text.TextViewer.revealRange(TextViewer.java:2821)
    at org.eclipse.jface.text.TextViewer.setSelection(TextViewer.java:2141)
    at cdacb.ssdg.diviag.process.ProcessWindow$TextTabItem$MySourceViewer.scrollToLine(ProcessWindow.java:1853)
    at cdacb.ssdg.diviag.process.ProcessWindow$TextTabItem.updateCurrentLine(ProcessWindow.java:1480)
    at cdacb.ssdg.diviag.process.ProcessWindow.updateCurrentLine(ProcessWindow.java:1141)
    at cdacb.ssdg.diviag.cp.ControlPanel.openWindows(ControlPanel.java:1178)
    at cdacb.ssdg.diviag.cp.ControlPanel.createProcGroups(ControlPanel.java:1023)
    at cdacb.ssdg.diviag.cp.ControlPanel$1.widgetSelected(ControlPanel.java:785)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at cdacb.ssdg.diviag.Main.main(Main.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Greetings, ravit!

    Looks like are having IDE problems... are you using an IDE other than Eclipe to run your app...

    You can download a free version of Eclipse to try the code.

    You can also post the whole code for easy access, in case someone see something else that could be problematic.

    In a bit!
    Last edited by Dököll; Dec 8 '08, 05:14 AM. Reason: than for thwn ...

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      Great! An unknown error and no code to work with! I'm absolutely sure, your error is in line #104, the 4th character...

      OK, seriously now. We can't help you, if we don't know your code. Generally, I'd try commenting out some sections of the code and check if the error still occurs - that way you can limit the area the error may be. But if you want any further help, we'll need to see some code.

      Greetings,
      Nepomuk

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by Dököll
        Looks like are having IDE problems...
        It is not an IDE problem; it has to do with SWT and by coincidence Eclipse also is bundled with those libraries (which it uses itself) and is made available to the user as well, Stop pointing to those IDEs all the time; they're innocent.

        kind regards,

        Jos

        Comment

        Working...