473,890 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

eclipse application getting an Assertion failed exception

11 New Member
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 :


Expand|Select|Wrap|Line Numbers
  1.  
  2. org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:
  3. at org.eclipse.jface.text.Assert.isTrue(Assert.java:189)
  4. at org.eclipse.jface.text.Assert.isTrue(Assert.java:174)
  5. at org.eclipse.jface.text.source.LineNumberRulerColumn.getBaselineBias(LineNumberRulerColumn.java:815)
  6. at org.eclipse.jface.text.source.LineNumberRulerColumn.doPaint(LineNumberRulerColumn.java:693)
  7. at org.eclipse.jface.text.source.LineNumberRulerColumn.doubleBufferPaint(LineNumberRulerColumn.java:624)
  8. at org.eclipse.jface.text.source.LineNumberRulerColumn.redraw(LineNumberRulerColumn.java:866)
  9. at org.eclipse.jface.text.source.LineNumberRulerColumn$InternalListener.viewportChanged(LineNumberRulerColumn.java:72)
  10. at org.eclipse.jface.text.TextViewer.updateViewportListeners(TextViewer.java:2666)
  11. at org.eclipse.jface.text.TextViewer.internalRevealRange(TextViewer.java:2869)
  12. at org.eclipse.jface.text.TextViewer.revealRange(TextViewer.java:2821)
  13. at org.eclipse.jface.text.TextViewer.setSelection(TextViewer.java:2141)
  14. at cdacb.ssdg.diviag.process.ProcessWindow$TextTabItem$MySourceViewer.scrollToLine(ProcessWindow.java:1853)
  15. at cdacb.ssdg.diviag.process.ProcessWindow$TextTabItem.updateCurrentLine(ProcessWindow.java:1480)
  16. at cdacb.ssdg.diviag.process.ProcessWindow.updateCurrentLine(ProcessWindow.java:1141)
  17. at cdacb.ssdg.diviag.cp.ControlPanel.openWindows(ControlPanel.java:1178)
  18. at cdacb.ssdg.diviag.cp.ControlPanel.createProcGroups(ControlPanel.java:1023)
  19. at cdacb.ssdg.diviag.cp.ControlPanel$1.widgetSelected(ControlPanel.java:785)
  20. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
  21. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
  22. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
  23. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
  24. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
  25. at cdacb.ssdg.diviag.Main.main(Main.java:56)
  26. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  27. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  28. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  29. at java.lang.reflect.Method.invoke(Unknown Source)
  30. at com.sun.javaws.Launcher.executeApplication(Unknown Source)
  31. at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
  32. at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
  33. at com.sun.javaws.Launcher.run(Unknown Source)
  34. at java.lang.Thread.run(Unknown Source)
  35.  
Feb 13 '08 #1
3 6778
Dököll
2,364 Recognized Expert Top Contributor
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!
Dec 8 '08 #2
Nepomuk
3,112 Recognized Expert Specialist
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
Dec 8 '08 #3
JosAH
11,448 Recognized Expert MVP
@Dököll
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
Dec 9 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2032
by: Chemix | last post by:
Hello people, I've developed a windows forms application with VC++.NET. The problem I have is the next: I run my application and all seems go OK, but passed a certain time (it can be hours or some minutes), then a dialog window opens with the title:Microsoft Visual C++ Debug Library, and the next error: Debug Assertion Failed! Program: name of my program File: dbgheap.c Line: 1132 Expression: _CrtIsValidHeadPointer(pUserData)
1
2765
by: Kapt. Boogschutter | last post by:
Does anyone know Why I'm getting this Error??? Debug Assertion Failed! File: daocore.cpp Line: 42 My code: CDaoDatabase dao; dao.Create("filename");
2
17635
by: Arti Potnis | last post by:
Hi, I have an application with a function "myfunction" that opens a file and writes to it using fprintf. This application runs on a unix (sun solaris 5.8) system. I connect to this application from a VB GUi on a windows 2000 system. The GUI invokes "myfunction". I get the following error:-
4
4310
by: A_StClaire_ | last post by:
I read a section of my text on smart "counting" pointers and found it confusing so I decided to get hands-on. however I'm getting "Debug Assertion Failed... Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" whenever I run my code below. program works fine after I bypass the msg. any ideas? thx a lot.
0
2966
by: lawrence | last post by:
Hi, I made a MFC ActiveX with a CwinThread Class in VC ++. Then i used it on Visual basic. When i try to make an exe i got this error : Debug Assertion Failed! Program: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VB98\VB6.EXE File: cmdtarg.cpp Line: 52
6
3090
by: Bhachi | last post by:
Briefly I will explain the build scenario. An utility "idlGen" is created by compiling a set of C++ files. This utility(exe) is used to generate some idl files from some application(A1) code. These idl files are used by application(A2) which inturn generate C++ headers and libraries required for two applications to communicate. >From these idl files in A2 a code generator generates Java files also for the same purpose. Now while building...
4
9432
by: Mullai | last post by:
Hi , My program gives an error message like this Debug Assertion Failed! program:................ File: wincore.cpp Line: 958 Please can anyone help me out in this issue. I have to solve this bug immediately in my project.
2
5838
by: longP | last post by:
Hi I have an application which creates a queue, a thread is putting data in the queue using malloc and another thread is getting data from the queue and delete the memory allocated in the first thread. When free() is called to delete the allocated memory, it crashes with: Debug assertion failed dbgheap.c line 1044 expression _CrtIsValidHeapPointer(pUserData)
1
5562
by: veerender | last post by:
Hello, When i tried to load an application from a CD following the Setup link, i get the below error: Debug Assertion Failed ! Program C:\Program~1\Common~1\instal~1\Driver\10\Intel3~1\Driver.Exe File: isctype.c Line: 68 Expression: (Unsigned)c+1)<=256 Can someone be kind to advice how i can successfully install this application on my PC which has Core 2 Duo E6600 Processor, 2 GB DDR memory & Xp Service Pack 2.
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10918
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4674
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4270
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3275
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.