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 221063 - Adding Siemens (Cinterion) TC65 SMTK WTK to Java ME Platforms hangs on "Detecting Java ME platforms"
Summary: Adding Siemens (Cinterion) TC65 SMTK WTK to Java ME Platforms hangs on "Detec...
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2.1
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks: 228551
  Show dependency tree
 
Reported: 2012-10-30 00:32 UTC by obi-wan
Modified: 2013-05-03 00:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of issue. (92.90 KB, image/png)
2012-10-30 00:32 UTC, obi-wan
Details
Dump from window that showed after issue (12.38 KB, text/plain)
2012-10-30 18:22 UTC, obi-wan
Details
Full thread dump from start (73.68 KB, text/plain)
2012-10-30 18:22 UTC, obi-wan
Details
Screenshot after adding Siemens TC65 platforms. (72.26 KB, image/png)
2012-11-01 16:48 UTC, obi-wan
Details
Screenshot when adding new project. (95.95 KB, image/png)
2012-11-01 16:49 UTC, obi-wan
Details
Full dump when adding these platforms (both). (54.50 KB, text/plain)
2012-11-01 16:49 UTC, obi-wan
Details
platform xml file for TC65i WTK (1.05 KB, text/xml)
2013-04-12 14:23 UTC, jthurner
Details
Module with updated detection (531.98 KB, application/octet-stream)
2013-04-15 07:28 UTC, Roman Svitanic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description obi-wan 2012-10-30 00:32:24 UTC
Created attachment 126759 [details]
Screenshot of issue.

Adding Siemens (now Cinterion) Siemens Mobile Toolkit (SMTK) and Wireless Toolkit (WTK) for TC65 to NetBeans Java Platforms is impossible, because it hangs when detecting. On window "Detected Platforms", in "Select Platforms to Install" I have checked: "C:\Program Files\Siemens\SMTK\TC65\WTK (not yet detected)", when I click "Next" window with "Detecting Java ME platforms" and progress bar shows, but nothing happens. Progress bar sticks to 0%, and nothing is moving on. Tried on few computers (including clean install of OS and NB and SMTK). Tried also with version 1.0 and 3.0 (R3) of TC65 WTK (not to confuse with TC65i, which is different model and has different WTK).

The SMTK is available here: http://gsmpager.ru/soft/install-cd_TC65_rev03000-florent(siemensR3).zip
Comment 1 alexander.burdukov 2012-10-30 12:38:39 UTC
Cleared Component field since it does not relate to ME SDK integration
Comment 2 David Strupl 2012-10-30 15:00:52 UTC
Hello, can you please attach a thread dump from the hang? http://wiki.netbeans.org/GenerateThreadDump
Thanks a lot, David
Comment 3 obi-wan 2012-10-30 18:22:08 UTC
Created attachment 126797 [details]
Dump from window that showed after issue
Comment 4 obi-wan 2012-10-30 18:22:36 UTC
Created attachment 126798 [details]
Full thread dump from start
Comment 5 Petr Somol 2012-10-31 09:38:09 UTC
fix preventing the NPE, should resolve this issue:
http://hg.netbeans.org/jet-main/rev/f351c4d7e186
Comment 6 obi-wan 2012-10-31 13:39:54 UTC
I think I will wait for the next release :) I won't compile NB for myself. Thanx for the patch anyway, hope it will be included in the mail release.
Comment 7 obi-wan 2012-10-31 13:40:39 UTC
"main" release of course :)
Comment 8 Quality Engineering 2012-11-01 02:39:14 UTC
Integrated into 'main-golden', will be available in build *201211010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f351c4d7e186
User: Petr Somol <psomol@netbeans.org>
Log: #221063 - Adding Siemens (Cinterion) TC65 SMTK WTK to Java ME Platforms hangs on Detecting Java ME platforms
Comment 9 Stepan Zebra 2012-11-01 07:40:16 UTC
(In reply to comment #6)
> I think I will wait for the next release :) I won't compile NB for myself.
> Thanx for the patch anyway, hope it will be included in the mail release.

