Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Division by zero exception when running Swing program with..

 
   Linux (Home) -> Java RSS
Next:  Automatic build/pdebuild with sun-java-jdk  
Author Message
Benjamin Mesing

External


Since: Jan 10, 2005
Posts: 76



(Msg. 1) Posted: Fri May 16, 2008 12:20 pm
Post subject: Division by zero exception when running Swing program with /usr/bin/gij-4.3
Archived from groups: linux>debian>maint>java (more info?)

Hello,

I have an application which throws loads of / by zero exceptions (see
below) when run with gij, and the ui looks almost empty. When run with
Sun java it works fine.

I've compiled it with both, sun java and ecj both leading to the same
result.

Help would be appreciated.

Best regards

Ben


> umlet
Exception during event dispatch:
java.lang.ArithmeticException: / by zero
at javax.swing.text.PlainView.paint(libgcj.so.90)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(libgcj.so.90)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(libgcj.so.90)
at javax.swing.plaf.basic.BasicTextUI.paint(libgcj.so.90)
at javax.swing.JComponent.paintComponent(libgcj.so.90)
at javax.swing.JComponent.paint(libgcj.so.90)
at javax.swing.JViewport.paintSimple(libgcj.so.90)
at javax.swing.JViewport.paintBackingStore(libgcj.so.90)
at javax.swing.JViewport.paint(libgcj.so.90)
at javax.swing.JComponent.paintChildren(libgcj.so.90)
at javax.swing.JComponent.paint(libgcj.so.90)
at javax.swing.JComponent.paintChildren(libgcj.so.90)
at javax.swing.JSplitPane.paintChildren(libgcj.so.90)
at javax.swing.JComponent.paint(libgcj.so.90)
at javax.swing.JComponent.paintChildren(libgcj.so.90)
at javax.swing.JSplitPane.paintChildren(libgcj.so.90)
at javax.swing.JComponent.paint(libgcj.so.90)
at javax.swing.JComponent.paintChildren(libgcj.so.90)
at javax.swing.JSplitPane.paintChildren(libgcj.so.90)
at javax.swing.JComponent.paint(libgcj.so.90)
at javax.swing.JComponent.paintChildren(libgcj.so.90)
at javax.swing.JSplitPane.paintChildren(libgcj.so.90)
at javax.swing.JComponent.paint(libgcj.so.90)
at javax.swing.JComponent.paintDoubleBuffered(libgcj.so.90)
at javax.swing.JComponent.paintImmediately2(libgcj.so.90)
at javax.swing.JComponent.paintImmediately(libgcj.so.90)
at javax.swing.JComponent.paintImmediately(libgcj.so.90)
at javax.swing.RepaintManager.paintDirtyRegions(libgcj.so.90)
at javax.swing.RepaintManager$RepaintWorker.run(libgcj.so.90)
at java.awt.event.InvocationEvent.dispatch(libgcj.so.90)
at javax.swing.RepaintManager$RepaintWorkerEvent.dispatch(libgcj.so.90)
at java.awt.EventQueue.dispatchEvent(libgcj.so.90)
at java.awt.EventDispatchThread.run(libgcj.so.90)



--
To UNSUBSCRIBE, email to debian-java-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Michael Koch

External


Since: Nov 23, 2004
Posts: 986



(Msg. 2) Posted: Wed May 21, 2008 10:10 pm
Post subject: Re: Division by zero exception when running Swing program with /usr/bin/gij-4.3 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, May 16, 2008 at 11:55:53AM +0200, Benjamin Mesing wrote:
> Hello,
>
> I have an application which throws loads of / by zero exceptions (see
> below) when run with gij, and the ui looks almost empty. When run with
> Sun java it works fine.
>
> I've compiled it with both, sun java and ecj both leading to the same
> result.

It should not matter with which compiler you build your application as
the bug is in the Swing implementation in GCJ.

Can you debug this with gdb and track down which value is zero? Or at
least provide a simple testcase that reproduces this?


Cheers,
Michael


--
To UNSUBSCRIBE, email to debian-java-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Michael Koch

External


Since: Nov 23, 2004
Posts: 986



