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.
Summary: | Adding Siemens (Cinterion) TC65 SMTK WTK to Java ME Platforms hangs on "Detecting Java ME platforms" | ||
---|---|---|---|
Product: | javame | Reporter: | obi-wan |
Component: | -- Other -- | Assignee: | Roman Svitanic <rsvitanic> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | jthurner, PolesApart |
Priority: | P3 | ||
Version: | 7.2.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 228551 | ||
Attachments: |
Screenshot of issue.
Dump from window that showed after issue Full thread dump from start Screenshot after adding Siemens TC65 platforms. Screenshot when adding new project. Full dump when adding these platforms (both). platform xml file for TC65i WTK Module with updated detection |
Description
obi-wan
2012-10-30 00:32:24 UTC
Cleared Component field since it does not relate to ME SDK integration Hello, can you please attach a thread dump from the hang? http://wiki.netbeans.org/GenerateThreadDump Thanks a lot, David Created attachment 126797 [details]
Dump from window that showed after issue
Created attachment 126798 [details]
Full thread dump from start
fix preventing the NPE, should resolve this issue: http://hg.netbeans.org/jet-main/rev/f351c4d7e186 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. "main" release of course :) 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 (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. 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). :) 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). Created attachment 126930 [details]
Screenshot after adding Siemens TC65 platforms.
Created attachment 126932 [details]
Screenshot when adding new project.
Created attachment 126933 [details]
Full dump when adding these platforms (both).
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. 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 :) 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 Assigning to the new owner of javame modules. 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. Abandoned? Cinterion still manufactures, it works fine on nb 7.2, can you elaborate on that? Please see Comment #10 for more details where author of this issue writes that mentioned SDK is very old. 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. 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. 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. 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\
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 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? 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 (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 ? 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. 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). 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
Your update fixes the platform detection bug for TC65i/TC65. Thanks. (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. (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? Fixed in jet-main: http://hg.netbeans.org/jet-main/rev/0799e892ab0d 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 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 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 |