Article View: borland.public.jbuilder.java.swing
Article #1746No abstract class, no interface but -> Failed to create live instance for variable 'this'. null
From: Kostas
Date: Sat, 30 Aug 2003 15:35
Date: Sat, 30 Aug 2003 15:35
67 lines
3038 bytes
3038 bytes
Hello all,
Here is my problem. I have a class with decleration...
public class EfzinCalendarManagerFrame extends EfzinInternalFrame
The super class has the following code..
public class EfzinInternalFrame extends JInternalFrame
{
//Data
members-------------------------------------------------------------
private static int openFrameCount = 0;
private static final int xOffset = 30, yOffset = 30;
private static Vector addedFrames = new Vector();
private static boolean selectedStatus = false;
private static Object selectedFrame=null;
//Methods------------------------------------------------------------------
public EfzinInternalFrame()
{
super();
addedFrames.add(this);
openFrameCount++;
try
{
jbInit();
}
catch (Exception e)
{
e.printStackTrace();
}
}
private void jbInit() throws Exception
{
//Set Default close operation
setDefaultCloseOperation(HIDE_ON_CLOSE);
this.addInternalFrameListener(new InternalFrameAdapter()
{
public void internalFrameDeactivated(InternalFrameEvent e)
{
EfzinInternalFrame.deActivateGetSelectedFrameMethod();
}
public void internalFrameActivated(InternalFrameEvent e)
{
EfzinInternalFrame.setSelectedFrame(EfzinInternalFrame.this);
}
}
);
}
When i turn the EfzinCalendarManagerFrame to the designer a i get the
ordinary message...
Failed to create live instance for variable 'this'. null
class java.lang.NullPointerException null
The problem is that EfzinCalendarManagerFrame extends EfzinInternalFrame.
If i change the extends statement from EfzinInternalFrame to JInternalFrame
i will not get error. The weird is that when i open the EfzinInternalFrame's
designer tab all are correctly. Do you know a possible reason of this
annoying behaviour?(I dont implement any abstract class either an interface)
Thank you for advance.
Technical Details
Message-ID:
<3f50c3dc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1d5aaa23692dca6,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-08-30 08:36:41 PST Reply-To: "Kostas" <karadamoglou_k@yahoo.gr> From: "Kostas" <karadamoglou_k@yahoo.gr> Newsgroups: borland.public.jbuilder.java.swing Subject: No abstract class, no interface but -> Failed to create live instance for variable 'this'. null Date: Sat, 30 Aug 2003 18:35:08 +0300 Lines: 73 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.1.5.14 Message-ID: <3f50c3dc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062257628 62.1.5.14 (30 Aug 2003 08:33:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail