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 Mancinelli Elodie <el...@bull.net> on 2006/07/03 10:11:59 UTC

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Hi Paul

1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans 
code works without WSRM.
2) The error for MTOM + WSRM with ADB, I don't know because I can't 
generate sources.
I'm trying to do MTOM + WSRM with ADB on a other little exemple like 
HelloWorld. I tell you the result when I finish it.

Thanks

Elodie




Paul Fremantle wrote:

> Elodie
>
> I'm not completely clear on the situation!
>
> 1) Is the MTOM + XMLBeans code working without WSRM?
> 2) What is the error you get with ADB?
> 3) Can you post the WSDL?
>
> Paul
>
> On 6/29/06, Mancinelli Elodie <el...@bull.net> wrote:
>
>> Hi Paul
>>
>> Thanks for your response. I wish have more information because I don' t
>> understand why MTOM can't work with XmlBeans? And what is the
>> marshalling I have to use?
>> I try ADB but it not seems to work, I can't generate the server
>> implementation.
>>
>> In more, I create a client-server with only MTOM and I also create the
>> same thing with only WSRM(sandesha2) and  both work separetly with
>> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do to
>> resolve my problem?
>>
>>
>> Thanks a lot.
>>
>> Regards
>> Elodie
>>
>>
>> Paul Fremantle wrote:
>>
>> > Elodie
>> >
>> > I think the problem is that you are using MTOM with XMLBeans which
>> > does not work.
>> >
>> > Paul
>> >
>> > --
>> > Paul Fremantle
>> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>> >
>> > http://bloglines.com/blog/paulfremantle
>> > paul@wso2.com
>> >
>> > "Oxygenating the Web Service Platform", www.wso2.com
>> >
>> >
>> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
>> >
>> >> Mancinelli Elodie wrote:
>> >>
>> >> > Sorry, I want to precise my request. When I observe with TCPMon the
>> >> > soap message, the differents messages of WSRM's protocole are 
>> created
>> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement 
>> and
>> >> > TerminateSequence). These messages are correct. The problem is 
>> on the
>> >> > server after messages.
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Regards,
>> >> > Elodie
>> >> >
>> >> >
>> >> > Mancinelli Elodie wrote:
>> >> >
>> >> >> Hi all,
>> >> >>
>> >> >> I try to create an OneWay method which supports WSRM and an
>> >> attachment.
>> >> >> My service is really simple, it's only a "println".
>> >> >> The method runs successfully when there is only the WSRM
>> >> >> implementation, but when I add the attachement part, I have an 
>> server
>> >> >> error:
>> >> >>
>> >> >> org.apache.sandesha2.SandeshaException: Data binding error; nested
>> >> >> exception is:
>> >> >>        java.lang.RuntimeException: Data binding error; nested
>> >> >> exception is:
>> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
>> >> >> exception is:
>> >> >>        java.lang.RuntimeException: Data binding error
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
>> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error; nested
>> >> >> exception is:
>> >> >>        java.lang.RuntimeException: Data binding error
>> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
>> >> >>        at
>> >> >>
>> >> 
>> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >> 
>> org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
>> >> >>        at
>> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
>> >> >> Caused by: java.lang.RuntimeException: Data binding error
>> >> >>        at
>> >> >>
>> >> 
>> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46) 
>>
>> >>
>> >> >>
>> >> >>        ... 4 more
>> >> >> Caused by: org.apache.axiom.om.OMException:
>> >> >> java.lang.NullPointerException
>> >> >>        at
>> >> >> 
>> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145) 
>>
>> >>
>> >> >>
>> >> >>        ... 5 more
>> >> >> Caused by: java.lang.NullPointerException
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710) 
>>
>> >>
>> >> >>
>> >> >>        at org.apache.coyote.Request.doRead(Request.java:423)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104) 
>>
>> >>
>> >> >>
>> >> >>        at 
>> java.io.FilterInputStream.read(FilterInputStream.java:66)
>> >> >>        at
>> >> java.io.PushbackInputStream.read(PushbackInputStream.java:120)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
>> >> >>        at
>> >> >> 
>> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
>> >> >>        at
>> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.attachments.PartOnMemory.<init>(PartOnMemory.java:31)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >>
>> >> 
>> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368) 
>>
>> >>
>> >> >>
>> >> >>        at
>> >> >> 
>> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
>> >> >>
>> >> >> My client is:
>> >> >>
>> >> >> public static void testSubmitOneWayWSRM() throws Exception {
>> >> >>
>> >> >>         ConfigurationContext configContext =
>> >> >>
>> >> 
>> ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml); 
>>
>> >>
>> >> >>
>> >> >>         ServiceClient sender = new ServiceClient
>> >> (configContext,null);
>> >> >>
>> >> >>
>> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace, "m");
>> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
>> >> omNs);
>> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
>> >> omNs);
>> >> >>                 // Add Text
>> >> >>         String bodymessvalue=createSoapMessageString(fileXMLName);
>> >> >>         payload.addChild(fac.createOMText(bodymess, 
>> bodymessvalue));
>> >> >>
>> >> >>         // Add text file
>> >> >>         OMElement attach=createAttachment(fac,omNs);
>> >> >>         attach = fac.createOMElement("attachment", omNs);
>> >> >>         File fileTxt = new File(fileName);
>> >> >>         FileDataSource dataSource = new FileDataSource(fileTxt);
>> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
>> >> >>         OMText textData = fac.createOMText(expectedDH, true);
>> >> >>         System.out.println("Client:contentID" +
>> >> >> textData.getContentID());
>> >> >>         attach.addChild(textData);
>> >> >>         payload.addChild(attach);
>> >> >>
>> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
>> >> >>         Options options = new Options();
>> >> >>         options.setTo(targetEPR);
>> >> >>         options.setAction("submitOneWay");
>> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >>         options.setUseSeparateListener(false);
>> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >> Constants.VALUE_TRUE);
>> >> >>
>> >> >>
>> >> 
>> options.setProperty(MessageContextConstants.TRANSPORT_URL,targetEPRTcpmon); 
>>
>> >>
>> >> >>
>> >> >>         sender.setOptions(options);
>> >> >>
>> >> >>         options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
>> >> >> "true");
>> >> >>         sender.fireAndForget(payload);
>> >> >>         Thread.sleep(10000);
>> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
>> >> >>
>> >> >>    }
>> >> >>
>> >> >> I join also the configuration file : client_axis2.xml
>> >> >>
>> >> >> Can someone have an idea?
>> >> >>
>> >> >> Thanks for your help.
>> >> >>
>> >> >> Regards
>> >> >> Elodie
>> >> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>>
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2][resolve]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Yes it work!!!!!  :-)

I want to thank all person which have help me.

Regards
Elodie


Chamikara Jayalath wrote:

> Hi Elliod,
>
> This is because u hv the old Neethi jar in you tomcat lib directory. 
> Remove this and add the latest Neethi-SNAPSHOT.jar from
> http://people.apache.org/repository/ws-commons/jars/
>
>
> Chamikara
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2][resolve]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Yes it work!!!!!  :-)

I want to thank all person which have help me.

Regards
Elodie


Chamikara Jayalath wrote:

> Hi Elliod,
>
> This is because u hv the old Neethi jar in you tomcat lib directory. 
> Remove this and add the latest Neethi-SNAPSHOT.jar from
> http://people.apache.org/repository/ws-commons/jars/
>
>
> Chamikara
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2][resolve]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Yes it work!!!!!  :-)

I want to thank all person which have help me.

Regards
Elodie


Chamikara Jayalath wrote:

> Hi Elliod,
>
> This is because u hv the old Neethi jar in you tomcat lib directory. 
> Remove this and add the latest Neethi-SNAPSHOT.jar from
> http://people.apache.org/repository/ws-commons/jars/
>
>
> Chamikara
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elliod,

This is because u hv the old Neethi jar in you tomcat lib directory. Remove
this and add the latest Neethi-SNAPSHOT.jar from
http://people.apache.org/repository/ws-commons/jars/


Chamikara


On 7/4/06, Mancinelli Elodie <el...@bull.net> wrote:
>
> Hi Chamikara,
>
> I chekout Sandesha2 and run maven.
> I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et
> sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I
> have an error when I launch catalina. The problem to the
> sandesha2-SNAPSHOT.mar.
>
> - Deploying module : sandesha2
> - StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> - La servlet /axis2 a généré une exception "load()"
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> I search the class "ExactlyOne" in jars and mar but I don't find. Where
> is it?
> And What is the problem?
>
> Thanks a lot.
>
> Regards
> Elodie
>
>
>
>
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie,
> >
> > This was due to a bug, fixed now. Please take a latest checkout of
> > Sandesha2.
> >
> > Chamikara
> >
> >
> > On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net
> > <ma...@bull.net>> wrote:
> >
> >     Sorry I forget the StackTrace:
> >
> >     java.lang.NullPointerException
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> >     (TerminateSeqMsgProcessor.java:128)
> >     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> >     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> >     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
> >     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> >     org.apache.axis2.transport.http.AxisServlet.doPost
> >     (AxisServlet.java:136)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
> >               This error appear in the response at the
> TerminateSequence.
> >
> >     Elodie
> >
> >
> >     Mancinelli Elodie wrote:
> >
> >     > Hi Chamikara,
> >     >
> >     > Thanks you for your help.
> >     >
> >     > I change the 'InvokeInOrder' policy in the module.xml to 'false'
> in
> >     > the sandesha2_1.0 mar.
> >     > And now,I have an other error. I give you the catalina log:
> >     >
> >     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
> >     custom
> >     > GRAVE: Exception Processing ErrorPage[errorCode=500,
> >     > location=/axis2-web/Error/error500.jsp]
> >     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> >     > appelé pour cette réponse
> >     >        at
> >     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
> >     (JspServletWrapper.java:510)
> >     >
> >     >        at
> >     >
> >     org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >     >
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.serviceJspFile
> >     (JspServlet.java:314)
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >     >        at
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >     >        at
> >     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >     (ApplicationFilterChain.java:252)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.invoke
> >     (ApplicationDispatcher.java:672)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.doForward
> >     (ApplicationDispatcher.java:398)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.custom
> >     (StandardHostValve.java:363)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.status(
> StandardHostValve.java:284)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.throwable
> >     (StandardHostValve.java:228)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:134)
> >     >
> >     >        at
> >     > org.apache.catalina.valves.ErrorReportValve.invoke
> >     (ErrorReportValve.java:105)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >     >
> >     >        at
> >     > org.apache.catalina.connector.CoyoteAdapter.service
> >     (CoyoteAdapter.java:148)
> >     >
> >     >        at
> >     >
> >     org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
> >     >
> >     >        at
> >     >
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >     (Http11BaseProtocol.java:667)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >     >
> >     >        at
> >     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> >     (LeaderFollowerWorkerThread.java:80)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >     >
> >     >        at java.lang.Thread.run(Thread.java:595)
> >     >
> >     > I search in the mailling list,and I don't find if there is a
> >     solution
> >     > but I find a JIRA
> >     bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >     >
> >     > Have you an idea?
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Chamikara Jayalath wrote:
> >     >
> >     >> Hi Elodie, Paul,
> >     >>
> >     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >     >> But MTOM + Sadesha2 + InOrder case is not working.
> >     >>
> >     >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >     >> message before its actual invocation and Axis2 closes the
> >     InPutStream
> >     >> when the message get paused and the thread get returned.
> >     >>
> >     >> Because of that the service Impl. get exceptions when tring to
> read
> >     >> the MTOM attachments from the already closed stream. This seems
> >     to be
> >     >> a general problem with message pausing.
> >     >>
> >     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >     >> that change the 'InvokeInOrder' policy in the module.xml to
> >     'false'
> >     >> (this is 'true' by default).
> >     >>
> >     >> Chamikara
> >     >>
> >     >
> >
> >
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Paul Fremantle <pz...@gmail.com>.
Elodie

It is in Neethi (WS-Policy).

Paul

On 7/4/06, Mancinelli Elodie <el...@bull.net> wrote:
> Hi Chamikara,
>
> I chekout Sandesha2 and run maven.
> I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et
> sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I
> have an error when I launch catalina. The problem to the
> sandesha2-SNAPSHOT.mar.
>
> - Deploying module : sandesha2
> - StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
>         at
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> - La servlet /axis2 a généré une exception "load()"
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
>         at
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> I search the class "ExactlyOne" in jars and mar but I don't find. Where
> is it?
> And What is the problem?
>
> Thanks a lot.
>
> Regards
> Elodie
>
>
>
>
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie,
> >
> > This was due to a bug, fixed now. Please take a latest checkout of
> > Sandesha2.
> >
> > Chamikara
> >
> >
> > On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net
> > <ma...@bull.net>> wrote:
> >
> >     Sorry I forget the StackTrace:
> >
> >     java.lang.NullPointerException
> >     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)
> >     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> >     (TerminateSeqMsgProcessor.java:128)
> >     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)
> >     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> >     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
> >     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> >     org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >     org.apache.axis2.transport.http.AxisServlet.doPost
> >     (AxisServlet.java:136)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
> >               This error appear in the response at the TerminateSequence.
> >
> >     Elodie
> >
> >
> >     Mancinelli Elodie wrote:
> >
> >     > Hi Chamikara,
> >     >
> >     > Thanks you for your help.
> >     >
> >     > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
> >     > the sandesha2_1.0 mar.
> >     > And now,I have an other error. I give you the catalina log:
> >     >
> >     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
> >     custom
> >     > GRAVE: Exception Processing ErrorPage[errorCode=500,
> >     > location=/axis2-web/Error/error500.jsp]
> >     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> >     > appelé pour cette réponse
> >     >        at
> >     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
> >     (JspServletWrapper.java:510)
> >     >
> >     >        at
> >     >
> >     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
> >     >
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.serviceJspFile
> >     (JspServlet.java:314)
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >     >        at
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >     >        at
> >     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >     (ApplicationFilterChain.java:252)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.invoke
> >     (ApplicationDispatcher.java:672)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.doForward
> >     (ApplicationDispatcher.java:398)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.custom
> >     (StandardHostValve.java:363)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.throwable
> >     (StandardHostValve.java:228)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
> >     >
> >     >        at
> >     > org.apache.catalina.valves.ErrorReportValve.invoke
> >     (ErrorReportValve.java:105)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >     >
> >     >        at
> >     > org.apache.catalina.connector.CoyoteAdapter.service
> >     (CoyoteAdapter.java:148)
> >     >
> >     >        at
> >     >
> >     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> >     >
> >     >        at
> >     >
> >     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >     (Http11BaseProtocol.java:667)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >     >
> >     >        at
> >     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> >     (LeaderFollowerWorkerThread.java:80)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >     >
> >     >        at java.lang.Thread.run(Thread.java:595)
> >     >
> >     > I search in the mailling list,and I don't find if there is a
> >     solution
> >     > but I find a JIRA
> >     bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >     >
> >     > Have you an idea?
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Chamikara Jayalath wrote:
> >     >
> >     >> Hi Elodie, Paul,
> >     >>
> >     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >     >> But MTOM + Sadesha2 + InOrder case is not working.
> >     >>
> >     >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >     >> message before its actual invocation and Axis2 closes the
> >     InPutStream
> >     >> when the message get paused and the thread get returned.
> >     >>
> >     >> Because of that the service Impl. get exceptions when tring to read
> >     >> the MTOM attachments from the already closed stream. This seems
> >     to be
> >     >> a general problem with message pausing.
> >     >>
> >     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >     >> that change the 'InvokeInOrder' policy in the module.xml to
> >     'false'
> >     >> (this is 'true' by default).
> >     >>
> >     >> Chamikara
> >     >>
> >     >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elliod,

This is because u hv the old Neethi jar in you tomcat lib directory. Remove
this and add the latest Neethi-SNAPSHOT.jar from
http://people.apache.org/repository/ws-commons/jars/


Chamikara


On 7/4/06, Mancinelli Elodie <el...@bull.net> wrote:
>
> Hi Chamikara,
>
> I chekout Sandesha2 and run maven.
> I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et
> sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I
> have an error when I launch catalina. The problem to the
> sandesha2-SNAPSHOT.mar.
>
> - Deploying module : sandesha2
> - StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> - La servlet /axis2 a généré une exception "load()"
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> I search the class "ExactlyOne" in jars and mar but I don't find. Where
> is it?
> And What is the problem?
>
> Thanks a lot.
>
> Regards
> Elodie
>
>
>
>
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie,
> >
> > This was due to a bug, fixed now. Please take a latest checkout of
> > Sandesha2.
> >
> > Chamikara
> >
> >
> > On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net
> > <ma...@bull.net>> wrote:
> >
> >     Sorry I forget the StackTrace:
> >
> >     java.lang.NullPointerException
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> >     (TerminateSeqMsgProcessor.java:128)
> >     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> >     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> >     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
> >     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> >     org.apache.axis2.transport.http.AxisServlet.doPost
> >     (AxisServlet.java:136)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
> >               This error appear in the response at the
> TerminateSequence.
> >
> >     Elodie
> >
> >
> >     Mancinelli Elodie wrote:
> >
> >     > Hi Chamikara,
> >     >
> >     > Thanks you for your help.
> >     >
> >     > I change the 'InvokeInOrder' policy in the module.xml to 'false'
> in
> >     > the sandesha2_1.0 mar.
> >     > And now,I have an other error. I give you the catalina log:
> >     >
> >     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
> >     custom
> >     > GRAVE: Exception Processing ErrorPage[errorCode=500,
> >     > location=/axis2-web/Error/error500.jsp]
> >     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> >     > appelé pour cette réponse
> >     >        at
> >     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
> >     (JspServletWrapper.java:510)
> >     >
> >     >        at
> >     >
> >     org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >     >
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.serviceJspFile
> >     (JspServlet.java:314)
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >     >        at
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >     >        at
> >     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >     (ApplicationFilterChain.java:252)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.invoke
> >     (ApplicationDispatcher.java:672)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.doForward
> >     (ApplicationDispatcher.java:398)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.custom
> >     (StandardHostValve.java:363)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.status(
> StandardHostValve.java:284)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.throwable
> >     (StandardHostValve.java:228)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:134)
> >     >
> >     >        at
> >     > org.apache.catalina.valves.ErrorReportValve.invoke
> >     (ErrorReportValve.java:105)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >     >
> >     >        at
> >     > org.apache.catalina.connector.CoyoteAdapter.service
> >     (CoyoteAdapter.java:148)
> >     >
> >     >        at
> >     >
> >     org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
> >     >
> >     >        at
> >     >
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >     (Http11BaseProtocol.java:667)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >     >
> >     >        at
> >     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> >     (LeaderFollowerWorkerThread.java:80)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >     >
> >     >        at java.lang.Thread.run(Thread.java:595)
> >     >
> >     > I search in the mailling list,and I don't find if there is a
> >     solution
> >     > but I find a JIRA
> >     bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >     >
> >     > Have you an idea?
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Chamikara Jayalath wrote:
> >     >
> >     >> Hi Elodie, Paul,
> >     >>
> >     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >     >> But MTOM + Sadesha2 + InOrder case is not working.
> >     >>
> >     >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >     >> message before its actual invocation and Axis2 closes the
> >     InPutStream
> >     >> when the message get paused and the thread get returned.
> >     >>
> >     >> Because of that the service Impl. get exceptions when tring to
> read
> >     >> the MTOM attachments from the already closed stream. This seems
> >     to be
> >     >> a general problem with message pausing.
> >     >>
> >     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >     >> that change the 'InvokeInOrder' policy in the module.xml to
> >     'false'
> >     >> (this is 'true' by default).
> >     >>
> >     >> Chamikara
> >     >>
> >     >
> >
> >
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elliod,

This is because u hv the old Neethi jar in you tomcat lib directory. Remove
this and add the latest Neethi-SNAPSHOT.jar from
http://people.apache.org/repository/ws-commons/jars/


Chamikara


On 7/4/06, Mancinelli Elodie <el...@bull.net> wrote:
>
> Hi Chamikara,
>
> I chekout Sandesha2 and run maven.
> I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et
> sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I
> have an error when I launch catalina. The problem to the
> sandesha2-SNAPSHOT.mar.
>
> - Deploying module : sandesha2
> - StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> - La servlet /axis2 a généré une exception "load()"
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> I search the class "ExactlyOne" in jars and mar but I don't find. Where
> is it?
> And What is the problem?
>
> Thanks a lot.
>
> Regards
> Elodie
>
>
>
>
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie,
> >
> > This was due to a bug, fixed now. Please take a latest checkout of
> > Sandesha2.
> >
> > Chamikara
> >
> >
> > On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net
> > <ma...@bull.net>> wrote:
> >
> >     Sorry I forget the StackTrace:
> >
> >     java.lang.NullPointerException
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> >     (TerminateSeqMsgProcessor.java:128)
> >     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> >     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> >     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
> >     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> >     org.apache.axis2.transport.http.AxisServlet.doPost
> >     (AxisServlet.java:136)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
> >               This error appear in the response at the
> TerminateSequence.
> >
> >     Elodie
> >
> >
> >     Mancinelli Elodie wrote:
> >
> >     > Hi Chamikara,
> >     >
> >     > Thanks you for your help.
> >     >
> >     > I change the 'InvokeInOrder' policy in the module.xml to 'false'
> in
> >     > the sandesha2_1.0 mar.
> >     > And now,I have an other error. I give you the catalina log:
> >     >
> >     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
> >     custom
> >     > GRAVE: Exception Processing ErrorPage[errorCode=500,
> >     > location=/axis2-web/Error/error500.jsp]
> >     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> >     > appelé pour cette réponse
> >     >        at
> >     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
> >     (JspServletWrapper.java:510)
> >     >
> >     >        at
> >     >
> >     org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >     >
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.serviceJspFile
> >     (JspServlet.java:314)
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >     >        at
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >     >        at
> >     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >     (ApplicationFilterChain.java:252)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.invoke
> >     (ApplicationDispatcher.java:672)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.doForward
> >     (ApplicationDispatcher.java:398)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.custom
> >     (StandardHostValve.java:363)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.status(
> StandardHostValve.java:284)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.throwable
> >     (StandardHostValve.java:228)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:134)
> >     >
> >     >        at
> >     > org.apache.catalina.valves.ErrorReportValve.invoke
> >     (ErrorReportValve.java:105)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >     >
> >     >        at
> >     > org.apache.catalina.connector.CoyoteAdapter.service
> >     (CoyoteAdapter.java:148)
> >     >
> >     >        at
> >     >
> >     org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
> >     >
> >     >        at
> >     >
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >     (Http11BaseProtocol.java:667)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >     >
> >     >        at
> >     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> >     (LeaderFollowerWorkerThread.java:80)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >     >
> >     >        at java.lang.Thread.run(Thread.java:595)
> >     >
> >     > I search in the mailling list,and I don't find if there is a
> >     solution
> >     > but I find a JIRA
> >     bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >     >
> >     > Have you an idea?
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Chamikara Jayalath wrote:
> >     >
> >     >> Hi Elodie, Paul,
> >     >>
> >     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >     >> But MTOM + Sadesha2 + InOrder case is not working.
> >     >>
> >     >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >     >> message before its actual invocation and Axis2 closes the
> >     InPutStream
> >     >> when the message get paused and the thread get returned.
> >     >>
> >     >> Because of that the service Impl. get exceptions when tring to
> read
> >     >> the MTOM attachments from the already closed stream. This seems
> >     to be
> >     >> a general problem with message pausing.
> >     >>
> >     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >     >> that change the 'InvokeInOrder' policy in the module.xml to
> >     'false'
> >     >> (this is 'true' by default).
> >     >>
> >     >> Chamikara
> >     >>
> >     >
> >
> >
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Hi Chamikara,

I chekout Sandesha2 and run maven.
I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et 
sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I 
have an error when I launch catalina. The problem to the 
sandesha2-SNAPSHOT.mar.

- Deploying module : sandesha2
- StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
        at 
org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
        at 
org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
        at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
        at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
- La servlet /axis2 a généré une exception "load()"
java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
        at 
org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
        at 
org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
        at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
        at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

I search the class "ExactlyOne" in jars and mar but I don't find. Where 
is it?
And What is the problem?

Thanks a lot.

Regards
Elodie





Chamikara Jayalath wrote:

> Hi Elodie,
>
> This was due to a bug, fixed now. Please take a latest checkout of 
> Sandesha2.
>
> Chamikara
>
>
> On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net 
> <ma...@bull.net>> wrote:
>
>     Sorry I forget the StackTrace:
>
>     java.lang.NullPointerException
>     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)
>     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
>     (TerminateSeqMsgProcessor.java:128)
>     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)
>     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
>     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
>     org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>     org.apache.axis2.transport.http.AxisServlet.doPost
>     (AxisServlet.java:136)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
>               This error appear in the response at the TerminateSequence.
>
>     Elodie
>
>
>     Mancinelli Elodie wrote:
>
>     > Hi Chamikara,
>     >
>     > Thanks you for your help.
>     >
>     > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
>     > the sandesha2_1.0 mar.
>     > And now,I have an other error. I give you the catalina log:
>     >
>     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
>     custom
>     > GRAVE: Exception Processing ErrorPage[errorCode=500,
>     > location=/axis2-web/Error/error500.jsp]
>     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
>     > appelé pour cette réponse
>     >        at
>     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
>     (JspServletWrapper.java:510)
>     >
>     >        at
>     >
>     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
>     >
>     >        at
>     > org.apache.jasper.servlet.JspServlet.serviceJspFile
>     (JspServlet.java:314)
>     >        at
>     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>     >        at
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     >        at
>     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>     (ApplicationFilterChain.java:252)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     >
>     >        at
>     > org.apache.catalina.core.ApplicationDispatcher.invoke
>     (ApplicationDispatcher.java:672)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>     >
>     >        at
>     > org.apache.catalina.core.ApplicationDispatcher.doForward
>     (ApplicationDispatcher.java:398)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>     >
>     >        at
>     > org.apache.catalina.core.StandardHostValve.custom
>     (StandardHostValve.java:363)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
>     >
>     >        at
>     > org.apache.catalina.core.StandardHostValve.throwable
>     (StandardHostValve.java:228)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>     >
>     >        at
>     > org.apache.catalina.valves.ErrorReportValve.invoke
>     (ErrorReportValve.java:105)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>     >
>     >        at
>     > org.apache.catalina.connector.CoyoteAdapter.service
>     (CoyoteAdapter.java:148)
>     >
>     >        at
>     >
>     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>     >
>     >        at
>     >
>     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>     (Http11BaseProtocol.java:667)
>     >
>     >        at
>     >
>     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>     >
>     >        at
>     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>     (LeaderFollowerWorkerThread.java:80)
>     >
>     >        at
>     >
>     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>     >
>     >        at java.lang.Thread.run(Thread.java:595)
>     >
>     > I search in the mailling list,and I don't find if there is a
>     solution
>     > but I find a JIRA
>     bug(http://issues.apache.org/jira/browse/AXIS2-707).
>     >
>     > Have you an idea?
>     >
>     > Elodie
>     >
>     >
>     >
>     >
>     > Chamikara Jayalath wrote:
>     >
>     >> Hi Elodie, Paul,
>     >>
>     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
>     >> But MTOM + Sadesha2 + InOrder case is not working.
>     >>
>     >> When InOrder Invocation is enabled Sandesha2 always pauses the
>     >> message before its actual invocation and Axis2 closes the
>     InPutStream
>     >> when the message get paused and the thread get returned.
>     >>
>     >> Because of that the service Impl. get exceptions when tring to read
>     >> the MTOM attachments from the already closed stream. This seems
>     to be
>     >> a general problem with message pausing.
>     >>
>     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
>     >> that change the 'InvokeInOrder' policy in the module.xml to
>     'false'
>     >> (this is 'true' by default).
>     >>
>     >> Chamikara
>     >>
>     >
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Hi Chamikara,

I chekout Sandesha2 and run maven.
I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et 
sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I 
have an error when I launch catalina. The problem to the 
sandesha2-SNAPSHOT.mar.

- Deploying module : sandesha2
- StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
        at 
org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
        at 
org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
        at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
        at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
- La servlet /axis2 a généré une exception "load()"
java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
        at 
org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
        at 
org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
        at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
        at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

I search the class "ExactlyOne" in jars and mar but I don't find. Where 
is it?
And What is the problem?

Thanks a lot.

Regards
Elodie





Chamikara Jayalath wrote:

> Hi Elodie,
>
> This was due to a bug, fixed now. Please take a latest checkout of 
> Sandesha2.
>
> Chamikara
>
>
> On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net 
> <ma...@bull.net>> wrote:
>
>     Sorry I forget the StackTrace:
>
>     java.lang.NullPointerException
>     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)
>     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
>     (TerminateSeqMsgProcessor.java:128)
>     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)
>     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
>     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
>     org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>     org.apache.axis2.transport.http.AxisServlet.doPost
>     (AxisServlet.java:136)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
>               This error appear in the response at the TerminateSequence.
>
>     Elodie
>
>
>     Mancinelli Elodie wrote:
>
>     > Hi Chamikara,
>     >
>     > Thanks you for your help.
>     >
>     > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
>     > the sandesha2_1.0 mar.
>     > And now,I have an other error. I give you the catalina log:
>     >
>     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
>     custom
>     > GRAVE: Exception Processing ErrorPage[errorCode=500,
>     > location=/axis2-web/Error/error500.jsp]
>     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
>     > appelé pour cette réponse
>     >        at
>     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
>     (JspServletWrapper.java:510)
>     >
>     >        at
>     >
>     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
>     >
>     >        at
>     > org.apache.jasper.servlet.JspServlet.serviceJspFile
>     (JspServlet.java:314)
>     >        at
>     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>     >        at
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     >        at
>     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>     (ApplicationFilterChain.java:252)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     >
>     >        at
>     > org.apache.catalina.core.ApplicationDispatcher.invoke
>     (ApplicationDispatcher.java:672)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>     >
>     >        at
>     > org.apache.catalina.core.ApplicationDispatcher.doForward
>     (ApplicationDispatcher.java:398)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>     >
>     >        at
>     > org.apache.catalina.core.StandardHostValve.custom
>     (StandardHostValve.java:363)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
>     >
>     >        at
>     > org.apache.catalina.core.StandardHostValve.throwable
>     (StandardHostValve.java:228)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>     >
>     >        at
>     > org.apache.catalina.valves.ErrorReportValve.invoke
>     (ErrorReportValve.java:105)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>     >
>     >        at
>     > org.apache.catalina.connector.CoyoteAdapter.service
>     (CoyoteAdapter.java:148)
>     >
>     >        at
>     >
>     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>     >
>     >        at
>     >
>     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>     (Http11BaseProtocol.java:667)
>     >
>     >        at
>     >
>     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>     >
>     >        at
>     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>     (LeaderFollowerWorkerThread.java:80)
>     >
>     >        at
>     >
>     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>     >
>     >        at java.lang.Thread.run(Thread.java:595)
>     >
>     > I search in the mailling list,and I don't find if there is a
>     solution
>     > but I find a JIRA
>     bug(http://issues.apache.org/jira/browse/AXIS2-707).
>     >
>     > Have you an idea?
>     >
>     > Elodie
>     >
>     >
>     >
>     >
>     > Chamikara Jayalath wrote:
>     >
>     >> Hi Elodie, Paul,
>     >>
>     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
>     >> But MTOM + Sadesha2 + InOrder case is not working.
>     >>
>     >> When InOrder Invocation is enabled Sandesha2 always pauses the
>     >> message before its actual invocation and Axis2 closes the
>     InPutStream
>     >> when the message get paused and the thread get returned.
>     >>
>     >> Because of that the service Impl. get exceptions when tring to read
>     >> the MTOM attachments from the already closed stream. This seems
>     to be
>     >> a general problem with message pausing.
>     >>
>     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
>     >> that change the 'InvokeInOrder' policy in the module.xml to
>     'false'
>     >> (this is 'true' by default).
>     >>
>     >> Chamikara
>     >>
>     >
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Hi Chamikara,

I chekout Sandesha2 and run maven.
I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et 
sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I 
have an error when I launch catalina. The problem to the 
sandesha2-SNAPSHOT.mar.

- Deploying module : sandesha2
- StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
        at 
org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
        at 
org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
        at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
        at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
- La servlet /axis2 a généré une exception "load()"
java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
        at 
org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(RMPolicyProcessor.java:127)
        at 
org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy(PropertyManager.java:190)
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:56)
        at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
        at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

I search the class "ExactlyOne" in jars and mar but I don't find. Where 
is it?
And What is the problem?

Thanks a lot.

Regards
Elodie





Chamikara Jayalath wrote:

> Hi Elodie,
>
> This was due to a bug, fixed now. Please take a latest checkout of 
> Sandesha2.
>
> Chamikara
>
>
> On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net 
> <ma...@bull.net>> wrote:
>
>     Sorry I forget the StackTrace:
>
>     java.lang.NullPointerException
>     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)
>     org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
>     (TerminateSeqMsgProcessor.java:128)
>     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)
>     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
>     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
>     org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>     org.apache.axis2.transport.http.AxisServlet.doPost
>     (AxisServlet.java:136)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
>               This error appear in the response at the TerminateSequence.
>
>     Elodie
>
>
>     Mancinelli Elodie wrote:
>
>     > Hi Chamikara,
>     >
>     > Thanks you for your help.
>     >
>     > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
>     > the sandesha2_1.0 mar.
>     > And now,I have an other error. I give you the catalina log:
>     >
>     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
>     custom
>     > GRAVE: Exception Processing ErrorPage[errorCode=500,
>     > location=/axis2-web/Error/error500.jsp]
>     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
>     > appelé pour cette réponse
>     >        at
>     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
>     (JspServletWrapper.java:510)
>     >
>     >        at
>     >
>     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
>     >
>     >        at
>     > org.apache.jasper.servlet.JspServlet.serviceJspFile
>     (JspServlet.java:314)
>     >        at
>     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>     >        at
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     >        at
>     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>     (ApplicationFilterChain.java:252)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     >
>     >        at
>     > org.apache.catalina.core.ApplicationDispatcher.invoke
>     (ApplicationDispatcher.java:672)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>     >
>     >        at
>     > org.apache.catalina.core.ApplicationDispatcher.doForward
>     (ApplicationDispatcher.java:398)
>     >
>     >        at
>     >
>     org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>     >
>     >        at
>     > org.apache.catalina.core.StandardHostValve.custom
>     (StandardHostValve.java:363)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
>     >
>     >        at
>     > org.apache.catalina.core.StandardHostValve.throwable
>     (StandardHostValve.java:228)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>     >
>     >        at
>     > org.apache.catalina.valves.ErrorReportValve.invoke
>     (ErrorReportValve.java:105)
>     >
>     >        at
>     >
>     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>     >
>     >        at
>     > org.apache.catalina.connector.CoyoteAdapter.service
>     (CoyoteAdapter.java:148)
>     >
>     >        at
>     >
>     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>     >
>     >        at
>     >
>     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>     (Http11BaseProtocol.java:667)
>     >
>     >        at
>     >
>     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>     >
>     >        at
>     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>     (LeaderFollowerWorkerThread.java:80)
>     >
>     >        at
>     >
>     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>     >
>     >        at java.lang.Thread.run(Thread.java:595)
>     >
>     > I search in the mailling list,and I don't find if there is a
>     solution
>     > but I find a JIRA
>     bug(http://issues.apache.org/jira/browse/AXIS2-707).
>     >
>     > Have you an idea?
>     >
>     > Elodie
>     >
>     >
>     >
>     >
>     > Chamikara Jayalath wrote:
>     >
>     >> Hi Elodie, Paul,
>     >>
>     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
>     >> But MTOM + Sadesha2 + InOrder case is not working.
>     >>
>     >> When InOrder Invocation is enabled Sandesha2 always pauses the
>     >> message before its actual invocation and Axis2 closes the
>     InPutStream
>     >> when the message get paused and the thread get returned.
>     >>
>     >> Because of that the service Impl. get exceptions when tring to read
>     >> the MTOM attachments from the already closed stream. This seems
>     to be
>     >> a general problem with message pausing.
>     >>
>     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
>     >> that change the 'InvokeInOrder' policy in the module.xml to
>     'false'
>     >> (this is 'true' by default).
>     >>
>     >> Chamikara
>     >>
>     >
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elodie,

This was due to a bug, fixed now. Please take a latest checkout of
Sandesha2.

Chamikara


On 7/3/06, Mancinelli Elodie <el...@bull.net> wrote:
>
> Sorry I forget the StackTrace:
>
> java.lang.NullPointerException
>
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
>
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> (TerminateSeqMsgProcessor.java:128)
> org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
>           This error appear in the response at the TerminateSequence.
>
> Elodie
>
>
> Mancinelli Elodie wrote:
>
> > Hi Chamikara,
> >
> > Thanks you for your help.
> >
> > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
> > the sandesha2_1.0 mar.
> > And now,I have an other error. I give you the catalina log:
> >
> > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
> > GRAVE: Exception Processing ErrorPage[errorCode=500,
> > location=/axis2-web/Error/error500.jsp]
> > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> > appelé pour cette réponse
> >        at
> > org.apache.jasper.servlet.JspServletWrapper.handleJspException(
> JspServletWrapper.java:510)
> >
> >        at
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >
> >        at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> >        at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.invoke(
> ApplicationDispatcher.java:672)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.doForward(
> ApplicationDispatcher.java:398)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java
> :363)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java
> :284)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.throwable(
> StandardHostValve.java:228)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :134)
> >
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> >
> >        at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >
> >        at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> >
> >        at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :869)
> >
> >        at
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:667)
> >
> >        at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >
> >        at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> >
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >
> >        at java.lang.Thread.run(Thread.java:595)
> >
> > I search in the mailling list,and I don't find if there is a solution
> > but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >
> > Have you an idea?
> >
> > Elodie
> >
> >
> >
> >
> > Chamikara Jayalath wrote:
> >
> >> Hi Elodie, Paul,
> >>
> >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >> But MTOM + Sadesha2 + InOrder case is not working.
> >>
> >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >> message before its actual invocation and Axis2 closes the InPutStream
> >> when the message get paused and the thread get returned.
> >>
> >> Because of that the service Impl. get exceptions when tring to read
> >> the MTOM attachments from the already closed stream. This seems to be
> >> a general problem with message pausing.
> >>
> >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >> that change the 'InvokeInOrder' policy in the module.xml to 'false'
> >> (this is 'true' by default).
> >>
> >> Chamikara
> >>
> >
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elodie,