Since this emulator is not available for us (source you suggested is really not acceptable, sorry), it would be helpful if you could test the patch. You don't need to build NB yourself, just download and try to use our nightly dev build (see automated builder message in Comment 8) and post result.
Comment 10 obi-wan 2012-11-01 12:19:29 UTC
Yep, nightly build is ok for me to test :) Will test it within a day and give a comment. :)

P.S. Why is this emulator I provided useless to you? I know it >should< be proprietary, and available only with new hardware and after login to siemens website, but it is very old SDK. Even Siemens doesn't have it now, Cinterion also. Thats why some websites published it "for free" (it wasn't paid anytime, just not available freely). :)
Comment 11 obi-wan 2012-11-01 16:46:36 UTC
I checked. It added ok, without Null Pointer Exception, but the platform is now highlighted in red, and appropriate device is also red and strike through. When creating new profile, it says than selected platform does not support IMP-NG. I'd like to tell, that I have also (on other computer) older NB (6.9.1), and there everything is working OK. And when I installed 7.2.1, and it imported settings from 6.9.1 it also worked ok. Only Adding form 7.2.1 and similar doesn't work (I didn't checked versions between 6.9.1 and 7.2.1). I will attach screenshots and full dump again (I have tried with two SKDs, normal and newer version 3 (named R3), thats why you will see two different platforms, but they all worked on 6.9.1).
Comment 12 obi-wan 2012-11-01 16:48:42 UTC
Created attachment 126930 [details]
Screenshot after adding Siemens TC65 platforms.
Comment 13 obi-wan 2012-11-01 16:49:14 UTC
Created attachment 126932 [details]
Screenshot when adding new project.
Comment 14 obi-wan 2012-11-01 16:49:47 UTC
Created attachment 126933 [details]
Full dump when adding these platforms (both).
Comment 15 Stepan Zebra 2012-11-06 10:05:23 UTC
Thank you for the test and provided data. We'll take another look on the issue.
NB 7.2.1 has modified platform detection to support IMP-NG profile which was recently added to the new ME SDK 3.2. These modifications likely introduced compatibility problems with this older WTK.
Newest NB which should work for you should be *unupdated* 7.2. You may give it a try, if you don't want to stick with 6.9.1. Download from
http://netbeans.org/downloads/7.2/
and disable updates after installation.
Comment 16 obi-wan 2012-11-06 13:32:55 UTC
Hello.

Thanks for your concern. As for now, I have the 6.9.1 still installed, with Siemens SDKs, and every new NB I install, imports settings from this 6.9.1, so I have working Siemens SDKs even on 7.2.1 with updates. But thats for now, and only for me :) When I plan to reinstall my OS, It won't be so easy :) And everyone who doesn't know that this sdk is broken on >7.2 is still in trouble :) Looking forward for resolution to this problem :)
Comment 17 obi-wan 2013-03-28 22:52:49 UTC
The problem still persists. I checked 7.3 and newest nightly build of 7.3.1. Every where the same. Automatic adding of Siemens TC65 WTK cannot find within it any profiles (should be IMP-NG), so after adding platform is colored in red in "Java Platform Manager", and any attempt to make new TC65 project ends with "Platform device does not support IMP-NG". Any help with that? The problem is since NB 7.2
Comment 18 David Strupl 2013-04-09 11:22:42 UTC
Assigning to the new owner of javame modules.
Comment 19 Roman Svitanic 2013-04-11 12:48:18 UTC
I'm marking this issue as resolved for now, because it isn't reproducible (abandoned Siemens platform). Please use NetBeans 6.9.1 with this Java ME platform or import user directory from 6.9.1 to newer version. If there would be any news regarding this issue, we will update.
Comment 20 PolesApart 2013-04-11 12:51:56 UTC
Abandoned? Cinterion still manufactures, it works fine on nb 7.2, can you elaborate on that?
Comment 21 Roman Svitanic 2013-04-11 13:31:35 UTC
Please see Comment #10 for more details where author of this issue writes that mentioned SDK is very old.
Comment 22 PolesApart 2013-04-11 13:37:56 UTC
It's based on WTK 2.52, which is still supported on Netbeans as it's the only WTK available e.g. for Linux users.

