PDA

View Full Version : support.putArchive() no longer needed?



kleink
04-25-2003, 04:25 PM
I get some serious problems when I try to build my project with my custom panel .

The panel registers fine in the bean gallery, and I have the jar in my classes dir on my ismp.cp and ismpg.cp. I get the following error multiple times:

java.lang.NullPointerException
at com.installshield.swing.IconTableCellRenderer.getTableCellRendererComponent(IconTableCell
Renderer.java:17)
at javax.swing.JTable.prepareRenderer(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paintViewDoubleBuffered(Unknown Source)
at javax.swing.JViewport.paintView(Unknown Source)
at javax.swing.JViewport.windowBlitPaint(Unknown Source)
at javax.swing.JViewport.setViewPosition(Unknown Source)
at javax.swing.plaf.basic.BasicScrollPaneUI$VSBChangeListener.stateChanged(Unknown Source)
at javax.swing.DefaultBoundedRangeModel.fireStateChanged(Unknown Source)
at javax.swing.DefaultBoundedRangeModel.setRangeProperties(Unknown Source)
at javax.swing.DefaultBoundedRangeModel.setValue(Unknown Source)
at javax.swing.JScrollBar.setValue(Unknown Source)
at com.installshield.isje.build.BuildOutputView.tableChanged(BuildOutputView.java:48)
at com.installshield.isje.build.BuildOutput.notifyTableListeners(BuildOutput.java:61)
at com.installshield.isje.build.BuildOutput.eventLogged(BuildOutput.java:42)
at com.installshield.wizard.WizardWriter.eventLogged(WizardWriter.java:734)
at com.installshield.wizard.WizardWriter.write(WizardWriter.java:641)
at com.installshield.isje.build.Builder.run(Builder.java:27)
at java.lang.Thread.run(Unknown Source)

This built and ran with no problems in 4.5 today (I am just migrating up to 5.0).

The problem seems to go away when I remove the suuport.putArchive call in my build() method ... is this no longer needed?

kleink
04-25-2003, 04:52 PM
I just went back and read my own notes on how to get this to work -- I had entered absolute paths to my jar files which for some strange reason causes IS not to find the jar file ... very screwy.

Anyway, relative path to it fixed the problem.

kleink
04-25-2003, 05:04 PM
support.logEvent(this, "Added registration.jar to build", null);

in the build method...probably that null at the end...4.5 liked it fine though.

I'm not even sure what that's supposed to be.....

RobertDickau
05-01-2003, 12:11 PM
The ISMP Javadoc help for the ProductActionSupport class gives these examples:

support.logEvent(this, Log.WARNING, "This is a warning.");

and

support.logEvent(this, Log.ERROR, "This is a error!!!");

kleink
05-01-2003, 01:22 PM
I noticed that code in a custom panel example somewhere and finally applied it to the code in my build() method.

Just note that 4.5 liked the wrong way I did it before fine, 5.0 complained big time ;)