🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1300

Internal Compiler Error

#1300
From: Andre Jagusch
Date: Thu, 04 Apr 2002 10:34
95 lines
4542 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C1DBD5.05974040
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,

I have a piece of code with a try and two catch statements. As far as I =
can see
there is nothing wrong with the code;

try
{
    // do something
}
catch (SpecialException e)
{
    // do something
}
catch (Exception e)
{
    // do something else
}

Now as soon as I have that second catch (I do need it as other Exception =
can be thrown in the try block) I get the following error:

"MyClass.java": Error #: 2301 : internal compiler error: =
java.lang.NullPointerException

I do not have a clue what is wrong with my code, can anybody give me a =
hint or suggest where I can get help?

Thanks,

Andre

------=_NextPart_000_000A_01C1DBD5.05974040
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a piece of code with a try and =
two catch=20
statements. As far as I can see</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>there is nothing wrong with the =
code;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>try</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; // do =
something</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>catch (SpecialException e)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; // do =
something</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>catch (Exception e)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; // do something=20
else</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now as soon as I have that second catch =
(I do need=20
it as other Exception can be thrown in the try block) I get the =
following=20
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"MyClass.java": Error #: 2301 : =
internal compiler=20
error: java.lang.NullPointerException</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I do not have a clue what is wrong with =
my code,=20
can anybody give me a hint or suggest where I can get help?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Andre</FONT></DIV></BODY></HTML>

------=_NextPart_000_000A_01C1DBD5.05974040--
Technical Details
Message-ID: <a8ha73$1rm$1@news1.wdf.sap-ag.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!skynet.be!skynet.be!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!blackbush.xlink.net!blackbush.de.kpnqwest.net!news.sap-ag.de!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,835782826a0eb197,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-04 02:41:48 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!skynet.be!skynet.be!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!blackbush.xlink.net!blackbush.de.kpnqwest.net!news.sap-ag.de!not-for-mail
From: "Andre Jagusch" <andre.jagusch@sap.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: Internal Compiler Error
Date: Thu, 4 Apr 2002 12:34:11 +0200
Organization: SAP AG
Lines: 96
Message-ID: <a8ha73$1rm$1@news1.wdf.sap-ag.de>
Reply-To: "Andre Jagusch" <andre.jagusch@sap.com>
NNTP-Posting-Host: 10.18.111.25
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_000A_01C1DBD5.05974040"
X-Trace: news1.wdf.sap-ag.de 1017916451 1910 10.18.111.25 (4 Apr 2002 10:34:11 GMT)
X-Complaints-To: newsmaster@sap-ag.de
NNTP-Posting-Date: 4 Apr 2002 10:34:11 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700