The main problem for me is that I can't get it to compile code because netbeans accepts the custom WTK when adding it, but no longer accepts it later when mananing the projects which depends on it. 

We're talking about resources netbeans does support and that worked fine: I don't care for the emulator or other stuff, but I suspect it would work (on windows) should this bug is truly resolved.
Comment 23 obi-wan 2013-04-11 18:44:27 UTC
Hello.
I meant "very old", because that part of Siemens was bought by some company a few times as I remember, and no one provides this SDK on their website now. I think they simply forgot that Siemens had such SDK. The "new" Cinterion SDK will not work for my TC65 (it only works for TC65i as far as I know). The TC65 SDK Rel.3 is dated 2008 i think, so it is not "old".
The problem is EASILY reproducible with the SDK I provided in first comment. It is not "pirated" or illegal version, so I don't understand why You guys refuse to check that. You messed up latest versions of NB, got noticed about that, and normal users like I, meets such a refuse to solve the problem. I think that for normal developer it will be less than a few minutes to solve that looking inside source code.
Comment 24 jthurner 2013-04-12 14:18:58 UTC
The same problem is present with the WTK for the (newer) TC65i model. 

When adding the platform, profiles for the device are not detected, and you end up with an incomplete xml file in:

userdir\AppData\Roaming\NetBeans\X.X\config\Services\Platforms\org-netbeans-api-java-Platform\

in case you do not want to import the whole user folder, it should be enough to overwrite this xml file with one generated by pre-netbeans 7.2.1 (after adding the WTK) .
For the TC65i SDK, I have attached this file (when generated by 7.2.1 and newer, the two "profile" lines are missing).

This was likely introduced with
http://hg.netbeans.org/main-golden/rev/4a4b019b26c2
or any other of bug 216133, as hinted in comment 15.

I can try to dig a bit deeper if I find the time over the weekend.
Comment 25 jthurner 2013-04-12 14:23:29 UTC
Created attachment 133474 [details]
platform xml file for TC65i WTK

move into 
userdir\AppData\Roaming\NetBeans\X.X\config\Services\Platforms\org-netbeans-api-java-Platform\
Comment 26 PolesApart 2013-04-12 15:02:52 UTC
Perhaps my problem is elsewhere; I'm on Linux.

Having the xml transposed from my 7.2 to 7.3 release still doesn't make it possible to have the ide recognize the custom platform.

When opening a project, it complains that the platform doesn't exist. On the platform list, CINTERION_WTK appears as red. It's the same result as if I add the platform manually on 7.3
Comment 27 jthurner 2013-04-13 15:24:02 UTC
The commit breaking profile detection for TC65/TC65i WTKs is indeed rev 4a4b019b26c2 (accept only device profiles given by emulator -Xquery). With this commit, device profiles are only added if their name starts with the profile found in the "device-name.version.profile" property returned by "emulator -Xquery". rev f351c4d7e186 fixed a NPE in case -Xquery does not return this property.

With the Siemens WTKs, "emulator -Xquery" does not return the "device-name.version.profile" property, hence the device profiles are skipped. 

According to the UEI spec (1.0.2), returning "device-name.version.profile" is optional, so it seams relying on it for profile detection would not be desirable.


@PolesApart:

