You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Patrick Cogan <pa...@gmail.com> on 2005/08/22 16:52:09 UTC

The OperationDesc s was not synchronized to a method of...

Hi,

Can anyone please help me with this error. The application used to work 
fine, and now it doesn't, I've not changed anything that I know of. Now this 
error comes up when you do anything at all even getting the wsdl. I have 
tried regenerating all the source, reimplemented the impl, tried axis 1.2and 
1.2.1 but now get the same. I have searched on the internet for any 
information but couldn't find any that helped. Attached is the wsdl and 
deploy.wsdd

The ant task I use to generate the java files is:

<target name="wsdl2java-service" description="Runs wsdl2java to generate the 
service artifacts, such as deploy.wsdd">
<echo message="Running wsdl2java for service with input
${service.wsdl.path}...."
/>
<java classname="org.apache.axis.wsdl.WSDL2Java" fork="yes">
<arg value="--NStoPkg"/>
<arg value="${data.types.namespace}=${ws.data.package}" />
<arg value="--NStoPkg"/>
<arg value="${wsdl.types.namespace}=${ws.service.package}" />
<arg value="--NStoPkg"/>
<arg value="${wsdl.target.namespace}=${ws.service.package}" />
<arg value="--NStoPkg" />
<arg value="${wsdl.types.namespace}=${ws.common.package}" />
<arg value="--NStoPkg"/>
<arg value="${exception.types.namespace}=${ws.exception.package}" />
<arg value="--all" />
<arg value="--noWrapped" /> 
<arg value="--server-side" />
<arg value="--output" />
<arg value="${service.src.dir}" />
<arg value="--verbose" />
<arg value="${service.wsdl.path}" />
<classpath>
<path refid="axis.classpath" />
</classpath>
</java>
<copy file="deploy.wsdd" tofile="deploy.wsdd.old" overwrite="true" 
failonerror="false" />
<copy file="undeploy.wsdd" tofile="undeploy.wsdd.old" overwrite="true" 
failonerror="false" />
<move file="${service.src.dir}/${ws.service.package.as.path}/deploy.wsdd" 
tofile="deploy.wsdd" overwrite="true" />
<move file="${service.src.dir}/${ws.service.package.as.path}/undeploy.wsdd" 
tofile="undeploy.wsdd" overwrite="true" />
</target>

The server error I get is this:

22-08-2005 15:41:10.607 [org.apache.axis.InternalException] FATAL: 
Exception:
java.lang.Exception: The OperationDesc for getClaimTransactions was not 
synchronized to a method of 
com.xchanging.claim.integration.webservices.service.CmsWebServiceBindingImpl
.
at org.apache.axis.InternalException.<init>(InternalException.java:71)
at org.apache.axis.description.JavaServiceDesc.syncOperationToClass(
JavaServiceDesc.java:764)
at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(
JavaServiceDesc.java:1073)
at 
org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive
(JavaServiceDesc.java:938)
at 
org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(
JavaServiceDesc.java:872)
at org.apache.axis.providers.java.JavaProvider.initServiceDesc(
JavaProvider.java:473)
at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(
SOAPService.java:285)

Thanks,

Patrick.

Re: The OperationDesc s was not synchronized to a method of...

Posted by Patrick Cogan <pa...@gmail.com>.
Furthur information, This happens both when I use the generated 
CmsWebServiceBindingImpl that returns null as well as the one that I have 
added an implementation to.

Thanks,

Patrick.

On 8/22/05, Patrick Cogan <pa...@gmail.com> wrote:
> 
> Hi,
> 
> Can anyone please help me with this error. The application used to work 
> fine, and now it doesn't, I've not changed anything that I know of. Now this 
> error comes up when you do anything at all even getting the wsdl. I have 
> tried regenerating all the source, reimplemented the impl, tried axis 1.2and 
> 1.2.1 but now get the same. I have searched on the internet for any 
> information but couldn't find any that helped. Attached is the wsdl and 
> deploy.wsdd
> 
> The ant task I use to generate the java files is:
> 
> <target name="wsdl2java-service" description="Runs wsdl2java to generate 
> the service artifacts, such as deploy.wsdd">
> <echo message="Running wsdl2java for service with input ${
> service.wsdl.path}...." />
> <java classname="org.apache.axis.wsdl.WSDL2Java" fork="yes">
> <arg value="--NStoPkg"/>
> <arg value="${data.types.namespace}=${ws.data.package}" />
> <arg value="--NStoPkg"/>
> <arg value="${wsdl.types.namespace}=${ws.service.package}" />
> <arg value="--NStoPkg"/>
> <arg value="${wsdl.target.namespace}=${ws.service.package}" />
> <arg value="--NStoPkg" />
> <arg value="${wsdl.types.namespace}=${ws.common.package}" />
> <arg value="--NStoPkg"/>
> <arg value="${exception.types.namespace}=${ws.exception.package}" />
> <arg value="--all" />
> <arg value="--noWrapped" /> 
> <arg value="--server-side" />
> <arg value="--output" />
> <arg value="${service.src.dir}" />
> <arg value="--verbose" />
> <arg value="${service.wsdl.path}" />
> <classpath>
> <path refid="axis.classpath" />
> </classpath>
> </java>
> <copy file="deploy.wsdd" tofile="deploy.wsdd.old" overwrite="true" 
> failonerror="false" />
> <copy file="undeploy.wsdd" tofile="undeploy.wsdd.old" overwrite="true" 
> failonerror="false" />
> <move file="${service.src.dir}/${ws.service.package.as.path}/deploy.wsdd" 
> tofile="deploy.wsdd" overwrite="true" />
> <move file="${service.src.dir}/${ws.service.package.as.path}/undeploy.wsdd" 
> tofile="undeploy.wsdd" overwrite="true" />
> </target>
> 
> The server error I get is this:
> 
> 22-08-2005 15:41:10.607 [org.apache.axis.InternalException] FATAL: 
> Exception:
> java.lang.Exception: The OperationDesc for getClaimTransactions was not 
> synchronized to a method of 
> com.xchanging.claim.integration.webservices.service.CmsWebServiceBindingImpl
> .
> at org.apache.axis.InternalException.<init>(InternalException.java:71)
> at org.apache.axis.description.JavaServiceDesc.syncOperationToClass(
> JavaServiceDesc.java:764)
> at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(
> JavaServiceDesc.java:1073)
> at 
> org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive
> (JavaServiceDesc.java:938)
> at 
> org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection
> (JavaServiceDesc.java:872)
> at org.apache.axis.providers.java.JavaProvider.initServiceDesc(
> JavaProvider.java:473)
> at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(
> SOAPService.java:285)
> 
> Thanks,
> 
> Patrick.
> 
> 
>