This was due to a bug, fixed now. Please take a latest checkout of
Sandesha2.

Chamikara


On 7/3/06, Mancinelli Elodie <el...@bull.net> wrote:
>
> Sorry I forget the StackTrace:
>
> java.lang.NullPointerException
>
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
>
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> (TerminateSeqMsgProcessor.java:128)
> org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
>           This error appear in the response at the TerminateSequence.
>
> Elodie
>
>
> Mancinelli Elodie wrote:
>
> > Hi Chamikara,
> >
> > Thanks you for your help.
> >
> > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
> > the sandesha2_1.0 mar.
> > And now,I have an other error. I give you the catalina log:
> >
> > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
> > GRAVE: Exception Processing ErrorPage[errorCode=500,
> > location=/axis2-web/Error/error500.jsp]
> > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> > appelé pour cette réponse
> >        at
> > org.apache.jasper.servlet.JspServletWrapper.handleJspException(
> JspServletWrapper.java:510)
> >
> >        at
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >
> >        at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> >        at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.invoke(
> ApplicationDispatcher.java:672)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.doForward(
> ApplicationDispatcher.java:398)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java
> :363)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java
> :284)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.throwable(
> StandardHostValve.java:228)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :134)
> >
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> >
> >        at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >
> >        at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> >
> >        at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :869)
> >
> >        at
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:667)
> >
> >        at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >
> >        at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> >
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >
> >        at java.lang.Thread.run(Thread.java:595)
> >
> > I search in the mailling list,and I don't find if there is a solution
> > but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >
> > Have you an idea?
> >
> > Elodie
> >
> >
> >
> >
> > Chamikara Jayalath wrote:
> >
> >> Hi Elodie, Paul,
> >>
> >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >> But MTOM + Sadesha2 + InOrder case is not working.
> >>
> >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >> message before its actual invocation and Axis2 closes the InPutStream
> >> when the message get paused and the thread get returned.
> >>
> >> Because of that the service Impl. get exceptions when tring to read
> >> the MTOM attachments from the already closed stream. This seems to be
> >> a general problem with message pausing.
> >>
> >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >> that change the 'InvokeInOrder' policy in the module.xml to 'false'
> >> (this is 'true' by default).
> >>
> >> Chamikara
> >>
> >
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elodie,

This was due to a bug, fixed now. Please take a latest checkout of
Sandesha2.

Chamikara


On 7/3/06, Mancinelli Elodie <el...@bull.net> wrote:
>
> Sorry I forget the StackTrace:
>
> java.lang.NullPointerException
>
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
>
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> (TerminateSeqMsgProcessor.java:128)
> org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
>           This error appear in the response at the TerminateSequence.
>
> Elodie
>
>
> Mancinelli Elodie wrote:
>
> > Hi Chamikara,
> >
> > Thanks you for your help.
> >
> > I change the 'InvokeInOrder' policy in the module.xml to 'false' in
> > the sandesha2_1.0 mar.
> > And now,I have an other error. I give you the catalina log:
> >
> > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
> > GRAVE: Exception Processing ErrorPage[errorCode=500,
> > location=/axis2-web/Error/error500.jsp]
> > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> > appelé pour cette réponse
> >        at
> > org.apache.jasper.servlet.JspServletWrapper.handleJspException(
> JspServletWrapper.java:510)
> >
> >        at
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >
> >        at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> >        at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.invoke(
> ApplicationDispatcher.java:672)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.doForward(
> ApplicationDispatcher.java:398)
> >
> >        at
> > org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java
> :363)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java
> :284)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.throwable(
> StandardHostValve.java:228)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :134)
> >
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> >
> >        at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >
> >        at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> >
> >        at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :869)
> >
> >        at
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:667)
> >
> >        at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >
> >        at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> >
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >
> >        at java.lang.Thread.run(Thread.java:595)
> >
> > I search in the mailling list,and I don't find if there is a solution
> > but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >
> > Have you an idea?
> >
> > Elodie
> >
> >
> >
> >
> > Chamikara Jayalath wrote:
> >
> >> Hi Elodie, Paul,
> >>
> >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >> But MTOM + Sadesha2 + InOrder case is not working.
> >>
> >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >> message before its actual invocation and Axis2 closes the InPutStream
> >> when the message get paused and the thread get returned.
> >>
> >> Because of that the service Impl. get exceptions when tring to read
> >> the MTOM attachments from the already closed stream. This seems to be
> >> a general problem with message pausing.
> >>
> >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >> that change the 'InvokeInOrder' policy in the module.xml to 'false'
> >> (this is 'true' by default).
> >>
> >> Chamikara
> >>
> >
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Sorry I forget the StackTrace:

java.lang.NullPointerException    
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)    
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage(TerminateSeqMsgProcessor.java:128)    
org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)    
org.apache.axis2.engine.Phase.invoke(Phase.java:381)    
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)    
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)    
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)    
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)    
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)    
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
          This error appear in the response at the TerminateSequence.

Elodie


Mancinelli Elodie wrote:

> Hi Chamikara,
>
> Thanks you for your help.
>
> I change the 'InvokeInOrder' policy in the module.xml to 'false' in 
> the sandesha2_1.0 mar.
> And now,I have an other error. I give you the catalina log:
>
> 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
> GRAVE: Exception Processing ErrorPage[errorCode=500, 
> location=/axis2-web/Error/error500.jsp]
> org.apache.jasper.JasperException: "getOutputStream()" a déjà été 
> appelé pour cette réponse
>        at 
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) 
>
>        at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) 
>
>        at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>        at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134) 
>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
>
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) 
>
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
>
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>
>        at java.lang.Thread.run(Thread.java:595)
>
> I search in the mailling list,and I don't find if there is a solution 
> but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).
>
> Have you an idea?
>
> Elodie
>
>
>
>
> Chamikara Jayalath wrote:
>
>> Hi Elodie, Paul,
>>
>> It seems like MTOM + Sandesha2 + NotInOrder case is working.
>> But MTOM + Sadesha2 + InOrder case is not working.
>>
>> When InOrder Invocation is enabled Sandesha2 always pauses the 
>> message before its actual invocation and Axis2 closes the InPutStream 
>> when the message get paused and the thread get returned.
>>
>> Because of that the service Impl. get exceptions when tring to read 
>> the MTOM attachments from the already closed stream. This seems to be 
>> a general problem with message pausing.
>>
>> So Elodie, for now disable InOrder invocation in Sandesha2. To do 
>> that change the 'InvokeInOrder' policy in the module.xml to 'false' 
>> (this is 'true' by default).
>>
>> Chamikara
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Sorry I forget the StackTrace:

java.lang.NullPointerException    
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)    
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage(TerminateSeqMsgProcessor.java:128)    
org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)    
org.apache.axis2.engine.Phase.invoke(Phase.java:381)    
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)    
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)    
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)    
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)    
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)    
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
          This error appear in the response at the TerminateSequence.

Elodie


Mancinelli Elodie wrote:

> Hi Chamikara,
>
> Thanks you for your help.
>
> I change the 'InvokeInOrder' policy in the module.xml to 'false' in 
> the sandesha2_1.0 mar.
> And now,I have an other error. I give you the catalina log:
>
> 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
> GRAVE: Exception Processing ErrorPage[errorCode=500, 
> location=/axis2-web/Error/error500.jsp]
> org.apache.jasper.JasperException: "getOutputStream()" a déjà été 
> appelé pour cette réponse
>        at 
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) 
>
>        at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) 
>
>        at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>        at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134) 
>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
>
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) 
>
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
>
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>
>        at java.lang.Thread.run(Thread.java:595)
>
> I search in the mailling list,and I don't find if there is a solution 
> but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).
>
> Have you an idea?
>
> Elodie
>
>
>
>
> Chamikara Jayalath wrote:
>
>> Hi Elodie, Paul,
>>
>> It seems like MTOM + Sandesha2 + NotInOrder case is working.
>> But MTOM + Sadesha2 + InOrder case is not working.
>>
>> When InOrder Invocation is enabled Sandesha2 always pauses the 
>> message before its actual invocation and Axis2 closes the InPutStream 
>> when the message get paused and the thread get returned.
>>
>> Because of that the service Impl. get exceptions when tring to read 
>> the MTOM attachments from the already closed stream. This seems to be 
>> a general problem with message pausing.
>>
>> So Elodie, for now disable InOrder invocation in Sandesha2. To do 
>> that change the 'InvokeInOrder' policy in the module.xml to 'false' 
>> (this is 'true' by default).
>>
>> Chamikara
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Sorry I forget the StackTrace:

java.lang.NullPointerException    
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers(TerminateSeqMsgProcessor.java:185)    
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage(TerminateSeqMsgProcessor.java:128)    
org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:87)    
org.apache.axis2.engine.Phase.invoke(Phase.java:381)    
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)    
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)    
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)    
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)    
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)    
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
          This error appear in the response at the TerminateSequence.

Elodie


Mancinelli Elodie wrote:

> Hi Chamikara,
>
> Thanks you for your help.
>
> I change the 'InvokeInOrder' policy in the module.xml to 'false' in 
> the sandesha2_1.0 mar.
> And now,I have an other error. I give you the catalina log:
>
> 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
> GRAVE: Exception Processing ErrorPage[errorCode=500, 
> location=/axis2-web/Error/error500.jsp]
> org.apache.jasper.JasperException: "getOutputStream()" a déjà été 
> appelé pour cette réponse
>        at 
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) 
>
>        at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) 
>
>        at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>        at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) 
>
>        at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134) 
>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
>
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) 
>
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
>
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>
>        at java.lang.Thread.run(Thread.java:595)
>
> I search in the mailling list,and I don't find if there is a solution 
> but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).
>
> Have you an idea?
>
> Elodie
>
>
>
>
> Chamikara Jayalath wrote:
>
>> Hi Elodie, Paul,
>>
>> It seems like MTOM + Sandesha2 + NotInOrder case is working.
>> But MTOM + Sadesha2 + InOrder case is not working.
>>
>> When InOrder Invocation is enabled Sandesha2 always pauses the 
>> message before its actual invocation and Axis2 closes the InPutStream 
>> when the message get paused and the thread get returned.
>>
>> Because of that the service Impl. get exceptions when tring to read 
>> the MTOM attachments from the already closed stream. This seems to be 
>> a general problem with message pausing.
>>
>> So Elodie, for now disable InOrder invocation in Sandesha2. To do 
>> that change the 'InvokeInOrder' policy in the module.xml to 'false' 
>> (this is 'true' by default).
>>
>> Chamikara
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Hi Chamikara,

Thanks you for your help.

I change the 'InvokeInOrder' policy in the module.xml to 'false' in the 
sandesha2_1.0 mar.
And now,I have an other error. I give you the catalina log:

3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
GRAVE: Exception Processing ErrorPage[errorCode=500, 
location=/axis2-web/Error/error500.jsp]
org.apache.jasper.JasperException: "getOutputStream()" a déjà été appelé 
pour cette réponse
        at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
        at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        at 
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
        at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
        at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

I search in the mailling list,and I don't find if there is a solution 
but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).

Have you an idea?

Elodie




Chamikara Jayalath wrote:

> Hi Elodie, Paul,
>
> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> But MTOM + Sadesha2 + InOrder case is not working.
>
> When InOrder Invocation is enabled Sandesha2 always pauses the message 
> before its actual invocation and Axis2 closes the InPutStream when the 
> message get paused and the thread get returned.
>
> Because of that the service Impl. get exceptions when tring to read 
> the MTOM attachments from the already closed stream. This seems to be 
> a general problem with message pausing.
>
> So Elodie, for now disable InOrder invocation in Sandesha2. To do that 
> change the 'InvokeInOrder' policy in the module.xml to 'false' (this 
> is 'true' by default).
>
> Chamikara
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Hi Chamikara,

Thanks you for your help.

I change the 'InvokeInOrder' policy in the module.xml to 'false' in the 
sandesha2_1.0 mar.
And now,I have an other error. I give you the catalina log:

3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
GRAVE: Exception Processing ErrorPage[errorCode=500, 
location=/axis2-web/Error/error500.jsp]
org.apache.jasper.JasperException: "getOutputStream()" a déjà été appelé 
pour cette réponse
        at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
        at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        at 
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
        at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
        at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

I search in the mailling list,and I don't find if there is a solution 
but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).

Have you an idea?

Elodie




Chamikara Jayalath wrote:

> Hi Elodie, Paul,
>
> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> But MTOM + Sadesha2 + InOrder case is not working.
>
> When InOrder Invocation is enabled Sandesha2 always pauses the message 
> before its actual invocation and Axis2 closes the InPutStream when the 
> message get paused and the thread get returned.
>
> Because of that the service Impl. get exceptions when tring to read 
> the MTOM attachments from the already closed stream. This seems to be 
> a general problem with message pausing.
>
> So Elodie, for now disable InOrder invocation in Sandesha2. To do that 
> change the 'InvokeInOrder' policy in the module.xml to 'false' (this 
> is 'true' by default).
>
> Chamikara
>

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Mancinelli Elodie <el...@bull.net>.
Hi Chamikara,

Thanks you for your help.

I change the 'InvokeInOrder' policy in the module.xml to 'false' in the 
sandesha2_1.0 mar.
And now,I have an other error. I give you the catalina log:

3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve custom
GRAVE: Exception Processing ErrorPage[errorCode=500, 
location=/axis2-web/Error/error500.jsp]
org.apache.jasper.JasperException: "getOutputStream()" a déjà été appelé 
pour cette réponse
        at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
        at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        at 
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
        at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
        at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