On Linux, I never got Netbeans to recognize the Siemens WTK folder as a Java platform at all, does this work for you (unrecognized device aside)?
Does importing the whole userdir from a 7.2 installation make it work on 7.3?
Comment 28 jthurner 2013-04-13 15:45:39 UTC
Emulator output from the TC65i WTK:

#emulator.exe -Xquery:

# List of supported devices
device.list: IMP_NG_TC65I

# Properties for device IMP_NG_TC65I
IMP_NG_TC65I.description: Cinterion IMP-NG TC65I Module
IMP_NG_TC65I.bootclasspath: E:/CMTK/TC65I/WTK/lib/classes.zip

#emulator -version:

Cinterion IMP-NG TC65I Wireless Toolkit
Version: 1.3.2
Profile: IMP-NG
Configuration: CLDC-1.1
Comment 29 PolesApart 2013-04-13 15:51:35 UTC
(In reply to comment #27)
> @PolesApart:
> 
> On Linux, I never got Netbeans to recognize the Siemens WTK folder as a Java
> platform at all, does this work for you (unrecognized device aside)?

The 'add custom platform' wizard recogs and adds ok. But later it complains that the folder doesn't contain a valid platform.

> Does importing the whole userdir from a 7.2 installation make it work on 7.3?


What do you mean by whole userdir? rm -rf ~/.netbeans/7.3 && cp -a ~/.netbeans/7.2 ~/.netbeans/7.3 ?
Comment 30 obi-wan 2013-04-14 17:53:27 UTC
Emulator output from the TC65 WTK:

C:\Program Files\Siemens\SMTK\TC65\WTK\bin>emulator.exe -Xquery
# List of supported devices
device.list: IMP_NG_DefaultDevice

# Properties for device IMP_NG_DefaultDevice
IMP_NG_DefaultDevice.description: Siemens IMP-NG Default Device
IMP_NG_DefaultDevice.bootclasspath: C:/Program Files/Siemens/SMTK/TC65/WTK/lib/c
lasses.zip


C:\Program Files\Siemens\SMTK\TC65\WTK\bin>emulator.exe -version
Siemens IMP-NG Wireless Toolkit
Version: 1.0.4
Profile: IMP-NG
Configuration: CLDC-1.1
------------------------------------------
Emulator output from the TC65 WTK R3:

C:\Program Files\Siemens\SMTK\TC65_R3\WTK\bin>emulator.exe -Xquery
# List of supported devices
device.list: IMP_NG_TC65_R3

# Properties for device IMP_NG_TC65_R3
IMP_NG_TC65_R3.description: Siemens IMP-NG TC65 R3 Module
IMP_NG_TC65_R3.bootclasspath: C:/Program Files/Siemens/SMTK/TC65_R3/WTK/lib/clas
ses.zip


C:\Program Files\Siemens\SMTK\TC65_R3\WTK\bin>emulator.exe -version
Siemens IMP-NG TC65 R3 Wireless Toolkit
Version: 1.2.2
Profile: IMP-NG
Configuration: CLDC-1.1

Hope this helps.
Comment 31 jthurner 2013-04-14 22:06:09 UTC
Since multiple issues are mixing in this report, and the original issue was resolved with rev f351c4d7e186, I have opened a new report for the device profile detection issue here: bug 228551

rsvitanic, I know this is WONTFIX due to old custom WTK but I believe the new report is stated more generally. 


@PolesApart:
Your issue is different, and somewhat more severe than the bug with automatic profile detection on Windows. In Linux, the WTK is not recognized as valid (custom) Java Platform in 7.3 (the platform itself works fine on windows). This is specific to Linux (and possibly OSX), and was introduced after 7.2.1. We should probably open a new bug for it, but I'm not sure if mobility is the right component for this.

> What do you mean by whole userdir? rm -rf ~/.netbeans/7.3 && cp -a
> ~/.netbeans/7.2 ~/.netbeans/7.3 ?

If you delete/move the 7.3 userfolder, Netbeans asks on first start if you want to import the old userfolder. This is a workaround for the profile detection bug on Windows (comment 19).
Comment 32 Roman Svitanic 2013-04-15 07:28:36 UTC
Created attachment 133496 [details]
Module with updated detection

Please try CLDC Platform module with updated detection of older ME platforms which is in attachment.

1. Remove all undetected platforms
2. Close NetBeans
3. Backup {NETBEANS_INSTALLATION_FOLDER}\mobility\modules\org-netbeans-modules-mobility-cldcplatform.jar
4. Copy jar from attachment and replace original module in {NETBEANS_INSTALLATION_FOLDER}\mobility\modules\org-netbeans-modules-mobility-cldcplatform.jar
5. restart NetBeans and try to add a platform
Comment 33 jthurner 2013-04-15 12:59:14 UTC
Your update fixes the platform detection bug for TC65i/TC65. 
Thanks.
Comment 34 PolesApart 2013-04-15 13:04:05 UTC
(In reply to comment #31)
> @PolesApart:
> Your issue is different, and somewhat more severe than the bug with automatic
> profile detection on Windows. In Linux, the WTK is not recognized as valid
> (custom) Java Platform in 7.3 (the platform itself works fine on windows). This
> is specific to Linux (and possibly OSX), and was introduced after 7.2.1. We
> should probably open a new bug for it, but I'm not sure if mobility is the
> right component for this.

Agreed on the new bug report; Not sure which component to point to.

>
> > What do you mean by whole userdir? rm -rf ~/.netbeans/7.3 && cp -a
> > ~/.netbeans/7.2 ~/.netbeans/7.3 ?
> 
> If you delete/move the 7.3 userfolder, Netbeans asks on first start if you want
> to import the old userfolder. This is a workaround for the profile detection
> bug on Windows (comment 19).

As a matter of fact, I don't think this bug manifests in Linux at all, since I can detect the WTK either way: If I import the old 7.2 profile as you say, the custom WTK is there; If I delete it and re-add, it's there as well. The generated XML seems correct either way. I also tested the updated module that was posted on this thread recently (w/ the fix for windows) and the behavior is the same.

So indeed the problem on Linux is elsewhere.
Comment 35 obi-wan 2013-04-15 13:47:33 UTC
(In reply to comment #32)
> Created attachment 133496 [details]
> Module with updated detection
> 
> Please try CLDC Platform module with updated detection of older ME platforms
> which is in attachment.
> 
> 1. Remove all undetected platforms
> 2. Close NetBeans
> 3. Backup
> {NETBEANS_INSTALLATION_FOLDER}\mobility\modules\org-netbeans-modules-mobility-cldcplatform.jar
> 4. Copy jar from attachment and replace original module in
> {NETBEANS_INSTALLATION_FOLDER}\mobility\modules\org-netbeans-modules-mobility-cldcplatform.jar
> 5. restart NetBeans and try to add a platform

Now platform detection and auto profile adding works OK. I have been able to add my TC65 SDK without any troubles. Will this patch be added to mainline official release of NB?
Comment 36 Roman Svitanic 2013-04-15 15:50:11 UTC
Fixed in jet-main:
http://hg.netbeans.org/jet-main/rev/0799e892ab0d
Comment 37 Stepan Zebra 2013-04-16 09:21:50 UTC
Closing this issue, see bug 228551 for the fix of the autodetection problem.

@PolesApart: please check your scenario after the integration of bug 228551 and open a new issue if the problem still persists
Comment 38 Quality Engineering 2013-04-18 02:18:21 UTC
Integrated into 'main-golden', will be available in build *201304172301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0799e892ab0d
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: Java ME CLDC Platform detection modified - #221063 and #228551
Comment 39 Quality Engineering 2013-05-03 00:11:19 UTC
Integrated into 'releases', will be available in build *201305022200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/680cc04c5388
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: Java ME CLDC Platform detection modified - #221063 and #228551