This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 35077 - Can not install NB on all platforms when no JVM < 1.4 is available
Summary: Can not install NB on all platforms when no JVM < 1.4 is available
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-23 10:10 UTC by yasuhiro
Modified: 2005-07-13 15:13 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Last step of installer on x86 Solaris9u4 (24.15 KB, image/gif)
2003-07-23 10:12 UTC, yasuhiro
Details
log file after installation failed (2.32 KB, text/plain)
2003-07-23 10:13 UTC, yasuhiro
Details
Output with -Dis.debug=1 (5.83 KB, text/plain)
2003-07-24 14:34 UTC, Miloslav Metelka
Details
jvmfind.log from /var/tmp/ismp005 (38.25 KB, text/plain)
2003-07-24 16:34 UTC, Miloslav Metelka
Details
Decompiled Verify.class (540 bytes, text/plain)
2003-07-24 17:30 UTC, Miloslav Metelka
Details
Excerpt from NB_ml-subst.xml showing the suspicious jvm definitions for solaris (6.92 KB, text/plain)
2003-07-25 10:11 UTC, Miloslav Metelka
Details
/var/tmp/ismp001/jvmfind.log, when installer works in solaris8 x86. (228 bytes, patch)
2003-07-25 10:57 UTC, Keiichi Oono
Details | Diff
Possible fix for English-only and Multilingual installer builds. It adds a lot of supported JVMs for uninstall. (52.93 KB, patch)
2003-07-25 16:17 UTC, rbalada
Details | Diff
Strange Error message about DTDBcache (7.26 KB, image/png)
2003-07-25 17:10 UTC, dmladek
Details
another Error message about DTDBcache (6.42 KB, image/png)
2003-07-25 18:27 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yasuhiro 2003-07-23 10:10:39 UTC
OS: x86 Solaris
Installer: build 030721 ML-JA
J2SDK: 1.4.1_02 or 1.4.2

- To reproduce
  Invoking x86 installer by following
  % java -jar
NetBeansIDE-release351-200307212351-ML-JA-solarisX86.jar

- Problem
  On last step in the wizard, installer can not
find JVM.
  (See the attached gif and log file)
Comment 1 yasuhiro 2003-07-23 10:12:30 UTC
Created attachment 11074 [details]
Last step of installer on x86 Solaris9u4
Comment 2 yasuhiro 2003-07-23 10:13:29 UTC
Created attachment 11075 [details]
log file after installation failed
Comment 3 yasuhiro 2003-07-24 03:33:35 UTC
- Additional comment
This issue does not depend on that specified installation directory
has (or does not have) spaces.

For example, after specifying directory as follows:

/export/home/user/NetBeans3.5.1

nevertheless this issue occurs.
Comment 4 psuk 2003-07-24 08:22:10 UTC
// udating the bug, based on the report from Yuko

- This problem occurs when the install directory does not have spaces.

   (2003/07/24 9:15:08), Setup.product.install,
org.netbeans.installer.actions.WriteAction, err,
   java.io.FileNotFoundException: /tmp/NB351/bin/ide.cfg (No such file
or directory)
   STACK_TRACE: 17
   java.io.FileNotFoundException: /tmp/NB351/bin/ide.cfg (No such file
or directory)

- Tested OS: Solaris9u4 x86, Solaris8 x86

- The cobundle installer is x86 .bin installer, so this problem does
not occur.

- When running x86 .jar installer on Solaris sparc, this problem does
not occur.
  Do we need to set anything (path or environment variable)?
  If english x86 .jar installer works fine, could you please tell me
  how to install using x86 .jar installer?
Comment 5 dmladek 2003-07-24 13:15:40 UTC
I must confirm that on Solaris Intel isn't possible install ide from
jar installer.
I've tried all 3 or 4 types of nb351 jar installer always with the
same result: can't find JVM

I didn't wind any workaround. I tested on Sol9x86 on jdk1.4.1_02a and
on jdk1.4.2

It's 100% reproductable:-(
Comment 6 dmladek 2003-07-24 13:47:51 UTC
BTW: I tried bin latest bin (no ML) installer available for Solaris-Intel:
NetBeansIDE-release351-200307132351-solarisX86.bin

and instalation succeded and ide runs fine...

