You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Denis Weerasiri (Created) (JIRA)" <ji...@apache.org> on 2011/10/21 14:48:32 UTC

[jira] [Created] (ODE-946) NPE thrown when the namespace for the property type can't be resolved

NPE thrown when the namespace for the property type can't be resolved
---------------------------------------------------------------------

                 Key: ODE-946
                 URL: https://issues.apache.org/jira/browse/ODE-946
             Project: ODE
          Issue Type: Improvement
          Components: BPEL Compilation/Parsing
    Affects Versions: 1.3.5
         Environment: ode-axis2-war-1.3.5 distro in tomcat-6.0.32
            Reporter: Denis Weerasiri


How to reproduce the issue:
1. Use a property in a partner WSDL which is to be used in a <correlatoinSet/> as follows.
<vprop:property name="refProperty" type="xsd:token"/>
2. Note - "xsd" is not defined

The exception occur is as follows.
ERROR [DeploymentPoller] Deployment of Async-Client failed, aborting for now.
java.lang.NullPointerException: Null type argument!
	at org.apache.ode.utils.xsd.SchemaModelImpl.isSimpleType(SchemaModelImpl.java:149)
	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:997)
	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:731)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
	at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:204)
	at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:201)
	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:204)
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:172)
	at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
	at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
	at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)

Here I've attached a patch to generate a more context sensitive compilation error.

After adding the patch, the error log would be as follows.

ERROR [ProcessStoreImpl] Deploy failed; error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
org.apache.ode.bpel.compiler.api.CompilationException: error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1003)
	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:731)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
	at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:204)
	at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:201)
	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:204)
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:172)
	at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
	at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
	at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
17:56:05,965 ERROR [DeploymentPoller] Deployment of Async-Client failed, aborting for now.
org.apache.ode.bpel.iapi.ContextException: Deploy failed; error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:208)
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:172)
	at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
	at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
	at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1003)
	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:731)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
	at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:204)
	at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:201)
	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:204)
	... 4 more


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ODE-946) NPE thrown when the namespace for the property type can't be resolved

Posted by "Denis Weerasiri (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Weerasiri updated ODE-946:
--------------------------------

    Attachment: ODE-946-v1.patch

Attached the patch (ODE-946-v1.patch) as the fix.
                
> NPE thrown when the namespace for the property type can't be resolved
> ---------------------------------------------------------------------
>
>                 Key: ODE-946
>                 URL: https://issues.apache.org/jira/browse/ODE-946
>             Project: ODE
>          Issue Type: Improvement
>          Components: BPEL Compilation/Parsing
>    Affects Versions: 1.3.5
>         Environment: ode-axis2-war-1.3.5 distro in tomcat-6.0.32
>            Reporter: Denis Weerasiri
>         Attachments: ODE-946-v1.patch
>
>
> How to reproduce the issue:
> 1. Use a property in a partner WSDL which is to be used in a <correlatoinSet/> as follows.
> <vprop:property name="refProperty" type="xsd:token"/>
> 2. Note - "xsd" is not defined
> The exception occur is as follows.
> ERROR [DeploymentPoller] Deployment of Async-Client failed, aborting for now.
> java.lang.NullPointerException: Null type argument!
> 	at org.apache.ode.utils.xsd.SchemaModelImpl.isSimpleType(SchemaModelImpl.java:149)
> 	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:997)
> 	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:731)
> 	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> 	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> 	at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:204)
> 	at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> 	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:201)
> 	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:204)
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:172)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
> Here I've attached a patch to generate a more context sensitive compilation error.
> After adding the patch, the error log would be as follows.
> ERROR [ProcessStoreImpl] Deploy failed; error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
> org.apache.ode.bpel.compiler.api.CompilationException: error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
> 	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1003)
> 	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:731)
> 	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> 	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> 	at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:204)
> 	at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> 	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:201)
> 	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:204)
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:172)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
> 17:56:05,965 ERROR [DeploymentPoller] Deployment of Async-Client failed, aborting for now.
> org.apache.ode.bpel.iapi.ContextException: Deploy failed; error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:208)
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:172)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
> 	at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
> Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: [PropertyTypeNotResolved] Type could not resolved for Property "{urn:ode-apache-org:example:async:client}refProperty". Reason: Namespace not found for prefix "xsd"
> 	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1003)
> 	at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:731)
> 	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> 	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> 	at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:204)
> 	at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> 	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:201)
> 	at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
> 	at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:204)
> 	... 4 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira