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 177138 - NPE when building the attached project
Summary: NPE when building the attached project
Status: CLOSED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 15:12 UTC by Kirill Sorokin
Modified: 2009-12-07 23:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (8.67 KB, application/zip)
2009-11-18 15:12 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2009-11-18 15:12:34 UTC
Created attachment 91295 [details]
Sample project

When I build or run validation on BPEL in the attached project I get the following NPE 9see below). The cause of it is in the misspelled xsd:result type in proc-1.xsd (intended to be xsd:string). Filing as P2 to make sure it is evaluated before GF ESB v2.2, as there might be implications. 

java.lang.NullPointerException
        at org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.ValidationUtil.getSchemaComponentTypeName(ValidationUtil.java:220)
        at org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.ValidationUtil.findBuiltInType(ValidationUtil.java:182)
        at org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.ValidationUtil.getBuiltInSimpleType(ValidationUtil.java:113)
        at org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.ValidationUtil.getBasedSimpleType(ValidationUtil.java:79)
        at org.netbeans.modules.bpel.validation.xpath.Validator$1.visit(Validator.java:170)
        at org.netbeans.modules.bpel.model.impl.CopyImpl.accept(CopyImpl.java:77)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.accept(BpelEntityImpl.java:228)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.acceptChildren(BpelEntityImpl.java:353)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.accept(BpelEntityImpl.java:229)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.acceptChildren(BpelEntityImpl.java:353)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.accept(BpelEntityImpl.java:229)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.acceptChildren(BpelEntityImpl.java:353)
        at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.accept(BpelEntityImpl.java:229)
        at org.netbeans.modules.bpel.validation.core.BpelValidator$1.run(BpelValidator.java:102)
        at org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:250)
        at org.netbeans.modules.bpel.validation.core.BpelValidator.validate(BpelValidator.java:106)
        at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:95)
        at org.netbeans.modules.soa.validation.core.Controller.validate(Controller.java:198)
        at org.netbeans.modules.soa.validation.core.Controller.validate(Controller.java:160)
        at org.netbeans.modules.soa.validation.core.Controller.ideValidate(Controller.java:154)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.validateFile(IdeValidateBpelProjectTask.java:252)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.processFile(IdeValidateBpelProjectTask.java:225)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.processFiles(IdeValidateBpelProjectTask.java:188)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.processFolder(IdeValidateBpelProjectTask.java:182)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.processFileObject(IdeValidateBpelProjectTask.java:176)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.processSourceDir(IdeValidateBpelProjectTask.java:171)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.processSourceDirs(IdeValidateBpelProjectTask.java:166)
        at org.netbeans.modules.bpel.project.anttasks.ide.IdeValidateBpelProjectTask.execute(IdeValidateBpelProjectTask.java:139)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor124.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:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:499)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Comment 1 Sergey Lunegov 2009-11-19 03:48:59 UTC
Changed TM.
Comment 2 Vladimir Yaroslavskiy 2009-11-20 08:28:48 UTC
tried to reproduce: no exception.
Comment 3 Kirill Sorokin 2009-11-21 17:05:24 UTC
Yep, can't reproduce either with the latest build and a clean userdir. 
-> WORKSFORME.
Comment 4 umeshvats 2009-12-07 23:28:06 UTC
I tried to verify with attached project. Not able to reproduce the issue. So closing the ticket.
Comment 5 umeshvats 2009-12-07 23:28:55 UTC
Closing the ticket. Tested in 6-dec build of GFESB V2.2.