I search in the mailling list,and I don't find if there is a solution 
but I find a JIRA bug(http://issues.apache.org/jira/browse/AXIS2-707).

Have you an idea?

Elodie




Chamikara Jayalath wrote:

> Hi Elodie, Paul,
>
> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> But MTOM + Sadesha2 + InOrder case is not working.
>
> When InOrder Invocation is enabled Sandesha2 always pauses the message 
> before its actual invocation and Axis2 closes the InPutStream when the 
> message get paused and the thread get returned.
>
> Because of that the service Impl. get exceptions when tring to read 
> the MTOM attachments from the already closed stream. This seems to be 
> a general problem with message pausing.
>
> So Elodie, for now disable InOrder invocation in Sandesha2. To do that 
> change the 'InvokeInOrder' policy in the module.xml to 'false' (this 
> is 'true' by default).
>
> Chamikara
>

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Deepal, All,

I tried this, but it seems like only the SOAP envelope get built here.
Attachments are still remained at the stream. Think this is a bug and will
add a JIRA for this.

Chamikara


On 7/3/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
>
> Hi Chamikara;
> When you pausing the execution , the best way is to build the envelop
> fully and then pause. I think that will solve the problem :)
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie, Paul,
> >
> > It seems like MTOM + Sandesha2 + NotInOrder case is working.
> > But MTOM + Sadesha2 + InOrder case is not working.
> >
> > When InOrder Invocation is enabled Sandesha2 always pauses the message
> > before its actual invocation and Axis2 closes the InPutStream when the
> > message get paused and the thread get returned.
> >
> > Because of that the service Impl. get exceptions when tring to read
> > the MTOM attachments from the already closed stream. This seems to be
> > a general problem with message pausing.
> >
> > So Elodie, for now disable InOrder invocation in Sandesha2. To do that
> > change the 'InvokeInOrder' policy in the module.xml to 'false' (this
> > is 'true' by default).
> >
> > Chamikara
> >
> >
> >
> > On 7/3/06, *Paul Fremantle* <pzfreo@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Elodie
> >
> >     This looks more like a Sandesha bug. I will do a test as well and
> let
> >     you know how it goes.
> >
> >     Paul
> >
> >     On 7/3/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > Hi Paul
> >     >
> >     > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM +
> >     XMLBeans
> >     > code works without WSRM.
> >     > 2) The error for MTOM + WSRM with ADB, I don't know because I
> can't
> >     > generate sources.
> >     > I'm trying to do MTOM + WSRM with ADB on a other little exemple
> like
> >     > HelloWorld. I tell you the result when I finish it.
> >     >
> >     > Thanks
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Paul Fremantle wrote:
> >     >
> >     > > Elodie
> >     > >
> >     > > I'm not completely clear on the situation!
> >     > >
> >     > > 1) Is the MTOM + XMLBeans code working without WSRM?
> >     > > 2) What is the error you get with ADB?
> >     > > 3) Can you post the WSDL?
> >     > >
> >     > > Paul
> >     > >
> >     > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > >
> >     > >> Hi Paul
> >     > >>
> >     > >> Thanks for your response. I wish have more information
> >     because I don' t
> >     > >> understand why MTOM can't work with XmlBeans? And what is the
> >     > >> marshalling I have to use?
> >     > >> I try ADB but it not seems to work, I can't generate the server
> >     > >> implementation.
> >     > >>
> >     > >> In more, I create a client-server with only MTOM and I also
> >     create the
> >     > >> same thing with only WSRM(sandesha2) and  both work separetly
> >     with
> >     > >> XmlBeans. Is the problem is WSRM + MTOM together? And how
> >     could I do to
> >     > >> resolve my problem?
> >     > >>
> >     > >>
> >     > >> Thanks a lot.
> >     > >>
> >     > >> Regards
> >     > >> Elodie
> >     > >>
> >     > >>
> >     > >> Paul Fremantle wrote:
> >     > >>
> >     > >> > Elodie
> >     > >> >
> >     > >> > I think the problem is that you are using MTOM with
> >     XMLBeans which
> >     > >> > does not work.
> >     > >> >
> >     > >> > Paul
> >     > >> >
> >     > >> > --
> >     > >> > Paul Fremantle
> >     > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >     > >> >
> >     > >> > http://bloglines.com/blog/paulfremantle
> >     > >> > paul@wso2.com <ma...@wso2.com>
> >     > >> >
> >     > >> > "Oxygenating the Web Service Platform", www.wso2.com
> >     <http://www.wso2.com>
> >     > >> >
> >     > >> >
> >     > >> > On 6/28/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > >> >
> >     > >> >> Mancinelli Elodie wrote:
> >     > >> >>
> >     > >> >> > Sorry, I want to precise my request. When I observe with
> >     TCPMon the
> >     > >> >> > soap message, the differents messages of WSRM's
> >     protocole are
> >     > >> created
> >     > >> >> > (CreateSequence, CreateSequenceResponse, Message,
> >     Acknowldgement
> >     > >> and
> >     > >> >> > TerminateSequence). These messages are correct. The
> >     problem is
> >     > >> on the
> >     > >> >> > server after messages.
> >     > >> >> >
> >     > >> >> > Thanks,
> >     > >> >> >
> >     > >> >> > Regards,
> >     > >> >> > Elodie
> >     > >> >> >
> >     > >> >> >
> >     > >> >> > Mancinelli Elodie wrote:
> >     > >> >> >
> >     > >> >> >> Hi all,
> >     > >> >> >>
> >     > >> >> >> I try to create an OneWay method which supports WSRM and
> an
> >     > >> >> attachment.
> >     > >> >> >> My service is really simple, it's only a "println".
> >     > >> >> >> The method runs successfully when there is only the WSRM
> >     > >> >> >> implementation, but when I add the attachement part, I
> >     have an
> >     > >> server
> >     > >> >> >> error:
> >     > >> >> >>
> >     > >> >> >> org.apache.sandesha2.SandeshaException: Data binding
> >     error; nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error;
> >     nested
> >     > >> >> >> exception is:
> >     > >> >> >>        org.apache.axis2.AxisFault: Data binding error;
> >     nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :199)
> >     > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding
> >     error; nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     org.apache.axis2.AxisFault.makeFault(AxisFault.java :318)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> (PrestoSvcMessageReceiverInOnly.java
> >     :50)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive
> >     (AbstractInMessageReceiver.java:34)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> org.apache.axis2.engine.AxisEngine.resumeReceive
> >     (AxisEngine.java:497)
> >     > >> >> >>        at
> >     > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java
> :543)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :189)
> >     > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(
> PrestoSvcMessageReceiverInOnly.java:174)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> >     (PrestoSvcMessageReceiverInOnly.java:46)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        ... 4 more
> >     > >> >> >> Caused by: org.apache.axiom.om.OMException :
> >     > >> >> >> java.lang.NullPointerException
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(
> OMStAXWrapper.java:365)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader
> >     (Locale.java:1154)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject
> >     (Locale.java:843)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java
> :826)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:231)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(
> SubmitOneWayDocument.java:128)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM
> >     (PrestoSvcMessageReceiverInOnly.java:145)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        ... 5 more
> >     > >> >> >> Caused by: java.lang.NullPointerException
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.coyote.http11.InternalInputBuffer.fill(
> InternalInputBuffer.java:737)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead
> >     (InternalInputBuffer.java:777)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.coyote.http11.InternalInputBuffer.doRead(
> InternalInputBuffer.java:710)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at org.apache.coyote.Request.doRead
> >     (Request.java:423)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.InputBuffer.realReadBytes(
> InputBuffer.java:283)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java
> :292)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.CoyoteInputStream.read(
> CoyoteInputStream.java:104)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> >     > >> >> >>        at
> >     > >> >> java.io.PushbackInputStream.read
> >     (PushbackInputStream.java:120)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.MIMEBodyPartInputStream.read(
> MIMEBodyPartInputStream.java
> >     :49)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     javax.mail.internet.InternetHeaders.load(InternetHeaders.java :106)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> >     > >> >> >>        at
> >     > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java
> :59)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axiom.attachments.PartOnMemory
> >     .<init>(PartOnMemory.java:31)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getPart(Attachments.java
> >     :451)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getNextPart(
> Attachments.java:359)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axiom.attachments.Attachments.getPart
> >     (Attachments.java:324)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getDataHandler(
> Attachments.java:274)
> >
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler
> >     (MTOMStAXSOAPModelBuilder.java:151)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(
> OMTextImpl.java:341)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(
> OMTextImpl.java:368)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java
> :238)
> >     > >> >> >>
> >     > >> >> >> My client is:
> >     > >> >> >>
> >     > >> >> >> public static void testSubmitOneWayWSRM() throws
> >     Exception {
> >     > >> >> >>
> >     > >> >> >>         ConfigurationContext configContext =
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (CLIENT_REPO_PATH,axis2_xml);
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>         ServiceClient sender = new ServiceClient
> >     > >> >> (configContext,null);
> >     > >> >> >>
> >     > >> >> >>
> >     > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> >     > >> >> >>         OMNamespace omNs =
> >     fac.createOMNamespace(namespace, "m");
> >     > >> >> >>         OMElement payload =
> >     fac.createOMElement("submitOneWay",
> >     > >> >> omNs);
> >     > >> >> >>         OMElement bodymess =
> >     fac.createOMElement("bodymessage",
> >     > >> >> omNs);
> >     > >> >> >>                 // Add Text
> >     > >> >> >>         String
> >     bodymessvalue=createSoapMessageString(fileXMLName);
> >     > >> >> >>         payload.addChild(fac.createOMText(bodymess,
> >     > >> bodymessvalue));
> >     > >> >> >>
> >     > >> >> >>         // Add text file
> >     > >> >> >>         OMElement attach=createAttachment(fac,omNs);
> >     > >> >> >>         attach = fac.createOMElement("attachment", omNs);
> >     > >> >> >>         File fileTxt = new File(fileName);
> >     > >> >> >>         FileDataSource dataSource = new
> >     FileDataSource(fileTxt);
> >     > >> >> >>         DataHandler expectedDH = new
> >     DataHandler(dataSource);
> >     > >> >> >>         OMText textData = fac.createOMText(expectedDH,
> >     true);
> >     > >> >> >>         System.out.println("Client:contentID" +
> >     > >> >> >> textData.getContentID());
> >     > >> >> >>         attach.addChild(textData);
> >     > >> >> >>         payload.addChild(attach);
> >     > >> >> >>
> >     > >> >> >>         System.out.println("callAXIOM, doc sent :
> >     "+payload);
> >     > >> >> >>         Options options = new Options();
> >     > >> >> >>         options.setTo(targetEPR);
> >     > >> >> >>         options.setAction("submitOneWay");
> >     > >> >> >>
> >     options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >     > >> >> >>         options.setUseSeparateListener(false);
> >     > >> >> >>
> >     options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >     > >> >> >> Constants.VALUE_TRUE);
> >     > >> >> >>
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     options.setProperty(MessageContextConstants.TRANSPORT_URL
> ,targetEPRTcpmon);
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>         sender.setOptions(options);
> >     > >> >> >>
> >     > >> >> >>
> >     options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
> >     > >> >> >> "true");
> >     > >> >> >>         sender.fireAndForget(payload);
> >     > >> >> >>         Thread.sleep(10000);
> >     > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> >     > >> >> >>
> >     > >> >> >>    }
> >     > >> >> >>
> >     > >> >> >> I join also the configuration file : client_axis2.xml
> >     > >> >> >>
> >     > >> >> >> Can someone have an idea?
> >     > >> >> >>
> >     > >> >> >> Thanks for your help.
> >     > >> >> >>
> >     > >> >> >> Regards
> >     > >> >> >> Elodie
> >     > >> >> >>
> >     > >> >>
> >     > >> >>
> >
> ---------------------------------------------------------------------
> >     > >> >> To unsubscribe, e-mail:
> >     sandesha-dev-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     > >> >> For additional commands, e-mail:
> >     sandesha-dev-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >     > >> >>
> >     > >> >>
> >     > >> >
> >     > >> >
> >     > >>
> >     > >>
> >     > >
> >     > >
> >     >
> >     >
> >
> >
> >     --
> >     Paul Fremantle
> >     VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >
> >     http://bloglines.com/blog/paulfremantle
> >     paul@wso2.com <ma...@wso2.com>
> >
> >     "Oxygenating the Web Service Platform", www.wso2.com
> >     <http://www.wso2.com>
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >
> >
>
> --
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Deepal, All,

I tried this, but it seems like only the SOAP envelope get built here.
Attachments are still remained at the stream. Think this is a bug and will
add a JIRA for this.

Chamikara


On 7/3/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
>
> Hi Chamikara;
> When you pausing the execution , the best way is to build the envelop
> fully and then pause. I think that will solve the problem :)
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie, Paul,
> >
> > It seems like MTOM + Sandesha2 + NotInOrder case is working.
> > But MTOM + Sadesha2 + InOrder case is not working.
> >
> > When InOrder Invocation is enabled Sandesha2 always pauses the message
> > before its actual invocation and Axis2 closes the InPutStream when the
> > message get paused and the thread get returned.
> >
> > Because of that the service Impl. get exceptions when tring to read
> > the MTOM attachments from the already closed stream. This seems to be
> > a general problem with message pausing.
> >
> > So Elodie, for now disable InOrder invocation in Sandesha2. To do that
> > change the 'InvokeInOrder' policy in the module.xml to 'false' (this
> > is 'true' by default).
> >
> > Chamikara
> >
> >
> >
> > On 7/3/06, *Paul Fremantle* <pzfreo@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Elodie
> >
> >     This looks more like a Sandesha bug. I will do a test as well and
> let
> >     you know how it goes.
> >
> >     Paul
> >
> >     On 7/3/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > Hi Paul
> >     >
> >     > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM +
> >     XMLBeans
> >     > code works without WSRM.
> >     > 2) The error for MTOM + WSRM with ADB, I don't know because I
> can't
> >     > generate sources.
> >     > I'm trying to do MTOM + WSRM with ADB on a other little exemple
> like
> >     > HelloWorld. I tell you the result when I finish it.
> >     >
> >     > Thanks
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Paul Fremantle wrote:
> >     >
> >     > > Elodie
> >     > >
> >     > > I'm not completely clear on the situation!
> >     > >
> >     > > 1) Is the MTOM + XMLBeans code working without WSRM?
> >     > > 2) What is the error you get with ADB?
> >     > > 3) Can you post the WSDL?
> >     > >
> >     > > Paul
> >     > >
> >     > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > >
> >     > >> Hi Paul
> >     > >>
> >     > >> Thanks for your response. I wish have more information
> >     because I don' t
> >     > >> understand why MTOM can't work with XmlBeans? And what is the
> >     > >> marshalling I have to use?
> >     > >> I try ADB but it not seems to work, I can't generate the server
> >     > >> implementation.
> >     > >>
> >     > >> In more, I create a client-server with only MTOM and I also
> >     create the
> >     > >> same thing with only WSRM(sandesha2) and  both work separetly
> >     with
> >     > >> XmlBeans. Is the problem is WSRM + MTOM together? And how
> >     could I do to
> >     > >> resolve my problem?
> >     > >>
> >     > >>
> >     > >> Thanks a lot.
> >     > >>
> >     > >> Regards
> >     > >> Elodie
> >     > >>
> >     > >>
> >     > >> Paul Fremantle wrote:
> >     > >>
> >     > >> > Elodie
> >     > >> >
> >     > >> > I think the problem is that you are using MTOM with
> >     XMLBeans which
> >     > >> > does not work.
> >     > >> >
> >     > >> > Paul
> >     > >> >
> >     > >> > --
> >     > >> > Paul Fremantle
> >     > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >     > >> >
> >     > >> > http://bloglines.com/blog/paulfremantle
> >     > >> > paul@wso2.com <ma...@wso2.com>
> >     > >> >
> >     > >> > "Oxygenating the Web Service Platform", www.wso2.com
> >     <http://www.wso2.com>
> >     > >> >
> >     > >> >
> >     > >> > On 6/28/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > >> >
> >     > >> >> Mancinelli Elodie wrote:
> >     > >> >>
> >     > >> >> > Sorry, I want to precise my request. When I observe with
> >     TCPMon the
> >     > >> >> > soap message, the differents messages of WSRM's
> >     protocole are
> >     > >> created
> >     > >> >> > (CreateSequence, CreateSequenceResponse, Message,
> >     Acknowldgement
> >     > >> and
> >     > >> >> > TerminateSequence). These messages are correct. The
> >     problem is
> >     > >> on the
> >     > >> >> > server after messages.
> >     > >> >> >
> >     > >> >> > Thanks,
> >     > >> >> >
> >     > >> >> > Regards,
> >     > >> >> > Elodie
> >     > >> >> >
> >     > >> >> >
> >     > >> >> > Mancinelli Elodie wrote:
> >     > >> >> >
> >     > >> >> >> Hi all,
> >     > >> >> >>
> >     > >> >> >> I try to create an OneWay method which supports WSRM and
> an
> >     > >> >> attachment.
> >     > >> >> >> My service is really simple, it's only a "println".
> >     > >> >> >> The method runs successfully when there is only the WSRM
> >     > >> >> >> implementation, but when I add the attachement part, I
> >     have an
> >     > >> server
> >     > >> >> >> error:
> >     > >> >> >>
> >     > >> >> >> org.apache.sandesha2.SandeshaException: Data binding
> >     error; nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error;
> >     nested
> >     > >> >> >> exception is:
> >     > >> >> >>        org.apache.axis2.AxisFault: Data binding error;
> >     nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :199)
> >     > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding
> >     error; nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     org.apache.axis2.AxisFault.makeFault(AxisFault.java :318)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> (PrestoSvcMessageReceiverInOnly.java
> >     :50)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive
> >     (AbstractInMessageReceiver.java:34)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> org.apache.axis2.engine.AxisEngine.resumeReceive
> >     (AxisEngine.java:497)
> >     > >> >> >>        at
> >     > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java
> :543)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :189)
> >     > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(
> PrestoSvcMessageReceiverInOnly.java:174)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> >     (PrestoSvcMessageReceiverInOnly.java:46)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        ... 4 more
> >     > >> >> >> Caused by: org.apache.axiom.om.OMException :
> >     > >> >> >> java.lang.NullPointerException
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(
> OMStAXWrapper.java:365)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader
> >     (Locale.java:1154)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject
> >     (Locale.java:843)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java
> :826)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:231)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(
> SubmitOneWayDocument.java:128)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM
> >     (PrestoSvcMessageReceiverInOnly.java:145)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        ... 5 more
> >     > >> >> >> Caused by: java.lang.NullPointerException
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.coyote.http11.InternalInputBuffer.fill(
> InternalInputBuffer.java:737)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead
> >     (InternalInputBuffer.java:777)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.coyote.http11.InternalInputBuffer.doRead(
> InternalInputBuffer.java:710)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at org.apache.coyote.Request.doRead
> >     (Request.java:423)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.InputBuffer.realReadBytes(
> InputBuffer.java:283)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java
> :292)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.CoyoteInputStream.read(
> CoyoteInputStream.java:104)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> >     > >> >> >>        at
> >     > >> >> java.io.PushbackInputStream.read
> >     (PushbackInputStream.java:120)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.MIMEBodyPartInputStream.read(
> MIMEBodyPartInputStream.java
> >     :49)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     javax.mail.internet.InternetHeaders.load(InternetHeaders.java :106)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> >     > >> >> >>        at
> >     > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java
> :59)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axiom.attachments.PartOnMemory
> >     .<init>(PartOnMemory.java:31)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getPart(Attachments.java
> >     :451)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getNextPart(
> Attachments.java:359)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axiom.attachments.Attachments.getPart
> >     (Attachments.java:324)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getDataHandler(
> Attachments.java:274)
> >
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler
> >     (MTOMStAXSOAPModelBuilder.java:151)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(
> OMTextImpl.java:341)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(
> OMTextImpl.java:368)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java
> :238)
> >     > >> >> >>
> >     > >> >> >> My client is:
> >     > >> >> >>
> >     > >> >> >> public static void testSubmitOneWayWSRM() throws
> >     Exception {
> >     > >> >> >>
> >     > >> >> >>         ConfigurationContext configContext =
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (CLIENT_REPO_PATH,axis2_xml);
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>         ServiceClient sender = new ServiceClient
> >     > >> >> (configContext,null);
> >     > >> >> >>
> >     > >> >> >>
> >     > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> >     > >> >> >>         OMNamespace omNs =
> >     fac.createOMNamespace(namespace, "m");
> >     > >> >> >>         OMElement payload =
> >     fac.createOMElement("submitOneWay",
> >     > >> >> omNs);
> >     > >> >> >>         OMElement bodymess =
> >     fac.createOMElement("bodymessage",
> >     > >> >> omNs);
> >     > >> >> >>                 // Add Text
> >     > >> >> >>         String
> >     bodymessvalue=createSoapMessageString(fileXMLName);
> >     > >> >> >>         payload.addChild(fac.createOMText(bodymess,
> >     > >> bodymessvalue));
> >     > >> >> >>
> >     > >> >> >>         // Add text file
> >     > >> >> >>         OMElement attach=createAttachment(fac,omNs);
> >     > >> >> >>         attach = fac.createOMElement("attachment", omNs);
> >     > >> >> >>         File fileTxt = new File(fileName);
> >     > >> >> >>         FileDataSource dataSource = new
> >     FileDataSource(fileTxt);
> >     > >> >> >>         DataHandler expectedDH = new
> >     DataHandler(dataSource);
> >     > >> >> >>         OMText textData = fac.createOMText(expectedDH,
> >     true);
> >     > >> >> >>         System.out.println("Client:contentID" +
> >     > >> >> >> textData.getContentID());
> >     > >> >> >>         attach.addChild(textData);
> >     > >> >> >>         payload.addChild(attach);
> >     > >> >> >>
> >     > >> >> >>         System.out.println("callAXIOM, doc sent :
> >     "+payload);
> >     > >> >> >>         Options options = new Options();
> >     > >> >> >>         options.setTo(targetEPR);
> >     > >> >> >>         options.setAction("submitOneWay");
> >     > >> >> >>
> >     options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >     > >> >> >>         options.setUseSeparateListener(false);
> >     > >> >> >>
> >     options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >     > >> >> >> Constants.VALUE_TRUE);
> >     > >> >> >>
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     options.setProperty(MessageContextConstants.TRANSPORT_URL
> ,targetEPRTcpmon);
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>         sender.setOptions(options);
> >     > >> >> >>
> >     > >> >> >>
> >     options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
> >     > >> >> >> "true");
> >     > >> >> >>         sender.fireAndForget(payload);
> >     > >> >> >>         Thread.sleep(10000);
> >     > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> >     > >> >> >>
> >     > >> >> >>    }
> >     > >> >> >>
> >     > >> >> >> I join also the configuration file : client_axis2.xml
> >     > >> >> >>
> >     > >> >> >> Can someone have an idea?
> >     > >> >> >>
> >     > >> >> >> Thanks for your help.
> >     > >> >> >>
> >     > >> >> >> Regards
> >     > >> >> >> Elodie
> >     > >> >> >>
> >     > >> >>
> >     > >> >>
> >
> ---------------------------------------------------------------------
> >     > >> >> To unsubscribe, e-mail:
> >     sandesha-dev-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     > >> >> For additional commands, e-mail:
> >     sandesha-dev-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >     > >> >>
> >     > >> >>
> >     > >> >
> >     > >> >
> >     > >>
> >     > >>
> >     > >
> >     > >
> >     >
> >     >
> >
> >
> >     --
> >     Paul Fremantle
> >     VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >
> >     http://bloglines.com/blog/paulfremantle
> >     paul@wso2.com <ma...@wso2.com>
> >
> >     "Oxygenating the Web Service Platform", www.wso2.com
> >     <http://www.wso2.com>
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >
> >
>
> --
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Deepal, All,

