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 171728 - Test RESTful services action doesn't work
Summary: Test RESTful services action doesn't work
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
: 171494 171882 171896 171899 171916 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-08 15:53 UTC by Milan Kuchtiak
Modified: 2010-01-05 07:12 UTC (History)
2 users (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 Milan Kuchtiak 2009-09-08 15:53:50 UTC
An exception occurs :

Deployment error:
null
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:227)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:135)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.NullPointerException
        at org.netbeans.modules.j2ee.deployment.impl.ServerFileDistributor.distribute(ServerFileDistributor.java:147)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.distributeChanges(TargetServer.java:231)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:637)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:192)
        ... 17 more
BUILD FAILED (total time: 0 seconds)

If project is cleaned, it will work.
Comment 1 Milan Kuchtiak 2009-09-08 16:43:37 UTC
Reassigning to J2eeserver to evaluate.

To reproduce:
- create Rest Service in web project (Java EE 6/Java EE 5, GlassFish V3)
- deploy
- invoke Test RESTful Web Services action

looks like the childModuleFiles is null in ServerFileDistributor:distribute method (line 147).
Comment 2 Petr Hejl 2009-09-08 17:10:08 UTC
I think recent change http://hg.netbeans.org/main-golden/rev/f6b907f91004 in computeResultTMID() introduced this.

GFv3 is now stating that deployed web module has as a child another (one or more) web module (the same app actually).

Reported usecase works on tomcat.
Comment 3 Vince Kraemer 2009-09-08 19:19:22 UTC
thanks for the analysis. you were right.
Comment 4 Petr Hejl 2009-09-10 09:57:06 UTC
*** Issue 171882 has been marked as a duplicate of this issue. ***
Comment 5 Petr Hejl 2009-09-10 10:32:56 UTC
*** Issue 171896 has been marked as a duplicate of this issue. ***
Comment 6 Milan Kuchtiak 2009-09-10 11:58:04 UTC
*** Issue 171899 has been marked as a duplicate of this issue. ***
Comment 7 Petr Suchomel 2009-09-10 13:09:07 UTC
*** Issue 171916 has been marked as a duplicate of this issue. ***
Comment 8 Petr Jiricka 2009-09-10 14:37:14 UTC
Lots of duplicates -> P1.
Comment 9 Vince Kraemer 2009-09-10 18:27:37 UTC
the fix has been in web-main for a while... but it has not been pushed into an external build/main-golden

http://hg.netbeans.org/web-main/rev/dfd98232442e

I am reluctant to mark this as fixed until folks can actually get the bits...
Comment 10 Quality Engineering 2009-09-11 21:43:04 UTC
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dfd98232442e
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #171728: do not let a module be listed as child of self
Comment 11 Vince Kraemer 2009-09-11 22:26:07 UTC
in main-golden
Comment 12 Petr Hejl 2009-09-14 13:08:15 UTC
*** Issue 171494 has been marked as a duplicate of this issue. ***
Comment 13 Jaroslav Pospisil 2010-01-05 07:12:04 UTC
v.