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 51051 - Invalid encoding used for pre-instaleld WTK configuration file
Summary: Invalid encoding used for pre-instaleld WTK configuration file
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 19:53 UTC by alampi
Modified: 2006-10-23 16:41 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message log (119.32 KB, text/plain)
2004-11-01 19:55 UTC, alampi
Details
j2me xml file (8.19 KB, text/xml)
2004-11-02 15:43 UTC, alampi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alampi 2004-11-01 19:53:46 UTC
(After installing Mobility Pack,) launching the
IDE throws java.io.IOException.
Comment 1 alampi 2004-11-01 19:55:18 UTC
Created attachment 18656 [details]
message log
Comment 2 Jesse Glick 2004-11-01 20:59:22 UTC
Looks like some problem in j2me.

But Tomas please look at why J2SEPlatformModule.updateSourceLevel is
throwing an NPE after that; poor error recovery?

Yarda I think the "AbstractLookup$ISE: You are trying to modify lookup
from lookup query!" was something that was already fixed, right? Not
sure why it is appearing here.
Comment 3 Adam Sotona 2004-11-02 08:25:10 UTC
Can you please attach the content of your
<userdir>/config/Services/Platforms/org-netbeans-api-java-Platform/
folder.
There is some J2ME platform .xml file that is causing this exception.
Comment 4 Jaroslav Tulach 2004-11-02 09:49:31 UTC
Re. ISE - it is still being thrown for internal purposes you do not
want to know. It is expected that when thrown, it will also be catched
by the AbstractLookup. However this may not always true, as there can
be code that catches everything and rethrows it:

try {
 // blabla
} catch (RuntimeException ex) {
  throw new IOException (...);
}

in such case the ex cannot be caught by the AbstractLookup and can
appear in logs. The only fix (in reasonable timeframe) I can think of
is to rewrite such code to allow runtime exceptions to propagate.
Comment 5 alampi 2004-11-02 15:43:08 UTC
Created attachment 18675 [details]
j2me xml file
Comment 6 alampi 2004-11-02 15:49:11 UTC
Ok, here's the J2ME platform .xml file. If I remove it, no exceptions.
Either way, the IDE does not find the j2me platform. Maybe the
non-English characters in my user name (käyttäjä) are causing this?
BTW, if I uninstall the mobility pack, this file is not removed and
neither is it replaced  if I reinstall it.
Comment 7 Adam Sotona 2004-11-02 16:28:32 UTC
Thanks, this will help us a lot.

I am increasing the priority of this bug to P2 because any time the
user name contains any non-ASCII characters the path to pre-installed
WTK is wrongly encoded inside J2ME_Wireless_Toolkit_2_2_Beta.xml file.

Currently you can delete this file, start the IDE and install the
Wireless Toolkit manually for Java Platform Manager - that should
work. Or specify -userdir <some_folder> command line argument to
override default location in C:\Documents and Settings\käyttäjä\...
But you might have still problems with national characters in paths of
projects if using beta2 (there was another bug of wrong character
encoding fixed after).

Comment 8 Adam Sotona 2004-11-11 13:41:25 UTC
fixed for 4.1 but requires approval for the fix integration into 4.0
Comment 9 Lukas Hasik 2004-11-11 17:21:26 UTC
verified in 4.0, will try in trunk later and then close as verified
Comment 10 Ken Frank 2005-01-20 20:10:34 UTC
since there is bug on wtk about use of non ascii in wtk,
ie 6193955, does this fix mean that user can
install me into a dir with non ascii or multibyte in the name ?

I seem to remember in general from older issues that 
nb did not allow this in general, but maybe that was
fixed.

ken.frank@sun.com
Comment 11 Lukas Hasik 2005-01-21 09:38:08 UTC
Ken, if i remember it this issue fix only that user can use non-ascii
characters in userdir name. There were a problem in mobility with such
userdir name, anyway the problem with wtk remains(run on app fails)
and has to be solved on wtk side.
Comment 12 Tomas Brandalik 2005-01-21 10:42:54 UTC
Currently from wtk point of view you cannot:
- run midlet if path to jar contains non-ascii chars
- run midlet via OTA if path to wtk record store contains non-ascii chars
- midlet name cannot contain non-ascii chars
- jar name cannot contain non-ascii chars