I tried this, but it seems like only the SOAP envelope get built here.
Attachments are still remained at the stream. Think this is a bug and will
add a JIRA for this.

Chamikara


On 7/3/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
>
> Hi Chamikara;
> When you pausing the execution , the best way is to build the envelop
> fully and then pause. I think that will solve the problem :)
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie, Paul,
> >
> > It seems like MTOM + Sandesha2 + NotInOrder case is working.
> > But MTOM + Sadesha2 + InOrder case is not working.
> >
> > When InOrder Invocation is enabled Sandesha2 always pauses the message
> > before its actual invocation and Axis2 closes the InPutStream when the
> > message get paused and the thread get returned.
> >
> > Because of that the service Impl. get exceptions when tring to read
> > the MTOM attachments from the already closed stream. This seems to be
> > a general problem with message pausing.
> >
> > So Elodie, for now disable InOrder invocation in Sandesha2. To do that
> > change the 'InvokeInOrder' policy in the module.xml to 'false' (this
> > is 'true' by default).
> >
> > Chamikara
> >
> >
> >
> > On 7/3/06, *Paul Fremantle* <pzfreo@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Elodie
> >
> >     This looks more like a Sandesha bug. I will do a test as well and
> let
> >     you know how it goes.
> >
> >     Paul
> >
> >     On 7/3/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > Hi Paul
> >     >
> >     > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM +
> >     XMLBeans
> >     > code works without WSRM.
> >     > 2) The error for MTOM + WSRM with ADB, I don't know because I
> can't
> >     > generate sources.
> >     > I'm trying to do MTOM + WSRM with ADB on a other little exemple
> like
> >     > HelloWorld. I tell you the result when I finish it.
> >     >
> >     > Thanks
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Paul Fremantle wrote:
> >     >
> >     > > Elodie
> >     > >
> >     > > I'm not completely clear on the situation!
> >     > >
> >     > > 1) Is the MTOM + XMLBeans code working without WSRM?
> >     > > 2) What is the error you get with ADB?
> >     > > 3) Can you post the WSDL?
> >     > >
> >     > > Paul
> >     > >
> >     > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > >
> >     > >> Hi Paul
> >     > >>
> >     > >> Thanks for your response. I wish have more information
> >     because I don' t
> >     > >> understand why MTOM can't work with XmlBeans? And what is the
> >     > >> marshalling I have to use?
> >     > >> I try ADB but it not seems to work, I can't generate the server
> >     > >> implementation.
> >     > >>
> >     > >> In more, I create a client-server with only MTOM and I also
> >     create the
> >     > >> same thing with only WSRM(sandesha2) and  both work separetly
> >     with
> >     > >> XmlBeans. Is the problem is WSRM + MTOM together? And how
> >     could I do to
> >     > >> resolve my problem?
> >     > >>
> >     > >>
> >     > >> Thanks a lot.
> >     > >>
> >     > >> Regards
> >     > >> Elodie
> >     > >>
> >     > >>
> >     > >> Paul Fremantle wrote:
> >     > >>
> >     > >> > Elodie
> >     > >> >
> >     > >> > I think the problem is that you are using MTOM with
> >     XMLBeans which
> >     > >> > does not work.
> >     > >> >
> >     > >> > Paul
> >     > >> >
> >     > >> > --
> >     > >> > Paul Fremantle
> >     > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >     > >> >
> >     > >> > http://bloglines.com/blog/paulfremantle
> >     > >> > paul@wso2.com <ma...@wso2.com>
> >     > >> >
> >     > >> > "Oxygenating the Web Service Platform", www.wso2.com
> >     <http://www.wso2.com>
> >     > >> >
> >     > >> >
> >     > >> > On 6/28/06, Mancinelli Elodie < elodie.mancinelli@bull.net
> >     <ma...@bull.net>> wrote:
> >     > >> >
> >     > >> >> Mancinelli Elodie wrote:
> >     > >> >>
> >     > >> >> > Sorry, I want to precise my request. When I observe with
> >     TCPMon the
> >     > >> >> > soap message, the differents messages of WSRM's
> >     protocole are
> >     > >> created
> >     > >> >> > (CreateSequence, CreateSequenceResponse, Message,
> >     Acknowldgement
> >     > >> and
> >     > >> >> > TerminateSequence). These messages are correct. The
> >     problem is
> >     > >> on the
> >     > >> >> > server after messages.
> >     > >> >> >
> >     > >> >> > Thanks,
> >     > >> >> >
> >     > >> >> > Regards,
> >     > >> >> > Elodie
> >     > >> >> >
> >     > >> >> >
> >     > >> >> > Mancinelli Elodie wrote:
> >     > >> >> >
> >     > >> >> >> Hi all,
> >     > >> >> >>
> >     > >> >> >> I try to create an OneWay method which supports WSRM and
> an
> >     > >> >> attachment.
> >     > >> >> >> My service is really simple, it's only a "println".
> >     > >> >> >> The method runs successfully when there is only the WSRM
> >     > >> >> >> implementation, but when I add the attachement part, I
> >     have an
> >     > >> server
> >     > >> >> >> error:
> >     > >> >> >>
> >     > >> >> >> org.apache.sandesha2.SandeshaException: Data binding
> >     error; nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error;
> >     nested
> >     > >> >> >> exception is:
> >     > >> >> >>        org.apache.axis2.AxisFault: Data binding error;
> >     nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :199)
> >     > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding
> >     error; nested
> >     > >> >> >> exception is:
> >     > >> >> >>        java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     org.apache.axis2.AxisFault.makeFault(AxisFault.java :318)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> (PrestoSvcMessageReceiverInOnly.java
> >     :50)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive
> >     (AbstractInMessageReceiver.java:34)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> org.apache.axis2.engine.AxisEngine.resumeReceive
> >     (AxisEngine.java:497)
> >     > >> >> >>        at
> >     > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java
> :543)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :189)
> >     > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(
> PrestoSvcMessageReceiverInOnly.java:174)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> >     (PrestoSvcMessageReceiverInOnly.java:46)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        ... 4 more
> >     > >> >> >> Caused by: org.apache.axiom.om.OMException :
> >     > >> >> >> java.lang.NullPointerException
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(
> OMStAXWrapper.java:365)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader
> >     (Locale.java:1154)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject
> >     (Locale.java:843)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java
> :826)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:231)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(
> SubmitOneWayDocument.java:128)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM
> >     (PrestoSvcMessageReceiverInOnly.java:145)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        ... 5 more
> >     > >> >> >> Caused by: java.lang.NullPointerException
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.coyote.http11.InternalInputBuffer.fill(
> InternalInputBuffer.java:737)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead
> >     (InternalInputBuffer.java:777)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.coyote.http11.InternalInputBuffer.doRead(
> InternalInputBuffer.java:710)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at org.apache.coyote.Request.doRead
> >     (Request.java:423)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.InputBuffer.realReadBytes(
> InputBuffer.java:283)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java
> :292)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.catalina.connector.CoyoteInputStream.read(
> CoyoteInputStream.java:104)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> >     > >> >> >>        at
> >     > >> >> java.io.PushbackInputStream.read
> >     (PushbackInputStream.java:120)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.MIMEBodyPartInputStream.read(
> MIMEBodyPartInputStream.java
> >     :49)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     javax.mail.internet.InternetHeaders.load(InternetHeaders.java :106)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> >     > >> >> >>        at
> >     > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java
> :59)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axiom.attachments.PartOnMemory
> >     .<init>(PartOnMemory.java:31)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getPart(Attachments.java
> >     :451)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getNextPart(
> Attachments.java:359)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >> org.apache.axiom.attachments.Attachments.getPart
> >     (Attachments.java:324)
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.attachments.Attachments.getDataHandler(
> Attachments.java:274)
> >
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >
> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler
> >     (MTOMStAXSOAPModelBuilder.java:151)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(
> OMTextImpl.java:341)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(
> OMTextImpl.java:368)
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>        at
> >     > >> >> >>
> >     > >>
> >     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java
> :238)
> >     > >> >> >>
> >     > >> >> >> My client is:
> >     > >> >> >>
> >     > >> >> >> public static void testSubmitOneWayWSRM() throws
> >     Exception {
> >     > >> >> >>
> >     > >> >> >>         ConfigurationContext configContext =
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (CLIENT_REPO_PATH,axis2_xml);
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>         ServiceClient sender = new ServiceClient
> >     > >> >> (configContext,null);
> >     > >> >> >>
> >     > >> >> >>
> >     > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> >     > >> >> >>         OMNamespace omNs =
> >     fac.createOMNamespace(namespace, "m");
> >     > >> >> >>         OMElement payload =
> >     fac.createOMElement("submitOneWay",
> >     > >> >> omNs);
> >     > >> >> >>         OMElement bodymess =
> >     fac.createOMElement("bodymessage",
> >     > >> >> omNs);
> >     > >> >> >>                 // Add Text
> >     > >> >> >>         String
> >     bodymessvalue=createSoapMessageString(fileXMLName);
> >     > >> >> >>         payload.addChild(fac.createOMText(bodymess,
> >     > >> bodymessvalue));
> >     > >> >> >>
> >     > >> >> >>         // Add text file
> >     > >> >> >>         OMElement attach=createAttachment(fac,omNs);
> >     > >> >> >>         attach = fac.createOMElement("attachment", omNs);
> >     > >> >> >>         File fileTxt = new File(fileName);
> >     > >> >> >>         FileDataSource dataSource = new
> >     FileDataSource(fileTxt);
> >     > >> >> >>         DataHandler expectedDH = new
> >     DataHandler(dataSource);
> >     > >> >> >>         OMText textData = fac.createOMText(expectedDH,
> >     true);
> >     > >> >> >>         System.out.println("Client:contentID" +
> >     > >> >> >> textData.getContentID());
> >     > >> >> >>         attach.addChild(textData);
> >     > >> >> >>         payload.addChild(attach);
> >     > >> >> >>
> >     > >> >> >>         System.out.println("callAXIOM, doc sent :
> >     "+payload);
> >     > >> >> >>         Options options = new Options();
> >     > >> >> >>         options.setTo(targetEPR);
> >     > >> >> >>         options.setAction("submitOneWay");
> >     > >> >> >>
> >     options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >     > >> >> >>         options.setUseSeparateListener(false);
> >     > >> >> >>
> >     options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >     > >> >> >> Constants.VALUE_TRUE);
> >     > >> >> >>
> >     > >> >> >>
> >     > >> >>
> >     > >>
> >     options.setProperty(MessageContextConstants.TRANSPORT_URL
> ,targetEPRTcpmon);
> >     > >>
> >     > >> >>
> >     > >> >> >>
> >     > >> >> >>         sender.setOptions(options);
> >     > >> >> >>
> >     > >> >> >>
> >     options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
> >     > >> >> >> "true");
> >     > >> >> >>         sender.fireAndForget(payload);
> >     > >> >> >>         Thread.sleep(10000);
> >     > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> >     > >> >> >>
> >     > >> >> >>    }
> >     > >> >> >>
> >     > >> >> >> I join also the configuration file : client_axis2.xml
> >     > >> >> >>
> >     > >> >> >> Can someone have an idea?
> >     > >> >> >>
> >     > >> >> >> Thanks for your help.
> >     > >> >> >>
> >     > >> >> >> Regards
> >     > >> >> >> Elodie
> >     > >> >> >>
> >     > >> >>
> >     > >> >>
> >
> ---------------------------------------------------------------------
> >     > >> >> To unsubscribe, e-mail:
> >     sandesha-dev-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     > >> >> For additional commands, e-mail:
> >     sandesha-dev-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >     > >> >>
> >     > >> >>
> >     > >> >
> >     > >> >
> >     > >>
> >     > >>
> >     > >
> >     > >
> >     >
> >     >
> >
> >
> >     --
> >     Paul Fremantle
> >     VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >
> >     http://bloglines.com/blog/paulfremantle
> >     paul@wso2.com <ma...@wso2.com>
> >
> >     "Oxygenating the Web Service Platform", www.wso2.com
> >     <http://www.wso2.com>
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >
> >
>
> --
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Chamikara;
When you pausing the execution , the best way is to build the envelop
fully and then pause. I think that will solve the problem :)

Chamikara Jayalath wrote:

