I am getting up an running with ws-security at the moment and can confirm that it does work. From the look of you stack trace it seems that there is a problem with the deserialization/unmarshalling of you xml. Perhaps you should try taking out ws-security and see if it works.
On 2/6/07, Tomek Sztelak <[EMAIL PROTECTED]> wrote:
Order in which handlers are added doesn't matter. I'll try to test this later today. On 2/6/07, Ing. Jaroslav Půbal <[EMAIL PROTECTED]> wrote: > I tried that .. but no luck. > > What is correct sequence > > DOMOutHandler > WSS4JOutHandler > LoggingHandler > > or on order of handlers not depends? > > > -----Original Message----- > From: Tomek Sztelak [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 06, 2007 4:50 PM > To: [email protected] > Subject: Re: [xfire-user] Logging doesnt work with WS-Security ? > > > DOMOutHandler can be added only once to each handlers chain. > > On 2/6/07, Ing. Jaroslav Půbal <[EMAIL PROTECTED]> wrote: > > client.addOutHandler(new DOMOutHandler());//?? > > Properties outProperties = new Properties(); > > > configureGordicOutProperties(outProperties,finalLogin,password); > > client.addOutHandler(new WSS4JOutHandler(outProperties)); > > > > client.setProperty(JaxbType.SEARCH_PACKAGES, searchPackages); > > > > if (logXMLMessages){ > > client.addInHandler(new > > org.codehaus.xfire.util.dom.DOMInHandler()); > > client.addInHandler(new > > org.codehaus.xfire.util.LoggingHandler()); > > > > client.addOutHandler(new > > org.codehaus.xfire.util.dom.DOMOutHandler(){});//?? > > client.addOutHandler(new > > org.codehaus.xfire.util.LoggingHandler()); > > > > client.addFaultHandler(new > > org.codehaus.xfire.util.dom.DOMOutHandler()); > > client.addFaultHandler(new > > org.codehaus.xfire.util.LoggingHandler()); > > } > > > > > > -----Original Message----- > > From: Tomek Sztelak [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 06, 2007 4:03 PM > > To: [email protected] > > Subject: Re: [xfire-user] Logging doesnt work with WS-Security ? > > > > > > Can you show your config where you use both loging and ws-sec ? > > > > On 2/6/07, Ing. Jaroslav Půbal <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > stand alone logging as described in > > > http://xfire.codehaus.org/Logging working fine. > > > > > > // Tell XFire to cache a DOM document for the various in/out/fault > > > flows service.addInHandler(new > > > org.codehaus.xfire.util.dom.DOMInHandler()); > > > service.addOutHandler(new > > > org.codehaus.xfire.util.dom.DOMOutHandler()); > > > service.addFaultHandler(new > > > org.codehaus.xfire.util.dom.DOMOutHandler()); > > > > > > // Add a logging handler to each flow service.addInHandler(new > > > org.codehaus.xfire.util.LoggingHandler()); > > > service.addOutHandler(new org.codehaus.xfire.util.LoggingHandler()); > > > service.addFaultHandler(new > > > org.codehaus.xfire.util.LoggingHandler()); > > > > > > > > > > > > > > > stand alone ws-security as described in > > > http://xfire.codehaus.org/WS-Security > > > working fine. > > > > > > Client client = Client.getInstance(service); > > > client.addOutHandler(new DOMOutHandler()); Properties outProperties > > > = new Properties(); // CONFIGURE OUTGOING SECURITY HERE > > > (outProperties) <-- client.addOutHandler(new > > > WSS4JOutHandler(outProperties)); > > > > > > > > > > > > > > > > > > But if I want both of them i get exceptions. > > > I tried first code for logging then first code for security then > > include > > > only one DOMOutHandler in the chain .. and nothing works. > > > > > > Pleas help. > > > > > > > > > > > > 2007-02-06 15:04:23,282 ERROR http-8090-Processor3:pubal > > > [DefaultFaultHandler] Fault occurred! > > > org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. > > > > Nested exception is > > > org.codehaus.xfire.fault.XFireFault: Could not unmarshall type. > > > org.codehaus.xfire.fault.XFireFault: Could not unmarshall > > > type. > > > at > > > org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:211) > > > at > > > > > org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindi > > ng > > Provider.java:160) > > > at > > > > > org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBindin > > g. > > java:206) > > > at > > > > > org.codehaus.xfire.service.binding.DocumentBinding.readMessage(Documen > > tB > > inding.java:32) > > > at > > > > > org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler > > .j > > ava:42) > > > at > > > > > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java > > :1 > > 31) > > > at > > > org.codehaus.xfire.client.Client.onReceive(Client.java:382) > > > at > > > > > org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChanne > > l. > > java:139) > > > at > > > > > org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48 > > ) > > > at > > > > > org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.ja > > va > > :26) > > > at > > > > > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java > > :1 > > 31) > > > at > > > org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) > > > at > > > org.codehaus.xfire.client.Client.invoke(Client.java:335) > > > at > > > org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:7 > > > 7) > > > at > > > org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) > > > at $Proxy182.detailDokumentu(Unknown Source) > > > at > > > > > cz.marbes.daisy.modules.doc.sps.gordic.SpsGordic.detailDokumentu(SpsGo > > rd > > ic.java:248) > > > at > > > > > cz.marbes.daisy.modules.doc.sps.gordic.SpsGordic.spsSeznamPisemnostiVe > > Sp > > isu(SpsGordic.java:213) > > > at > > > > > cz.marbes.daisy.modules.doc.ws.WSSps.spsSeznamPisemnostiVeSpisu(WSSps. > > ja > > va:42) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown > > > Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvo > > ke > > r.java:54) > > > at > > > > > org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessag > > e( > > ServiceInvocationHandler.java:271) > > > at > > > > > org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(Serv > > ic > > eInvocationHandler.java:84) > > > at > > > > > org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(Se > > rv > > iceInvocationHandler.java:132) > > > at > > > > > org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(Ser > > vi > > ceInvocationHandler.java:107) > > > at > > > > > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java > > :1 > > 31) > > > at > > > > > org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint > > .j > > ava:64) > > > at > > > > > org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.j > > av > > a:38) > > > at > > > > > org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireS > > er > > vletController.java:301) > > > at > > > > > org.codehaus.xfire.transport.http.XFireServletController.doService(XFi > > re > > ServletController.java:130) > > > at > > > > > org.codehaus.xfire.spring.remoting.XFireServletControllerAdapter.handl > > eR > > equest(XFireServletControllerAdapter.java:57) > > > at > > > > > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.han > > dl > > e(SimpleControllerHandlerAdapter.java:44) > > > at > > > > > org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche > > rS > > ervlet.java:723) > > > at > > > > > org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher > > Se > > rvlet.java:663) > > > at > > > > > org.springframework.web.servlet.FrameworkServlet.processRequest(Framew > > or > > kServlet.java:394) > > > at > > > > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServl > > et > > .java:358) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli > > ca > > tionFilterChain.java:252) > > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi > > lt > > erChain.java:173) > > > at > > > > > org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java > > :1 > > 30) > > > at > > > > > org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.ja > > va > > :98) > > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli > > ca > > tionFilterChain.java:202) > > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi > > lt > > erChain.java:173) > > > at > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa > > lv > > e.java:213) > > > at > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa > > lv > > e.java:178) > > > at > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja > > va > > :126) > > > at > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja > > va > > :105) > > > at > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv > > e. > > java:107) > > > at > > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java > > :1 > > 48) > > > at > > > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: > > 86 > > 9) > > > at > > > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr > > oc > > essConnection(Http11BaseProtocol.java:667) > > > at > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi > > nt > > .java:527) > > > at > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll > > ow > > erWorkerThread.java:80) > > > at > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo > > ol > > .java:684) > > > at java.lang.Thread.run(Unknown Source) > > > Caused by: java.lang.NullPointerException > > > at > > > org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:374) > > > at > > > > > org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Tran > > sf > > ormerIdentityImpl.java:1072) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.DomLoader.startElement(DomLoa > > de > > r.java:82) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(Prox > > yL > > oader.java:19) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startEl > > em > > ent(UnmarshallingContext.java:402) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startEle > > me > > nt(UnmarshallingContext.java:380) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElem > > en > > t(InterningXmlVisitor.java:35) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleSta > > rt > > Element(StAXStreamConnector.java:208) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(St > > AX > > StreamConnector.java:142) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(U > > nm > > arshallerImpl.java:333) > > > at > > > > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Un > > ma > > rshallerImpl.java:305) > > > at > > > org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:196) > > > ... 58 more > > > > > > > > > -- > > ----- > > When one of our products stops working, we'll blame another vendor > > within 24 hours. > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > -- > ----- > When one of our products stops working, we'll blame another vendor > within 24 hours. > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- ----- When one of our products stops working, we'll blame another vendor within 24 hours.
