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 139952 - I18N - [65cat] Can't install with tr_TR.UTF-8 locale
Summary: I18N - [65cat] Can't install with tr_TR.UTF-8 locale
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@installer
URL: http://bugs.sun.com/bugdatabase/view_...
Keywords: I18N
: 140330 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-14 21:44 UTC by havan
Modified: 2008-07-21 17:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file of the installer when it crashed (557.41 KB, text/plain)
2008-07-14 21:46 UTC, havan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description havan 2008-07-14 21:44:49 UTC
[ BUILD # : 200807101204 ]
[ JDK VERSION : 1.5.* ]

Installer throws a "java.lang.RuntimeException: Intstruction unknown:
loadınstruction" exception if the locale is tr. A workaround is
exist; is "--locale C" parameter is given to installer it runs well.
It can be reproduced with changing LC_ALL to tr_TR.UTF-8 and running
installer.

Full exception report folllows;

java.lang.RuntimeException: Instruction unknown: loadınstruction
        at
com.sun.org.apache.bcel.internal.util.InstructionFinder.mapName(Instru
ctionFinder.java:138)
        at
com.sun.org.apache.bcel.internal.util.InstructionFinder.compilePattern
(InstructionFinder.java:170)
        at
com.sun.org.apache.bcel.internal.util.InstructionFinder.search(Instruc
tionFinder.java:218)
        at
com.sun.org.apache.bcel.internal.util.InstructionFinder.search(Instruc
tionFinder.java:264)
        at
com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.peepHoleOptimiza
tion(Mode.java:1444)
        at
com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemp
lates(Mode.java:1058)
        at
com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileMod
es(Stylesheet.java:615)
        at
com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(
Stylesheet.java:730)
        at
com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.j
ava:354)
        at
com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.j
ava:429)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.ne
wTemplates(TransformerFactoryImpl.java:796)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.ne
wTransformer(TransformerFactoryImpl.java:623)
        at
org.netbeans.installer.utils.XMLUtils.saveXMLDocument(XMLUtils.java:14
2)
        at
org.netbeans.installer.utils.EngineUtils.cacheEngineJar(EngineUtils.ja
va:184)
        at
org.netbeans.installer.utils.EngineUtils.cacheEngine(EngineUtils.java:
128)
        at
org.netbeans.installer.utils.system.NativeUtils.createUninstaller(Nati
veUtils.java:142)
        at
org.netbeans.installer.utils.system.UnixNativeUtils.addComponentToSyst
emInstallManager(UnixNativeUtils.java:698)
        at
org.netbeans.installer.utils.SystemUtils.addComponentToSystemInstallMa
nager(SystemUtils.java:365)
        at
org.netbeans.installer.product.components.Product.install(Product.java
:349)
        at
org.netbeans.installer.wizard.components.actions.InstallAction.execute
(InstallAction.java:152)
        at
org.netbeans.installer.wizard.components.WizardAction$1.run(WizardActi
on.java:120)
ERROR:  'Instruction unknown: loadınstruction'
FATAL ERROR:  'Could not compile stylesheet'
Comment 1 havan 2008-07-14 21:46:14 UTC
Created attachment 64474 [details]
Log file of the installer when it crashed
Comment 2 dlipin 2008-07-18 08:34:53 UTC
*** Issue 140330 has been marked as a duplicate of this issue. ***
Comment 3 dlipin 2008-07-18 08:54:14 UTC
It is the JDK bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6240963

It is also filed agains Apache bcel:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38787

Unfortunately we can`t fix on the installer side.
I don`t have an idea why it is not yet fixed in JDK5 but it works fine with JDK6.
The workaround is either to run installer in English locale (e.g. with "--locale en_US" installer switch) or to run it 
on Java6 (with --javahome <path-to-java6> installer switch).