> Hi Elodie, Paul,
>
> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> But MTOM + Sadesha2 + InOrder case is not working.
>
> When InOrder Invocation is enabled Sandesha2 always pauses the message
> before its actual invocation and Axis2 closes the InPutStream when the
> message get paused and the thread get returned.
>
> Because of that the service Impl. get exceptions when tring to read
> the MTOM attachments from the already closed stream. This seems to be
> a general problem with message pausing.
>
> So Elodie, for now disable InOrder invocation in Sandesha2. To do that
> change the 'InvokeInOrder' policy in the module.xml to 'false' (this
> is 'true' by default).
>
> Chamikara
>
>
>
> On 7/3/06, *Paul Fremantle* <pzfreo@gmail.com
> <ma...@gmail.com>> wrote:
>
>     Elodie
>
>     This looks more like a Sandesha bug. I will do a test as well and let
>     you know how it goes.
>
>     Paul
>
>     On 7/3/06, Mancinelli Elodie < elodie.mancinelli@bull.net
>     <ma...@bull.net>> wrote:
>     > Hi Paul
>     >
>     > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM +
>     XMLBeans
>     > code works without WSRM.
>     > 2) The error for MTOM + WSRM with ADB, I don't know because I can't
>     > generate sources.
>     > I'm trying to do MTOM + WSRM with ADB on a other little exemple like
>     > HelloWorld. I tell you the result when I finish it.
>     >
>     > Thanks
>     >
>     > Elodie
>     >
>     >
>     >
>     >
>     > Paul Fremantle wrote:
>     >
>     > > Elodie
>     > >
>     > > I'm not completely clear on the situation!
>     > >
>     > > 1) Is the MTOM + XMLBeans code working without WSRM?
>     > > 2) What is the error you get with ADB?
>     > > 3) Can you post the WSDL?
>     > >
>     > > Paul
>     > >
>     > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net
>     <ma...@bull.net>> wrote:
>     > >
>     > >> Hi Paul
>     > >>
>     > >> Thanks for your response. I wish have more information
>     because I don' t
>     > >> understand why MTOM can't work with XmlBeans? And what is the
>     > >> marshalling I have to use?
>     > >> I try ADB but it not seems to work, I can't generate the server
>     > >> implementation.
>     > >>
>     > >> In more, I create a client-server with only MTOM and I also
>     create the
>     > >> same thing with only WSRM(sandesha2) and  both work separetly
>     with
>     > >> XmlBeans. Is the problem is WSRM + MTOM together? And how
>     could I do to
>     > >> resolve my problem?
>     > >>
>     > >>
>     > >> Thanks a lot.
>     > >>
>     > >> Regards
>     > >> Elodie
>     > >>
>     > >>
>     > >> Paul Fremantle wrote:
>     > >>
>     > >> > Elodie
>     > >> >
>     > >> > I think the problem is that you are using MTOM with
>     XMLBeans which
>     > >> > does not work.
>     > >> >
>     > >> > Paul
>     > >> >
>     > >> > --
>     > >> > Paul Fremantle
>     > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>     > >> >
>     > >> > http://bloglines.com/blog/paulfremantle
>     > >> > paul@wso2.com <ma...@wso2.com>
>     > >> >
>     > >> > "Oxygenating the Web Service Platform", www.wso2.com
>     <http://www.wso2.com>
>     > >> >
>     > >> >
>     > >> > On 6/28/06, Mancinelli Elodie < elodie.mancinelli@bull.net
>     <ma...@bull.net>> wrote:
>     > >> >
>     > >> >> Mancinelli Elodie wrote:
>     > >> >>
>     > >> >> > Sorry, I want to precise my request. When I observe with
>     TCPMon the
>     > >> >> > soap message, the differents messages of WSRM's
>     protocole are
>     > >> created
>     > >> >> > (CreateSequence, CreateSequenceResponse, Message,
>     Acknowldgement
>     > >> and
>     > >> >> > TerminateSequence). These messages are correct. The
>     problem is
>     > >> on the
>     > >> >> > server after messages.
>     > >> >> >
>     > >> >> > Thanks,
>     > >> >> >
>     > >> >> > Regards,
>     > >> >> > Elodie
>     > >> >> >
>     > >> >> >
>     > >> >> > Mancinelli Elodie wrote:
>     > >> >> >
>     > >> >> >> Hi all,
>     > >> >> >>
>     > >> >> >> I try to create an OneWay method which supports WSRM and an
>     > >> >> attachment.
>     > >> >> >> My service is really simple, it's only a "println".
>     > >> >> >> The method runs successfully when there is only the WSRM
>     > >> >> >> implementation, but when I add the attachement part, I
>     have an
>     > >> server
>     > >> >> >> error:
>     > >> >> >>
>     > >> >> >> org.apache.sandesha2.SandeshaException: Data binding
>     error; nested
>     > >> >> >> exception is:
>     > >> >> >>        java.lang.RuntimeException: Data binding error;
>     nested
>     > >> >> >> exception is:
>     > >> >> >>        org.apache.axis2.AxisFault: Data binding error;
>     nested
>     > >> >> >> exception is:
>     > >> >> >>        java.lang.RuntimeException: Data binding error
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
>     > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding
>     error; nested
>     > >> >> >> exception is:
>     > >> >> >>        java.lang.RuntimeException: Data binding error
>     > >> >> >>        at
>     org.apache.axis2.AxisFault.makeFault(AxisFault.java :318)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java
>     :50)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive
>     (AbstractInMessageReceiver.java:34)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> org.apache.axis2.engine.AxisEngine.resumeReceive
>     (AxisEngine.java:497)
>     > >> >> >>        at
>     > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
>     > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
>     (PrestoSvcMessageReceiverInOnly.java:46)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        ... 4 more
>     > >> >> >> Caused by: org.apache.axiom.om.OMException :
>     > >> >> >> java.lang.NullPointerException
>     > >> >> >>        at
>     > >> >> >>
>     > >>
>     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java :254)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader
>     (Locale.java:1154)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject
>     (Locale.java:843)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM
>     (PrestoSvcMessageReceiverInOnly.java:145)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        ... 5 more
>     > >> >> >> Caused by: java.lang.NullPointerException
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead
>     (InternalInputBuffer.java:777)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at org.apache.coyote.Request.doRead
>     (Request.java:423)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
>     > >> >> >>        at
>     > >> >> java.io.PushbackInputStream.read
>     (PushbackInputStream.java:120)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java
>     :49)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     javax.mail.internet.InternetHeaders.load(InternetHeaders.java :106)
>     > >> >> >>        at
>     > >> >> >>
>     > >>
>     javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
>     > >> >> >>        at
>     > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >> org.apache.axiom.attachments.PartOnMemory
>     .<init>(PartOnMemory.java:31)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.attachments.Attachments.getPart(Attachments.java
>     :451)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >> org.apache.axiom.attachments.Attachments.getPart
>     (Attachments.java:324)
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274)
>
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler
>     (MTOMStAXSOAPModelBuilder.java:151)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >> >>
>     > >>
>     org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368)
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>        at
>     > >> >> >>
>     > >>
>     org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
>     > >> >> >>
>     > >> >> >> My client is:
>     > >> >> >>
>     > >> >> >> public static void testSubmitOneWayWSRM() throws
>     Exception {
>     > >> >> >>
>     > >> >> >>         ConfigurationContext configContext =
>     > >> >> >>
>     > >> >>
>     > >>
>     ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml);
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>         ServiceClient sender = new ServiceClient
>     > >> >> (configContext,null);
>     > >> >> >>
>     > >> >> >>
>     > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
>     > >> >> >>         OMNamespace omNs =
>     fac.createOMNamespace(namespace, "m");
>     > >> >> >>         OMElement payload =
>     fac.createOMElement("submitOneWay",
>     > >> >> omNs);
>     > >> >> >>         OMElement bodymess =
>     fac.createOMElement("bodymessage",
>     > >> >> omNs);
>     > >> >> >>                 // Add Text
>     > >> >> >>         String
>     bodymessvalue=createSoapMessageString(fileXMLName);
>     > >> >> >>         payload.addChild(fac.createOMText(bodymess,
>     > >> bodymessvalue));
>     > >> >> >>
>     > >> >> >>         // Add text file
>     > >> >> >>         OMElement attach=createAttachment(fac,omNs);
>     > >> >> >>         attach = fac.createOMElement("attachment", omNs);
>     > >> >> >>         File fileTxt = new File(fileName);
>     > >> >> >>         FileDataSource dataSource = new
>     FileDataSource(fileTxt);
>     > >> >> >>         DataHandler expectedDH = new
>     DataHandler(dataSource);
>     > >> >> >>         OMText textData = fac.createOMText(expectedDH,
>     true);
>     > >> >> >>         System.out.println("Client:contentID" +
>     > >> >> >> textData.getContentID());
>     > >> >> >>         attach.addChild(textData);
>     > >> >> >>         payload.addChild(attach);
>     > >> >> >>
>     > >> >> >>         System.out.println("callAXIOM, doc sent :
>     "+payload);
>     > >> >> >>         Options options = new Options();
>     > >> >> >>         options.setTo(targetEPR);
>     > >> >> >>         options.setAction("submitOneWay");
>     > >> >> >>        
>     options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>     > >> >> >>         options.setUseSeparateListener(false);
>     > >> >> >>        
>     options.setProperty(Constants.Configuration.ENABLE_MTOM,
>     > >> >> >> Constants.VALUE_TRUE);
>     > >> >> >>
>     > >> >> >>
>     > >> >>
>     > >>
>     options.setProperty(MessageContextConstants.TRANSPORT_URL,targetEPRTcpmon);
>     > >>
>     > >> >>
>     > >> >> >>
>     > >> >> >>         sender.setOptions(options);
>     > >> >> >>
>     > >> >> >>        
>     options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
>     > >> >> >> "true");
>     > >> >> >>         sender.fireAndForget(payload);
>     > >> >> >>         Thread.sleep(10000);
>     > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
>     > >> >> >>
>     > >> >> >>    }
>     > >> >> >>
>     > >> >> >> I join also the configuration file : client_axis2.xml
>     > >> >> >>
>     > >> >> >> Can someone have an idea?
>     > >> >> >>
>     > >> >> >> Thanks for your help.
>     > >> >> >>
>     > >> >> >> Regards
>     > >> >> >> Elodie
>     > >> >> >>
>     > >> >>
>     > >> >>
>     ---------------------------------------------------------------------
>     > >> >> To unsubscribe, e-mail:
>     sandesha-dev-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     > >> >> For additional commands, e-mail:
>     sandesha-dev-help@ws.apache.org
>     <ma...@ws.apache.org>
>     > >> >>
>     > >> >>
>     > >> >
>     > >> >
>     > >>
>     > >>
>     > >
>     > >
>     >
>     >
>
>
>     --
>     Paul Fremantle
>     VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
>     http://bloglines.com/blog/paulfremantle
>     paul@wso2.com <ma...@wso2.com>
>
>     "Oxygenating the Web Service Platform", www.wso2.com
>     <http://www.wso2.com>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elodie, Paul,

It seems like MTOM + Sandesha2 + NotInOrder case is working.
But MTOM + Sadesha2 + InOrder case is not working.

When InOrder Invocation is enabled Sandesha2 always pauses the message
before its actual invocation and Axis2 closes the InPutStream when the
message get paused and the thread get returned.

Because of that the service Impl. get exceptions when tring to read the MTOM
attachments from the already closed stream. This seems to be a general
problem with message pausing.

So Elodie, for now disable InOrder invocation in Sandesha2. To do that
change the 'InvokeInOrder' policy in the module.xml to 'false' (this is
'true' by default).

Chamikara



On 7/3/06, Paul Fremantle <pz...@gmail.com> wrote:
>
> Elodie
>
> This looks more like a Sandesha bug. I will do a test as well and let
> you know how it goes.
>
> Paul
>
> On 7/3/06, Mancinelli Elodie <elodie.mancinelli@bull.net > wrote:
> > Hi Paul
> >
> > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans
> > code works without WSRM.
> > 2) The error for MTOM + WSRM with ADB, I don't know because I can't
> > generate sources.
> > I'm trying to do MTOM + WSRM with ADB on a other little exemple like
> > HelloWorld. I tell you the result when I finish it.
> >
> > Thanks
> >
> > Elodie
> >
> >
> >
> >
> > Paul Fremantle wrote:
> >
> > > Elodie
> > >
> > > I'm not completely clear on the situation!
> > >
> > > 1) Is the MTOM + XMLBeans code working without WSRM?
> > > 2) What is the error you get with ADB?
> > > 3) Can you post the WSDL?
> > >
> > > Paul
> > >
> > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net> wrote:
> > >
> > >> Hi Paul
> > >>
> > >> Thanks for your response. I wish have more information because I don'
> t
> > >> understand why MTOM can't work with XmlBeans? And what is the
> > >> marshalling I have to use?
> > >> I try ADB but it not seems to work, I can't generate the server
> > >> implementation.
> > >>
> > >> In more, I create a client-server with only MTOM and I also create
> the
> > >> same thing with only WSRM(sandesha2) and  both work separetly with
> > >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do
> to
> > >> resolve my problem?
> > >>
> > >>
> > >> Thanks a lot.
> > >>
> > >> Regards
> > >> Elodie
> > >>
> > >>
> > >> Paul Fremantle wrote:
> > >>
> > >> > Elodie
> > >> >
> > >> > I think the problem is that you are using MTOM with XMLBeans which
> > >> > does not work.
> > >> >
> > >> > Paul
> > >> >
> > >> > --
> > >> > Paul Fremantle
> > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >> >
> > >> > http://bloglines.com/blog/paulfremantle
> > >> > paul@wso2.com
> > >> >
> > >> > "Oxygenating the Web Service Platform", www.wso2.com
> > >> >
> > >> >
> > >> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
> > >> >
> > >> >> Mancinelli Elodie wrote:
> > >> >>
> > >> >> > Sorry, I want to precise my request. When I observe with TCPMon
> the
> > >> >> > soap message, the differents messages of WSRM's protocole are
> > >> created
> > >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement
> > >> and
> > >> >> > TerminateSequence). These messages are correct. The problem is
> > >> on the
> > >> >> > server after messages.
> > >> >> >
> > >> >> > Thanks,
> > >> >> >
> > >> >> > Regards,
> > >> >> > Elodie
> > >> >> >
> > >> >> >
> > >> >> > Mancinelli Elodie wrote:
> > >> >> >
> > >> >> >> Hi all,
> > >> >> >>
> > >> >> >> I try to create an OneWay method which supports WSRM and an
> > >> >> attachment.
> > >> >> >> My service is really simple, it's only a "println".
> > >> >> >> The method runs successfully when there is only the WSRM
> > >> >> >> implementation, but when I add the attachement part, I have an
> > >> server
> > >> >> >> error:
> > >> >> >>
> > >> >> >> org.apache.sandesha2.SandeshaException: Data binding error;
> nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error; nested
> > >> >> >> exception is:
> > >> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :199)
> > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error;
> nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error
> > >> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> (PrestoSvcMessageReceiverInOnly.java :50)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive (
> AbstractInMessageReceiver.java:34)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axis2.engine.AxisEngine.resumeReceive (AxisEngine.java
> :497)
> > >> >> >>        at
> > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :189)
> > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(
> PrestoSvcMessageReceiverInOnly.java:174)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(
> PrestoSvcMessageReceiverInOnly.java:46)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        ... 4 more
> > >> >> >> Caused by: org.apache.axiom.om.OMException :
> > >> >> >> java.lang.NullPointerException
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(
> OMStAXWrapper.java:365)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader (
> Locale.java:1154)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject (Locale.java
> :843)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java
> :826)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:231)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(
> SubmitOneWayDocument.java:128)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM (
> PrestoSvcMessageReceiverInOnly.java:145)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        ... 5 more
> > >> >> >> Caused by: java.lang.NullPointerException
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.coyote.http11.InternalInputBuffer.fill(
> InternalInputBuffer.java:737)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(
> InternalInputBuffer.java:777)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.coyote.http11.InternalInputBuffer.doRead(
> InternalInputBuffer.java:710)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at org.apache.coyote.Request.doRead (Request.java:423)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.InputBuffer.realReadBytes(
> InputBuffer.java:283)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java
> :292)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.CoyoteInputStream.read(
> CoyoteInputStream.java:104)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> > >> >> >>        at
> > >> >> java.io.PushbackInputStream.read (PushbackInputStream.java:120)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(
> MIMEBodyPartInputStream.java :49)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
> > >> >> >>        at
> > >> >> >>
> > >> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> > >> >> >>        at
> > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.PartOnMemory .<init>(PartOnMemory.java
> :31)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java
> :359)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getPart (Attachments.java
> :324)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getDataHandler(
> Attachments.java:274)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(
> MTOMStAXSOAPModelBuilder.java:151)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(
> OMTextImpl.java:341)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(
> OMTextImpl.java:368)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
> > >> >> >>
> > >> >> >> My client is:
> > >> >> >>
> > >> >> >> public static void testSubmitOneWayWSRM() throws Exception {
> > >> >> >>
> > >> >> >>         ConfigurationContext configContext =
> > >> >> >>
> > >> >>
> > >> ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (CLIENT_REPO_PATH,axis2_xml);
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>         ServiceClient sender = new ServiceClient
> > >> >> (configContext,null);
> > >> >> >>
> > >> >> >>
> > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> > >> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace,
> "m");
> > >> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
> > >> >> omNs);
> > >> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
> > >> >> omNs);
> > >> >> >>                 // Add Text
> > >> >> >>         String
> bodymessvalue=createSoapMessageString(fileXMLName);
> > >> >> >>         payload.addChild(fac.createOMText(bodymess,
> > >> bodymessvalue));
> > >> >> >>
> > >> >> >>         // Add text file
> > >> >> >>         OMElement attach=createAttachment(fac,omNs);
> > >> >> >>         attach = fac.createOMElement("attachment", omNs);
> > >> >> >>         File fileTxt = new File(fileName);
> > >> >> >>         FileDataSource dataSource = new
> FileDataSource(fileTxt);
> > >> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
> > >> >> >>         OMText textData = fac.createOMText(expectedDH, true);
> > >> >> >>         System.out.println("Client:contentID" +
> > >> >> >> textData.getContentID());
> > >> >> >>         attach.addChild(textData);
> > >> >> >>         payload.addChild(attach);
> > >> >> >>
> > >> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
> > >> >> >>         Options options = new Options();
> > >> >> >>         options.setTo(targetEPR);
> > >> >> >>         options.setAction("submitOneWay");
> > >> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP
> );
> > >> >> >>         options.setUseSeparateListener(false);
> > >> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM
> ,
> > >> >> >> Constants.VALUE_TRUE);
> > >> >> >>
> > >> >> >>
> > >> >>
> > >> options.setProperty(MessageContextConstants.TRANSPORT_URL
> ,targetEPRTcpmon);
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>         sender.setOptions(options);
> > >> >> >>
> > >> >> >>         options.setProperty(
> SandeshaClientConstants.LAST_MESSAGE,
> > >> >> >> "true");
> > >> >> >>         sender.fireAndForget(payload);
> > >> >> >>         Thread.sleep(10000);
> > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> > >> >> >>
> > >> >> >>    }
> > >> >> >>
> > >> >> >> I join also the configuration file : client_axis2.xml
> > >> >> >>
> > >> >> >> Can someone have an idea?
> > >> >> >>
> > >> >> >> Thanks for your help.
> > >> >> >>
> > >> >> >> Regards
> > >> >> >> Elodie
> > >> >> >>
> > >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> > >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elodie, Paul,

It seems like MTOM + Sandesha2 + NotInOrder case is working.
But MTOM + Sadesha2 + InOrder case is not working.

When InOrder Invocation is enabled Sandesha2 always pauses the message
before its actual invocation and Axis2 closes the InPutStream when the
message get paused and the thread get returned.

Because of that the service Impl. get exceptions when tring to read the MTOM
attachments from the already closed stream. This seems to be a general
problem with message pausing.

So Elodie, for now disable InOrder invocation in Sandesha2. To do that
change the 'InvokeInOrder' policy in the module.xml to 'false' (this is
'true' by default).

Chamikara



On 7/3/06, Paul Fremantle <pz...@gmail.com> wrote:
>
> Elodie
>
> This looks more like a Sandesha bug. I will do a test as well and let
> you know how it goes.
>
> Paul
>
> On 7/3/06, Mancinelli Elodie <elodie.mancinelli@bull.net > wrote:
> > Hi Paul
> >
> > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans
> > code works without WSRM.
> > 2) The error for MTOM + WSRM with ADB, I don't know because I can't
> > generate sources.
> > I'm trying to do MTOM + WSRM with ADB on a other little exemple like
> > HelloWorld. I tell you the result when I finish it.
> >
> > Thanks
> >
> > Elodie
> >
> >
> >
> >
> > Paul Fremantle wrote:
> >
> > > Elodie
> > >
> > > I'm not completely clear on the situation!
> > >
> > > 1) Is the MTOM + XMLBeans code working without WSRM?
> > > 2) What is the error you get with ADB?
> > > 3) Can you post the WSDL?
> > >
> > > Paul
> > >
> > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net> wrote:
> > >
> > >> Hi Paul
> > >>
> > >> Thanks for your response. I wish have more information because I don'
> t
> > >> understand why MTOM can't work with XmlBeans? And what is the
> > >> marshalling I have to use?
> > >> I try ADB but it not seems to work, I can't generate the server
> > >> implementation.
> > >>
> > >> In more, I create a client-server with only MTOM and I also create
> the
> > >> same thing with only WSRM(sandesha2) and  both work separetly with
> > >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do
> to
> > >> resolve my problem?
> > >>
> > >>
> > >> Thanks a lot.
> > >>
> > >> Regards
> > >> Elodie
> > >>
> > >>
> > >> Paul Fremantle wrote:
> > >>
> > >> > Elodie
> > >> >
> > >> > I think the problem is that you are using MTOM with XMLBeans which
> > >> > does not work.
> > >> >
> > >> > Paul
> > >> >
> > >> > --
> > >> > Paul Fremantle
> > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >> >
> > >> > http://bloglines.com/blog/paulfremantle
> > >> > paul@wso2.com
> > >> >
> > >> > "Oxygenating the Web Service Platform", www.wso2.com
> > >> >
> > >> >
> > >> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
> > >> >
> > >> >> Mancinelli Elodie wrote:
> > >> >>
> > >> >> > Sorry, I want to precise my request. When I observe with TCPMon
> the
> > >> >> > soap message, the differents messages of WSRM's protocole are
> > >> created
> > >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement
> > >> and
> > >> >> > TerminateSequence). These messages are correct. The problem is
> > >> on the
> > >> >> > server after messages.
> > >> >> >
> > >> >> > Thanks,
> > >> >> >
> > >> >> > Regards,
> > >> >> > Elodie
> > >> >> >
> > >> >> >
> > >> >> > Mancinelli Elodie wrote:
> > >> >> >
> > >> >> >> Hi all,
> > >> >> >>
> > >> >> >> I try to create an OneWay method which supports WSRM and an
> > >> >> attachment.
> > >> >> >> My service is really simple, it's only a "println".
> > >> >> >> The method runs successfully when there is only the WSRM
> > >> >> >> implementation, but when I add the attachement part, I have an
> > >> server
> > >> >> >> error:
> > >> >> >>
> > >> >> >> org.apache.sandesha2.SandeshaException: Data binding error;
> nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error; nested
> > >> >> >> exception is:
> > >> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :199)
> > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error;
> nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error
> > >> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> (PrestoSvcMessageReceiverInOnly.java :50)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive (
> AbstractInMessageReceiver.java:34)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axis2.engine.AxisEngine.resumeReceive (AxisEngine.java
> :497)
> > >> >> >>        at
> > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :189)
> > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(
> PrestoSvcMessageReceiverInOnly.java:174)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(
> PrestoSvcMessageReceiverInOnly.java:46)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        ... 4 more
> > >> >> >> Caused by: org.apache.axiom.om.OMException :
> > >> >> >> java.lang.NullPointerException
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(
> OMStAXWrapper.java:365)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader (
> Locale.java:1154)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject (Locale.java
> :843)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java
> :826)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:231)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(
> SubmitOneWayDocument.java:128)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM (
> PrestoSvcMessageReceiverInOnly.java:145)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        ... 5 more
> > >> >> >> Caused by: java.lang.NullPointerException
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.coyote.http11.InternalInputBuffer.fill(
> InternalInputBuffer.java:737)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(
> InternalInputBuffer.java:777)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.coyote.http11.InternalInputBuffer.doRead(
> InternalInputBuffer.java:710)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at org.apache.coyote.Request.doRead (Request.java:423)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.InputBuffer.realReadBytes(
> InputBuffer.java:283)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java
> :292)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.CoyoteInputStream.read(
> CoyoteInputStream.java:104)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> > >> >> >>        at
> > >> >> java.io.PushbackInputStream.read (PushbackInputStream.java:120)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(
> MIMEBodyPartInputStream.java :49)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
> > >> >> >>        at
> > >> >> >>
> > >> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> > >> >> >>        at
> > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.PartOnMemory .<init>(PartOnMemory.java
> :31)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java
> :359)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getPart (Attachments.java
> :324)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getDataHandler(
> Attachments.java:274)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(
> MTOMStAXSOAPModelBuilder.java:151)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(
> OMTextImpl.java:341)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(
> OMTextImpl.java:368)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
> > >> >> >>
> > >> >> >> My client is:
> > >> >> >>
> > >> >> >> public static void testSubmitOneWayWSRM() throws Exception {
> > >> >> >>
> > >> >> >>         ConfigurationContext configContext =
> > >> >> >>
> > >> >>
> > >> ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (CLIENT_REPO_PATH,axis2_xml);
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>         ServiceClient sender = new ServiceClient
> > >> >> (configContext,null);
> > >> >> >>
> > >> >> >>
> > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> > >> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace,
> "m");
> > >> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
> > >> >> omNs);
> > >> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
> > >> >> omNs);
> > >> >> >>                 // Add Text
> > >> >> >>         String
> bodymessvalue=createSoapMessageString(fileXMLName);
> > >> >> >>         payload.addChild(fac.createOMText(bodymess,
> > >> bodymessvalue));
> > >> >> >>
> > >> >> >>         // Add text file
> > >> >> >>         OMElement attach=createAttachment(fac,omNs);
> > >> >> >>         attach = fac.createOMElement("attachment", omNs);
> > >> >> >>         File fileTxt = new File(fileName);
> > >> >> >>         FileDataSource dataSource = new
> FileDataSource(fileTxt);
> > >> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
> > >> >> >>         OMText textData = fac.createOMText(expectedDH, true);
> > >> >> >>         System.out.println("Client:contentID" +
> > >> >> >> textData.getContentID());
> > >> >> >>         attach.addChild(textData);
> > >> >> >>         payload.addChild(attach);
> > >> >> >>
> > >> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
> > >> >> >>         Options options = new Options();
> > >> >> >>         options.setTo(targetEPR);
> > >> >> >>         options.setAction("submitOneWay");
> > >> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP
> );
> > >> >> >>         options.setUseSeparateListener(false);
> > >> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM
> ,
> > >> >> >> Constants.VALUE_TRUE);
> > >> >> >>
> > >> >> >>
> > >> >>
> > >> options.setProperty(MessageContextConstants.TRANSPORT_URL
> ,targetEPRTcpmon);
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>         sender.setOptions(options);
> > >> >> >>
> > >> >> >>         options.setProperty(
> SandeshaClientConstants.LAST_MESSAGE,
> > >> >> >> "true");
> > >> >> >>         sender.fireAndForget(payload);
> > >> >> >>         Thread.sleep(10000);
> > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> > >> >> >>
> > >> >> >>    }
> > >> >> >>
> > >> >> >> I join also the configuration file : client_axis2.xml
> > >> >> >>
> > >> >> >> Can someone have an idea?
> > >> >> >>
> > >> >> >> Thanks for your help.
> > >> >> >>
> > >> >> >> Regards
> > >> >> >> Elodie
> > >> >> >>
> > >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> > >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Chamikara Jayalath <ch...@gmail.com>.
Hi Elodie, Paul,

It seems like MTOM + Sandesha2 + NotInOrder case is working.
But MTOM + Sadesha2 + InOrder case is not working.

When InOrder Invocation is enabled Sandesha2 always pauses the message
before its actual invocation and Axis2 closes the InPutStream when the
message get paused and the thread get returned.

Because of that the service Impl. get exceptions when tring to read the MTOM
attachments from the already closed stream. This seems to be a general
problem with message pausing.

So Elodie, for now disable InOrder invocation in Sandesha2. To do that
change the 'InvokeInOrder' policy in the module.xml to 'false' (this is
'true' by default).

Chamikara



On 7/3/06, Paul Fremantle <pz...@gmail.com> wrote:
>
> Elodie
>
> This looks more like a Sandesha bug. I will do a test as well and let
> you know how it goes.
>
> Paul
>
> On 7/3/06, Mancinelli Elodie <elodie.mancinelli@bull.net > wrote:
> > Hi Paul
> >
> > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans
> > code works without WSRM.
> > 2) The error for MTOM + WSRM with ADB, I don't know because I can't
> > generate sources.
> > I'm trying to do MTOM + WSRM with ADB on a other little exemple like
> > HelloWorld. I tell you the result when I finish it.
> >
> > Thanks
> >
> > Elodie
> >
> >
> >
> >
> > Paul Fremantle wrote:
> >
> > > Elodie
> > >
> > > I'm not completely clear on the situation!
> > >
> > > 1) Is the MTOM + XMLBeans code working without WSRM?
> > > 2) What is the error you get with ADB?
> > > 3) Can you post the WSDL?
> > >
> > > Paul
> > >
> > > On 6/29/06, Mancinelli Elodie < elodie.mancinelli@bull.net> wrote:
> > >
> > >> Hi Paul
> > >>
> > >> Thanks for your response. I wish have more information because I don'
> t
> > >> understand why MTOM can't work with XmlBeans? And what is the
> > >> marshalling I have to use?
> > >> I try ADB but it not seems to work, I can't generate the server
> > >> implementation.
> > >>
> > >> In more, I create a client-server with only MTOM and I also create
> the
> > >> same thing with only WSRM(sandesha2) and  both work separetly with
> > >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do
> to
> > >> resolve my problem?
> > >>
> > >>
> > >> Thanks a lot.
> > >>
> > >> Regards
> > >> Elodie
> > >>
> > >>
> > >> Paul Fremantle wrote:
> > >>
> > >> > Elodie
> > >> >
> > >> > I think the problem is that you are using MTOM with XMLBeans which
> > >> > does not work.
> > >> >
> > >> > Paul
> > >> >
> > >> > --
> > >> > Paul Fremantle
> > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >> >
> > >> > http://bloglines.com/blog/paulfremantle
> > >> > paul@wso2.com
> > >> >
> > >> > "Oxygenating the Web Service Platform", www.wso2.com
> > >> >
> > >> >
> > >> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
> > >> >
> > >> >> Mancinelli Elodie wrote:
> > >> >>
> > >> >> > Sorry, I want to precise my request. When I observe with TCPMon
> the
> > >> >> > soap message, the differents messages of WSRM's protocole are
> > >> created
> > >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement
> > >> and
> > >> >> > TerminateSequence). These messages are correct. The problem is
> > >> on the
> > >> >> > server after messages.
> > >> >> >
> > >> >> > Thanks,
> > >> >> >
> > >> >> > Regards,
> > >> >> > Elodie
> > >> >> >
> > >> >> >
> > >> >> > Mancinelli Elodie wrote:
> > >> >> >
> > >> >> >> Hi all,
> > >> >> >>
> > >> >> >> I try to create an OneWay method which supports WSRM and an
> > >> >> attachment.
> > >> >> >> My service is really simple, it's only a "println".
> > >> >> >> The method runs successfully when there is only the WSRM
> > >> >> >> implementation, but when I add the attachement part, I have an
> > >> server
> > >> >> >> error:
> > >> >> >>
> > >> >> >> org.apache.sandesha2.SandeshaException: Data binding error;
> nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error; nested
> > >> >> >> exception is:
> > >> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :199)
> > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error;
> nested
> > >> >> >> exception is:
> > >> >> >>        java.lang.RuntimeException: Data binding error
> > >> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic
> (PrestoSvcMessageReceiverInOnly.java :50)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive (
> AbstractInMessageReceiver.java:34)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axis2.engine.AxisEngine.resumeReceive (AxisEngine.java
> :497)
> > >> >> >>        at
> > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java
> :189)
> > >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(
> PrestoSvcMessageReceiverInOnly.java:174)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(
> PrestoSvcMessageReceiverInOnly.java:46)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        ... 4 more
> > >> >> >> Caused by: org.apache.axiom.om.OMException :
> > >> >> >> java.lang.NullPointerException
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(
> OMStAXWrapper.java:365)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader (
> Locale.java:1154)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject (Locale.java
> :843)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java
> :826)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:231)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(
> SubmitOneWayDocument.java:128)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM (
> PrestoSvcMessageReceiverInOnly.java:145)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        ... 5 more
> > >> >> >> Caused by: java.lang.NullPointerException
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.coyote.http11.InternalInputBuffer.fill(
> InternalInputBuffer.java:737)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >>
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(
> InternalInputBuffer.java:777)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.coyote.http11.InternalInputBuffer.doRead(
> InternalInputBuffer.java:710)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at org.apache.coyote.Request.doRead (Request.java:423)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.InputBuffer.realReadBytes(
> InputBuffer.java:283)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java
> :292)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.catalina.connector.CoyoteInputStream.read(
> CoyoteInputStream.java:104)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> > >> >> >>        at
> > >> >> java.io.PushbackInputStream.read (PushbackInputStream.java:120)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(
> MIMEBodyPartInputStream.java :49)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
> > >> >> >>        at
> > >> >> >>
> > >> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> > >> >> >>        at
> > >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.PartOnMemory .<init>(PartOnMemory.java
> :31)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java
> :359)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getPart (Attachments.java
> :324)
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.attachments.Attachments.getDataHandler(
> Attachments.java:274)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(
> MTOMStAXSOAPModelBuilder.java:151)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(
> OMTextImpl.java:341)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(
> OMTextImpl.java:368)
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>        at
> > >> >> >>
> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
> > >> >> >>
> > >> >> >> My client is:
> > >> >> >>
> > >> >> >> public static void testSubmitOneWayWSRM() throws Exception {
> > >> >> >>
> > >> >> >>         ConfigurationContext configContext =
> > >> >> >>
> > >> >>
> > >> ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (CLIENT_REPO_PATH,axis2_xml);
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>         ServiceClient sender = new ServiceClient
> > >> >> (configContext,null);
> > >> >> >>
> > >> >> >>
> > >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> > >> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace,
> "m");
> > >> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
> > >> >> omNs);
> > >> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
> > >> >> omNs);
> > >> >> >>                 // Add Text
> > >> >> >>         String
> bodymessvalue=createSoapMessageString(fileXMLName);
> > >> >> >>         payload.addChild(fac.createOMText(bodymess,
> > >> bodymessvalue));
> > >> >> >>
> > >> >> >>         // Add text file
> > >> >> >>         OMElement attach=createAttachment(fac,omNs);
> > >> >> >>         attach = fac.createOMElement("attachment", omNs);
> > >> >> >>         File fileTxt = new File(fileName);
> > >> >> >>         FileDataSource dataSource = new
> FileDataSource(fileTxt);
> > >> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
> > >> >> >>         OMText textData = fac.createOMText(expectedDH, true);
> > >> >> >>         System.out.println("Client:contentID" +
> > >> >> >> textData.getContentID());
> > >> >> >>         attach.addChild(textData);
> > >> >> >>         payload.addChild(attach);
> > >> >> >>
> > >> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
> > >> >> >>         Options options = new Options();
> > >> >> >>         options.setTo(targetEPR);
> > >> >> >>         options.setAction("submitOneWay");
> > >> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP
> );
> > >> >> >>         options.setUseSeparateListener(false);
> > >> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM
> ,
> > >> >> >> Constants.VALUE_TRUE);
> > >> >> >>
> > >> >> >>
> > >> >>
> > >> options.setProperty(MessageContextConstants.TRANSPORT_URL
> ,targetEPRTcpmon);
> > >>
> > >> >>
> > >> >> >>
> > >> >> >>         sender.setOptions(options);
> > >> >> >>
> > >> >> >>         options.setProperty(
> SandeshaClientConstants.LAST_MESSAGE,
> > >> >> >> "true");
> > >> >> >>         sender.fireAndForget(payload);
> > >> >> >>         Thread.sleep(10000);
> > >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> > >> >> >>
> > >> >> >>    }
> > >> >> >>
> > >> >> >> I join also the configuration file : client_axis2.xml
> > >> >> >>
> > >> >> >> Can someone have an idea?
> > >> >> >>
> > >> >> >> Thanks for your help.
> > >> >> >>
> > >> >> >> Regards
> > >> >> >> Elodie
> > >> >> >>
> > >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> > >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Paul Fremantle <pz...@gmail.com>.
Elodie

This looks more like a Sandesha bug. I will do a test as well and let
you know how it goes.

Paul

On 7/3/06, Mancinelli Elodie <el...@bull.net> wrote:
> Hi Paul
>
> 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans
> code works without WSRM.
> 2) The error for MTOM + WSRM with ADB, I don't know because I can't
> generate sources.
> I'm trying to do MTOM + WSRM with ADB on a other little exemple like
> HelloWorld. I tell you the result when I finish it.
>
> Thanks
>
> Elodie
>
>
>
>
> Paul Fremantle wrote:
>
> > Elodie
> >
> > I'm not completely clear on the situation!
> >
> > 1) Is the MTOM + XMLBeans code working without WSRM?
> > 2) What is the error you get with ADB?
> > 3) Can you post the WSDL?
> >
> > Paul
> >
> > On 6/29/06, Mancinelli Elodie <el...@bull.net> wrote:
> >
> >> Hi Paul
> >>
> >> Thanks for your response. I wish have more information because I don' t
> >> understand why MTOM can't work with XmlBeans? And what is the
> >> marshalling I have to use?
> >> I try ADB but it not seems to work, I can't generate the server
> >> implementation.
> >>
> >> In more, I create a client-server with only MTOM and I also create the
> >> same thing with only WSRM(sandesha2) and  both work separetly with
> >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do to
> >> resolve my problem?
> >>
> >>
> >> Thanks a lot.
> >>
> >> Regards
> >> Elodie
> >>
> >>
> >> Paul Fremantle wrote:
> >>
> >> > Elodie
> >> >
> >> > I think the problem is that you are using MTOM with XMLBeans which
> >> > does not work.
> >> >
> >> > Paul
> >> >
> >> > --
> >> > Paul Fremantle
> >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >> >
> >> > http://bloglines.com/blog/paulfremantle
> >> > paul@wso2.com
> >> >
> >> > "Oxygenating the Web Service Platform", www.wso2.com
> >> >
> >> >
> >> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
> >> >
> >> >> Mancinelli Elodie wrote:
> >> >>
> >> >> > Sorry, I want to precise my request. When I observe with TCPMon the
> >> >> > soap message, the differents messages of WSRM's protocole are
> >> created
> >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement
> >> and
> >> >> > TerminateSequence). These messages are correct. The problem is
> >> on the
> >> >> > server after messages.
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Regards,
> >> >> > Elodie
> >> >> >
> >> >> >
> >> >> > Mancinelli Elodie wrote:
> >> >> >
> >> >> >> Hi all,
> >> >> >>
> >> >> >> I try to create an OneWay method which supports WSRM and an
> >> >> attachment.
> >> >> >> My service is really simple, it's only a "println".
> >> >> >> The method runs successfully when there is only the WSRM
> >> >> >> implementation, but when I add the attachement part, I have an
> >> server
> >> >> >> error:
> >> >> >>
> >> >> >> org.apache.sandesha2.SandeshaException: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
> >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error
> >> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
> >> >> >>        at
> >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
> >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46)
> >>
> >> >>
> >> >> >>
> >> >> >>        ... 4 more
> >> >> >> Caused by: org.apache.axiom.om.OMException:
> >> >> >> java.lang.NullPointerException
> >> >> >>        at
> >> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145)
> >>
> >> >>
> >> >> >>
> >> >> >>        ... 5 more
> >> >> >> Caused by: java.lang.NullPointerException
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
> >>
> >> >>
> >> >> >>
> >> >> >>        at org.apache.coyote.Request.doRead(Request.java:423)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> >> >> >>        at
> >> >> java.io.PushbackInputStream.read(PushbackInputStream.java:120)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
> >> >> >>        at
> >> >> >>
> >> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> >> >> >>        at
> >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.PartOnMemory.<init>(PartOnMemory.java:31)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
> >> >> >>
> >> >> >> My client is:
> >> >> >>
> >> >> >> public static void testSubmitOneWayWSRM() throws Exception {
> >> >> >>
> >> >> >>         ConfigurationContext configContext =
> >> >> >>
> >> >>
> >> ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml);
> >>
> >> >>
> >> >> >>
> >> >> >>         ServiceClient sender = new ServiceClient
> >> >> (configContext,null);
> >> >> >>
> >> >> >>
> >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace, "m");
> >> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
> >> >> omNs);
> >> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
> >> >> omNs);
> >> >> >>                 // Add Text
> >> >> >>         String bodymessvalue=createSoapMessageString(fileXMLName);
> >> >> >>         payload.addChild(fac.createOMText(bodymess,
> >> bodymessvalue));
> >> >> >>
> >> >> >>         // Add text file
> >> >> >>         OMElement attach=createAttachment(fac,omNs);
> >> >> >>         attach = fac.createOMElement("attachment", omNs);
> >> >> >>         File fileTxt = new File(fileName);
> >> >> >>         FileDataSource dataSource = new FileDataSource(fileTxt);
> >> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
> >> >> >>         OMText textData = fac.createOMText(expectedDH, true);
> >> >> >>         System.out.println("Client:contentID" +
> >> >> >> textData.getContentID());
> >> >> >>         attach.addChild(textData);
> >> >> >>         payload.addChild(attach);
> >> >> >>
> >> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
> >> >> >>         Options options = new Options();
> >> >> >>         options.setTo(targetEPR);
> >> >> >>         options.setAction("submitOneWay");
> >> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >>         options.setUseSeparateListener(false);
> >> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >> Constants.VALUE_TRUE);
> >> >> >>
> >> >> >>
> >> >>
> >> options.setProperty(MessageContextConstants.TRANSPORT_URL,targetEPRTcpmon);
> >>
> >> >>
> >> >> >>
> >> >> >>         sender.setOptions(options);
> >> >> >>
> >> >> >>         options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
> >> >> >> "true");
> >> >> >>         sender.fireAndForget(payload);
> >> >> >>         Thread.sleep(10000);
> >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> >> >> >>
> >> >> >>    }
> >> >> >>
> >> >> >> I join also the configuration file : client_axis2.xml
> >> >> >>
> >> >> >> Can someone have an idea?
> >> >> >>
> >> >> >> Thanks for your help.
> >> >> >>
> >> >> >> Regards
> >> >> >> Elodie
> >> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Paul Fremantle <pz...@gmail.com>.
Elodie

This looks more like a Sandesha bug. I will do a test as well and let
you know how it goes.

Paul

On 7/3/06, Mancinelli Elodie <el...@bull.net> wrote:
> Hi Paul
>
> 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans
> code works without WSRM.
> 2) The error for MTOM + WSRM with ADB, I don't know because I can't
> generate sources.
> I'm trying to do MTOM + WSRM with ADB on a other little exemple like
> HelloWorld. I tell you the result when I finish it.
>
> Thanks
>
> Elodie
>
>
>
>
> Paul Fremantle wrote:
>
> > Elodie
> >
> > I'm not completely clear on the situation!
> >
> > 1) Is the MTOM + XMLBeans code working without WSRM?
> > 2) What is the error you get with ADB?
> > 3) Can you post the WSDL?
> >
> > Paul
> >
> > On 6/29/06, Mancinelli Elodie <el...@bull.net> wrote:
> >
> >> Hi Paul
> >>
> >> Thanks for your response. I wish have more information because I don' t
> >> understand why MTOM can't work with XmlBeans? And what is the
> >> marshalling I have to use?
> >> I try ADB but it not seems to work, I can't generate the server
> >> implementation.
> >>
> >> In more, I create a client-server with only MTOM and I also create the
> >> same thing with only WSRM(sandesha2) and  both work separetly with
> >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do to
> >> resolve my problem?
> >>
> >>
> >> Thanks a lot.
> >>
> >> Regards
> >> Elodie
> >>
> >>
> >> Paul Fremantle wrote:
> >>
> >> > Elodie
> >> >
> >> > I think the problem is that you are using MTOM with XMLBeans which
> >> > does not work.
> >> >
> >> > Paul
> >> >
> >> > --
> >> > Paul Fremantle
> >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >> >
> >> > http://bloglines.com/blog/paulfremantle
> >> > paul@wso2.com
> >> >
> >> > "Oxygenating the Web Service Platform", www.wso2.com
> >> >
> >> >
> >> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
> >> >
> >> >> Mancinelli Elodie wrote:
> >> >>
> >> >> > Sorry, I want to precise my request. When I observe with TCPMon the
> >> >> > soap message, the differents messages of WSRM's protocole are
> >> created
> >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement
> >> and
> >> >> > TerminateSequence). These messages are correct. The problem is
> >> on the
> >> >> > server after messages.
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Regards,
> >> >> > Elodie
> >> >> >
> >> >> >
> >> >> > Mancinelli Elodie wrote:
> >> >> >
> >> >> >> Hi all,
> >> >> >>
> >> >> >> I try to create an OneWay method which supports WSRM and an
> >> >> attachment.
> >> >> >> My service is really simple, it's only a "println".
> >> >> >> The method runs successfully when there is only the WSRM
> >> >> >> implementation, but when I add the attachement part, I have an
> >> server
> >> >> >> error:
> >> >> >>
> >> >> >> org.apache.sandesha2.SandeshaException: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
> >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error
> >> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
> >> >> >>        at
> >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
> >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46)
> >>
> >> >>
> >> >> >>
> >> >> >>        ... 4 more
> >> >> >> Caused by: org.apache.axiom.om.OMException:
> >> >> >> java.lang.NullPointerException
> >> >> >>        at
> >> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145)
> >>
> >> >>
> >> >> >>
> >> >> >>        ... 5 more
> >> >> >> Caused by: java.lang.NullPointerException
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
> >>
> >> >>
> >> >> >>
> >> >> >>        at org.apache.coyote.Request.doRead(Request.java:423)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> >> >> >>        at
> >> >> java.io.PushbackInputStream.read(PushbackInputStream.java:120)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
> >> >> >>        at
> >> >> >>
> >> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> >> >> >>        at
> >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.PartOnMemory.<init>(PartOnMemory.java:31)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
> >> >> >>
> >> >> >> My client is:
> >> >> >>
> >> >> >> public static void testSubmitOneWayWSRM() throws Exception {
> >> >> >>
> >> >> >>         ConfigurationContext configContext =
> >> >> >>
> >> >>
> >> ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml);
> >>
> >> >>
> >> >> >>
> >> >> >>         ServiceClient sender = new ServiceClient
> >> >> (configContext,null);
> >> >> >>
> >> >> >>
> >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace, "m");
> >> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
> >> >> omNs);
> >> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
> >> >> omNs);
> >> >> >>                 // Add Text
> >> >> >>         String bodymessvalue=createSoapMessageString(fileXMLName);
> >> >> >>         payload.addChild(fac.createOMText(bodymess,
> >> bodymessvalue));
> >> >> >>
> >> >> >>         // Add text file
> >> >> >>         OMElement attach=createAttachment(fac,omNs);
> >> >> >>         attach = fac.createOMElement("attachment", omNs);
> >> >> >>         File fileTxt = new File(fileName);
> >> >> >>         FileDataSource dataSource = new FileDataSource(fileTxt);
> >> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
> >> >> >>         OMText textData = fac.createOMText(expectedDH, true);
> >> >> >>         System.out.println("Client:contentID" +
> >> >> >> textData.getContentID());
> >> >> >>         attach.addChild(textData);
> >> >> >>         payload.addChild(attach);
> >> >> >>
> >> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
> >> >> >>         Options options = new Options();
> >> >> >>         options.setTo(targetEPR);
> >> >> >>         options.setAction("submitOneWay");
> >> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >>         options.setUseSeparateListener(false);
> >> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >> Constants.VALUE_TRUE);
> >> >> >>
> >> >> >>
> >> >>
> >> options.setProperty(MessageContextConstants.TRANSPORT_URL,targetEPRTcpmon);
> >>
> >> >>
> >> >> >>
> >> >> >>         sender.setOptions(options);
> >> >> >>
> >> >> >>         options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
> >> >> >> "true");
> >> >> >>         sender.fireAndForget(payload);
> >> >> >>         Thread.sleep(10000);
> >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> >> >> >>
> >> >> >>    }
> >> >> >>
> >> >> >> I join also the configuration file : client_axis2.xml
> >> >> >>
> >> >> >> Can someone have an idea?
> >> >> >>
> >> >> >> Thanks for your help.
> >> >> >>
> >> >> >> Regards
> >> >> >> Elodie
> >> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

Posted by Paul Fremantle <pz...@gmail.com>.
Elodie

This looks more like a Sandesha bug. I will do a test as well and let
you know how it goes.

Paul

On 7/3/06, Mancinelli Elodie <el...@bull.net> wrote:
> Hi Paul
>
> 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans
> code works without WSRM.
> 2) The error for MTOM + WSRM with ADB, I don't know because I can't
> generate sources.
> I'm trying to do MTOM + WSRM with ADB on a other little exemple like
> HelloWorld. I tell you the result when I finish it.
>
> Thanks
>
> Elodie
>
>
>
>
> Paul Fremantle wrote:
>
> > Elodie
> >
> > I'm not completely clear on the situation!
> >
> > 1) Is the MTOM + XMLBeans code working without WSRM?
> > 2) What is the error you get with ADB?
> > 3) Can you post the WSDL?
> >
> > Paul
> >
> > On 6/29/06, Mancinelli Elodie <el...@bull.net> wrote:
> >
> >> Hi Paul
> >>
> >> Thanks for your response. I wish have more information because I don' t
> >> understand why MTOM can't work with XmlBeans? And what is the
> >> marshalling I have to use?
> >> I try ADB but it not seems to work, I can't generate the server
> >> implementation.
> >>
> >> In more, I create a client-server with only MTOM and I also create the
> >> same thing with only WSRM(sandesha2) and  both work separetly with
> >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do to
> >> resolve my problem?
> >>
> >>
> >> Thanks a lot.
> >>
> >> Regards
> >> Elodie
> >>
> >>
> >> Paul Fremantle wrote:
> >>
> >> > Elodie
> >> >
> >> > I think the problem is that you are using MTOM with XMLBeans which
> >> > does not work.
> >> >
> >> > Paul
> >> >
> >> > --
> >> > Paul Fremantle
> >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >> >
> >> > http://bloglines.com/blog/paulfremantle
> >> > paul@wso2.com
> >> >
> >> > "Oxygenating the Web Service Platform", www.wso2.com
> >> >
> >> >
> >> > On 6/28/06, Mancinelli Elodie <el...@bull.net> wrote:
> >> >
> >> >> Mancinelli Elodie wrote:
> >> >>
> >> >> > Sorry, I want to precise my request. When I observe with TCPMon the
> >> >> > soap message, the differents messages of WSRM's protocole are
> >> created
> >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement
> >> and
> >> >> > TerminateSequence). These messages are correct. The problem is
> >> on the
> >> >> > server after messages.
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Regards,
> >> >> > Elodie
> >> >> >
> >> >> >
> >> >> > Mancinelli Elodie wrote:
> >> >> >
> >> >> >> Hi all,
> >> >> >>
> >> >> >> I try to create an OneWay method which supports WSRM and an
> >> >> attachment.
> >> >> >> My service is really simple, it's only a "println".
> >> >> >> The method runs successfully when there is only the WSRM
> >> >> >> implementation, but when I add the attachement part, I have an
> >> server
> >> >> >> error:
> >> >> >>
> >> >> >> org.apache.sandesha2.SandeshaException: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        org.apache.axis2.AxisFault: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
> >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error; nested
> >> >> >> exception is:
> >> >> >>        java.lang.RuntimeException: Data binding error
> >> >> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
> >> >> >>        at
> >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
> >> >> >> Caused by: java.lang.RuntimeException: Data binding error
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46)
> >>
> >> >>
> >> >> >>
> >> >> >>        ... 4 more
> >> >> >> Caused by: org.apache.axiom.om.OMException:
> >> >> >> java.lang.NullPointerException
> >> >> >>        at
> >> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145)
> >>
> >> >>
> >> >> >>
> >> >> >>        ... 5 more
> >> >> >> Caused by: java.lang.NullPointerException
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
> >>
> >> >>
> >> >> >>
> >> >> >>        at org.apache.coyote.Request.doRead(Request.java:423)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> java.io.FilterInputStream.read(FilterInputStream.java:66)
> >> >> >>        at
> >> >> java.io.PushbackInputStream.read(PushbackInputStream.java:120)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
> >> >> >>        at
> >> >> >>
> >> javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
> >> >> >>        at
> >> >> javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.PartOnMemory.<init>(PartOnMemory.java:31)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368)
> >>
> >> >>
> >> >> >>
> >> >> >>        at
> >> >> >>
> >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)
> >> >> >>
> >> >> >> My client is:
> >> >> >>
> >> >> >> public static void testSubmitOneWayWSRM() throws Exception {
> >> >> >>
> >> >> >>         ConfigurationContext configContext =
> >> >> >>
> >> >>
> >> ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml);
> >>
> >> >>
> >> >> >>
> >> >> >>         ServiceClient sender = new ServiceClient
> >> >> (configContext,null);
> >> >> >>
> >> >> >>
> >> >> >>         OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >> >>         OMNamespace omNs = fac.createOMNamespace(namespace, "m");
> >> >> >>         OMElement payload = fac.createOMElement("submitOneWay",
> >> >> omNs);
> >> >> >>         OMElement bodymess = fac.createOMElement("bodymessage",
> >> >> omNs);
> >> >> >>                 // Add Text
> >> >> >>         String bodymessvalue=createSoapMessageString(fileXMLName);
> >> >> >>         payload.addChild(fac.createOMText(bodymess,
> >> bodymessvalue));
> >> >> >>
> >> >> >>         // Add text file
> >> >> >>         OMElement attach=createAttachment(fac,omNs);
> >> >> >>         attach = fac.createOMElement("attachment", omNs);
> >> >> >>         File fileTxt = new File(fileName);
> >> >> >>         FileDataSource dataSource = new FileDataSource(fileTxt);
> >> >> >>         DataHandler expectedDH = new DataHandler(dataSource);
> >> >> >>         OMText textData = fac.createOMText(expectedDH, true);
> >> >> >>         System.out.println("Client:contentID" +
> >> >> >> textData.getContentID());
> >> >> >>         attach.addChild(textData);
> >> >> >>         payload.addChild(attach);
> >> >> >>
> >> >> >>         System.out.println("callAXIOM, doc sent : "+payload);
> >> >> >>         Options options = new Options();
> >> >> >>         options.setTo(targetEPR);
> >> >> >>         options.setAction("submitOneWay");
> >> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >>         options.setUseSeparateListener(false);
> >> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >> Constants.VALUE_TRUE);
> >> >> >>
> >> >> >>
> >> >>
> >> options.setProperty(MessageContextConstants.TRANSPORT_URL,targetEPRTcpmon);
> >>
> >> >>
> >> >> >>
> >> >> >>         sender.setOptions(options);
> >> >> >>
> >> >> >>         options.setProperty(SandeshaClientConstants.LAST_MESSAGE,
> >> >> >> "true");
> >> >> >>         sender.fireAndForget(payload);
> >> >> >>         Thread.sleep(10000);
> >> >> >>         System.out.println("NO RETURN FOR WEBSERVICE");
> >> >> >>
> >> >> >>    }
> >> >> >>
> >> >> >> I join also the configuration file : client_axis2.xml
> >> >> >>
> >> >> >> Can someone have an idea?
> >> >> >>
> >> >> >> Thanks for your help.
> >> >> >>
> >> >> >> Regards
> >> >> >> Elodie
> >> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org