This bug occurs because of there were problems in bin installers for
Solx86 if they were ML...
see issue #34884
Comment 7 Miloslav Metelka 2003-07-24 14:25:13 UTC
I have looked to knowledge base of InstallShield particularly to issue
http://support.installshield.com/kb/view.asp?articleid=q107222
and used the -Dis.debug=1. The output is attached.
Comment 8 Miloslav Metelka 2003-07-24 14:34:11 UTC
Created attachment 11114 [details]
Output with -Dis.debug=1
Comment 9 Miloslav Metelka 2003-07-24 16:34:53 UTC
Created attachment 11118 [details]
jvmfind.log from /var/tmp/ismp005
Comment 10 Miloslav Metelka 2003-07-24 17:29:22 UTC
I have tried to use the same jar for installation on linux and it
failed with the same error.
I'm still wondering why it's unable to offer at least the jvm on which
it's running. The jvmfind.log shows it at least finds it but I have no
idea why it does not accept it.
I was interested in what the Verify.jar is doing so I have "caught" it
in the /var/tmp/ismpxxx and unjared it which produced a single
Verify.class which I have decompiled. The output shows that it does
not verify anything it just dumps out a number followed by the system
properties requested on the command line:
Comment 11 Miloslav Metelka 2003-07-24 17:30:08 UTC
Created attachment 11122 [details]
Decompiled Verify.class
Comment 12 Miloslav Metelka 2003-07-24 17:33:03 UTC
This means that there must be some internal mechanism which actually
matches this output against the jvms specs and that mechanism is
somehow broken. However I still don't understand how can this fail if
in fact the binary installer is just a wrapper around the jar. Strange.
Comment 13 Miloslav Metelka 2003-07-25 10:08:50 UTC
Well, there is a section in NB_subst.xml that 
markedly reminds the sequence of verifying the jvms 
in the attached jvmfind.log. We are investigating 
this with Ruda Balada on the building machine.
Comment 14 Miloslav Metelka 2003-07-25 10:11:08 UTC
Created attachment 11128 [details]
Excerpt from NB_ml-subst.xml showing the suspicious jvm definitions for solaris
Comment 15 Keiichi Oono 2003-07-25 10:55:31 UTC
I've checked jar installer in solaris8 x86 environment. It works. It
seems that the installer expect JVM 1.1.8. I don't know why the
installer does not accept 1.4.x but 1.1.8. Can we configure to let
installer expect 1.4.x?
I attach jvmfind.log when I installed by jar in solaris8 x86.
Comment 16 Keiichi Oono 2003-07-25 10:57:04 UTC
Created attachment 11130 [details]
/var/tmp/ismp001/jvmfind.log, when installer works in solaris8 x86.
Comment 17 Miloslav Metelka 2003-07-25 12:13:09 UTC
Thanks for the log. It proves the idea of missing jvm 
definitions.

Ruda has added additional jvm definitions into NB_ml.
xml installshield's project file and he is now going 
to rebuild and test the installers. If they will work 
we could resolve the issue and build the final 
installers even today.
Comment 18 Miloslav Metelka 2003-07-25 13:40:17 UTC
Ruda has successfully tested the new installer and it 
seems that the issue is resolved. We are now 
verifying whether the patch to NB_ml.xml is OK.
Comment 19 rbalada 2003-07-25 16:17:39 UTC
Created attachment 11142 [details]
Possible fix for English-only and Multilingual installer builds. It adds a lot of supported JVMs for uninstall.
Comment 20 rbalada 2003-07-25 16:20:35 UTC
The attached patch is for NB.xml and NB_ml.xml.
I'm not in charge to approve and commit the patch into release35 
branch. That's responsibility of development team, not release 
engineering (me). I'm providing this patch as it is w/o any kind of 
warranty. The patch needs review and someone from development must 
take it as it's responsibility.
Comment 21 dmladek 2003-07-25 17:06:36 UTC
I checked Ruda's installers on folowing platforms:
==================================================
RH9->NetBeansIDE-release351-200307222351-ML-JA-linux.bin...OK

Sol9x86->NetBeansIDE-release351-200307222351-ML-JA-solarisX86.jar...OK,
         but during un/istallation sometimes  
         this message occures->snapshot14.png

Sol8-Sparc->NetBeansIDE-release351-200307222351-SL-solarisSparc.bin...OK,
         but the same problem occured as for
         Solx86
WinNT->NetBeansIDE-release351-200307222351-ML-JA-win32.exe...OK
WinNT->NetBeansIDE-release351-200307222351-win32.exe....OK
Comment 22 dmladek 2003-07-25 17:10:04 UTC
Created attachment 11144 [details]
Strange Error message about DTDBcache
Comment 23 dmladek 2003-07-25 18:26:28 UTC
if I try to un/install ide on any Solaris as a root user I've got
little bit different error...
see attached snapshot15.png
Comment 24 dmladek 2003-07-25 18:27:25 UTC
Created attachment 11145 [details]
another Error message about DTDBcache
Comment 25 Miloslav Metelka 2003-07-28 17:22:18 UTC
We researched the problem and it seems that the 
problematic dialogs are only shown when an ssh 
session is performed together with setting the 
DISPLAY variable. If the user connects remotely e.g. 
by "X -query machine :2.0" or locally on the machine 
then the problem does not occur.
 AFAIK the installation program tries to add a menu 
item for the installed product to CDE environment. 
That would mean that if there isn't CDE installed on 
the machine then the problem will occur too even when 
installing e.g. locally. I'm not a Solaris expert so 
I don't know if it's even possible to not have a CDE 
environment installed and have just e.g. Gnome 
installed. I have always worked just with the 
machines having the CDE installed.
 IMHO someone familiar with Solaris should resolve 
whether this issue is really serious and thus 
blocking or not.
Comment 26 dmladek 2003-07-28 18:01:23 UTC
Thank you very much Mila for nice and clear explanation of the problem:)

