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 133160 - [JavaFX App] NPE when Dnd any SaaS service to a POJO inside JavaFX app
Summary: [JavaFX App] NPE when Dnd any SaaS service to a POJO inside JavaFX app
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on: 133795
Blocks:
  Show dependency tree
 
Reported: 2008-04-18 03:22 UTC by Ayub Khan
Modified: 2008-05-30 22:53 UTC (History)
0 users

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 Ayub Khan 2008-04-18 03:22:51 UTC
Steps to reproduce

1) Install NB6.1 RC2
2) Install latest JavaFX plugins from http://javafx.netbeeans.org into NB6.1 RC2 IDE
3) Restart the IDE
4) Create a JavaFX App
5) Create a java main class Main.java inside this app
6) Expand Web Services node->Flickr in the "Service" tab of the IDE
7) Dnd photo_getRecent to main method of Main.java. Here you should see NPE
Comment 1 Ayub Khan 2008-04-18 03:26:44 UTC
trace:

java.lang.NullPointerException
        at org.netbeans.modules.websvc.saas.codegen.java.JaxRsEditorDrop$1.run(JaxRsEditorDrop.java:153)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

The exception is from

org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries:387

This scenario works fine on a plain Java App.
Comment 2 Peter Liu 2008-04-23 18:59:56 UTC
Ayub, Lukas thinks this issue is important to fix for the patch1 release since it is related to javafx. Can you get this
issue fixed in the trunk for the 4/24 deadline?

Comment 3 Ayub Khan 2008-04-23 20:02:41 UTC
Workaround:

1. Dnd SaaS node to (a static method in a ) POJO in a plain Java App.
2. Add this Java App as a dependency to JavaFX app.
3. From JavaFX app, try to invoke the static method to get the SaaS app to work.
Comment 4 Ayub Khan 2008-04-23 20:06:10 UTC
Lukas,

This issue depends on JavaFX Project type. If they fix this on the UC, then we don't have to do anything, except release
note this issue.

-Ayub
Comment 5 Peter Liu 2008-05-27 23:13:29 UTC
Ayub, could you make sure this issue gets resolved on the JavaFX side for 6.5M1.

Comment 6 Ayub Khan 2008-05-30 22:53:10 UTC
Issue 133795 is fix verified from 05/30/08 nbms.