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 166158 - Exception when invoking "New Kenai project" or "Share on Kenai"
Summary: Exception when invoking "New Kenai project" or "Share on Kenai"
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Team Framework (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 10:01 UTC by Petr Dvorak
Modified: 2009-05-29 13:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2009-05-28 10:01:58 UTC
Product Version: NetBeans IDE 6.7 RC1 (Build 200905280001)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)

1. Open "New Kenai Project" or "Share on Kenai" wizard
-> java.lang.NoSuchFieldException: href
        at java.lang.Class.getField(Class.java:1520)
[catch] at org.codeviation.pojson.Handlers$PojoInfo.addValue(Handlers.java:334)
        at org.codeviation.pojson.Handlers$Generic.addValue(Handlers.java:127)
        at org.codeviation.pojson.Handlers$Generic.string(Handlers.java:95)
        at org.codeviation.pojson.Parser.handleSimpleValue(Parser.java:287)
        at org.codeviation.pojson.Parser.parse(Parser.java:200)
        at org.codeviation.pojson.Parser.parse(Parser.java:92)
        at org.codeviation.pojson.Parser.parse(Parser.java:87)
        at org.codeviation.pojson.PojsonLoad.update(PojsonLoad.java:102)
        at org.codeviation.pojson.PojsonLoad.load(PojsonLoad.java:81)
        at org.codeviation.pojson.PojsonLoad.load(PojsonLoad.java:108)
        at org.netbeans.modules.kenai.KenaiREST.loadPage(KenaiREST.java:169)
        at org.netbeans.modules.kenai.KenaiREST.getServices(KenaiREST.java:182)
        at org.netbeans.modules.kenai.api.Kenai.getServices(Kenai.java:239)
        at org.netbeans.modules.kenai.ui.SourceAndIssuesWizardPanelGUI$3.run(SourceAndIssuesWizardPanelGUI.java:202)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Comment 1 Jan Becicka 2009-05-28 10:19:33 UTC
Caused by API change on kenai:
http://kenai.com/jira/browse/KENAI-724

fixed in cdev 72988005dd53

Fix is safe, I just added annotations to ignore unknown (non existing) fields.





Comment 2 Petr Dvorak 2009-05-28 10:27:19 UTC
Thanks, Honza... This must go in 6.7... Hopefully there are no more API changes in the next few weeks...
Comment 3 Petr Dvorak 2009-05-28 14:02:04 UTC
I have tested the fix (JAR) with:

Product Version: NetBeans IDE 6.7 RC1 (Build 200905280001)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)

It seems to work well, please submit the change for the review and transplant it in 6.7.
Comment 4 Milan Kubec 2009-05-28 14:50:44 UTC
I have reviewed the fix.
Comment 5 Jan Becicka 2009-05-28 14:55:42 UTC
http://hg.netbeans.org/release67/rev/360feb852f43
Comment 6 Quality Engineering 2009-05-29 08:20:06 UTC
Integrated into 'main-golden', will be available in build *200905290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/72988005dd53
User: Jan Becicka <jbecicka@netbeans.org>
Log: #166158: Exception when invoking "New Kenai project" or "Share on Kenai"
Comment 7 Petr Dvorak 2009-05-29 13:34:12 UTC
Verified in:

Product Version: NetBeans IDE 6.7 RC1 (Build 200905282243)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)