I think that we could integrate this fix. I've already pretested on
all platforms and it is possible install the ide from them and later
uninstall.


According Ruda, this bug occures cause installers for creating
uninstaller needs JVM older then 1.4 (and even if it was installed eg.
in /usr/java/java1.2 it wasn't able to find it)
This fix is solving this problem.

This fix removing dependenci of the installer on old jdk on all
platforms (even though it hadn't been reported yet), so 
I strongly recommand to use those patched installers for all platforms
rather the old ones.

Comment 27 Tomas Zezula 2003-07-29 15:35:46 UTC
I had the same experience on the Windows 2000 where only the jdk1.4.1
or jdk1.4.2 was intalled.
The installer was not able to install the product at all.
Comment 28 dmladek 2003-07-29 16:06:58 UTC
Tomas's report is not the firs one complaining about impossibility to
install NB on Windows... But it was very rare... but with this bug
entered against Solaris intel 
I thing everything's getting clearer.

According Tomas report's I'm changing summary of this issue from the
current one:
"Can not install on x86 Solaris"
to:
"Can not install NB on all platforms when no JVM < 1.4 is available"

it is not platform specific issue thus changing also other fields.

If someone disagree with this change, please revert it back.
thanks
Comment 29 Martin Schovanek 2003-07-31 12:08:09 UTC
I seen the snapshot15.png dialog on Solaris, Nb 3.5.1 build
200307252351, j2sdk1.4.1.

I was connected remotelly by:
$ X -query machine :3.0
$ su -
$ export DISPLAY=local-machine:3.0

but the installation was successful.
Comment 30 Miloslav Metelka 2003-08-01 16:41:35 UTC
If you've issued "su -" and the "export ..." on the 
"machine" and "machine"!="local-machine" then you 
had in fact the same setup as Dan had.
Comment 31 Richard Gregor 2003-08-04 15:10:48 UTC
Patch provided by Rudolf reviewed without objections. Rudolf, thank
you very much. I'm going to change installer in trunk accordingly.
Comment 32 Richard Gregor 2003-08-05 08:51:06 UTC
Trunk files patched.
Fixed in trunk.

Checking in NB.xml;
/cvs/installer/NB.xml,v  <--  NB.xml
new revision: 1.30; previous revision: 1.29
done
Checking in NB_ml.xml;
/cvs/installer/NB_ml.xml,v  <--  NB_ml.xml
new revision: 1.4; previous revision: 1.3
done
Comment 33 Richard Gregor 2003-08-05 09:20:21 UTC
CCing Patrick Keegan.
Comment 34 Richard Gregor 2003-08-05 14:54:49 UTC
I'm going to create separate issue concerning error message about DTB
Cache.
Comment 35 Richard Gregor 2003-08-05 14:59:57 UTC
There is new issue 35277 . Problem with DTBCache error dialogs is now
separate problem
Comment 36 _ ttran 2003-08-05 16:37:35 UTC
if the fix has been reviewed and verified I don't have objection to
let it in release35 branch
Comment 37 Richard Gregor 2003-08-06 08:21:34 UTC
Results of Youko's testing:

 x86 Sol9 GNOME	NG?  (*)
  x86 Sol9 CDE		OK
  x86 Sol8 CDE		OK
  
  reference:
    sparc Sol9 GNOME	OK
    sparc Sol9 CDE	OK
    
    
(*) When runnning x86 .jar installer in any locale (C, ja, ja_JP.PCK,
ja_JP.UTF-8),
    the following exception occurs after "Write info to install
database" appears.
    However, installation seems to be successful.

java.lang.NullPointerException
	at
sun.awt.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:167)
	at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:160)
	at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:145)
	at sun.awt.SunToolkit.getFontMetrics(SunToolkit.java:416)
	at sun.awt.motif.MToolkit.getFontMetrics(MToolkit.java:331)
	at com.installshield.wizard.awt.FlowLabel.paintImpl(FlowLabel.java:537)
	at com.installshield.wizard.awt.FlowLabel.paint(FlowLabel.java:594)
	at java.awt.Canvas.update(Canvas.java:114)
	at sun.awt.RepaintArea.paint(RepaintArea.java:169)
	at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:374)
	at java.awt.Component.dispatchEventImpl(Component.java:3699)
	at java.awt.Component.dispatchEvent(Component.java:3480)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)


I have created issue 35289 related to NPE problem
Comment 38 Martin Schovanek 2003-08-06 12:48:24 UTC
I was trying the patched build 200307252351 on Solaris and Linux where
was only jdk1.4.1 available and instalation and uninstalation were
successful.
Comment 39 Richard Gregor 2003-08-06 13:29:57 UTC
Fixed in release35 branch.

Checking in NB.xml;
/cvs/installer/NB.xml,v  <--  NB.xml
new revision: 1.19.2.9; previous revision: 1.19.2.8
done
Checking in NB_ml.xml;
/cvs/installer/NB_ml.xml,v  <--  NB_ml.xml
new revision: 1.2.2.6; previous revision: 1.2.2.5
done
Comment 40 Michal Mocnak 2005-07-13 15:13:37 UTC
Verified