Re: Checkstyle Runtime Exception

"Armstrong, Conrad" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <033033C13EDBB4408C12EC073083B9F7155430E7@INCG2004A.corp.statestr.com>
That comes from the RedundantThrowsCheck, which needs to find the class
of exceptions in a method's throws clause, in order to determine if one
exception thrown by a method is a subclass of another exception thrown
by the same method. The message means that the check is failing before
it can perform its logic.

If you add the exception's .class file to Checkstyle's classpath, the
message will go away and the check should work.
If that is not an option, or is an ugly option, then the other option is
to just remove the check from your Checkstyle configuration.

The check has a suppressLoadErrors property, but it does not work
properly in this situation, IMO.


-----Original Message-----
Date: Thu, 31 Jul 2008 10:19:43 -0700 (PDT)
From: c24martin <[email protected]>
Subject: [Checkstyle-user]  Checkstyle Runtime Exception
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii


I searched through the forum and was never able to find a fix for this
problem.

I get the following violation from Checkstyle(v4.4):

"Got an exception - java.lang.RuntimeException: Unable to get class
information for ServletException." on line 0.

The class that gets this violation throws the
javax.servlet.ServletException, I have this exception class as one of my
imports, but Checkstyle style throws the violation every time.

What needs to change so that Checkstyle will be able to find the class
information?  Or what can I change in my configuration file so that
Checkstyle will ignore this violation.

Thanks for any help you can give me.
-- 
View this message in context:
http://www.nabble.com/Checkstyle-Runtime-Exception-tp18717261p18717261.h
tml
Sent from the CheckStyle - User mailing list archive at Nabble.com.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.