WS7RC3: NullPointerException when installing on Solaris
Hi there,
I'm trying the Webserver 7.0 RC3 candidate but when I run the setup program (using the GUI) and agree to the license it crashes the moment when I specify a directory to install to (/opt/local/sun/webserver7). It doesn't matter if the directory exists or not, the installer crashes (and dumps core) no matter what:
Exception in thread"AWT-EventQueue-0" java.lang.NullPointerException
at SolarisNativeToolkit.getComponent(SolarisNativeToolkit.java:1376)
at SolarisPlatformToolkit.getComponent(SolarisPlatformToolkit.java:1398)
at com.sun.wizards.core.SystemInterface.getComponent(SystemInterface.jav
a:491)
at com.sun.wizards.services.RemoteRegistryServiceProxy.getComponent(Remo
teRegistryServiceProxy.java:101)
at com.sun.wizards.services.RemoteRegistryService.getComponent(RemoteReg
istryService.java:101)
at com.sun.web.installer.util.ProductUtil.removeInvalidRegistryEntries(P
roductUtil.java:336)
at com.sun.web.installer.web.dialogs.DirectorySelectionListener.componen
tFinishing(DirectorySelectionListener.java:53)
at com.sun.wizards.core.IteratorLayout.next(IteratorLayout.java:1073)
at com.sun.wizards.core.WizardTreeManager.actualNextButtonPressed(Wizard
TreeManager.java:1308)
at com.sun.wizards.core.WizardTreeManager.nextButtonPressed(WizardTreeMa
nager.java:1344)
at com.sun.wizards.core.WizardTreeManager.dispatchNavigationEvent(Wizard
TreeManager.java:484)
at com.sun.wizards.core.WizardTreeManager.run(WizardTreeManager.java:446
)
at java.lang.Thread.run(Thread.java:595)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I think it might be a privilige related problem because it only happens whenever I run the installer through the use of <i>pfexec</i> which grants me administrative access on this machine (Primary Administrator). Running the program directly (pfexec ./setup) or through a priviledged shell (pfexec sh -c "./setup") makes no difference. And finally, the most obvious approach by using "su" to become root also results in the installer crashing with an exception.
Although I can overcome this problem by creating the installation directory before hand, granting myself access, and then performing the installation as a regular user I don't think this is the way it should be.
Can anyone shed some light on this ?

