You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by fordan <da...@main.se> on 2006/12/14 18:20:24 UTC

Invalid operation while invoking a JSR181 endpoint

Hi !

I got some problem ,  Can anyone Help ? Thanks Daniel

when using an aop Proxy like this:

Springbean.xml:

<bean id="myService"
        class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="proxyInterfaces">
            <value>
               someinterface            
            </value>
        </property>
        <property name="target">
            <ref bean="implClass" />
        </property>
        <property name="interceptorNames">
            <list>
                <value>someInterceptor1</value>
                <value>someInterceptor1</value>
                <value>someInterceptor1</value>
                <value>someInterceptor1</value>
            </list>
        </property>
    </bean>

<bean id="implClass"
        class="my.implClass" >
<property name="someProperty" value="someValue" />
</bean>

xbean :

<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
    <import resource="classpath:Springbean.xml" />
    <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"   
style="wrapped" />
</beans>

error while invoking service:

INFO  - DefaultFaultHandler            - Fault occurred!
org.codehaus.xfire.fault.XFireFault: Invalid operation:
{http://www.my/ws/impl}GetSomething
        at
org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
        at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7876962
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by Guillaume Nodet <gn...@gmail.com>.
Sounds weird.  I have an example working out of the box
by just using the configuration i sent.  I you set the serviceInterface
attribute, the pojo class is only used to discover the annotations and
type mapping to use.  And this check does not occur if you specify
them explicitly ...
And last, the ProxyFactoryBean class itself should never be given
to the jsr181 endpoint:  the proxy created by this factory should.

On 12/19/06, fordan <da...@main.se> wrote:
>
> Hi !
>
> I finally did like this, but i also created a subclass of ProxtFactoryBean
> with the required annotation and it works. But i want to verify first if i
> remove excplicits if still works or. I haved tried many different similiar
> solution. I am glad that it works now. Tanks a lot Daniel
>
> gnodet wrote:
> >
> > If you explicitly set the annotations, typeMapping
> > and serviceInterface class, the pojo class itself is not used,
> > so it work if you use a proxy.
> > Something like:
> >
> > <jsr181:endpoint pojo="#service"
> >
> > wsdlResource="classpath:org/apache/servicemix/itests/person.wsdl"
> >                        style="document"
> >                        annotations="java5"
> >                        typeMapping="jaxb2"
> >
> > serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />
> >
> >
> > On 12/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
> >> Have you tried removing the proxyInterfaces property to
> >> force spring to use CGLIB proxy to proxy the class instead
> >> of using the standard java proxies ?
> >> I 'm not sure that it will even work, but it's worth the try.
> >>
> >> On 12/18/06, fordan <da...@main.se> wrote:
> >> >
> >> > Hi !
> >> >
> >> > Can anyone help this. While debuging, i found out that the annotations
> >> is
> >> > reflected at all.
> >> > It must be something with the proxyhandling. I seems to something wrong
> >> the
> >> > way spring does.
> >> > Anyone tried to this before?
> >> >
> >> > Thanks a lot
> >> >
> >> >
> >> > fordan wrote:
> >> > >
> >> > > Hi !
> >> > >
> >> > > I got some problem ,  Can anyone Help ? Thanks Daniel
> >> > >
> >> > > when using an aop Proxy like this:
> >> > >
> >> > > Springbean.xml:
> >> > >
> >> > > <bean id="myService"
> >> > >         class="org.springframework.aop.framework.ProxyFactoryBean">
> >> > >         <property name="proxyInterfaces">
> >> > >             <value>
> >> > >                someinterface
> >> > >             </value>
> >> > >         </property>
> >> > >         <property name="target">
> >> > >             <ref bean="implClass" />
> >> > >         </property>
> >> > >         <property name="interceptorNames">
> >> > >             <list>
> >> > >                 <value>someInterceptor1</value>
> >> > >                 <value>someInterceptor1</value>
> >> > >                 <value>someInterceptor1</value>
> >> > >                 <value>someInterceptor1</value>
> >> > >             </list>
> >> > >         </property>
> >> > >     </bean>
> >> > >
> >> > > <bean id="implClass"
> >> > >         class="my.implClass" >
> >> > > <property name="someProperty" value="someValue" />
> >> > > </bean>
> >> > >
> >> > > xbean :
> >> > >
> >> > > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
> >> > >     <import resource="classpath:Springbean.xml" />
> >> > >     <jsr181:endpoint pojo="#myService"
> >> wsdlResource="classpath:some.wsdl"
> >> > > style="wrapped" />
> >> > > </beans>
> >> > >
> >> > > error while invoking service:
> >> > >
> >> > > INFO  - DefaultFaultHandler            - Fault occurred!
> >> > > org.codehaus.xfire.fault.XFireFault: Invalid operation:
> >> > > {http://www.my/ws/impl}GetSomething
> >> > >         at
> >> > >
> >> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
> >> > >         at
> >> > >
> >> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
> >> > >         at
> >> > >
> >> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
> >> > >         at
> >> > >
> >> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
> >> > >         at
> >> > >
> >> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
> >> > >         at
> >> > >
> >> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
> >> > >         at
> >> > >
> >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
> >> > >         at
> >> > >
> >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
> >> > >         at
> >> > >
> >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
> >> > >         at
> >> > >
> >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
> >> > >         at
> >> > >
> >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
> >> > >         at
> >> > >
> >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
> >> > >         at
> >> > >
> >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
> >> > >         at
> >> > >
> >> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> >> > >         at
> >> > >
> >> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> >> > >         at java.lang.Thread.run(Thread.java:595)
> >> > >
> >> > >
> >> >
> >> > --
> >> > View this message in context:
> >> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
> >> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >> >
> >> >
> >>
> >>
> >> --
> >> Cheers,
> >> Guillaume Nodet
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7948300
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet

Re: Invalid operation while invoking a JSR181 endpoint

Posted by fordan <da...@main.se>.
Hi !
Thanks  a lot , i think i will try one more time with this. I agree on the
word weired, but i tried now with the wsdlfirst example. And it works like
this:
<bean id="debugInterceptor"
		class="org.springframework.aop.interceptor.DebugInterceptor" />

	<bean id="personProxy"
		class="org.springframework.aop.framework.ProxyFactoryBean">
		<property name="proxyInterfaces">
		   <list>
		    <value>org.apache.servicemix.samples.wsdl_first.ServiceContext</value>
			<value>
				org.apache.servicemix.samples.wsdl_first.Person
			</value>
			</list>
		</property>
		
		<property name="target">
			<ref bean="personService" />
		</property>
		<property name="interceptorNames">
			<value>debugInterceptor</value>
		</property>
	</bean>

	<bean id="personService"
		class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
	
	<jsr181:endpoint wsdlResource="classpath:person.wsdl"
		pojo="#personProxy" style="document" annotations="jsr181"
		typeMapping="jaxb2"
		serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />



fordan wrote:
> 
> Hi !
> 
> I finally did like this, but i also created a subclass of ProxtFactoryBean
> with the required annotation and it works. But i want to verify first if i
> remove excplicits if still works or. I haved tried many different similiar
> solution. I am glad that it works now. Tanks a lot Daniel 
> 
> gnodet wrote:
>> 
>> If you explicitly set the annotations, typeMapping
>> and serviceInterface class, the pojo class itself is not used,
>> so it work if you use a proxy.
>> Something like:
>> 
>> <jsr181:endpoint pojo="#service"
>> 		        
>> wsdlResource="classpath:org/apache/servicemix/itests/person.wsdl"
>> 		         style="document"
>> 		         annotations="java5"
>> 		         typeMapping="jaxb2"
>> 		        
>> serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />
>> 
>> 
>> On 12/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
>>> Have you tried removing the proxyInterfaces property to
>>> force spring to use CGLIB proxy to proxy the class instead
>>> of using the standard java proxies ?
>>> I 'm not sure that it will even work, but it's worth the try.
>>>
>>> On 12/18/06, fordan <da...@main.se> wrote:
>>> >
>>> > Hi !
>>> >
>>> > Can anyone help this. While debuging, i found out that the annotations
>>> is
>>> > reflected at all.
>>> > It must be something with the proxyhandling. I seems to something
>>> wrong the
>>> > way spring does.
>>> > Anyone tried to this before?
>>> >
>>> > Thanks a lot
>>> >
>>> >
>>> > fordan wrote:
>>> > >
>>> > > Hi !
>>> > >
>>> > > I got some problem ,  Can anyone Help ? Thanks Daniel
>>> > >
>>> > > when using an aop Proxy like this:
>>> > >
>>> > > Springbean.xml:
>>> > >
>>> > > <bean id="myService"
>>> > >         class="org.springframework.aop.framework.ProxyFactoryBean">
>>> > >         <property name="proxyInterfaces">
>>> > >             <value>
>>> > >                someinterface
>>> > >             </value>
>>> > >         </property>
>>> > >         <property name="target">
>>> > >             <ref bean="implClass" />
>>> > >         </property>
>>> > >         <property name="interceptorNames">
>>> > >             <list>
>>> > >                 <value>someInterceptor1</value>
>>> > >                 <value>someInterceptor1</value>
>>> > >                 <value>someInterceptor1</value>
>>> > >                 <value>someInterceptor1</value>
>>> > >             </list>
>>> > >         </property>
>>> > >     </bean>
>>> > >
>>> > > <bean id="implClass"
>>> > >         class="my.implClass" >
>>> > > <property name="someProperty" value="someValue" />
>>> > > </bean>
>>> > >
>>> > > xbean :
>>> > >
>>> > > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>>> > >     <import resource="classpath:Springbean.xml" />
>>> > >     <jsr181:endpoint pojo="#myService"
>>> wsdlResource="classpath:some.wsdl"
>>> > > style="wrapped" />
>>> > > </beans>
>>> > >
>>> > > error while invoking service:
>>> > >
>>> > > INFO  - DefaultFaultHandler            - Fault occurred!
>>> > > org.codehaus.xfire.fault.XFireFault: Invalid operation:
>>> > > {http://www.my/ws/impl}GetSomething
>>> > >         at
>>> > >
>>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>>> > >         at
>>> > >
>>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>>> > >         at
>>> > >
>>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>> > >         at
>>> > >
>>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>>> > >         at
>>> > >
>>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>> > >         at
>>> > >
>>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>>> > >         at
>>> > >
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>>> > >         at
>>> > >
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>>> > >         at
>>> > >
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>> > >         at
>>> > >
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>> > >         at
>>> > >
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>>> > >         at
>>> > >
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>>> > >         at
>>> > >
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>> > >         at
>>> > >
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>>> > >         at
>>> > >
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>>> > >         at java.lang.Thread.run(Thread.java:595)
>>> > >
>>> > >
>>> >
>>> > --
>>> > View this message in context:
>>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
>>> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>> >
>>> >
>>>
>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>>
>> 
>> 
>> -- 
>> Cheers,
>> Guillaume Nodet
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7986644
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by fordan <da...@main.se>.
Hi !

I finally did like this, but i also created a subclass of ProxtFactoryBean
with the required annotation and it works. But i want to verify first if i
remove excplicits if still works or. I haved tried many different similiar
solution. I am glad that it works now. Tanks a lot Daniel 

gnodet wrote:
> 
> If you explicitly set the annotations, typeMapping
> and serviceInterface class, the pojo class itself is not used,
> so it work if you use a proxy.
> Something like:
> 
> <jsr181:endpoint pojo="#service"
> 		        
> wsdlResource="classpath:org/apache/servicemix/itests/person.wsdl"
> 		         style="document"
> 		         annotations="java5"
> 		         typeMapping="jaxb2"
> 		        
> serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />
> 
> 
> On 12/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
>> Have you tried removing the proxyInterfaces property to
>> force spring to use CGLIB proxy to proxy the class instead
>> of using the standard java proxies ?
>> I 'm not sure that it will even work, but it's worth the try.
>>
>> On 12/18/06, fordan <da...@main.se> wrote:
>> >
>> > Hi !
>> >
>> > Can anyone help this. While debuging, i found out that the annotations
>> is
>> > reflected at all.
>> > It must be something with the proxyhandling. I seems to something wrong
>> the
>> > way spring does.
>> > Anyone tried to this before?
>> >
>> > Thanks a lot
>> >
>> >
>> > fordan wrote:
>> > >
>> > > Hi !
>> > >
>> > > I got some problem ,  Can anyone Help ? Thanks Daniel
>> > >
>> > > when using an aop Proxy like this:
>> > >
>> > > Springbean.xml:
>> > >
>> > > <bean id="myService"
>> > >         class="org.springframework.aop.framework.ProxyFactoryBean">
>> > >         <property name="proxyInterfaces">
>> > >             <value>
>> > >                someinterface
>> > >             </value>
>> > >         </property>
>> > >         <property name="target">
>> > >             <ref bean="implClass" />
>> > >         </property>
>> > >         <property name="interceptorNames">
>> > >             <list>
>> > >                 <value>someInterceptor1</value>
>> > >                 <value>someInterceptor1</value>
>> > >                 <value>someInterceptor1</value>
>> > >                 <value>someInterceptor1</value>
>> > >             </list>
>> > >         </property>
>> > >     </bean>
>> > >
>> > > <bean id="implClass"
>> > >         class="my.implClass" >
>> > > <property name="someProperty" value="someValue" />
>> > > </bean>
>> > >
>> > > xbean :
>> > >
>> > > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>> > >     <import resource="classpath:Springbean.xml" />
>> > >     <jsr181:endpoint pojo="#myService"
>> wsdlResource="classpath:some.wsdl"
>> > > style="wrapped" />
>> > > </beans>
>> > >
>> > > error while invoking service:
>> > >
>> > > INFO  - DefaultFaultHandler            - Fault occurred!
>> > > org.codehaus.xfire.fault.XFireFault: Invalid operation:
>> > > {http://www.my/ws/impl}GetSomething
>> > >         at
>> > >
>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>> > >         at
>> > >
>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>> > >         at
>> > >
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>> > >         at
>> > >
>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>> > >         at
>> > >
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>> > >         at
>> > >
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>> > >         at
>> > >
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>> > >         at
>> > >
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>> > >         at
>> > >
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>> > >         at
>> > >
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>> > >         at
>> > >
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>> > >         at
>> > >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>> > >         at
>> > >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>> > >         at
>> > >
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>> > >         at
>> > >
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>> > >         at java.lang.Thread.run(Thread.java:595)
>> > >
>> > >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
>> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >
>> >
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7948300
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by Guillaume Nodet <gn...@gmail.com>.
If you explicitly set the annotations, typeMapping
and serviceInterface class, the pojo class itself is not used,
so it work if you use a proxy.
Something like:

<jsr181:endpoint pojo="#service"
		         wsdlResource="classpath:org/apache/servicemix/itests/person.wsdl"
		         style="document"
		         annotations="java5"
		         typeMapping="jaxb2"
		         serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />


On 12/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
> Have you tried removing the proxyInterfaces property to
> force spring to use CGLIB proxy to proxy the class instead
> of using the standard java proxies ?
> I 'm not sure that it will even work, but it's worth the try.
>
> On 12/18/06, fordan <da...@main.se> wrote:
> >
> > Hi !
> >
> > Can anyone help this. While debuging, i found out that the annotations is
> > reflected at all.
> > It must be something with the proxyhandling. I seems to something wrong the
> > way spring does.
> > Anyone tried to this before?
> >
> > Thanks a lot
> >
> >
> > fordan wrote:
> > >
> > > Hi !
> > >
> > > I got some problem ,  Can anyone Help ? Thanks Daniel
> > >
> > > when using an aop Proxy like this:
> > >
> > > Springbean.xml:
> > >
> > > <bean id="myService"
> > >         class="org.springframework.aop.framework.ProxyFactoryBean">
> > >         <property name="proxyInterfaces">
> > >             <value>
> > >                someinterface
> > >             </value>
> > >         </property>
> > >         <property name="target">
> > >             <ref bean="implClass" />
> > >         </property>
> > >         <property name="interceptorNames">
> > >             <list>
> > >                 <value>someInterceptor1</value>
> > >                 <value>someInterceptor1</value>
> > >                 <value>someInterceptor1</value>
> > >                 <value>someInterceptor1</value>
> > >             </list>
> > >         </property>
> > >     </bean>
> > >
> > > <bean id="implClass"
> > >         class="my.implClass" >
> > > <property name="someProperty" value="someValue" />
> > > </bean>
> > >
> > > xbean :
> > >
> > > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
> > >     <import resource="classpath:Springbean.xml" />
> > >     <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"
> > > style="wrapped" />
> > > </beans>
> > >
> > > error while invoking service:
> > >
> > > INFO  - DefaultFaultHandler            - Fault occurred!
> > > org.codehaus.xfire.fault.XFireFault: Invalid operation:
> > > {http://www.my/ws/impl}GetSomething
> > >         at
> > > org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
> > >         at
> > > org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
> > >         at
> > > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
> > >         at
> > > org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
> > >         at
> > > org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
> > >         at
> > > org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
> > >         at
> > > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
> > >         at
> > > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
> > >         at
> > > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
> > >         at
> > > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
> > >         at
> > > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
> > >         at
> > > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
> > >         at
> > > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
> > >         at
> > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> > >         at
> > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> > >         at java.lang.Thread.run(Thread.java:595)
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
>


-- 
Cheers,
Guillaume Nodet

Re: Invalid operation while invoking a JSR181 endpoint

Posted by fordan <da...@main.se>.
Hi !

I haved tried with CGLIB now i get similar but not same exeception.
Can anyone help ? Thanks in advance Daniel

java.lang.IllegalStateException: Current state not START_ELEMENT,
END_ELEMENT or ENTITY_REFERENCE
        at
com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
        at
org.codehaus.xfire.util.stax.DepthXMLStreamReader.getLocalName(DepthXMLStreamReader.java:100)
        at
org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:58)
        at
org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:69)
        at
org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSOperationBinding.readMessage(ServiceFactoryH
        at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)

gnodet wrote:
> 
> Have you tried removing the proxyInterfaces property to
> force spring to use CGLIB proxy to proxy the class instead
> of using the standard java proxies ?
> I 'm not sure that it will even work, but it's worth the try.
> 
> On 12/18/06, fordan <da...@main.se> wrote:
>>
>> Hi !
>>
>> Can anyone help this. While debuging, i found out that the annotations is
>> reflected at all.
>> It must be something with the proxyhandling. I seems to something wrong
>> the
>> way spring does.
>> Anyone tried to this before?
>>
>> Thanks a lot
>>
>>
>> fordan wrote:
>> >
>> > Hi !
>> >
>> > I got some problem ,  Can anyone Help ? Thanks Daniel
>> >
>> > when using an aop Proxy like this:
>> >
>> > Springbean.xml:
>> >
>> > <bean id="myService"
>> >         class="org.springframework.aop.framework.ProxyFactoryBean">
>> >         <property name="proxyInterfaces">
>> >             <value>
>> >                someinterface
>> >             </value>
>> >         </property>
>> >         <property name="target">
>> >             <ref bean="implClass" />
>> >         </property>
>> >         <property name="interceptorNames">
>> >             <list>
>> >                 <value>someInterceptor1</value>
>> >                 <value>someInterceptor1</value>
>> >                 <value>someInterceptor1</value>
>> >                 <value>someInterceptor1</value>
>> >             </list>
>> >         </property>
>> >     </bean>
>> >
>> > <bean id="implClass"
>> >         class="my.implClass" >
>> > <property name="someProperty" value="someValue" />
>> > </bean>
>> >
>> > xbean :
>> >
>> > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>> >     <import resource="classpath:Springbean.xml" />
>> >     <jsr181:endpoint pojo="#myService"
>> wsdlResource="classpath:some.wsdl"
>> > style="wrapped" />
>> > </beans>
>> >
>> > error while invoking service:
>> >
>> > INFO  - DefaultFaultHandler            - Fault occurred!
>> > org.codehaus.xfire.fault.XFireFault: Invalid operation:
>> > {http://www.my/ws/impl}GetSomething
>> >         at
>> >
>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>> >         at
>> >
>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>> >         at
>> >
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>> >         at
>> >
>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>> >         at
>> >
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>> >         at
>> >
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>> >         at
>> >
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>> >         at
>> >
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>> >         at
>> >
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>> >         at
>> >
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>> >         at
>> >
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>> >         at
>> >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>> >         at
>> >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>> >         at
>> >
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>> >         at
>> >
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>> >         at java.lang.Thread.run(Thread.java:595)
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7945810
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by Guillaume Nodet <gn...@gmail.com>.
Have you tried removing the proxyInterfaces property to
force spring to use CGLIB proxy to proxy the class instead
of using the standard java proxies ?
I 'm not sure that it will even work, but it's worth the try.

On 12/18/06, fordan <da...@main.se> wrote:
>
> Hi !
>
> Can anyone help this. While debuging, i found out that the annotations is
> reflected at all.
> It must be something with the proxyhandling. I seems to something wrong the
> way spring does.
> Anyone tried to this before?
>
> Thanks a lot
>
>
> fordan wrote:
> >
> > Hi !
> >
> > I got some problem ,  Can anyone Help ? Thanks Daniel
> >
> > when using an aop Proxy like this:
> >
> > Springbean.xml:
> >
> > <bean id="myService"
> >         class="org.springframework.aop.framework.ProxyFactoryBean">
> >         <property name="proxyInterfaces">
> >             <value>
> >                someinterface
> >             </value>
> >         </property>
> >         <property name="target">
> >             <ref bean="implClass" />
> >         </property>
> >         <property name="interceptorNames">
> >             <list>
> >                 <value>someInterceptor1</value>
> >                 <value>someInterceptor1</value>
> >                 <value>someInterceptor1</value>
> >                 <value>someInterceptor1</value>
> >             </list>
> >         </property>
> >     </bean>
> >
> > <bean id="implClass"
> >         class="my.implClass" >
> > <property name="someProperty" value="someValue" />
> > </bean>
> >
> > xbean :
> >
> > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
> >     <import resource="classpath:Springbean.xml" />
> >     <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"
> > style="wrapped" />
> > </beans>
> >
> > error while invoking service:
> >
> > INFO  - DefaultFaultHandler            - Fault occurred!
> > org.codehaus.xfire.fault.XFireFault: Invalid operation:
> > {http://www.my/ws/impl}GetSomething
> >         at
> > org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
> >         at
> > org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
> >         at
> > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
> >         at
> > org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
> >         at
> > org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
> >         at
> > org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
> >         at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
> >         at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
> >         at
> > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
> >         at
> > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
> >         at
> > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
> >         at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
> >         at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
> >         at
> > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> >         at
> > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> >         at java.lang.Thread.run(Thread.java:595)
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet

Re: Invalid operation while invoking a JSR181 endpoint

Posted by fordan <da...@main.se>.
Hi !

Can anyone help this. While debuging, i found out that the annotations is
reflected at all.
It must be something with the proxyhandling. I seems to something wrong the
way spring does.
Anyone tried to this before?

Thanks a lot


fordan wrote:
> 
> Hi !
> 
> I got some problem ,  Can anyone Help ? Thanks Daniel
> 
> when using an aop Proxy like this:
> 
> Springbean.xml:
> 
> <bean id="myService"
>         class="org.springframework.aop.framework.ProxyFactoryBean">
>         <property name="proxyInterfaces">
>             <value>
>                someinterface            
>             </value>
>         </property>
>         <property name="target">
>             <ref bean="implClass" />
>         </property>
>         <property name="interceptorNames">
>             <list>
>                 <value>someInterceptor1</value>
>                 <value>someInterceptor1</value>
>                 <value>someInterceptor1</value>
>                 <value>someInterceptor1</value>
>             </list>
>         </property>
>     </bean>
> 
> <bean id="implClass"
>         class="my.implClass" >
> <property name="someProperty" value="someValue" />
> </bean>
> 
> xbean :
> 
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>     <import resource="classpath:Springbean.xml" />
>     <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"   
> style="wrapped" />
> </beans>
> 
> error while invoking service:
> 
> INFO  - DefaultFaultHandler            - Fault occurred!
> org.codehaus.xfire.fault.XFireFault: Invalid operation:
> {http://www.my/ws/impl}GetSomething
>         at
> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>         at
> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>         at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>         at
> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>         at
> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>         at
> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>         at java.lang.Thread.run(Thread.java:595)
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by fordan <da...@main.se>.
Hi !
Thanks a lot for the tips ! 

The fact is that  the Interface used as a proxy is
actually generated with xfire and have the right
annotation as i can see, but i use two interface as
proxy which the annotaded and an interface representing
only one method setComponeConextt(ComponentContext ctx) 
and getComponentContext(). Maybe i should test with out this
because it is already inehereted by implclass. Actually a base 
class which is abstract implementening this interface and setting
the context. We found out that if method called setContext(CC ctx) 
and get is represented on its superclass or its implclass the 
context is autmatically reflected.

Thanks Daniel


gnodet wrote:
> 
> I think the problems comes from the fact that the aop proxy
> will not have the needed annotations maybe.  Do you use
> the jaxws style (jaxb2 + jsr181) ?
> Not sure how to solve this problem however: the only way
> I can think of currently is to  write a simple pojo annotated
> with the needed annotations and delegate to the proxy :(
> 
> On 12/14/06, fordan <da...@main.se> wrote:
>>
>> Hi !
>>
>> Yes, of course it works without aopproxy.
>> But the customer's requirment is to use an
>> aopproxy, exactly the way i specified.
>> Does it work to this, or it is another way to
>> accomplish the same result. Any Idea ?
>> Can anyone help,please ?
>>
>> Thanks Daniel
>>
>> gnodet wrote:
>> >
>> > Does it work if you remove the aop proxy ?
>> > I would think this is unrelated ...
>> >
>> > On 12/14/06, fordan <da...@main.se> wrote:
>> >>
>> >> Hi !
>> >>
>> >> I got some problem ,  Can anyone Help ? Thanks Daniel
>> >>
>> >> when using an aop Proxy like this:
>> >>
>> >> Springbean.xml:
>> >>
>> >> <bean id="myService"
>> >>         class="org.springframework.aop.framework.ProxyFactoryBean">
>> >>         <property name="proxyInterfaces">
>> >>             <value>
>> >>                someinterface
>> >>             </value>
>> >>         </property>
>> >>         <property name="target">
>> >>             <ref bean="implClass" />
>> >>         </property>
>> >>         <property name="interceptorNames">
>> >>             <list>
>> >>                 <value>someInterceptor1</value>
>> >>                 <value>someInterceptor1</value>
>> >>                 <value>someInterceptor1</value>
>> >>                 <value>someInterceptor1</value>
>> >>             </list>
>> >>         </property>
>> >>     </bean>
>> >>
>> >> <bean id="implClass"
>> >>         class="my.implClass" >
>> >> <property name="someProperty" value="someValue" />
>> >> </bean>
>> >>
>> >> xbean :
>> >>
>> >> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>> >>     <import resource="classpath:Springbean.xml" />
>> >>     <jsr181:endpoint pojo="#myService"
>> wsdlResource="classpath:some.wsdl"
>> >> style="wrapped" />
>> >> </beans>
>> >>
>> >> error while invoking service:
>> >>
>> >> INFO  - DefaultFaultHandler            - Fault occurred!
>> >> org.codehaus.xfire.fault.XFireFault: Invalid operation:
>> >> {http://www.my/ws/impl}GetSomething
>> >>         at
>> >>
>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>> >>         at
>> >>
>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>> >>         at
>> >>
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>> >>         at
>> >>
>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>> >>         at
>> >>
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>> >>         at
>> >>
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>> >>         at
>> >>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>> >>         at
>> >>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>> >>         at
>> >>
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>> >>         at
>> >>
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>> >>         at
>> >>
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>> >>         at
>> >>
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>> >>         at
>> >>
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>> >>         at
>> >>
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>> >>         at
>> >>
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>> >>         at java.lang.Thread.run(Thread.java:595)
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7876962
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7879348
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7889863
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by Guillaume Nodet <gn...@gmail.com>.
I think the problems comes from the fact that the aop proxy
will not have the needed annotations maybe.  Do you use
the jaxws style (jaxb2 + jsr181) ?
Not sure how to solve this problem however: the only way
I can think of currently is to  write a simple pojo annotated
with the needed annotations and delegate to the proxy :(

On 12/14/06, fordan <da...@main.se> wrote:
>
> Hi !
>
> Yes, of course it works without aopproxy.
> But the customer's requirment is to use an
> aopproxy, exactly the way i specified.
> Does it work to this, or it is another way to
> accomplish the same result. Any Idea ?
> Can anyone help,please ?
>
> Thanks Daniel
>
> gnodet wrote:
> >
> > Does it work if you remove the aop proxy ?
> > I would think this is unrelated ...
> >
> > On 12/14/06, fordan <da...@main.se> wrote:
> >>
> >> Hi !
> >>
> >> I got some problem ,  Can anyone Help ? Thanks Daniel
> >>
> >> when using an aop Proxy like this:
> >>
> >> Springbean.xml:
> >>
> >> <bean id="myService"
> >>         class="org.springframework.aop.framework.ProxyFactoryBean">
> >>         <property name="proxyInterfaces">
> >>             <value>
> >>                someinterface
> >>             </value>
> >>         </property>
> >>         <property name="target">
> >>             <ref bean="implClass" />
> >>         </property>
> >>         <property name="interceptorNames">
> >>             <list>
> >>                 <value>someInterceptor1</value>
> >>                 <value>someInterceptor1</value>
> >>                 <value>someInterceptor1</value>
> >>                 <value>someInterceptor1</value>
> >>             </list>
> >>         </property>
> >>     </bean>
> >>
> >> <bean id="implClass"
> >>         class="my.implClass" >
> >> <property name="someProperty" value="someValue" />
> >> </bean>
> >>
> >> xbean :
> >>
> >> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
> >>     <import resource="classpath:Springbean.xml" />
> >>     <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"
> >> style="wrapped" />
> >> </beans>
> >>
> >> error while invoking service:
> >>
> >> INFO  - DefaultFaultHandler            - Fault occurred!
> >> org.codehaus.xfire.fault.XFireFault: Invalid operation:
> >> {http://www.my/ws/impl}GetSomething
> >>         at
> >> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
> >>         at
> >> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
> >>         at
> >> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
> >>         at
> >> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
> >>         at
> >> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
> >>         at
> >> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
> >>         at
> >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
> >>         at
> >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
> >>         at
> >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
> >>         at
> >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
> >>         at
> >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
> >>         at
> >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
> >>         at
> >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
> >>         at
> >> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> >>         at
> >> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> >>         at java.lang.Thread.run(Thread.java:595)
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7876962
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7879348
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet

Re: Invalid operation while invoking a JSR181 endpoint

Posted by fordan <da...@main.se>.
Hi !

Yes, of course it works without aopproxy.
But the customer's requirment is to use an
aopproxy, exactly the way i specified.
Does it work to this, or it is another way to 
accomplish the same result. Any Idea ?
Can anyone help,please ?
 
Thanks Daniel

gnodet wrote:
> 
> Does it work if you remove the aop proxy ?
> I would think this is unrelated ...
> 
> On 12/14/06, fordan <da...@main.se> wrote:
>>
>> Hi !
>>
>> I got some problem ,  Can anyone Help ? Thanks Daniel
>>
>> when using an aop Proxy like this:
>>
>> Springbean.xml:
>>
>> <bean id="myService"
>>         class="org.springframework.aop.framework.ProxyFactoryBean">
>>         <property name="proxyInterfaces">
>>             <value>
>>                someinterface
>>             </value>
>>         </property>
>>         <property name="target">
>>             <ref bean="implClass" />
>>         </property>
>>         <property name="interceptorNames">
>>             <list>
>>                 <value>someInterceptor1</value>
>>                 <value>someInterceptor1</value>
>>                 <value>someInterceptor1</value>
>>                 <value>someInterceptor1</value>
>>             </list>
>>         </property>
>>     </bean>
>>
>> <bean id="implClass"
>>         class="my.implClass" >
>> <property name="someProperty" value="someValue" />
>> </bean>
>>
>> xbean :
>>
>> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>>     <import resource="classpath:Springbean.xml" />
>>     <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"
>> style="wrapped" />
>> </beans>
>>
>> error while invoking service:
>>
>> INFO  - DefaultFaultHandler            - Fault occurred!
>> org.codehaus.xfire.fault.XFireFault: Invalid operation:
>> {http://www.my/ws/impl}GetSomething
>>         at
>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>>         at
>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>>         at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>         at
>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>>         at
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>         at
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>         at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>>         at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>>         at java.lang.Thread.run(Thread.java:595)
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7876962
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7879348
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Invalid operation while invoking a JSR181 endpoint

Posted by Guillaume Nodet <gn...@gmail.com>.
Does it work if you remove the aop proxy ?
I would think this is unrelated ...

On 12/14/06, fordan <da...@main.se> wrote:
>
> Hi !
>
> I got some problem ,  Can anyone Help ? Thanks Daniel
>
> when using an aop Proxy like this:
>
> Springbean.xml:
>
> <bean id="myService"
>         class="org.springframework.aop.framework.ProxyFactoryBean">
>         <property name="proxyInterfaces">
>             <value>
>                someinterface
>             </value>
>         </property>
>         <property name="target">
>             <ref bean="implClass" />
>         </property>
>         <property name="interceptorNames">
>             <list>
>                 <value>someInterceptor1</value>
>                 <value>someInterceptor1</value>
>                 <value>someInterceptor1</value>
>                 <value>someInterceptor1</value>
>             </list>
>         </property>
>     </bean>
>
> <bean id="implClass"
>         class="my.implClass" >
> <property name="someProperty" value="someValue" />
> </bean>
>
> xbean :
>
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>     <import resource="classpath:Springbean.xml" />
>     <jsr181:endpoint pojo="#myService" wsdlResource="classpath:some.wsdl"
> style="wrapped" />
> </beans>
>
> error while invoking service:
>
> INFO  - DefaultFaultHandler            - Fault occurred!
> org.codehaus.xfire.fault.XFireFault: Invalid operation:
> {http://www.my/ws/impl}GetSomething
>         at
> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>         at
> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>         at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>         at
> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>         at
> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>         at
> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>         at java.lang.Thread.run(Thread.java:595)
>
> --
> View this message in context: http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7876962
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet