[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Wierd problem calling 3rd party classes from plugin
|
- From: Nirmalya Ghosh <nirmalya@xxxxxxxxxxxxxxxxx>
- Date: Thu, 17 Apr 2003 18:08:28 +0800
- Newsgroups: eclipse.tools
- Organization: I'M Technologies Ltd.
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210
Hi All,
I've been facing a very wierd problem. I have two classes, A & B under
the same package XYZ. A has a method, a(); and B has a method b(), which
calls a(). A is a singleton class.
The code can be found at
http://forum.java.sun.com/thread.jsp?forum=31&thread=387530
What's wierd is that for some unknown reason I can't get to the current
instance of A, from B's b() and get an Exception which shouldn't even be
occuring (since those parts of a() aren't reached during execution)!
And when I can the same bit of code from A's main method, it works!
To briefly explain what I am trying to do:
I am writing a plugin for Eclipse.
Class A calls some code in some packages in some external JAR files (no
problems faced in using those JAR files). The exception I mentioned
(ExceptionA) happens under some very rare conditions.. so its really
very wierd for Eclipse giving me that exception.. when I am just trying
to get A's instance (at pt.A) which does not even call those 3rd party
packages.
Somebody suggested that we may be getting the exception from somewhere
else (such as another thread/method etc..).. We reconfirmed that that
wasn't the case as our plugin is a single-threaded; and no other plugin
is using this 3rd party package.
We also rechecked that there are no other classes bearing the same name
(not in my packages, or Eclipse's, nor in the 3rd party packages).
I know this problem sounds quite wierd.. we've been stuck at it for
quite a while now... so any sugegstions would be greatly appreciated..
Thanks & Regards,
Nirmalya