[izpack-users] custom panel cont'd

le dinh dinh.le at samcef.com
Wed Oct 11 17:04:29 CEST 2006


Hi Klaus,

The error occurs just after the display of the langage selection panel. Here below is the stack dump. OK, i was too brief, let me tell you the way that i understand how to create my own PingPanel whose aim is to select the license system ,the server to ping to and finally to launch a 'ping script'. 

First of all, I found inspiration from an existing class CompilePanel and wrote a new class PingPanel that extends IzPanel. In the void makeXMLData, I replaced compiler and arguments by my stfuff in my PingPanel.Spec.xml ( prot,flex...). As noticed on the izforge wiki, I had to create a PingPanelAutomationHelper class( again CompilePanelAutomationHelper is used as example ). Last, my PingPanelWorker thread is inspired from a mixing CompileWorker and ProcessPanelWorker 

Just a few midifications in build.xml to launch ant and the compilation has been done. To complete, I insert my PingPanel in the resources and panels section of my install xml and create a new jar file.

Thanks a lot to give me a quick response. I do appreciate your explanatory statements.

Cheers,



this=com.izforge.izpack.panels.PingPanel[,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]

input=PingPanel.Spec.xml protspec=null protlist=null

- Error -

java.lang.reflect.InvocationTargetException

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at com.izforge.izpack.installer.InstallerFrame.loadPanels(InstallerFrame.java:202)

at com.izforge.izpack.installer.InstallerFrame.<init>(InstallerFrame.java:159)

at com.izforge.izpack.installer.GUIInstaller.loadGUI(GUIInstaller.java:389)

at com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:126)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at com.izforge.izpack.installer.Installer.main(Installer.java:62)

Caused by: java.lang.NullPointerException

at com.izforge.izpack.installer.PingPanelWorker.readChoices(PingPanelWorker.java:363)

at com.izforge.izpack.installer.PingPanelWorker.getAvailableProt(PingPanelWorker.java:136)

at com.izforge.izpack.panels.PingPanel.<init>(PingPanel.java:193)

... 15 more

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20061011/18f2d0b6/attachment.html 


More information about the izpack-users mailing list