[izpack-devel] New panel creation
Bartz, Klaus
Klaus.Bartz at coi.de
Tue Mar 6 09:19:00 CET 2007
Hi Riaan,
it is really non-specific for IzPack.
The serialVersionUID will be used by the Java Virtual Machine at
deserializing.
Since some time all classes which are Serializable should have an
explicit
declared serialVersionUID. All GUI related classes are Serializable. If
you use Eclipse
with the default settings and with VM 5.0 (also known as 1.5) you got
warnings
about missing serialVersionUID.
For more see the basic java docu or gooogle. See e.g.
http://today.java.net/pub/a/today/2006/03/09/serialVersionUIDSQ8.html
Cheers
Klaus
-----Original Message-----
From: izpack-devel-bounces at lists.berlios.de
[mailto:izpack-devel-bounces at lists.berlios.de] On Behalf Of Zycor.net
Development Solutions
Sent: Tuesday, March 06, 2007 8:03 AM
To: izpack-devel at lists.berlios.de
Subject: [izpack-devel] New panel creation
Sorry, just hit reply and didn't change the subject...
I changed the build script, so panels should be in the right
places... It seems that the problem was somehow with my panel...
I'm starting from scratch. I have now gotten a copy of the
HelloPanel to work.
Still need an answer on this though:
Also, what is the 'private static final long serialVersionUID =
3257848774955905587L;' on each panel? How do I generate this?
Thanks
Riaan Cornelius Software Developer - B.Sc(IT) - neo at zycor.net
Ask an Expert - Visit my Virtual Office at Kasamba
<http://www.kasamba.com/Advice/VirtualOffice/ViewExpert.aspx?hE_x002F_LQ
gGt_x002B_kFYNCfS2_x002F_PTa5dl08QtDMq_x002B_vNnpiXfkC_x002B_0JhFyjXBf6T
80Eopgpc_x002F_nqY6hjWiws56Ypu4tAD2Mw1bmvUI_x002F_GBarL>
Get Thunderbird <http://www.mozilla.org/products/thunderbird/>
Zycor.net Development Solutions wrote:
Hi,
I get the following exception when I try to create my
own panels. Why is this? Even if I just rename the HelloPanel and
recompile, create Jar and copy Jar and Class files into bin folder, this
happens.
//===================== Start of Trace
========================//
No custom langpack available.
Can not find optional resource conditions.xml
No specification for conditions found.
Resource customicons.xml not defined. No custom icons
available.
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at
java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.izforge.izpack.installer.InstallerFrame.loadPanels(InstallerFrame
.java:336)
at
com.izforge.izpack.installer.InstallerFrame.<init>(InstallerFrame.jav
a:256)
at
com.izforge.izpack.installer.GUIInstaller.loadGUI(GUIInstaller.java:4
27)
at
com.izforge.izpack.installer.GUIInstaller.access$100(GUIInstaller.jav
a:79)
at
com.izforge.izpack.installer.GUIInstaller$2.run(GUIInstaller.java:148
)
at
java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown
Source)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown
Source)
Caused by: java.lang.NullPointerException
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at
com.izforge.izpack.panels.MSDEPanel.<init>(MSDEPanel.java:106)
at
com.izforge.izpack.panels.MSDEPanel.<init>(MSDEPanel.java:64)
... 17 more
//===================== End of Trace
========================//
Also, what is the 'private static final long
serialVersionUID = 3257848774955905587L;' on each panel? How do I
generate this?
Regards
Riaan Cornelius Software Developer - B.Sc(IT) - neo at zycor.net
Ask an Expert - Visit my Virtual Office at Kasamba
<http://www.kasamba.com/Advice/VirtualOffice/ViewExpert.aspx?hE_x002F_LQ
gGt_x002B_kFYNCfS2_x002F_PTa5dl08QtDMq_x002B_vNnpiXfkC_x002B_0JhFyjXBf6T
80Eopgpc_x002F_nqY6hjWiws56Ypu4tAD2Mw1bmvUI_x002F_GBarL>
Get Thunderbird <http://www.mozilla.org/products/thunderbird/>
_____
_______________________________________________
izpack-devel mailing list
izpack-devel at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-devel
_____
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.7/711 -
Release Date: 3/5/2007 9:41 AM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-devel/attachments/20070306/f9d6e582/attachment.html
More information about the izpack-devel
mailing list