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.
A user cannot build either the Synchronous or Asynchronous samples with the same error in the build log: deploy -> --- snip Copying 1 file to C:\javaproj\SynchronousSample1\SynchronousSample1Application\src\jbiServiceUnits Created dir: C:\javaproj\SynchronousSample1\SynchronousSample1Application\build\META-INF Building jar: C:\javaproj\SynchronousSample1\SynchronousSample1Application\build\BCDeployment.jar Validating CompApp project... C:\javaproj\SynchronousSample1\SynchronousSample1Application\src\conf\AssemblyInformation.xml (The system cannot find the file specified) : C:\javaproj\SynchronousSample1\SynchronousSample1Application\src\conf\AssemblyInformation.xml java.lang.NullPointerException at org.netbeans.modules.compapp.projects.jbi.anttasks.BuildServiceAssembly.execute(BuildServiceAssembly.java:268) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor253.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:105) 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:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Build SA Failed: java.lang.NullPointerException Deleting: C:\javaproj\SynchronousSample1\SynchronousSample1Application\build\BCDeployment.jar Created dir: C:\javaproj\SynchronousSample1\SynchronousSample1Application\dist Building jar: C:\javaproj\SynchronousSample1\SynchronousSample1Application\dist\SynchronousSample1Application.zip run-jbi-deploy: C:\javaproj\SynchronousSample1\SynchronousSample1Application\nbproject\build-impl.xml:213: null BUILD FAILED (total time: 0 seconds) Apparently AssemblyInformation.xml is not being generated for some reason.
build number?
The user claimed 6.1 final, though he was using a 6.0-based tutorial.
I tried with NetBeans 6.1 final (Build 200804211638): create, deploy and test AsynchronousSample, SynchronousSample and TravelReservationService samples, everything works fine.
I am experiencing the error mentioned in the bug summary. Root cause: composite app projects are all missing an AssemblyInformation.xml file. Netbeans details: Product Version: NetBeans IDE 6.1 (Build 200804211638) Java: 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\cfreyer\.netbeans\6.1 This process is repeatable, every time I try it: 1. File-->New Project-->Samples-->SOA-->Travel Reservation Service 2. Build the TravelReservationService project....successful. 3. Open the TravelReservationServiceApplication project, double-click on the ServiceAssembly icon which opens the CASA file in the editor window. 4. In the editor window, click the hammer icon (i.e. build). (Alternatively, right-click on the project name and choose build or clean-and-build). The build process has a stack trace in the middle of it saying there is no ServiceAssembly.xml file, but the build reports "BUILD SUCCESSFUL" at the end. The result is that the services found in the JBI module are not detected and the SOAP bindings are not built for the project. Here is the output of my build process: pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: init-deploy: deps-jar: init: Building jar: C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationService\build\SEDeployment.jar dist_se: Expanding: C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationService\build\SEDeployment.jar into C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\src\jbiServiceUnits\TravelReservationService Moving 1 file to C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\src\jbiServiceUnits\TravelReservationService Moving 1 file to C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\src\jbiServiceUnits\META-INF\TravelReservationService deps-javaee-jar: jbi-build: Copying 1 file to C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\src\jbiServiceUnits Building jar: C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\build\BCDeployment.jar Validating CompApp project... C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\src\conf\AssemblyInformation.xml (The system cannot find the file specified) : C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\src\conf\AssemblyInformation.xml java.lang.NullPointerException at org.netbeans.modules.compapp.projects.jbi.anttasks.BuildServiceAssembly.execute(BuildServiceAssembly.java:268) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor298.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:105) 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:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Build SA Failed: java.lang.NullPointerException Deleting: C:\Documents and Settings\cfreyer\My Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApplication\build\BCDeployment.jar BUILD SUCCESSFUL (total time: 0 seconds)
In Summary of the issue you wrote "Both Asynchronous and Synchronous samples cannot be built" but the last description says about TRS sample (it is built fine) and that the problem is in ServiceAssembly. Please describe the issue precisely! Also please correct the Summary. I tried with NetBeans 6.1 final (Build 200804211638) again and again: all SOA samples work fine (create, build, deploy, test). Did you start IDE with fresh user dir? I built TRS: no any exceptions, can't reproduce it. Can you reproduce the issue with another projects? If yes, please attach it.
The original bug was created by ksorokin, apparently on behalf of someone else. But that person did not give the details you asked for. So when I found this bug, I tried to offer the missing details. I got the error first when building a Composite Application for work. Then I built the TRS example to learn from it (hoping to find what I did wrong in my project), but it gave the same error. Same thing for the Sync and Async examples. I will upload the TRS projects from my filesystem. If you want to see other output(s), please let me know. You mentioned a 'fresh user dir'. I am working on this composite application using a Project Group where this is the only project being displayed. But I am *not* working on an empty user directory. If it is possible to switch project directories in NetBeans (similar to switching workspaces in Eclipse), please let me know how. Thanks very much. Attachment to follow.
Created attachment 63279 [details] Travel Reservation System parent folder + 3 project folders
As it was mentioned, it is not SOA sample specific. The bug happens when building a Composite Application for work (not TRS) and happens in Service Assembly while building (step 4). So, I reassigning to the Service assembly editor for next investigation. I tried with NetBeans 6.1 final (Build 200804211638) with attached project: 1. Open TRS bpel and compapp projects 2. Build TRS bpel project: successful 3. Open TRS compapp project 4. Open Service Assembly editor 5. Click the hammer icon (i.e. build): successful, no exceptions
How to run NetBeans with fresh dir: you can start NetBeans with command line argument to set another user dir: nb.exe --userdir <new user home>