Testing a new axis transport
Hi all, I like to test a new transport installed within axis. Therefore I'm looking for papers or resources for testing throughput, latency and so on. Any hints would be appreciated?! Thanks, Chris
Passing options to transport sender
Hi, When I create a call I like to pass options to my transport sender. For that I use the following code: SimpleTargetedChain c = new SimpleTargetedChain(new MySender()); config.deployTransport(myTransport , c); c.setOption(Hello, HelloAgain); // Set option But when I read the set option within the transport sender I just receive a Nullpointer exception. How do I can pass options to a given transport sender?? Thx, Chris // Complete method to create a call on client side public static Call createCall(ClientContext cContext) throws ServiceException { Call.addTransportPackage(org.my.axis.transport); Call.setTransportForProtocol(myTransport, MyTransport.class); EngineConfiguration defaultConfig = EngineConfigurationFactoryFinder .newFactory().getClientEngineConfig(); SimpleProvider config = new SimpleProvider(defaultConfig); SimpleTargetedChain c = new SimpleTargetedChain(new MySender()); // THIS DOESNT WORK!!! if (cContext != null) c.setOption(Constants.CLIENT_CONTEXT, cContext); config.deployTransport(myTransport , c); Service service = new Service(config); Call call = (Call) service.createCall(); call.setTransport(new MyTransport()); return call; }
AW: Axis 1.3 and Transport example
I modified the GetQuote service. Now, it works. Thanks anyway, Chris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. November 2005 11:13 An: axis-user@ws.apache.org Betreff: Axis 1.3 and Transport example Hi, does anybody have ever brought the tcp example (samples/transport/tcp) under axis 1.3 to start?? It doesn't work for me. Thanks for your reply, Chris
TCP transport sample
Hi, I have got problems using the TCP transport sample. When I execute java samples.transport.tcp.AdminClient -l tcp://localhost: deploy.wsdd then I receive the following exceptions on server side. Whats wrong? I tried to execute this example with JDK1.4.2_09 and JDK1.5.0_05 using Axis1_2_1 as well as Axis1_3. Thanks for your help, Chris Exception in thread Thread-0 java.lang.NoClassDefFoundError: javax/wsdl/Operat ionType at org.apache.axis.description.OperationDesc.clinit(OperationDesc.java :59) at org.apache.axis.description.JavaServiceDesc.createOperationForMethod( JavaServiceDesc.java:1202) at org.apache.axis.description.JavaServiceDesc.createOperationsForName(J avaServiceDesc.java:1139) at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForNam e(JavaServiceDesc.java:1101) at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospe ctionRecursive(JavaServiceDesc.java:951) at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospe ction(JavaServiceDesc.java:885) at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvi der.java:477) at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(S OAPService.java:285) at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDServi ce.java:500) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD DDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe ployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDDeployment.getServiceByNamespaceU RI(WSDDDeployment.java:436) at org.apache.axis.configuration.FileProvider.getServiceByNamespaceURI(F ileProvider.java:247) at org.apache.axis.MessageContext.getPossibleOperationsByQName(MessageCo ntext.java:230) at org.apache.axis.message.BodyBuilder.onStartChild(BodyBuilder.java:132 ) at org.apache.axis.encoding.DeserializationContext.startElement(Deserial izationContext.java:1035) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(Deserialization Context.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:266) at samples.transport.tcp.TCPListener$SocketHandler.run(TCPListener.java: 213) at java.lang.Thread.run(Unknown Source)
AW: How To using Axis over UDP
Raphael, as far as I know there doesnt exist any public transport implementation of SOAP over UDP for Axis1/Axis2. If you are able to start the TCP sample coming with Axis1 then it should be easy for you to adapt the TCP transport to a SOAP over UDP transport mechanism. In case of Axis2 its not so easy to do so, because of the class AbstractTransportSender. This class has to be used to write a transport sender and it forces to work with streams. If you dont rely on Axis then use .NET/WSE here you can find SOAP over UDP as transport mechanism. By the way, you know that its only possible to send soap messages with size up to 2^16-20-8 bytes due to UDP packet size limitation??! Im working on an extended SOAP over UDP transport using Axis/Axis2. But I will not be ready before X-Mass 05. Chris Von: Raphael Jacquemin [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. Oktober 2005 11:09 An: axis-user@ws.apache.org Betreff: How To using Axis over UDP Hello everybody, I'm working with Axis 1.2 on a DPWS (Device Profile Web Services) implementation. This profiles needs to use SOAP over UDP. I know this possibility is define in a specification : http://msdn.microsoft.com/library/en-us/dnglobspec/html/soap-over-udp.pdf But I can't find any example with Axis !!! The specification looks like quite simple. The different SOAP messages are similar to the message over Http but I don't know how to specify the UDP transport. I look into the AXIS lib : org.apache.axis.transport But there is no UDP package Maybe this protocol will be support in Axis2 ? If you have any idea ? Best regards Raphael
Problems using tcp sample
Hi, I'm using Axis 1.2.1 and I try to use the tcp sample which can be found in package 'samples\transport\tcp'. My CLASSPATH contain: an XML parser, JUnit, all the jars in the lib directory, and the directory containing the samples subdirectory. When I execute java samples.transport.tcp.AdminClient -l tcp://localhost: deploy.wsdd then I receive the following Exception. - getURL failed to correctly process URL; protocol not supported java.net.MalformedURLException: unknown protocol: tcp java.net.MalformedURLException: unknown protocol: tcp at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at org.apache.axis.utils.Options.getURL(Options.java:237) at org.apache.axis.utils.Options.init(Options.java:65) at org.apache.axis.client.AdminClient.process(AdminClient.java:281) at samples.transport.tcp.AdminClient.main(AdminClient.java:53) Why isn't the protocol registered? What's wrong?? Thx for your help, Chris
AW: Problems using tcp sample
Ron, thx for your answer. I found the problem. If you want to use the tcp example, your sample directory must contain a class 'Handler' which looks like this: public class Handler extends java.net.URLStreamHandler { static { /* Register the TCPTransport class */ org.apache.axis.client.Call.setTransportForProtocol( tcp, TCPTransport.class); } protected URLConnection openConnection(URL u) { return null; } } Now, it works. Chris -Ursprüngliche Nachricht- Von: Ron Reynolds [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. Oktober 2005 16:56 An: axis-user@ws.apache.org Betreff: Re: Problems using tcp sample i've never seen a tcp URL - what protocol is that without ip? i'm no protocol expert, but... do you have a tcp server running on port ? so it's not http or ftp or...? [EMAIL PROTECTED] wrote: Hi, I'm using Axis 1.2.1 and I try to use the tcp sample which can be found in package 'samples\transport\tcp'. My CLASSPATH contain: an XML parser, JUnit, all the jars in the lib directory, and the directory containing the samples subdirectory. When I execute java samples.transport.tcp.AdminClient -l tcp://localhost: deploy.wsdd then I receive the following Exception. - getURL failed to correctly process URL; protocol not supported java.net.MalformedURLException: unknown protocol: tcp java.net.MalformedURLException: unknown protocol: tcp at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at org.apache.axis.utils.Options.getURL(Options.java:237) at org.apache.axis.utils.Options.init(Options.java:65) at org.apache.axis.client.AdminClient.process(AdminClient.java:281) at samples.transport.tcp.AdminClient.main(AdminClient.java:53) Why isn't the protocol registered? What's wrong?? Thx for your help, Chris
[Axis2] Roadmap question
Hi, as far as I can see axis2 doesn't support rpc/lit or rpc/encoded at the moment. Can anybody tell me when this feature will be enabled (if it will be implemented at all)?? Thanks, Chris
[Axis2] Problems to use getText() of SOAPEnvelope
Hi, I like to extract the 'text' from an instance of org.apache.axis2.soap.SOAPEnvelope: // create the parser XMLStreamReader parser = XMLInputFactory.newInstance() .createXMLStreamReader(new FileReader(file)); // create the builder OMXMLParserWrapper builder = OMXMLBuilderFactory .createStAXSOAPModelBuilder(OMAbstractFactory .getSOAP12Factory(), parser); // get the root element (in this case the envelope) SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement(); // get text System.out.println(envelope.getText()); If I use envelope.getText() then I receive the exception listed below. But when I use XMLStreamWriter writer = XMLOutputFactory.newInstance() .createXMLStreamWriter(System.out); // dump the out put to console with caching envelope.serialize(writer); writer.flush(); everything works fine. Is it intended or what's wrong?? Thx, Chris Exception in thread main org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[20,20] Message: already reached end document at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java: 270) at org.apache.axis2.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:467 ) at org.apache.axis2.om.impl.llom.OMNodeImpl.getNextSibling(OMNodeImpl.java:121) at org.apache.axis2.om.impl.llom.OMElementImpl.getText(OMElementImpl.java:604) at de.iken.pure.test.env.server.ManagerTest.buildPackets(ManagerTest.java:79) at de.iken.pure.test.env.server.ManagerTest.testManager(ManagerTest.java:48) at de.iken.pure.test.env.server.ManagerTest.init(ManagerTest.java:41) at de.iken.pure.test.env.server.ManagerTest.main(ManagerTest.java:178) Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[20,20] Message: already reached end document at com.bea.xml.stream.MXParser.parseEpilog(MXParser.java:1935) at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1819) at com.bea.xml.stream.MXParser.next(MXParser.java:1249) at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java: 188) ... 7 more
[Axis2] Migrating from Axis 1.x - (De-)Serializers
Hi all, if your service return a complex type like 'MyType', which is build up of Java Beans, Axis 1.x is able to generate the service code automatically by using 'BeanSerializerFactory' in conjunction with 'WSDL2Java'. Is axis2 able to generate the complete service code automatically (WSDL2Java) if you are working with Java Beans, too?? Or do you always have to fill the OMElements by your own? Thx, Chris
Build problems during compiling
Hi all, I receive the below listed build problems. By the way, on http://ws.apache.org/axis2/maven-help.html there is a typo: the command 'maven -dmaven.test.skip=true' must be 'maven -Dmaven.test.skip=true' (d - D). Cheers, Chris java:compile: [echo] Compiling to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == [javac] Compiling 55 source files to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\target\cla sses [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\NodeImpl.java :36: org.apache.axis2.saaj.NodeImpl is not abstract and does not override abstract method getUserData(java.lan g.String) in org.w3c.dom.Node [javac] public class NodeImpl implements Node { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\AttrImpl.java :25: org.apache.axis2.saaj.AttrImpl is not abstract and does not override abstract method isId() in org.w3c.do m.Attr [javac] public class AttrImpl extends NodeImpl implements Attr { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPElementIm pl.java:36: org.apache.axis2.saaj.SOAPElementImpl is not abstract and does not override abstract method getUse rData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPElementImpl extends NodeImpl implements SOAPElement { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\DetailEntryIm pl.java:26: org.apache.axis2.saaj.DetailEntryImpl is not abstract and does not override abstract method getUse rData(java.lang.String) in org.w3c.dom.Node [javac] public class DetailEntryImpl extends SOAPElementImpl implements DetailEntry { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPFaultElem entImpl.java:28: org.apache.axis2.saaj.SOAPFaultElementImpl is not abstract and does not override abstract met hod getUserData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPFaultElementImpl extends SOAPElementImpl implements [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\DetailImpl.ja va:35: org.apache.axis2.saaj.DetailImpl is not abstract and does not override abstract method getUserData(java .lang.String) in org.w3c.dom.Node [javac] public class DetailImpl extends SOAPFaultElementImpl implements Detail { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPBodyEleme ntImpl.java:28: org.apache.axis2.saaj.SOAPBodyElementImpl is not abstract and does not override abstract metho d getUserData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPBodyElementImpl extends SOAPElementImpl implements [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPBodyImpl. java:34: org.apache.axis2.saaj.SOAPBodyImpl is not abstract and does not override abstract method getUserData( java.lang.String) in org.w3c.dom.Node [javac] public class SOAPBodyImpl extends SOAPElementImpl implements SOAPBody { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPDocumentI mpl.java:30: org.apache.axis2.saaj.SOAPDocumentImpl is not abstract and does not override abstract method rena meNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document [javac] public class SOAPDocumentImpl implements Document { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPPartImpl. java:39: org.apache.axis2.saaj.SOAPPartImpl is not abstract and does not override abstract method renameNode(o rg.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document [javac] public class SOAPPartImpl extends SOAPPart { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPEnvelopeI mpl.java:30: org.apache.axis2.saaj.SOAPEnvelopeImpl is not abstract and does not override abstract method getU serData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPEnvelopeImpl extends SOAPElementImpl implements SOAPEnvelope { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPFaultImpl .java:36: org.apache.axis2.saaj.SOAPFaultImpl is not abstract and does not override abstract method getUserDat a(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPFaultImpl
[Axis2] Build problems during compiling
Hi all, I receive the below listed build problems. By the way, on http://ws.apache.org/axis2/maven-help.html there is a typo: the command 'maven -dmaven.test.skip=true' must be 'maven -Dmaven.test.skip=true' (d - D). Cheers, Chris java:compile: [echo] Compiling to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == [javac] Compiling 55 source files to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\target\cla sses [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\NodeImpl.java :36: org.apache.axis2.saaj.NodeImpl is not abstract and does not override abstract method getUserData(java.lan g.String) in org.w3c.dom.Node [javac] public class NodeImpl implements Node { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\AttrImpl.java :25: org.apache.axis2.saaj.AttrImpl is not abstract and does not override abstract method isId() in org.w3c.do m.Attr [javac] public class AttrImpl extends NodeImpl implements Attr { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPElementIm pl.java:36: org.apache.axis2.saaj.SOAPElementImpl is not abstract and does not override abstract method getUse rData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPElementImpl extends NodeImpl implements SOAPElement { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\DetailEntryIm pl.java:26: org.apache.axis2.saaj.DetailEntryImpl is not abstract and does not override abstract method getUse rData(java.lang.String) in org.w3c.dom.Node [javac] public class DetailEntryImpl extends SOAPElementImpl implements DetailEntry { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPFaultElem entImpl.java:28: org.apache.axis2.saaj.SOAPFaultElementImpl is not abstract and does not override abstract met hod getUserData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPFaultElementImpl extends SOAPElementImpl implements [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\DetailImpl.ja va:35: org.apache.axis2.saaj.DetailImpl is not abstract and does not override abstract method getUserData(java .lang.String) in org.w3c.dom.Node [javac] public class DetailImpl extends SOAPFaultElementImpl implements Detail { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPBodyEleme ntImpl.java:28: org.apache.axis2.saaj.SOAPBodyElementImpl is not abstract and does not override abstract metho d getUserData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPBodyElementImpl extends SOAPElementImpl implements [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPBodyImpl. java:34: org.apache.axis2.saaj.SOAPBodyImpl is not abstract and does not override abstract method getUserData( java.lang.String) in org.w3c.dom.Node [javac] public class SOAPBodyImpl extends SOAPElementImpl implements SOAPBody { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPDocumentI mpl.java:30: org.apache.axis2.saaj.SOAPDocumentImpl is not abstract and does not override abstract method rena meNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document [javac] public class SOAPDocumentImpl implements Document { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPPartImpl. java:39: org.apache.axis2.saaj.SOAPPartImpl is not abstract and does not override abstract method renameNode(o rg.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document [javac] public class SOAPPartImpl extends SOAPPart { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPEnvelopeI mpl.java:30: org.apache.axis2.saaj.SOAPEnvelopeImpl is not abstract and does not override abstract method getU serData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPEnvelopeImpl extends SOAPElementImpl implements SOAPEnvelope { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\ax is2\saaj\SOAPFaultImpl .java:36: org.apache.axis2.saaj.SOAPFaultImpl is not abstract and does not override abstract method getUserDat a(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPFaultImpl
[Axis2] Build problems during testing (JIRA AXIS2-193)
Hi, bug AXIS2-193 (http://issues.apache.org/jira/browse/AXIS2-193) is marked as closed but I can't help myself after updating and cleaning the source I still receive the same test fail. Chris
AW: [Axis2] Build problems during compiling
Hi Chris, [EMAIL PROTECTED] wrote: Hi all, I receive the below listed build problems. Well, I just compiled and built the code. It worked for me. It works for me, too - as far as I use JDK 1.4; but not for JDK 1.5. Just for nfo. By the way, on http://ws.apache.org/axis2/maven-help.html there is a typo: the command 'maven -dmaven.test.skip=true' must be 'maven -Dmaven.test.skip=true' (d - D). Thanks I fixed the typo and added some more help there. -- Chinthaka Cheers, Chris java:compile: [echo] Compiling to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == [javac] Compiling 55 source files to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\target\cla sses [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\NodeImpl.java :36: org.apache.axis2.saaj.NodeImpl is not abstract and does not override abstract method getUserData(java.lan g.String) in org.w3c.dom.Node [javac] public class NodeImpl implements Node { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\AttrImpl.java :25: org.apache.axis2.saaj.AttrImpl is not abstract and does not override abstract method isId() in org.w3c.do m.Attr [javac] public class AttrImpl extends NodeImpl implements Attr { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPElementIm pl.java:36: org.apache.axis2.saaj.SOAPElementImpl is not abstract and does not override abstract method getUse rData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPElementImpl extends NodeImpl implements SOAPElement { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\DetailEntryIm pl.java:26: org.apache.axis2.saaj.DetailEntryImpl is not abstract and does not override abstract method getUse rData(java.lang.String) in org.w3c.dom.Node [javac] public class DetailEntryImpl extends SOAPElementImpl implements DetailEntry { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPFaultElem entImpl.java:28: org.apache.axis2.saaj.SOAPFaultElementImpl is not abstract and does not override abstract met hod getUserData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPFaultElementImpl extends SOAPElementImpl implements [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\DetailImpl.ja va:35: org.apache.axis2.saaj.DetailImpl is not abstract and does not override abstract method getUserData(java .lang.String) in org.w3c.dom.Node [javac] public class DetailImpl extends SOAPFaultElementImpl implements Detail { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPBodyEleme ntImpl.java:28: org.apache.axis2.saaj.SOAPBodyElementImpl is not abstract and does not override abstract metho d getUserData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPBodyElementImpl extends SOAPElementImpl implements [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPBodyImpl. java:34: org.apache.axis2.saaj.SOAPBodyImpl is not abstract and does not override abstract method getUserData( java.lang.String) in org.w3c.dom.Node [javac] public class SOAPBodyImpl extends SOAPElementImpl implements SOAPBody { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPDocumentI mpl.java:30: org.apache.axis2.saaj.SOAPDocumentImpl is not abstract and does not override abstract method rena meNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document [javac] public class SOAPDocumentImpl implements Document { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPPartImpl. java:39: org.apache.axis2.saaj.SOAPPartImpl is not abstract and does not override abstract method renameNode(o rg.w3c.dom.Node,java.lang.String,java.lang.String) in org.w3c.dom.Document [javac] public class SOAPPartImpl extends SOAPPart { [javac]^ [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\saaj\src\org\apache\a x is2\saaj\SOAPEnvelopeI mpl.java:30: org.apache.axis2.saaj.SOAPEnvelopeImpl is not abstract and does not override abstract method getU serData(java.lang.String) in org.w3c.dom.Node [javac] public class SOAPEnvelopeImpl extends SOAPElementImpl implements SOAPEnvelope { [javac]^ [javac]
[Axis2] Build problems (@ServiceDescription)
Hi all, I receive the following build problems when compiling the current axis2 version with JDK 1.5. Maybe somebody could change it. By the way, the repository URLs at http://ws.apache.org/axis2/svn.html must be updated (axis - axis2). Chris java:compile: [echo] Compiling to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\core/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == [javac] Compiling 138 source files to E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\core\target\cl asses [javac] E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\core\src\org\apache\axis2\description\Servic eDescription.java:545: cannot find symbol [javac] symbol : variable SOAP_OPERATION [javac] location: interface org.apache.wsdl.extensions.ExtensionConstants [javac] if (element.getType().equals(ExtensionConstants.SOAP_OPERATION)) { [javac] ^ [javac] Note: E:\Entwicklung\Java\svn-win32-1.2.3\bin\axis2\modules\core\src\org\apache\axis2\transport\ht tp\server\SimpleConnectionThread.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error BUILD FAILED File.. C:\Dokumente und Einstellungen\Stormrage\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jelly Element... maven:reactor Line.. 218 Column 9 Unable to obtain goal [multiproject:install-callback] -- C:\Dokumente und Einstellungen\Stormrage\.maven\cache \maven-java-plugin-1.5\plugin.jelly:63:48: ant:javac Compile failed; see the compiler error output for detai ls. Total time : 1 minutes 58 seconds Finished at : Mittwoch, 31. August 2005 10:49:47 CEST
[Axis2] Build problems
Hi, I receive the following build problems using Maven 1.1 and JDK 5. Although I found something about it in the mailing list, the problem still exists. Can anybody help?? Thx, Chris [echo] Installing... Uploading to axis2/jars/axis2-common-0.91.jar: (18K) BUILD FAILED File.. C:\Dokumente und Einstellungen\Stormrage\.maven\cache\maven-multiproject-plugin-1.4.1\plugin. jelly Element... maven:reactor Line.. 218 Column 9 Unable to obtain goal [multiproject:install-callback] -- C:\Dokumente und Einstellungen\Stormrage\.maven\cache \maven-artifact-plugin-1.5.2\plugin.jelly:62:9: artifact:artifact-install org.apache.maven.project.Dependenc y.setProperties(Ljava/util/List;)V Total time : 8 seconds Finished at : Dienstag, 30. August 2005 09:48:57 CEST
AW: [Axis2] Build problems
Eran, thx for your help! I updated all needed plugins listed at http://maven.apache.org/start/download.html Unfortunately, I receive build problems again. As I saw in JIRA, this time it could have something to do with JDK 5, which I use: [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 9,514 sec [junit] [ERROR] Test org.apache.axis2.groovy.GroovyServiceTest FAILED [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,041 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario1Test FAILED BUILD FAILED File.. C:\Dokumente und Einstellungen\Stormrage\.maven\cache\maven-multiproject-plugin-1.4.1\plugin. jelly Element... maven:reactor Line.. 218 Column 9 Unable to obtain goal [multiproject:install-callback] -- C:\Dokumente und Einstellungen\Stormrage\.maven\cache \maven-test-plugin-1.6.2\plugin.jelly:181:54: fail There were test failures. Total time : 7 minutes 17 seconds Finished at : Dienstag, 30. August 2005 16:08:53 CEST -Ursprüngliche Nachricht- Von: Eran Chinthaka [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 30. August 2005 14:02 An: axis-user@ws.apache.org Betreff: Re: [Axis2] Build problems U need to update your artifact plugin.try this maven plugin:download -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.6 and then run maven. [EMAIL PROTECTED] wrote: Hi, I receive the following build problems using Maven 1.1 and JDK 5. Although I found something about it in the mailing list, the problem still exists. Can anybody help?? Thx, Chris [echo] Installing... Uploading to axis2/jars/axis2-common-0.91.jar: (18K) BUILD FAILED File.. C:\Dokumente und Einstellungen\Stormrage\.maven\cache\maven-multiproject-plugin-1.4.1\plugin . jelly Element... maven:reactor Line.. 218 Column 9 Unable to obtain goal [multiproject:install-callback] -- C:\Dokumente und Einstellungen\Stormrage\.maven\cache \maven-artifact-plugin-1.5.2\plugin.jelly:62:9: artifact:artifact-install org.apache.maven.project.Dependenc y.setProperties(Ljava/util/List;)V Total time : 8 seconds Finished at : Dienstag, 30. August 2005 09:48:57 CEST
[Axis2] Exception while using StAXSOAPModelBuilder
Hi, When I execute the following code, I always receive an exception (plz, see below) using Axis 2 version 0.91. The read Soap-Msg is listed below, too. What's wrong?? Thanks for your help! Chris --- Code fragment --- // create SOAP Envelope String filename = I:\\SoapMsg.xml; XMLStreamReader xmlr = XMLInputFactory.newInstance() .createXMLStreamReader(new FileInputStream(filename)); StAXBuilder builder = new StAXSOAPModelBuilder(xmlr, null); //exception here --- /Code fragment --- --- Exception --- Exception in thread main org.apache.axis2.om.OMException: java.lang.NullPointerException at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.next(StAXSOAPMo delBuilder.java:345) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.getSOAPEnvelope (StAXSOAPModelBuilder.java:149) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.identifySOAPVer sion(StAXSOAPModelBuilder.java:104) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.init(StAXSOAP ModelBuilder.java:98) at de.iken.pure.server.PUREClient.request(PUREClient.java:89) at de.iken.pure.server.PUREClient.main(PUREClient.java:66) Caused by: java.lang.NullPointerException at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.constructNode(S tAXSOAPModelBuilder.java:196) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.createOMElement (StAXSOAPModelBuilder.java:164) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.next(StAXSOAPMo delBuilder.java:302) ... 5 more --- /Exception --- --- TestSOAP.xml --- ?xml version=1.0? soap:Envelope xmlns:soap=http://www.w3.org/2001/12/soap-envelope; soap:encodingStyle=http://www.w3.org/2001/12/soap-encoding; soap:Body xmlns:m=http://www.stock.org/stock; m:GetStockPrice m:StockNameIBM/m:StockName /m:GetStockPrice /soap:Body /soap:Envelope --- /TestSOAP.xml ---
[Axis2] AW: general XML parsing performance considerations for small packets liek UDP [Re: [Axis2] AW: AW: AXIOM-SOAP-Problem
. August 2005 03:28 An: axis-user@ws.apache.org Betreff: RE: [Axis2] [0.9] AW: AXIOM-SOAP-Problem Hi aii, Sorry for not answering this email earlier. (BTW, prefix all your Axis2 related dev or user mails with [Axis2]. 0.9 is not needed.) The one of the reasons behind us providing this AXIOM is to give streaming support for Axis2. We wanted to have an Object model which relies on an underlying pull stream. Thats why you can find constructors in StAXSOAPModelBuilder which gets an XMLStreamReader as input. But this will not hinder anyone like you, if you want to build it from an existing source like a String. What Jeff suggested was correct. But the way he did that was not according to Axiom principles. Axiom is designed to provide the high performance with low memory foot print. If you create a String from the incoming stream and then creating another stream is not that good as this will not minimize memory usage. Better try to wrap the incoming TCP stream with XMLStreamReader. Better read the AXIOM tutorial Anyway seems like you have some other problem now. If you can send me the SOAP message as a String which you have, I can test it with StAXSOAPModelBuilder. If I can remember correct the only place OMAttribute gives exceptions is where you try to give it a namespace, which has not been defined within the scope. I cant give a solid answer without looking at it. Regards, Eran Chinthaka Jeff, thanks for your help! Your code works. Now I receive an exception while using StAXSOAPModelBuilder: // this works now (I tested the output) XMLStreamReader xmlr = xmlif.createXMLStreamReader(new StringReader(new String(data))); // this not ... StAXBuilder builder = new StAXSOAPModelBuilder(xmlr); //StAXBuilder builder = new StAXSOAPModelBuilder(xmlr, null); // ... and leads to this Exception: java.lang.ExceptionInInitializerError Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.init(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) at org.apache.axis2.om.impl.llom.OMAttributeImpl.clinit(OMAttributeImpl.jav a: 52) What do I have to change? Thanks again for help, Chris P.S. The whole code fragment and exception is listed below -#- Code -#- - // Copy the data from udp packet, remove zero-bytes and restore SOAP byte[] buffer = packet.getData(); byte[] data = new byte[findZeroByte(0, buffer)]; System.arraycopy(buffer, 0, data, 0, data.length); // Init. XMLInputFactory instance if (xmlif == null) { initXMLInputFactory(); } // Convert SOAP-bytes to stream, build SOAPModel extract SOAPEnvelope XMLStreamReader xmlr = null; try { xmlr = xmlif.createXMLStreamReader(new StringReader( new String(data))); //StAXBuilder builder = new StAXSOAPModelBuilder(xmlr, null); StAXBuilder builder = new StAXSOAPModelBuilder(xmlr); SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement(); ... -#- /Code - #-- -#- Exception - #-- java.lang.ExceptionInInitializerError at org.apache.axis2.om.impl.llom.OMElementImpl.addAttribute(OMElementImpl.jav a: 464) at org.apache.axis2.om.impl.llom.builder.StAXBuilder.processAttributes(StAXBu il der.java:126) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.constructNode (S tAXSOAPModelBuilder.java:278) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.createOMEleme nt (StAXSOAPModelBuilder.java:166) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.next(StAXSOAP Mo delBuilder.java:302) at org.apache.axis2.om.impl.llom.OMElementImpl.getNextSibling(OMElementImpl.j av a:268) at org.apache.axis2.om.impl.llom.traverse.OMChildrenQNameIterator.hasNext(OMC hi ldrenQNameIterator.java:74) at org.apache.axis2.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElemen tI mpl.java:232) at org.apache.axis2.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImp l. java:58) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.parseHeaders( St AXSOAPModelBuilder.java:129) at org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.init(StAXSO AP ModelBuilder.java:92) at de.iken.test.UDP.axis2.UDPWorkerTest.doWork(UDPWorkerTest.java:55) at org.apache.axis2.util.threadpool.ThreadWorker.run(ThreadWorker.java:34) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.init(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) at org.apache.axis2
AXIOM-SOAP-Problem
Hi all, I've got a question about AXIOM and SOAP: If I like to have the SOAPEnvelope from a stream, I can do it like this: //create the SOAP Envelope Reader in = new InputStreamReader(socket.getInputStream()); XMLStreamReader xmlreader = XMLInputFactory.newInstance().createXMLStreamReader(in); StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader, null); SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement(); But if I've already stored the soap-text in a String ... // copy the data from udp packet byte[] buffer = packet.getData(); String data = new String(buffer); ... then there is the problem that the string 'data' must be converted in a stream to use XMLStreamReader and StAXSOAPModelBuilder. Is this the only solution? In the JavaDoc of StAXOMBuilder is written that StAXOMBuilder will build a generic memory model from any XML input source, such as a file, string, stream, etc.. How it works for files and streams is clear, but how does it look like for strings??? I need this for a UDPTransportListener. Thanks for any help, Chris
SAX or StAX?
Hi everybody, Ive got an SOAP-Message stored in a byte-array data: // copy the data (SOAP) from udp packetbyte[] data = "">new byte[packet.getLength()];System.arraycopy(packet.getData(), packet.getOffset(), data, 0, packet.getLength()); Now I like to have the SOAP-Envelope of the SOAP-Message. Does it make more sense to use StAX or SAX for this job (Im using Axis2)??? How would the solution (with the byte-array) be realized?? Thanks for your help, Chris