(Msg. 3) Posted: Fri Jun 06, 2008 9:50 am
Post subject: Re: Division by zero exception when running Swing program with /usr/bin/gij-4.3 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, May 24, 2008 at 08:40:04PM +0200, Benjamin Mesing wrote:
> Hello
>
> > It should not matter with which compiler you build your application as
> > the bug is in the Swing implementation in GCJ.
> >
> > Can you debug this with gdb and track down which value is zero? Or at
> > least provide a simple testcase that reproduces this?
>
> I am not quite sure, how I could debug this using gdb. I have it running
> in Eclipse, but my breakpoint on ArithmeticException never fires
> (probably because the exception is thrown within libgcj).
>
> I have also tried to strip the program down to isolate the problem. The
> stripped down version *sometimes* leads to the described problem (though
> on my machine the original application did always lead to the problem).
> For the stripped down version, it seems that some factors increase the
> likelyhood of the problem surfacing:
> * High processor load
> * Multiple instances of the program running
> My machine is a dual core.
>
> I have attached the stripped down version. I could also provide you with
> the full package source.

I tried the application with current gij-4.3 and jamvm. Both worked fine
for me. Can you please try to reproduce?


Cheers,
Michael


--
To UNSUBSCRIBE, email to debian-java-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Benjamin Mesing

External


Since: Apr 06, 2005
Posts: 20



(Msg. 4) Posted: Sun Jun 15, 2008 11:30 am
Post subject: Re: Division by zero exception when running Swing program with /usr/bin/gij-4.3 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

[Sorry for the late reply, I've missed you post]

Hello Michael

> I tried the application with current gij-4.3 and jamvm. Both worked fine
> for me. Can you please try to reproduce?

I was able to reproduce problems with bot jamvm and gij-4.3. With jamvm
I keep getting the "division by zero" exception. With gij, all I get
now, is a grey window without any exception, but also without any
elements.
I used "$JAVA -cp ./ Umlet" [1] to launch the program and compiled the
source with sun-java. Oddly enough, trying to compile with gcj now,
leads to a compiler error

ERROR in Umlet.java (at line 3Cool
private Hashtable<String, DrawPanel> _paletteHashtable;
^^^^^^^^^
The type Hashtable is not generic; it cannot be parameterized
with arguments <String, Umlet.DrawPanel>

You can view screenshots of the application run with the different VMs
at:
http://www.mesing.de/debian/screenshot-gij4-3.png
http://www.mesing.de/debian/screenshot-sunjava.png
http://www.mesing.de/debian/screenshot-jamvm.png

Best regards

Ben

[1] I moved the class to the default package.

--
Please do not send any email to ben-ml.RemoveThis@gmx.net -- all email not
originating from the mailing list will be deleted. Use the reply to
address instead.


--
To UNSUBSCRIBE, email to debian-java-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
A test, really sorry - Andrew. -- To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Debian-isp-request aerophane degrees - Hey mom&dad, Just wanted to write you and let you know how that de_gree program I tried out went... Well 2 weeks later, I graduated, & finished my masters in less then 2 weeks with No Study Required and 1_0_0_% Verifiable! Yeah, I know you...

bhaeve! - Hows it been going? A Genuine College Degree in 2 weeks C.a.l.l now!-> 1-2,0,6,-338-5780 B/A,   B/S/C,   M/A, M/S/C, M/B/A,   P/H/D, Within 2 weeks!      No Study Required!     ,.1_0_0_% Veri.fiable! The oppor.rtunity exists due to a legal....

$B%*!p(B $BJs(B - $BBg9%I>!*8=6b<+F02s<}5!@_7WK!$N@_CVK!$r3J0B$N(B5000$B1_$G65$($^$9!#(B $B$"$J$?$N%Q%=%3%s$,<+F0$G$*6b$r2T$$$G$/$l$^$9!*(B $B;d$O3X@8$J$N$G$9$,!"$3$l$r<B9T$9$k$3$H$G7n$K(B8$BK|A08e2T$$$G$^$9!*(B $BGH$K>h$l$P7n$K?t==K...

[mkoch@konqueror.de: ftp.debian.org: orig tarballs get los.. - Hello all, I filed the attached bug report because the orig tarballs of tomcat5 and libxalan2-java are missing in the main section of the archive. They are present in the contrib section bug 'apt-cache source ...' fails because it looks in main only. I...
       Linux (Home) -> Java All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact