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 96320 - I18N: nbi can not start in ja_JP.UTF-8 on Fedora Core 6 and Ubuntu 6.10
Summary: I18N: nbi can not start in ja_JP.UTF-8 on Fedora Core 6 and Ubuntu 6.10
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-02-22 15:45 UTC by Masaki Katakai
Modified: 2007-04-16 12:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (9.04 KB, text/plain)
2007-02-22 15:46 UTC, Masaki Katakai
Details
proposed patch, just calling UIManager.getInstalledLookAndFeels() before UIManager.setLookAndFeel() (660 bytes, patch)
2007-02-26 01:39 UTC, Masaki Katakai
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-02-22 15:45:10 UTC
On Fedora Core 6, Ubuntu 6.10 + jdk1.6.0_01, nbi in ja_JP.UTF-8 could not start
by the followig errors,

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at
com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(GTKLookAndFeel.java:1262)
        at
com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1504)
        at
com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$000(GTKLookAndFeel.java:37)
        at
com.sun.java.swing.plaf.gtk.GTKLookAndFeel$WeakPCL$1.run(GTKLookAndFeel.java:1444)


I understand this is JDK issue of bug 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6468089

It seems that it has been fixed in jdk6, but I don't know why it happens. I'll
file new bug against JDK but Fedora Core 6 and Ubuntu 6.10 are not supported by
JDK, so I'm not sure it will be fixed quickly.

There is one reasonable workaround - We can avoid this exception by calling 
UIManager.getInstalledLookAndFeels() before calling of
UIManager.setLookAndFeel(). Is it possible to put one line for the workaround?
I filed the same problem for another swing application - OmegaT,

https://sourceforge.net/tracker/?func=detail&atid=520347&aid=1555809&group_id=68187

and provided a patch.

https://sourceforge.net/tracker/download.php?group_id=68187&atid=520347&file_id=192797&aid=1555809
Comment 1 Masaki Katakai 2007-02-22 15:46:25 UTC
Created attachment 38816 [details]
log file
Comment 2 Masaki Katakai 2007-02-24 08:53:28 UTC
bug in jdk side is

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6389282

and will not be fixed until JDK7.

We need to put a workaround into nbi, see the bug report, it can work when
we call UIManager.getInstalledLookAndFeels() before  UIManager.setLookAndFeel().


Comment 3 Ken Frank 2007-02-24 18:45:26 UTC
fedora core or ubuntu is not a supported os for the jdk at all,

and also for font support for asian locales and is thus not a supported
linux platform for netbeans.
We specifically tell the users this information.

We do support Red Hat EL 4 as an official supported platform for netbeans
and jdk has font support for it.

Thus if this is not a problem on redhat, I suggest closing this as not a bug.

ken.frank@sun.com
Comment 4 Masaki Katakai 2007-02-26 01:39:55 UTC
Created attachment 38892 [details]
proposed patch, just calling UIManager.getInstalledLookAndFeels() before UIManager.setLookAndFeel()
Comment 5 Masaki Katakai 2007-02-26 02:15:36 UTC
Hi Ken,

> Thus if this is not a problem on redhat, I suggest closing this as not a bug.

I'm afraid I have to disagree. It's not right direction.

Please read carefully NB release notes again,

> NetBeans IDE is also known to run on the following platforms:
> - Various other Linux distributions, such as Red Hat Enterprise Linux

Please understand that "tested platform" and "runnable platform"
are completely different. Our tested platform for ja,zh,pt_BR
would be only RHEL4 and that's our official statement, let's add this to
5.5.1 release notes. This is good. However, runnable platform should
be "Various other Linux distributions" and users can try NB on them
at their risk.

Please understand the market trend. FC and Ubuntu are now popular
Linux desktop platform. We should give possible opportunity to
those users if we can. Of course, it does not mean we will officially
support them, so we're going to revise the description of release notes.
Comment 6 Ken Frank 2007-02-26 02:48:03 UTC
We appreciate all inputs and comments, including that
of you and your team since your team and customers of localized releases
are one group of our customers who run in other locales; we also keep in mind
our other large set of users
who might run into these situations
who do not use localized releases, either because they are in locales for which
we dont localize or because they are, but do not wish to use localized release.

If you feel our release notes about supported linux is not clear in reference to the
statement you quote from another section of release notes

>NetBeans IDE is also known to run on the following platforms:
>- Various other Linux distributions, such as Red Hat Enterprise Linux

then we can add clarifications to the release notes on this topic that we have
already written;  but my comment is that I think its not really a matter
of words like supported or run on or tested on --- in all of these cases the jdk
does
not support fonts for some linux os and that means we clarify the release notes
statement that
 netbeans ide is also known to run on various
unix platforms,( whether it is run on, supported or tested on as the words being
used) by adding the additional release notes comments that we added for 55
release and already for this release.


Also,  please note that our release notes on this topic are also in english
release notes; there are no seprate release notes for other languages; they are
the translated versions of en release notes; and in this case that is
appropriate since we want users who do not or cannot use localized release or
release notes to see this information.

that is, we should not encourage modifying a jdk
to make it work.  Or to modifying an OS, since both of those would
seem to imply that we are supporting those changes, which I don't think
is something we can or should claim to do. The jdk has specific standards and
guidelines about this.


Thus I don't understand why the installer needs to be fixed for these platforms
since the jdk does not support them.  

If there is a big asian market for fedora or ubuntu, then I believe
accurate data needs to be presented to jdk team to encourage them
to add font support for those os.

ken.frank@sun.com

Comment 7 Ken Frank 2007-02-26 02:52:59 UTC
one additional comment - we on the tool team *explicitly* chose that RedHat 4
is a supported platform for nb 551, whether you want to define that as run on or
supported or whatever wording.

We are aware of the limitations of font support for some other linux platforms
and so we chose to place RH 4 on our list, and from data we have had in past,
it is a frequently used os in asian locales.

We realize it means that it wont run on other linux os, but at least we are
making sure to state that it runs on, tested on and supported on rh4.

ken.frank@sun.com

Comment 8 Masaki Katakai 2007-02-26 03:04:41 UTC
> Thus I don't understand why the installer needs to be fixed for these platforms
> since the jdk does not support them.  

nbi team can decide to fix or not.

This is not good place to discuss, please use
http://www.netbeans.org/issues/show_bug.cgi?id=94930 for the further discussion.

Regards.


Comment 9 Kirill Sorokin 2007-04-09 11:15:54 UTC
I would say that installer team should attempt a fix at this. When we try to set
the look and feel, we should be catching all possible exceptions and fall back
to aqua (or whatever th default cross-platform LnF is called now) is something
bad happens.
Comment 10 Masaki Katakai 2007-04-14 14:31:44 UTC
Thank you very much for understanding.

I'm seeing other user met the same problem too in chinese locale.
Here is a post of nbusers. 

http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=89251

We should fix this issue so that more users can install 6.0 into
their Linux platforms.


Comment 11 Kirill Sorokin 2007-04-16 11:29:57 UTC
I've introduced all the requested changes. The issue should be fixed, please
very with the latest build.

-> FIXED
Comment 12 Masaki Katakai 2007-04-16 12:05:05 UTC
Thank you very much!!

Can I use any daily build? Or should I wait M9?

Please let me know if I can use any internal build for verification
before M9 official release.
Comment 13 Kirill Sorokin 2007-04-16 12:15:04 UTC
You can try to verify with 
  http://bits.nbextras.org/netbeans/6.0/nightly/200704160626/

as soon as installers become available there.
Comment 14 Masaki Katakai 2007-04-16 12:58:45 UTC
Great, it works on my fedora core 6!!

netbeans-6.0-nightly-200704131723-basic-linux.sh -> same problem happens

netbeans-6.0-nightly-200704160626-basic-linux.sh -> works!!

marked as verified. Thank you!!