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 98771 - netbeans throws Null pointer Exception
Summary: netbeans throws Null pointer Exception
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 10:38 UTC by gc140975
Modified: 2007-04-09 07:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
attachment (132.51 KB, application/octet-stream)
2007-03-23 10:39 UTC, gc140975
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gc140975 2007-03-23 10:38:57 UTC
netbeans throws Null pointer Exception when building the SA 

Pls find the attachement project ,build the project observe that following error
message 

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
init-deploy:
deps-clean:
pre-init:
netbeans.home: C:\Program Files\netbeans-6.0-200703191900\platform7
netbeans.user: C:\Documents and Settings\gc140975\.netbeans\dev
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init-taskdefs:
init:
deps-clean:
do-clean:
Deleting directory D:\test1\SynchronousSample6\build
post-clean:
clean:
do-clean:
Deleting directory D:\test1\SynchronousSample6Application\build
Deleting directory D:\test1\SynchronousSample6Application\dist
Deleting directory D:\test1\SynchronousSample6Application\src\jbiServiceUnits
post-clean:
clean:
deps-jar:
pre-init:
netbeans.home: C:\Program Files\netbeans-6.0-200703191900\platform7
netbeans.user: C:\Documents and Settings\gc140975\.netbeans\dev
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init-taskdefs:
init:
pre-dist:
Created dir: D:\test1\SynchronousSample6\build
Copying 8 files to D:\test1\SynchronousSample6\build
pre-init:
netbeans.home: C:\Program Files\netbeans-6.0-200703191900\platform7
netbeans.user: C:\Documents and Settings\gc140975\.netbeans\dev
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init-taskdefs:
init:
deps-sub-project:
PackageRetrievedFiles:
Created dir: D:\test1\SynchronousSample6\build\dependentProjectFiles
dist_se:
Building jar: D:\test1\SynchronousSample6\build\SEDeployment.jar
Expanding: D:\test1\SynchronousSample6\build\SEDeployment.jar into
D:\test1\SynchronousSample6Application\src\jbiServiceUnits\SynchronousSample6
DEPRECATED - The copyfile task is deprecated.  Use copy instead.
Deleting directory
D:\test1\SynchronousSample6Application\src\jbiServiceUnits\SynchronousSample6\META-INF
Expanding: D:\test1\SynchronousSample6\build\SEDeployment.jar into
D:\test1\SynchronousSample6Application\src\jbiServiceUnits\META-INF\catalogData\SynchronousSample6
deps-javaee-jar:
jbi-build:
Created dir: D:\test1\SynchronousSample6Application\build\META-INF
Building jar: D:\test1\SynchronousSample6Application\build\BCDeployment.jar
 copying Sub-Assembly:
D:\test1\SynchronousSample6Application\build\SynchronousSample6.jar
java.lang.NullPointerException
        at
org.netbeans.modules.compapp.projects.jbi.anttasks.BuildServiceAssembly.GenerateSaDescriptor(BuildServiceAssembly.java:472)
        at
org.netbeans.modules.compapp.projects.jbi.anttasks.BuildServiceAssembly.execute(BuildServiceAssembly.java:267)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor80.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:256)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:438)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:129)
 Build SA Descriptor Failed: java.lang.NullPointerException
Create D:\test1\SynchronousSample6Application\build/sun-http-binding.jar for
binding component sun-http-binding
Writing out to file:
D:\test1\SynchronousSample6Application\src\jbiServiceUnits\sun-http-binding\jbi.xml
java.lang.NullPointerException
        at
org.netbeans.modules.compapp.projects.jbi.anttasks.CasaBuilder.getJBIServiceUnitComponentName(CasaBuilder.java:513)
        at
org.netbeans.modules.compapp.projects.jbi.anttasks.CasaBuilder.createCasaServiceUnitsElement(CasaBuilder.java:219)
        at
org.netbeans.modules.compapp.projects.jbi.anttasks.CasaBuilder.createCasaDocument(CasaBuilder.java:157)
        at
org.netbeans.modules.compapp.projects.jbi.anttasks.BuildServiceAssembly.execute(BuildServiceAssembly.java:309)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor80.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:256)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:438)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:129)
Build SA Failed: java.lang.NullPointerException
Deleting: D:\test1\SynchronousSample6Application\build\BCDeployment.jar
Created dir: D:\test1\SynchronousSample6Application\dist
Building jar:
D:\test1\SynchronousSample6Application\dist\SynchronousSample6Application.zip
jbi-clean-build:
BUILD SUCCESSFUL (total time: 1 second)
Comment 1 gc140975 2007-03-23 10:39:32 UTC
Created attachment 39860 [details]
attachment
Comment 2 Vladimir Yaroslavskiy 2007-04-02 14:54:35 UTC
I can't see that the problem is in validation (see log of exception). Is problem
in jbi?
Comment 3 Jun Qian 2007-04-06 02:00:49 UTC
The problem was due to corrupted properties in compapp project (mismatching
jbi.content.additional and jbi.content.component) probably due to recent
component name change.  

This type of mis-configuration is now automatically fixed behind the scene when
compapp is opened in NetBeans and/or when reference problem, if any, is resolved.

Fixed in hula build 070405_24.
Comment 4 srinivaschintalapati 2007-04-09 07:55:42 UTC
Verified and able to build the attached project.
Build#
NetBeans IDE Dev (Build 20070409-0305)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Windows XP version 5.1 running on x86
en_US (nb); Cp1252