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 185542 - [69cat] Unknown Argument for JnlpDownloadServlet
Summary: [69cat] Unknown Argument for JnlpDownloadServlet
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Adam Sotona
URL:
Keywords:
: 181687 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-05 17:33 UTC by rationalpi
Modified: 2010-05-11 08:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project with the build error. (6.78 KB, application/zip)
2010-05-05 17:35 UTC, rationalpi
Details
New Project Window Lets User Create JavaFX Project Without Main Class (88.05 KB, image/png)
2010-05-07 16:54 UTC, rationalpi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rationalpi 2010-05-05 17:33:59 UTC
[ JDK VERSION : 1.6.* ]

Project gives the following error while trying to build it.

ERROR: Unknown argument:
http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadSe
rvlet/C%3A/home/josh/Projects/TempJfx2/dist/

Issue is discussed here:
http://forums.netbeans.org/ntopic10403.html
http://www.techienuggets.com/Detail?tx=74948

Unknown what series of actions resulted in this error. Created project, cleaned
project. Tried to build project again. Project is attached.
Comment 1 rationalpi 2010-05-05 17:35:24 UTC
Created attachment 98511 [details]
Project with the build error.

Executing the build command against this project creates the error message.
Comment 2 rationalpi 2010-05-05 18:25:11 UTC
I can no longer build and JavaFX projects due to this error. Will attempt to reinstall NetBeans. Promoted to P1.
Comment 3 rationalpi 2010-05-05 19:10:18 UTC
The following pages might be relevant.

http://echelog.matzon.dk/logs/browse/netbeans/1235516400
http://www.mentby.com/vaziocs/
https://netbeans.org/bugzilla/show_bug.cgi?id=163386
https://netbeans.org/bugzilla/show_bug.cgi?id=158494

Issue 163386 has more detail with the error message. It's marked as a duplicate of 158494 that says that the issue has to do with a project that does not have a Main class. Issue 158494 is marked as an enhancement. This issue was originally reported in February, 2009. In my opinion it should be reclassified as a DEFECT and worked sooner rather than later. It's completely legitimate to create a JavaFX project without a Main class. The inability to build a project and an error message that has offers nothing towards resolution is only going to be a discouragement to new JavaFX developers.
Comment 4 Adam Sotona 2010-05-06 06:54:38 UTC
Attached project does not specify main application class so it cannot be compiled.
Compilation error message is clearly saying this information.
The fact that JavaFX project should be asking for the main class through an UI (when user needs to compile the project) is tracked in issue #158494
The dialog with selection of the main class appears correctly when you try to execute the project. 

You are trying to use JavaFX projects as libraries which is unsupported by the JavaFX architecture (see http://javafx-jira.kenai.com/browse/RT-2947 )
Comment 5 rationalpi 2010-05-06 20:49:39 UTC
RT-2947 is marked as critical and should be worked.

Until RT-2947 is worked, I can't see a reason why JavaFX couldn't support compilation (not execution) of a project that does not contain a Main class.

If, for some reason, it's not possible to compile the JavaFX project without a main class, then the error message received after issuing the *compile* command (not the execute command) should be changed to something that says, "Currently JavaFX does not support compilation of projects that do not have a main class specified. Please specify a main class under... "

This error message is not helpful:
ERROR: Unknown argument:
http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadSe
rvlet/C%3A/home/josh/Projects/TempJfx2/dist/

A search of the web reveals a number of people that are completely stumped by this error message.
Comment 6 Adam Sotona 2010-05-07 06:33:27 UTC
First the explanation: it is not possible to compile JavaFX project without a main class specified, it is a mandatory argument of the javafxpackager.

Decreasing the priority of this issue as it cannot be reproduced without an intentional user action. User must manually set the main class of a project to an empty string.

Any new project created without the main class is displaying correct error message
"ERROR: Application class is not specified." (see issue #158494)
Comment 7 rationalpi 2010-05-07 16:53:22 UTC
I did not manually specify the main class as an empty String. I simply used the project and it resulted in the error message.

Also, if it's not possible to compile a JavaFX project without a main class, then NetBeans should prevent the user from having a project where a main class is not specified. If the user tries to delete the main class, it should prompt for another class or not let them do it. If the user tries to specify an empty String, NetBeans should prevent them from doing so. Currently NetBeans lets the user create a project without a main class (see screenshot).
Comment 8 rationalpi 2010-05-07 16:54:22 UTC
Created attachment 98644 [details]
New Project Window Lets User Create JavaFX Project Without Main Class
Comment 9 Adam Sotona 2010-05-10 13:39:04 UTC
Fixed in http://hg.netbeans.org/javafx/rev/f7129366059d by a new fail check during each build, plus the main class selection UI can appear now even before project compilation.
Comment 10 Adam Sotona 2010-05-11 08:14:16 UTC
*** Bug 181687 has been marked as a duplicate of this bug. ***