Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.3.5
-
None
-
None
-
ode-axis2-war-1.3.5 distro in tomcat-6.0.32
Description
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 "
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 "
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 "
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