Re: trouble about c++ client using vc6
Could you tell me how to adopt MS SOAP Toolkit 3 with Visual C++ 6.0? I am a beginner. Thanks a lot! iamnxm wrote: Hi, Katze I have adopted the Microsoft SOAP Toolkit Version 3. Everything goes well. -- View this message in context: http://www.nabble.com/trouble-about-c%2B%2B-client-using-vc6-tf1883003.html#a5810842 Sent from the Axis - C++ - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException on invalid URI
Title: NullPointerException on invalid URI We've encountered a null pointer exception when initializing a generated object constructor const char* pchEndpointUri with an invalid URI such as foo. If you have http:// it works fine, as well as any other URI that doesn't actually have a resource there. Has this been noted before? As for my experience with attributes I've unfortunately just had to leave them behind as they were preventing me from proceeding. Is there any plan to support attributes in future versions? Has anyone added a unit test that checks specifically for these in both java and c++? Thanks, Alastair Fettes This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information. Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments. The entire content of this e-mail is for information purposes only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile.
Have trouble building c++ samples for axis...
Title: Have trouble building c samples for axis... Hi, I installed ant, ant-contrib. I created this Axis_Folder. And ran ant -f buildSamples.xml. I get this message. Please help. -- BUILD FAILED C:\Simple_Axis_Server\Axis\buildSamples.xml:29: The following error occurred while executing this line: C:\Simple_Axis_Server\Axis\build\buildInitialize.xml:25: Cannot find C:\Simple_Axis_Server\Axis/build/Initialize.xml imported from C:\Simple_Axis_Server\Axis\build\buildInitialize.xml Total time: 0 seconds C:\Simple_Axis_Server\Axis -- regards
Re: [Axis2]Unable to use WSDL2JAVA.
Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritoryxsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence/xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED]: Bug is closed :) see comments in the bug report.thanks,dimsOn 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm always getting exception: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException : org.apache.axis2.schema.SchemaCompilationException : java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main (WSDL2Java.java :21) Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilation Exception: java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:117) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:140) ... 2 more Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPoi nterException at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:18 6) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java :70) ... 3 more Caused by: java.lang.NullPointerException at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:360) at org.apache.axis2.schema.SchemaCompiler.processElement (SchemaCompiler. java:344) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:410) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:334) at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java:91 5) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:878) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompi ler.java:643) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT ype(SchemaCompiler.java:594) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:579) at org.apache.axis2.schema.SchemaCompiler.processElement (SchemaCompiler. java:366) at org.apache.axis2.schema.SchemaCompiler.processElement (SchemaCompiler. java:344) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:22 6) at
Re: [Axis2] ServiceClient error
Hi all, I've got some more details: the error happens because the second message is sent with an empty body. The workaround is to make the thread sleep for (at least) 600 ms (unfortunately this is too much for my needs). Is there any reason or is it a bug? If it is not a bug, why it is not documented anywhere, since the tutorial for dual channel-non blocking clients [1] does not use any sleep call? Thanks, Michele [1] http://ws.apache.org/axis2/1_0/userguide3.html#EchoNonBlockingDualClient Michele Mazzucco wrote: Hi all, I get a very strange error (on the client side) when I try to send multiple (equals, in my case: the submitted requests are the same of the echo sample) requests to my service. The error happens *only* when multiple requests are submitted, i.e., if the program sends only 1 requests no errors happen. INFO StreamRequestMyServiceClient:main - Sending [2] requests INFO StreamRequestMyServiceClient:send - Sent [2] requests INFO StreamRequestMyServiceClient$QospCallback:onComplete - Received respose [1/2] INFO StreamRequestMyServiceClient$QospCallback:onComplete - soapenv:Body xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;client:echo xmlns:client=http://org.ncl.ac.uk/qosp/clients/codestore; xmlns:tns=http://ws.apache.org/axis2;client:TextQoSP Echo String/client:Text/client:echo/soapenv:Body INFO StreamRequestMyServiceClient$QospCallback:onComplete - 1 are missing ERROR StreamRequestMyServiceClient:logException - ERROR!: ERROR StreamRequestMyServiceClient:logException - org.apache.axis2.AxisFault: unknown at org.apache.axis2.util.CallbackReceiver.receive(CallbackReceiver.java:65) at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:599) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:282) at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:238) at org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService(DefaultHttpServiceProcessor.java:177) at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123) at org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(DefaultHttpServiceProcessor.java:236) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.Exception: org.apache.axis2.AxisFault at org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(RawXMLINOnlyMessageReceiver.java:104) at org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:503) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) 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(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 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) at org.apache.axis2.AxisFault.init(AxisFault.java:159) ... 10 more The following chunk of code submits the requests: /** * Sends [EMAIL PROTECTED] #requests} requests to the cluster manager. */ private final void send() { final OMElement payload = ClientUtils.getEchoOMElement(); // Creates and sets the options Options options = new Options();
Re: Uploading file via Axis WS
Hi Cristopher, you can use MTOM, http://ws.apache.org/axis2/1_0/mtom-guide.html. Regards, Michele Christopher Jon Jursa wrote: Hello, I need a web service to work with some files that the user would like to upload. Are there any built in mechanisms to work with an uploaded file? Sincerely, Christopher Jon Jursa Geoinformatics Laboratory School of Information Sciences University of Pittsburgh web: http://gis.sis.pitt.edu email: [EMAIL PROTECTED] phone: 412-624-8858 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] - Bug in deployment
Hi, I think I found a bug in the Axis2 deployment mechanism. Looking at the code of org.apache.axis2.deployment.RepositoryListener, it seems that if there are no files under the services folder then Axis will not check whether existing services were removed. This is what I think is happening: The method that checks whether certain services were removed is checkForUndeployedServices() under the WSInfoList class. This method will check for changes only if the check boolean is set to TRUE. The check boolean is set to TRUE only by the addWSInfoItem() method under the WSInfoList class. This method will be called by the RepsitoryListener only if the file list of the services directory is not empty. This means, that if I already have some service deployed, and I decide the delete all the content of the services folder, those services will remain deployed until Axis2 is restarted. Any ideas how to bypass this bug (other than maintaining a dummy file under the services folder)? Should I report this bug to the Axis2 team? Thanks, Shahar Kedar Software AG Israel
Re: [Axis2] Query regarding service implementation
You don't need any custom message receiver: public void doubleEcho (OMElement incomingPayload) throws XMLStreamException { incomingPayload.build(); incomingPayload.detach(); OMElement outgoingPayload = incomingPayload; Options oldOptions = inMsgCtx.getOptions(); String messageID = inMsgCtx.getMessageID(); EndpointReference targetEPR = oldOptions.getReplyTo(); String action = oldOptions.getAction(); sendResult(messageID, targetEPR, action, outgoingPayload); } private void sendResult(String messageId, EndpointReference targetEPR, String action, OMElement payload) { ServiceClient sender = null; try { Options options = new Options(); options.setTo(targetEPR); options.setFrom(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setUseSeparateListener(false); options.setAction(action); String uuid = UUIDGenerator.getUUID(); options.setMessageId(uuid); ConfigurationContext confCtx = ListenerManager.defaultConfigurationContext; // you can use the default constructor as well sender = new ServiceClient(confCtx, null); sender.setOptions(options); // Blocking Invocation sender.sendRobust(payload); } catch (AxisFault axisFault) { axisFault.printStackTrace(); } catch (Exception ex) { ex.printStackTrace(); } finally { try { sender.finalizeInvoke(); } catch (AxisFault axisFault) { // have to ignore this axisFault.printStackTrace(); } } } Hope this will help. Regards, Michele [EMAIL PROTECTED] wrote: Subject: RE: [Axis2] Query regarding service implementation From: [EMAIL PROTECTED] Date: Mon, 14 Aug 2006 16:46:01 +0530 To: axis-user@ws.apache.org To: axis-user@ws.apache.org Yes. Something similar. Is it possible to use any of the existing message receivers for this scenario? If so, how? Or do I have to write my own custom message receiver? Let me explain with a small example: On the service side: void incomingRequest(OMElement in) { //save message context for operation //register outgoing response method for operation //Do asynchronous application processing... } OMElement outgoingResponse() { //populate outgoing OMElement using message context for operation return OMElement } Thanks Amit. -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Mon 8/14/2006 4:20 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Query regarding service implementation Interesting scenario. You mean an MVC setup for web services? In that case, why not make your MessageReceiver your Controller and code your rules into the MessgeReceiver. i.e. invoke method on classA with incoming message and then get response from classB. How classB knows what to do based on what classA does is unknown though. AFAIK Axis2 just lets the MessageReceiver for the endpoint do what it wants with the message. It's up to the MessageReceiver what it invokes. Alistair On 14 Aug 2006, at 11:47, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all I would like to know how to implement a service that will let me send response from a method other than the one used to receive the request. Thanks Amit. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should
[axis2] ServiceClient on custom port howto
Hi all, following my previous posts about how to send multiple requests with the same ServiceClient object, I've tried to overcome my problem by using multiple senders (with the same callback object), however now I get a java.net.BindException because all senders try to start a SimpleHTTPServer on the same port. How can I configure them in order to use different ports? Any help would be appreciated, Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading file via Axis WS
See this too... http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/ ~Thilina On 8/15/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi Cristopher, you can use MTOM, http://ws.apache.org/axis2/1_0/mtom-guide.html. Regards, Michele Christopher Jon Jursa wrote: Hello, I need a web service to work with some files that the user would like to upload. Are there any built in mechanisms to work with an uploaded file? Sincerely, Christopher Jon Jursa Geoinformatics Laboratory School of Information Sciences University of Pittsburgh web: http://gis.sis.pitt.edu email: [EMAIL PROTECTED] phone: 412-624-8858 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- May the SourcE be with u http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] ServiceClient on custom port howto
Hi again. Unfortunately this workaround does not fix the problem. I can prevent the java.net.BindException by setting some custom properties in order to reuse the connection, however without setting a timeout between two consecutive sends the second message has no body content, either if it is sent by a different sender object! Michele Michele Mazzucco wrote: Hi all, following my previous posts about how to send multiple requests with the same ServiceClient object, I've tried to overcome my problem by using multiple senders (with the same callback object), however now I get a java.net.BindException because all senders try to start a SimpleHTTPServer on the same port. How can I configure them in order to use different ports? Any help would be appreciated, Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Web Service calling the other service
Hi everyone! I need to implement the following scenario. Suppose that there are 2 services: Service A - SelectSupplier: InParam - SupplierID OutParam - SupplierName Service B - GetProductPrice InParam - SupplierName, ProductName OutParam - ProductPrice The task is to write the service that provides composition of above 2 services, eg. Service - Composition InParam - SupplierID, ProductName OutParam - ProductPrice It should sequentially call services A and B and get the desired Is it possible to implement such sequentional service call using Axis? Is there some information on that? Thanks in advance, Taras
Re: [Axis2] - Bug in deployment
Shahar, Could you please log a bug report? thanks, dims On 8/15/06, Kedar, Shahar [EMAIL PROTECTED] wrote: Hi, I think I found a bug in the Axis2 deployment mechanism. Looking at the code of org.apache.axis2.deployment.RepositoryListener, it seems that if there are no files under the services folder then Axis will not check whether existing services were removed. This is what I think is happening: The method that checks whether certain services were removed is checkForUndeployedServices() under the WSInfoList class. This method will check for changes only if the check boolean is set to TRUE. The check boolean is set to TRUE only by the addWSInfoItem() method under the WSInfoList class. This method will be called by the RepsitoryListener only if the file list of the services directory is not empty. This means, that if I already have some service deployed, and I decide the delete all the content of the services folder, those services will remain deployed until Axis2 is restarted. Any ideas how to bypass this bug (other than maintaining a dummy file under the services folder)? Should I report this bug to the Axis2 team? Thanks, Shahar Kedar Software AG Israel -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT
I have seen that example on the net. But my list/array is of another object. Not a native data type.If I do a complextype then this object is not created.I any case, it creates an array of OMElement[] and not an Object[]. As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list.I am using the nightly build of 08/07/2006. Anybody has got any idea???It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him. On 8/11/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi,As far as generating code is concerned you *cannot* generate a listfield, even if you have a the maxOccurs set to unbound! it is alwaysan array!As for this schema it is not right. What you should be doing is the following xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/xsd:complexType name=Bxsd:sequencexsd:element name=str type=xsd:string/ /xsd:sequence/xsd:complexTypeAjithOn 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I need an object which contains a member variable, which is list of another object. Class A { //list of object B private java.util.List bList; } Class B { private String str; } How do I represent this in WSDL. I am using WSDL2Java commandline. Since I am using the tool I expect to get a java.util.List This is how my current wsdl looks... xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:element name=B xsd:complexType xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType /xsd:element But when I generate the code inside class A, I get protected org.apache.axiom.om.OMElement[] localBList ; why an array, and why OMElement? Can you tell me what I am missing. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.Thank you.--Ajith Ranabahu-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]Unable to use WSDL2JAVA.
Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED]: Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm always getting exception: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException : org.apache.axis2.schema.SchemaCompilationException : java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main (WSDL2Java.java :21) Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilation Exception: java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:117) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:140) ... 2 more Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPoi nterException at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:18 6) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java :70) ... 3 more Caused by: java.lang.NullPointerException at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:360) at org.apache.axis2.schema.SchemaCompiler.processElement (SchemaCompiler. java:344) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:410)
Re: [Axis2]Unable to use WSDL2JAVA.
Anne, Here's the WSDL he was using: http://issues.apache.org/jira/secure/attachment/12338832/territory.wsdl And the full bug report: http://issues.apache.org/jira/browse/AXIS2-1026 Yes, we have already fixed the NPE. -- dims On 8/15/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED]: Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm always getting exception: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException : org.apache.axis2.schema.SchemaCompilationException : java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main (WSDL2Java.java :21) Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilation Exception: java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:117) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:140) ... 2 more Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPoi nterException at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:18 6) at
Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT
Hi, If your schema declaration is proper then it should generate an array of the correct type. If you are still seeing OMElements then there could be a problem with your schema Ajith On 8/15/06, Debasish Dutta Roy [EMAIL PROTECTED] wrote: I have seen that example on the net. But my list/array is of another object. Not a native data type. If I do a complextype then this object is not created. I any case, it creates an array of OMElement[] and not an Object[]. As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list. I am using the nightly build of 08/07/2006. Anybody has got any idea??? It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him. On 8/11/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, As far as generating code is concerned you *cannot* generate a list field, even if you have a the maxOccurs set to unbound! it is always an array! As for this schema it is not right. What you should be doing is the following xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:complexType name=B xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType Ajith On 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I need an object which contains a member variable, which is list of another object. Class A { //list of object B private java.util.List bList; } Class B { private String str; } How do I represent this in WSDL. I am using WSDL2Java commandline. Since I am using the tool I expect to get a java.util.List This is how my current wsdl looks... xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:element name=B xsd:complexType xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType /xsd:element But when I generate the code inside class A, I get protected org.apache.axiom.om.OMElement[] localBList ; why an array, and why OMElement? Can you tell me what I am missing. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer. Thank you. -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT
Hi Ajith I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference. There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object. At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition. Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 Ajith Ranabahu [EMAIL PROTECTED] 08/15/2006 09:08 AM Please respond to axis-user To:axis-user@ws.apache.org cc:(bcc: Debasish DuttaRoy/X/PH/Novartis) Subject:Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT Hi, If your schema declaration is proper then it should generate an array of the correct type. If you are still seeing OMElements then there could be a problem with your schema Ajith On 8/15/06, Debasish Dutta Roy [EMAIL PROTECTED] wrote: I have seen that example on the net. But my list/array is of another object. Not a native data type. If I do a complextype then this object is not created. I any case, it creates an array of OMElement[] and not an Object[]. As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list. I am using the nightly build of 08/07/2006. Anybody has got any idea??? It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him. On 8/11/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, As far as generating code is concerned you *cannot* generate a list field, even if you have a the maxOccurs set to unbound! it is always an array! As for this schema it is not right. What you should be doing is the following xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:complexType name=B xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType Ajith On 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I need an object which contains a member variable, which is list of another object. Class A { //list of object B private java.util.List bList; } Class B { private String str; } How do I represent this in WSDL. I am using WSDL2Java commandline. Since I am using the tool I expect to get a java.util.List This is how my current wsdl looks... xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:element name=B xsd:complexType xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType /xsd:element But when I generate the code inside class A, I get protected org.apache.axiom.om.OMElement[] localBList ; why an array, and why OMElement? Can you tell me what I am missing. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer. Thank you. -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the
Re: [Axis2]Unable to use WSDL2JAVA.
I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura,Your exception says that it cannot find an *element* calledListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? Ifnot, then that is the cause of your problem.I'm with Derek -- the tool should never throw a NPE, so please updatethe JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error.AnneOn 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory //xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED] : Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]:Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with thelatest nightlies. if the problem persists please file a Jira (attachthe WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm always getting exception: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException : org.apache.axis2.schema.SchemaCompilationException : java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main (WSDL2Java.java :21) Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilation Exception: java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage (Simp leDBExtension.java:117) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:140) ... 2 more Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPoi nterException at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:18 6) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java :70) ... 3 more Caused by: java.lang.NullPointerException at
Internal Server Error Accessing Version Service's WSDL
I'm getting an internal server error when accessing the version services WSDL.I've downloaded the 1.0 axis2.war ( http://ws.apache.org/axis2/download/1_0/download.cgi ) and deployed it in Weblogic 8.1 after making the following modifications:1. Added weblogic.xml to axis2.war's WEB-INF as described here ( http://ws.apache.org/axis/java/install.html )2. Tweaked HappyAxis.jsp to help debug classpath issues.According to the HappyAxis.jsp page, it can access the version web service, however, when I click the link in the web console to view the services wsdl file, I get an Internal Server Error and the following is in the weblogic console: Aug 14, 2006 3:52:21 PM EDT Error HTTP BEA-101017 [ServletContext(id=28303739,name=axis2,context-path=/axis2)]Root cause of ServletException.org.apache.axis2.AxisFault : null; nested exception is: java.lang.ClassCastException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533) at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144) at org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89) at org.apache.axis2.transport.http.AxisServlet.doGet (AxisServlet.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute (ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)Caused by: java.lang.ClassCastException at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214) at org.apache.ws.commons.schema.XmlSchema.write (XmlSchema.java:200) at org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:147) at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:553) ... 16 more Here is some potentially pertinent info:Found TransformerFactory (javax.xml.transform.TransformerFactory) at C:\bea81\weblogic81\samples\domains\examples\examplesServer\.wlnotdelete\extract\examplesServer__appsdir_axis2_war_axis2\jarfiles\WEB-INF\lib\xml- apis-1.3.02.jarServlet version2.3 PlatformWebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647sun.boot.class.path=c:\bea81\jdk142_05\jre\lib\rt.jar;c:\bea81\jdk142_05\jre\lib\i18n.jar;c:\bea81\jdk142_05\jre\lib\sunrsasign.jar;c:\bea81\jdk142_05\jre\lib\jsse.jar;c:\bea81\jdk142_05\jre \lib\jce.jar;c:\bea81\jdk142_05\jre\lib\charsets.jar;c:\bea81\jdk142_05\jre\classes
Re: Internal Server Error Accessing Version Service's WSDL
Kris, Please use the nightly build and open a bug report with the stack trace if you still face the problem. (Also check the email archives, there was traffic on a releated problem in weblogic) thanks, dims On 8/15/06, Kristopher Huggins [EMAIL PROTECTED] wrote: I'm getting an internal server error when accessing the version services WSDL. I've downloaded the 1.0 axis2.war ( http://ws.apache.org/axis2/download/1_0/download.cgi ) and deployed it in Weblogic 8.1 after making the following modifications: 1. Added weblogic.xml to axis2.war's WEB-INF as described here ( http://ws.apache.org/axis/java/install.html ) 2. Tweaked HappyAxis.jsp to help debug classpath issues. According to the HappyAxis.jsp page, it can access the version web service, however, when I click the link in the web console to view the services wsdl file, I get an Internal Server Error and the following is in the weblogic console: Aug 14, 2006 3:52:21 PM EDT Error HTTP BEA-101017 [ServletContext(id=28303739 ,name=axis2,context-path=/axis2)] Root cause of ServletException. org.apache.axis2.AxisFault : null; nested exception is: java.lang.ClassCastException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533) at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144) at org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89) at org.apache.axis2.transport.http.AxisServlet.doGet (AxisServlet.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute (ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214) at org.apache.ws.commons.schema.XmlSchema.write (XmlSchema.java:200) at org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:147) at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:553) ... 16 more Here is some potentially pertinent info: Found TransformerFactory (javax.xml.transform.TransformerFactory) at C:\bea81\weblogic81\samples\domains\examples\examplesServer\.wlnotdelete\extract\examplesServer__appsdir_axis2_war_axis2\jarfiles\WEB-INF\lib\xml- apis-1.3.02.jar Servlet version2.3 PlatformWebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647 sun.boot.class.path=c:\bea81\jdk142_05\jre\lib\rt.jar;c:\bea81\jdk142_05\jre\lib\i18n.jar;c:\bea81\jdk142_05\jre\lib\sunrsasign.jar;c:\bea81\jdk142_05\jre\lib\jsse.jar;c:\bea81\jdk142_05\jre \lib\jce.jar;c:\bea81\jdk142_05\jre\lib\charsets.jar;c:\bea81\jdk142_05\jre\classes -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using the Generated Classes in an Applet Through a Proxy Server
I forgot to mention that I am using the JAVA 1.5_07 for building the Stubs and java 1.5_0X for the applet use. I'm also using the WSDL2JAVA version 1.2. (I didn't realize we were using such an old version.) Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: Larry Lemons [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 2:36 PMTo: axis-user@ws.apache.orgSubject: Using the Generated Classes in an Applet Through a Proxy Server I have an applet that communicateswith a web service using a few different web methods. The applet connects fine and even uses the web methods fine as long as the client isn't behind a proxy server. As soon as the applet is used behind a proxy server, it breaks. The applet is able to connect to the Web Service, but as soon as it attempts to use one of the web methods, it breaks. What I have seen is the following: When connecting to and using the applet from outside of a firewall, it uses proxy=DIRECT everywhere. As soon as the appletis moved behind the firewall, all the connections are created successfully using proxy=HTTP @ /IPADDRESS:PORT But when it actually gets to doing the web method call, after doing the _call.invoke(param1, param2, param3, etc.), it gets to this call: liveconnect: Invoking JS method: execScriptliveconnect: Invoking JS method: evalIntermediateValueToReturnnetwork: Connecting socket://fema.imcwv.com:443 with proxy=DIRECT It uses a socket and the URL in a String format with port 443, which is correct. The same call outside of the proxy server is the following: network: Connecting socket://URL_STRING:443 with proxy=DIRECT The difference is the result for the two. Outside of the proxy server the result is the expected: network: Connecting http://URL_STRING/java/lang/StringBeanInfo.class with proxy=DIRECTnetwork: Connecting http://URL_STRING/java/lang/StringBeanInfo.class with cookie "ASP.NET_SessionId=phcqzm55x31r0p45ox3sdanj" Inside of the proxy server, the following is encountered: AxisFaultfaultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionfaultSubcode: faultString: java.net.ConnectException: Connection timed out: connectfaultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connectat java.net.PlainSocketImpl.socketConnect(Native Method)at java.net.PlainSocketImpl.doConnect(Unknown Source)at java.net.PlainSocketImpl.connectToAddress(Unknown Source)at java.net.PlainSocketImpl.connect(Unknown Source)at java.net.SocksSocketImpl.connect(Unknown Source)at java.net.Socket.connect(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.lt;initgt;(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)at org.apache.axis.client.Call.invokeEngine(Call.java:2765)at org.apache.axis.client.Call.invoke(Call.java:2748)at org.apache.axis.client.Call.invoke(Call.java:2424)at org.apache.axis.client.Call.invoke(Call.java:2347)at org.apache.axis.client.Call.invoke(Call.java:1804)at URL_STRING.WEB_SERVICE_NAMESoapStub.webMethod(Unknown Source)at AppletName.CallingClass.lt;initgt;(CallingClass.java:127) What I have noticed is that as soon as the call is made using the socket connection rather than an HTTP connection, it tries to use proxy=DIRECT instead of proxy=HTTP @ /IPADDRESS:PORT, where IPADDRESS is the IP Address of the proxy server and PORT is the port to be used for the proxy server. Has anyone else ran into this situation or does anyone have any ideas of how to fix this problem. The applet must be able to run behind any proxy server, not a specific one, and we don't have any idea before hand what the proxy server settings will be. I do know that the applet gets the proxy server settings from the browser automatically, as can be seen from the JAVA Console dump, with the exception at the point in time when it actually calls the web method. Thank you in advance, Larry M. Lemons
RE: [Axis2 1.0] Asynchronous doc/lit, no output.
I have experienced the same issue using the generated code. I can understand making the client sleep to receive the request and response. But based on my experience and the experience of others, it appears if the thread does not sleep at all, the request never makes it to the server. Has anyone logged a JIRA issue on this? Can anyone from the Axis 2 team confirm our findings? Thanks James Bessette -Original Message- From: Sathija Pavuluri [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 5:24 PM To: axis-user@ws.apache.org Subject: Re: [Axis2 1.0] Asynchronous doc/lit, no output. Ajith, Nirmit, This is indeed for Axis2 1.0. When I tried the nightlies(8/14/06) I ran into even bigger problems. The web services did not even get deployed properly. Something about method not found error for javax.xml.stream.XMLOutputFactory.newInstance(ClassLoader) method not found. Not sure if its just me or others who have had problems with today's nightly. I'll try again tomorrow. Anyway, for now I reverted back to my previous libraries and tried the same thing that Nirmit mentioned below. With sufficient sleep(5000), I could send the request and get response back. And the callback methods got invoked too! Nirmit, you might want to sequentially increase your sleep time and try. Once the req and res are sent I dont see why the callbacks shouldnt get invoked. Thanks, Sathija. Hi Ajith, Sathija, I partly figured out the problem. As the userguide shows, with asynchronous clients, the calling thread must do a Thread.sleep(). But in the generated code, I do not see any Thread.sleep(). So, I put a Thread.sleep(1000) in the generated test client's testStartmethod name method, and then I saw a SOAP request/response in SOAPMonitor. However, my callback methods were not invoked!! So, I still haven't figured out how to receive the response. I gave up and started using synchronous clients instead. -Nirmit Ajith Ranabahu [EMAIL PROTECTED] mail.com To axis-user@ws.apache.org 08/14/2006 04:25 cc PM Subject Re: [Axis2 1.0] Asynchronous Please respond to doc/lit, no output. [EMAIL PROTECTED] he.org Hi, Is this for 1.0 ? Can you guys try with the latest nightlies ? Ajith On 8/14/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Hi Nirmit, I am running an async call in Axis2 1.0 using generated code in a similar scenario as yours and seeing the exact same problem. Nothing is SOAP monitor unlike other sync calls. Looks like the request was never made. But I see no errors either. The async call goes thru in one case, when my test program also invokes a sync call. At that time, I see the req/res for the async call too. But when I run it by itself, nothing happens. Have you been able to figure out the problem? Thanks, Sathija. Hi, I am trying to invoke a doc/lit service with an asynchronous (two transport connections) client. I started from a WSDL and generated client side and server side code with Axis databinding, along with a junit test. However, when I run the test, I do not get any output, no exceptions, and no callbacks from the server. Also, SOAPMonitor does not show any request/response message. My SOAPMonitor works with other clients. Where did the call go? I am really confused why this is happening. Has anyone tried clients with callbacks? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2 1.0] Asynchronous doc/lit, no output.
Hi James, Yes, if the client thread doesn't sleep, as the call to execute() is nonblocking, the thread dies before it can create a SOAP envelope and ship it out. That is why we do not see any SOAP requests in the SOAP monitor. So sleeping is essential even for sending the request :) I was waiting for some of the developers to confirm this being a bug to file a JIRA. Not sure if Sathija already filed it. -Nirmit Bessette, James M. [EMAIL PROTECTED] To s.comaxis-user@ws.apache.org cc 08/15/2006 11:08 AMSubject RE: [Axis2 1.0] Asynchronous doc/lit, no output. Please respond to [EMAIL PROTECTED] he.org I have experienced the same issue using the generated code. I can understand making the client sleep to receive the request and response. But based on my experience and the experience of others, it appears if the thread does not sleep at all, the request never makes it to the server. Has anyone logged a JIRA issue on this? Can anyone from the Axis 2 team confirm our findings? Thanks James Bessette -Original Message- From: Sathija Pavuluri [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 5:24 PM To: axis-user@ws.apache.org Subject: Re: [Axis2 1.0] Asynchronous doc/lit, no output. Ajith, Nirmit, This is indeed for Axis2 1.0. When I tried the nightlies(8/14/06) I ran into even bigger problems. The web services did not even get deployed properly. Something about method not found error for javax.xml.stream.XMLOutputFactory.newInstance(ClassLoader) method not found. Not sure if its just me or others who have had problems with today's nightly. I'll try again tomorrow. Anyway, for now I reverted back to my previous libraries and tried the same thing that Nirmit mentioned below. With sufficient sleep(5000), I could send the request and get response back. And the callback methods got invoked too! Nirmit, you might want to sequentially increase your sleep time and try. Once the req and res are sent I dont see why the callbacks shouldnt get invoked. Thanks, Sathija. Hi Ajith, Sathija, I partly figured out the problem. As the userguide shows, with asynchronous clients, the calling thread must do a Thread.sleep(). But in the generated code, I do not see any Thread.sleep(). So, I put a Thread.sleep(1000) in the generated test client's testStartmethod name method, and then I saw a SOAP request/response in SOAPMonitor. However, my callback methods were not invoked!! So, I still haven't figured out how to receive the response. I gave up and started using synchronous clients instead. -Nirmit Ajith Ranabahu [EMAIL PROTECTED] mail.com To axis-user@ws.apache.org 08/14/2006 04:25 cc PM Subject Re: [Axis2 1.0] Asynchronous Please respond to doc/lit, no output. [EMAIL PROTECTED] he.org Hi, Is this for 1.0 ? Can you guys try with the latest nightlies ? Ajith On 8/14/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Hi Nirmit, I am running an async call in Axis2 1.0 using generated code in a similar scenario as yours and seeing the exact same problem. Nothing is SOAP monitor unlike other sync calls. Looks like the request was never made. But I see no errors either. The async call goes thru in one case, when my test program also invokes a sync call. At that time, I see the req/res for the async call too. But when I run it by itself, nothing happens. Have you been able to figure out the problem? Thanks, Sathija. Hi, I am trying to invoke a doc/lit service with an asynchronous (two transport connections) client. I started from a WSDL and generated client side and server side code with Axis databinding, along with a junit test. However, when I run the test, I do not get any output, no exceptions, and no callbacks from the server. Also, SOAPMonitor does not
RE: [Axis2 1.0] Asynchronous doc/lit, no output.
Hi ppl, I have'nt yet filed a JIRA either. Waiting for input from the devs. Ajith was on this thread a while ago, maybe he can give us some insight. Sathija. Hi James, Yes, if the client thread doesn't sleep, as the call to execute() is nonblocking, the thread dies before it can create a SOAP envelope and ship it out. That is why we do not see any SOAP requests in the SOAP monitor. So sleeping is essential even for sending the request :) I was waiting for some of the developers to confirm this being a bug to file a JIRA. Not sure if Sathija already filed it. -Nirmit Bessette, James M. [EMAIL PROTECTED] To s.com axis-user@ws.apache.org cc 08/15/2006 11:08 AM Subject RE: [Axis2 1.0] Asynchronous doc/lit, no output. Please respond to [EMAIL PROTECTED] he.org I have experienced the same issue using the generated code. I can understand making the client sleep to receive the request and response. But based on my experience and the experience of others, it appears if the thread does not sleep at all, the request never makes it to the server. Has anyone logged a JIRA issue on this? Can anyone from the Axis 2 team confirm our findings? Thanks James Bessette -Original Message- From: Sathija Pavuluri [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 5:24 PM To: axis-user@ws.apache.org Subject: Re: [Axis2 1.0] Asynchronous doc/lit, no output. Ajith, Nirmit, This is indeed for Axis2 1.0. When I tried the nightlies(8/14/06) I ran into even bigger problems. The web services did not even get deployed properly. Something about method not found error for javax.xml.stream.XMLOutputFactory.newInstance(ClassLoader) method not found. Not sure if its just me or others who have had problems with today's nightly. I'll try again tomorrow. Anyway, for now I reverted back to my previous libraries and tried the same thing that Nirmit mentioned below. With sufficient sleep(5000), I could send the request and get response back. And the callback methods got invoked too! Nirmit, you might want to sequentially increase your sleep time and try. Once the req and res are sent I dont see why the callbacks shouldnt get invoked. Thanks, Sathija. Hi Ajith, Sathija, I partly figured out the problem. As the userguide shows, with asynchronous clients, the calling thread must do a Thread.sleep(). But in the generated code, I do not see any Thread.sleep(). So, I put a Thread.sleep(1000) in the generated test client's testStartmethod name method, and then I saw a SOAP request/response in SOAPMonitor. However, my callback methods were not invoked!! So, I still haven't figured out how to receive the response. I gave up and started using synchronous clients instead. -Nirmit Ajith Ranabahu [EMAIL PROTECTED] mail.com To axis-user@ws.apache.org 08/14/2006 04:25 cc PM Subject Re: [Axis2 1.0] Asynchronous Please respond to doc/lit, no output. [EMAIL PROTECTED] he.org Hi, Is this for 1.0 ? Can you guys try with the latest nightlies ? Ajith On 8/14/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Hi Nirmit, I am running an async call in Axis2 1.0 using generated code in a similar scenario as yours and seeing the exact same problem. Nothing is SOAP monitor unlike other sync calls. Looks like the request was never made. But I see no errors either. The async call goes thru in one case, when my test program also invokes a sync call. At that time, I see the req/res for the async call too. But when I run it by itself, nothing happens. Have you been able to figure out the problem? Thanks, Sathija. Hi, I am trying to invoke a doc/lit service with an asynchronous (two transport connections) client. I started from a WSDL and generated client side and server side code with Axis databinding, along with a junit test. However, when I run the test, I do not get any output, no exceptions, and no callbacks from the server. Also, SOAPMonitor does not show any request/response message. My SOAPMonitor works with other clients. Where did the call go? I am really confused why this is happening. Has anyone tried clients with callbacks? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Interesting Observation - AXIS generated code
Hi all,I came across a very interesting situation recently. I am using AXIS 1.2.1 in my project to expose POJO as webservices. Following is the typical sequence that I follow:1. Write an interface with the methods to expose as services with their respective request and response objects.2. Generate WSDL using Java2WSDL tool.3. Use the WSDL2Java tool to generate the java code back. This step is essentially to generate the deployment descriptor and test case along with client and server classes.Now, The request and response objects for the services can have inheritance hierarchy i.e. lets say my request bean for one of the services is com.mycomp.payment.order.PaymentOrderReq extends com.mycomp.ws.WebServiceReq. When I generate the code in step 3 above the parent class is also generated in the same package as child req. class. I modify the descriptor (deploy.wsdd) and import staements in all the classesto have the origional parent class package. Also I change the "className" (service endpoint)in deploy.wsdd to point to my service class.Also I remove the AXIS generated beans and use mine instead.Now I add service tag in deploy.wsdd to server-config.wsdd and deploy the code on server.If I look at the wsdl generated after deployment I see that my child and parent request beans are shown in different namespaces which is correct as they are in different packages and also the typeMapping element in the wsdd mentions different namespaces for them.Uptil now everything is okay. Now if you use the test case to call this service and look at the response you'll see that default namespace in the response is that of child class and parent class attributes are also shown in the same namespace. This is confusing and wrong considering that if I give the WSDL URL to a client to integrate with my service his parser is going to throw exceptions.One more thing, if I do not delete the TypeDesc code from the beans the response will showcorrect namespaces attached to every response element.My questions are as follows:1. When Java2WSDL can resolve the namespaces while generating the WSDL from the code, why is it not resolved when serializing the response bean?2. Is their a way to specify element descriptions, generated by AXIS in the beans, in the server-config.wsdd?I am more than willing to share any information on this. Let me know if you feel that I am missing somethings here.Cheers.
Re: [Axis2]Unable to use WSDL2JAVA.
Yura, No, please don't reopen the JIRA. As Dims says, the latest build throws an informative exception. Your problem is caused by the fact that you do not import your second schema (targetNamespace=urn:/crmondemand/xml/territory) into the first schema, therefore Axis cannot find elements/types with a prefix of xsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/ Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED] : Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm always getting exception: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException : org.apache.axis2.schema.SchemaCompilationException : java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main
Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT
Validation of your WSDL produces this warning:There is no schema component of the name [requestRA] defined in the WSDL either via imported or embedded schema.This error is caused by the definition of the ralist element, which is the last child element of the requestDetails element. It is defined as: xsd:element maxOccurs=unbounded minOccurs=0 name=raList type=requestRA/Two problems:1. you must namespace qualify the referenced type. 2. requestRA must be defined as a type rather than an element.The raList definition should be:xsd:element maxOccurs=unbounded minOccurs=0 name=raList type=ns0:requestRA/ And the requestRA definition should be:xsd:complexType name=requestRA xsd:sequencexsd:element .../ ... /xsd:sequence/xsd:complexTypeAnne On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Ajith I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference. There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object. At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition. Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 Ajith Ranabahu [EMAIL PROTECTED] 08/15/2006 09:08 AM Please respond to axis-user To:axis-user@ws.apache.org cc:(bcc: Debasish DuttaRoy/X/PH/Novartis) Subject:Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT Hi, If your schema declaration is proper then it should generate an array of the correct type. If you are still seeing OMElements then there could be a problem with your schema Ajith On 8/15/06, Debasish Dutta Roy [EMAIL PROTECTED] wrote: I have seen that example on the net. But my list/array is of another object. Not a native data type. If I do a complextype then this object is not created. I any case, it creates an array of OMElement[] and not an Object[]. As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list. I am using the nightly build of 08/07/2006. Anybody has got any idea??? It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him. On 8/11/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, As far as generating code is concerned you *cannot* generate a list field, even if you have a the maxOccurs set to unbound! it is always an array! As for this schema it is not right. What you should be doing is the following xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:complexType name=B xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType Ajith On 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I need an object which contains a member variable, which is list of another object. Class A { //list of object B private java.util.List bList; } Class B { private String str; } How do I represent this in WSDL. I am using WSDL2Java commandline. Since I am using the tool I expect to get a java.util.List This is how my current wsdl looks... xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:element name=B xsd:complexType xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType /xsd:element But when I generate the code inside class A, I get protected org.apache.axiom.om.OMElement[] localBList ; why an array, and why OMElement? Can you tell me what I am missing. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer. Thank you. -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --
Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT
Perfect!!! Thanks a lot. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 Anne Thomas Manes [EMAIL PROTECTED] 08/15/2006 01:33 PM Please respond to axis-user To:axis-user@ws.apache.org cc:(bcc: Debasish DuttaRoy/X/PH/Novartis) Subject:Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT Validation of your WSDL produces this warning: There is no schema component of the name [requestRA] defined in the WSDL either via imported or embedded schema. This error is caused by the definition of the ralist element, which is the last child element of the requestDetails element. It is defined as: xsd:element maxOccurs=unbounded minOccurs=0 name=raList type=requestRA/ Two problems: 1. you must namespace qualify the referenced type. 2. requestRA must be defined as a type rather than an element. The raList definition should be: xsd:element maxOccurs=unbounded minOccurs=0 name=raList type=ns0:requestRA/ And the requestRA definition should be: xsd:complexType name=requestRA xsd:sequence xsd:element .../ ... /xsd:sequence /xsd:complexType Anne On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Ajith I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference. There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object. At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition. Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 Ajith Ranabahu [EMAIL PROTECTED] 08/15/2006 09:08 AM Please respond to axis-user To:axis-user@ws.apache.org cc:(bcc: Debasish DuttaRoy/X/PH/Novartis) Subject:Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT Hi, If your schema declaration is proper then it should generate an array of the correct type. If you are still seeing OMElements then there could be a problem with your schema Ajith On 8/15/06, Debasish Dutta Roy [EMAIL PROTECTED] wrote: I have seen that example on the net. But my list/array is of another object. Not a native data type. If I do a complextype then this object is not created. I any case, it creates an array of OMElement[] and not an Object[]. As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list. I am using the nightly build of 08/07/2006. Anybody has got any idea??? It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him. On 8/11/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, As far as generating code is concerned you *cannot* generate a list field, even if you have a the maxOccurs set to unbound! it is always an array! As for this schema it is not right. What you should be doing is the following xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:complexType name=B xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType Ajith On 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I need an object which contains a member variable, which is list of another object. Class A { //list of object B private java.util.List bList; } Class B { private String str; } How do I represent this in WSDL. I am using WSDL2Java commandline. Since I am using the tool I expect to get a java.util.List This is how my current wsdl looks... xsd:element name=bList type=B minOccurs=1 maxOccurs=unbounded/ xsd:element name=B xsd:complexType xsd:sequence xsd:element name=str type=xsd:string/ /xsd:sequence /xsd:complexType /xsd:element But when I generate the code inside class A, I get protected org.apache.axiom.om.OMElement[] localBList ; why an array, and why OMElement? Can you tell me what I am missing. ___ Debasish Dutta Roy NITAS Ph: 617-871-3033 _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution
Re: [Axis2] multiple requests question
Hi all, I've partially fixed the problem by changing the call: sender.sendReceiveNonBlocking(payload, callback) with sender.sendReceiveNonBlocking(getPayload(), callback); I've also tried to add the property options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); as described here (http://www.wso2.net/kb/87) but in that case some messages (for some obscure reason) are not delivered. Michele Michele Mazzucco wrote: Hi all, is it possible to send multiple request with the same ServiceClient/OperationClient? If yes, could anybody explain me why I'm getting a NullPointerException when multiple requests are issued with the same sender object (please see the stack trace below)? I'm using the latest nightly build and, if I'm right, I remember the same code worked successfully some time ago. Any idea? Thanks, Michele ERROR Sender$StressTestCallback:onError - Received error: org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.util.CallbackReceiver.receive(CallbackReceiver.java:65) at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:589) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:281) at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:238) at org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService(DefaultHttpServiceProcessor.java:179) at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123) at org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(DefaultHttpServiceProcessor.java:246) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:185) 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(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 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) Caused by: java.lang.NullPointerException at org.apache.axis2.addressing.AddressingHelper.getAnonymousParameterValue(AddressingHelper.java:78) at org.apache.axis2.handlers.addressing.AddressingWSDLValidationHandler.checkAnonymous(AddressingWSDLValidationHandler.java:70) at org.apache.axis2.handlers.addressing.AddressingWSDLValidationHandler.invoke(AddressingWSDLValidationHandler.java:39) at org.apache.axis2.engine.Phase.invoke(Phase.java:380) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:515) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:486) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:283) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:145) ... 16 more at org.apache.axis2.AxisFault.init(AxisFault.java:159) ... 10 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Element Default values
Are default values supported in Axis2. I have client stubs created from wsdl2java but it doesnt appear to honor the default values on XSD elements. Thanks
RE: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT
Title: Message Debasish: Having WSDL2Java simply produce incorrect code when errors like this happen is not really acceptable. If something is wrong, WSDL2Java should tell the user so, not just go blindly forward making unjustified assumptions about what the user really meant ("He didn't tell me what he wanted, so he must have just wanted an OMElement!") or otherwise trying unsuccessfully to fix the user's mistakes. Please file a JIRA for this issue, providing your WSDL and schemas, and stating that WSDL2Java did not detect that you referenced a nonexistent schema component, and did not reject your WSDL byproviding a reasonableerror message telling you of your problem and what to do about it, as it should have. Note that thisbug seems quite reminiscent of https://issues.apache.org/jira/browse/AXIS2-845, and may be related. Thanks. Derek -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 10:55 AMTo: axis-user@ws.apache.orgCc: axis-user@ws.apache.orgSubject: Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANTPerfect!!! Thanks a lot.___Debasish Dutta RoyNITASPh: 617-871-3033 "Anne Thomas Manes" [EMAIL PROTECTED] 08/15/2006 01:33 PM Please respond to axis-user To: axis-user@ws.apache.org cc:(bcc: Debasish DuttaRoy/X/PH/Novartis) Subject: Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANTValidation of your WSDL produces this warning:There is no schema component of the name [requestRA] defined in the WSDL either via imported or embedded schema.This error is caused by the definition of the "ralist" element, which is the last child element of the "requestDetails" element. It is defined as: xsd:element maxOccurs="unbounded" minOccurs="0" name="raList" type="requestRA"/ Two problems:1. you must namespace qualify the referenced type. 2. "requestRA" must be defined as a type rather than an element.The "raList" definition should be:xsd:element maxOccurs="unbounded" minOccurs="0" name="raList" type="ns0:requestRA"/ And the "requestRA" definition should be:xsd:complexType name="requestRA" xsd:sequence xsd:element .../ ... /xsd:sequence/xsd:complexTypeAnne On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Ajith I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference. There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object. At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition. Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement. ___Debasish Dutta RoyNITASPh: 617-871-3033 "Ajith Ranabahu" [EMAIL PROTECTED] 08/15/2006 09:08 AM Please respond to axis-user To: axis-user@ws.apache.orgcc: (bcc: Debasish DuttaRoy/X/PH/Novartis)Subject: Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANTHi,If your schema declaration is proper then it should generate an arrayof the correct type. If you are still seeing OMElements then therecould be a problem with your schemaAjithOn 8/15/06, Debasish Dutta Roy [EMAIL PROTECTED] wrote: I have seen that example on the net. But my list/array is of another object. Not a native data type. If I do a complextype then this object is not created. I any case, it creates an array of OMElement[] and not an Object[]. As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list. I am using the nightly build of 08/07/2006. Anybody has got any idea??? It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him. On 8/11/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, As far as generating code is concerned you *cannot* generate a list field, even if you have a the maxOccurs set to unbound! it is always an array! As for this schema it is not right. What you should be doing is the following xsd:element name="bList" type="B" minOccurs="1" maxOccurs="unbounded"/ xsd:complexType name="B" xsd:sequence xsd:element name="str" type="xsd:string"/ /xsd:sequence /xsd:complexType Ajith On 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I need an object which contains a member variable, which is list of another
Re: [Axis2]Unable to use WSDL2JAVA.
Anne, but why the same wsdl worked for Axis 1.4 ? Can I add some configuration param without change primary wsdl file? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura,No, please don't reopen the JIRA. As Dims says, the latest buildthrows an informative exception. Your problem is caused by the fact that you do not import your second schema(targetNamespace=urn:/crmondemand/xml/territory) into the firstschema, therefore Axis cannot find elements/types with a prefix ofxsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/AnneOn 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle (SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED] :Bug is closed :) see comments in the bug report. thanks,dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm always getting exception: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException : org.apache.axis2.schema.SchemaCompilationException : java.lang.NullPointerException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate (CodeGener ationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java :32) at
RE: [Axis2]Unable to use WSDL2JAVA.
Agreed, it looks like the null pointer bug is already fixed. I did, however, just file a new JIRA on the fact that the generated error message is missing a space and is a bit ungrammatical: http://issues.apache.org/jira/browse/AXIS2-1037 Derek -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 10:19 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Yura, No, please don't reopen the JIRA. As Dims says, the latest build throws an informative exception. Your problem is caused by the fact that you do not import your second schema (targetNamespace=urn:/crmondemand/xml/territory) into the first schema, therefore Axis cannot find elements/types with a prefix of xsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/ Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler. java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaTy pe (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.j ava:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.j ava :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308 ) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java: 77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED] : Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To:
RE: [AXIS2] nightly build problem when parsing xml stream
Although I agree with what Ajith said, below, I still encourage you (Alistair) to file a JIRA about the fact that Axis does not log the error. Axis should not ever fail without logging an error message. Even if the problem was due to misconfiguration, Axis should leave an informative error message in the log file saying so. (It sounds like a static initialization block in the code (or a static variable initializer) is missing a try..catch block that would ensure that any thrown exceptions get logged.) Derek -Original Message- From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 1:20 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: [AXIS2] nightly build problem when parsing xml stream Hi, Try using the generated ant build to build your aar file. The ant build inserts the necessary files into the aar file and you should not have a problem! Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Alistair: Please file a JIRA indicating that the error that occurs in this case doesn't get logged (and it should!) Thanks. Derek -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 6:37 AM To: axis-user@ws.apache.org Subject: Re: [AXIS2] nightly build problem when parsing xml stream aha! handy thing a debugger coz the exception doesn't make it into the log. schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9 A53E.TypeS ystemHolder was missing. sorted Alistair On 10 Aug 2006, at 13:11, Alistair Young wrote: Hi there, Is there anything obvious that might be causing these? They occur when a MessageReceiver (generated by WSDL2Java) is trying to do a Factory.newInstance (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(), new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces (extraNamespaces)) there's no other info in the logs. first attempt at calling the service via stub: SEVERE: java.lang.ExceptionInInitializerError next attempt: SEVERE: java.lang.NoClassDefFoundError INFO: org.apache.axis2.AxisFault: null; nested exception is: com.ctc.wstx.exc.WstxIOException: null thanks, Alistair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Route that works with SAAJ gets Unrecognized SSL message, plaintext connection? with axis 1.3
I could really use some help with this. Note that the Axis environment is running in WebLogic 8.1.4. I also tried changing my connection code in WLS to use the same SAAJ code that my standalone app is using. This also fails. I see a message like this in the WLS log: Aug 15, 2006 10:19:26 AM PDT Error Net BEA-000903 Failed to communicate with proxy: proxy/8080. Will try connection www.../443 now (last hostname elided). Note that I'm setting the same system properties to the same values in both my standalone app and the WLS app. -Original Message- From: Karr, David Sent: Monday, August 14, 2006 4:25 PM To: axis-user@ws.apache.org Subject: Route that works with SAAJ gets Unrecognized SSL message, plaintext connection? with axis 1.3 Using Axis 1.3 and JDK 1.4.2. I have a standalone tool using SAAJ that can connect to a https url, using both basic auth and proxy auth. This works fine. I'm now working on sending the same message to the same URL, using Axis. I've set http{s}.proxy{Host,Port} and http{s}.proxySet to reasonable values (I think). I do the same thing in my standalone tool (which works). When Axis tries to send the message, the connection fails with an SSLException with the following text: Unrecognized SSL message, plaintext connection? What can I try to debug this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2: Read time out for a long operation
Hi All I have a sql operation (read) which is a time consuming one. It is ok if it takes time. But Axis2 is throwing up exception. The stack trace is below. I tried to update axis2.xml and increase the request timeout value. parameter name=requestTimeout locked=false10/parameter Do we need to do anything more? Thanks Debasish org.apache.axis2.AxisFault: Read timed out; nested exception is: java.net.SocketTimeoutException: Read timed out; nested exception is: org.apache.axis2.AxisFault: Read timed out; nested exception is: java.net.SocketTimeoutException: Read timed out at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:638) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:353) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:284) at com.novartis.ws.client.axis2.request.RequestWSStub.getRequestDetails(RequestWSStub.java:156) at com.novartis.ws.client.test.WSTestServlet.doGet(WSTestServlet.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Caused by: org.apache.axis2.AxisFault: Read timed out; nested exception is: java.net.SocketTimeoutException: Read timed out at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) ... 31 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at
a question about axis
Hi, I have a php soap webservice to query mssql database. I need to write a java clientto call this service.Is Axis work for it and how? Will anybody give some example code? Thanks in advance --jg Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
Re: Axis2: Read time out for a long operation
http://www.wso2.net/kb/209 On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All I have a sql operation (read) which is a time consuming one. It is ok if it takes time. But Axis2 is throwing up exception. The stack trace is below. I tried to update axis2.xml and increase the request timeout value. parameter name=requestTimeout locked=false10/parameter Do we need to do anything more? Thanks Debasish org.apache.axis2.AxisFault: Read timed out; nested exception is: java.net.SocketTimeoutException: Read timed out; nested exception is: org.apache.axis2.AxisFault: Read timed out; nested exception is: java.net.SocketTimeoutException: Read timed out at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:638) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:353) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:284) at com.novartis.ws.client.axis2.request.RequestWSStub.getRequestDetails(RequestWSStub.java:156) at com.novartis.ws.client.test.WSTestServlet.doGet(WSTestServlet.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Caused by: org.apache.axis2.AxisFault: Read timed out; nested exception is: java.net.SocketTimeoutException: Read timed out at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) ... 31 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) at
Re: a question about axis
j g wrote: Hi, I have a php soap webservice to query mssql database. I need to write a java clientto call this service.Is Axis work for it and how? Will anybody give some example code? Thanks in advance --jg Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1/min. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 15/08/2006 ::: AVISORTECH ::: Hello, with this ant-script you can generate the client: project name="somthing" property name="axis.home" value="C:/axis-1_3" / property name="javamail.home" value="C:/javamail-1.4ea" / property name="jaf.home" value="C:/jaf-1.0.2" / path id="axis.classpath" fileset dir="axis/lib" include name="**/*.jar"/ /fileset fileset dir="C:/javamail-1.4ea/lib" include name="**/*.jar"/ /fileset fileset dir="C:/jaf-1.0.2" include name="**/*.jar"/ /fileset /path taskdef resource="axis-tasks.properties" classpathref="axis.classpath" / target name="generate-client-stub" axis-wsdl2java url="" mapping namespace="namespace" package="packeage"/ /axis-wsdl2java /target /project Nicols G. Rico Ing. Desarrollador. Avisortech Ltda. Telfono: (571) 3 - 45 88 33 [EMAIL PROTECTED] Este mensaje y cualquier archivo anexo son confidenciales y para uso exclusivo de la persona(s) o entidad(es) a la(s) que va dirigido, en los trminos de los acuerdos de confidencialidad previamente suscritos, si los hubiere. Su contenido est protegido por las normas que garantizan la inviolabilidad de la correspondencia y por las que tutelan el secreto industrial, secreto comercial, informacin sujeta a reserva bancaria o por cualquier otro tipo de secreto profesional o garanta similar, como la reserva entre abogado y cliente, segn el caso. Por ello, si usted ha recibido este mensaje por error o equivocacin, por favor brrelo de su sistema inmediatamente, as como todas sus copias y notifique al remitente en forma inmediata. Bajo las leyes penales y civiles del pas de origen de este correo, Usted no podr usar, revelar, distribuir, imprimir o copiar ninguna de las partes de este mensaje sin el consentimiento del remitente. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis] NullPointerException
Greetings. I'm sending a bunch of stuff to the Axis server and getting back: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body soapenv:Fault faultcodesoapenv:Server.userException/faultcode faultstringjava.lang.NullPointerException/faultstring detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/;Elyse/ns1:hostname /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope How do I track down what is causing the trouble? Can I not send a null string or class? -- - Yitzchok Good - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applets--Could not get it working
Hi all,Has anyone found the solution to using java applets as the client.I could do it only this way.1.) Sign the required jars2.) Modify the java.policy file to grant { permission java.security.AllPermission; };So the users would not want to modify the java.policy file. Is there any solution for this problem. I would love to hear a solution.I am using Axis 1.4ThanksKalyan Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
RE: Applets--Could not get it working
What error message are you getting? Is the siteat which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:31 PMTo: axis-user@ws.apache.orgSubject: Applets--Could not get it working Hi all,Has anyone found the solution to using java applets as the client.I could do it only this way.1.) Sign the required jars2.) Modify the java.policy file to grant { permission java.security.AllPermission; };So the users would not want to modify the java.policy file. Is there any solution for this problem. I would love to hear a solution.I am using Axis 1.4ThanksKalyan Do you Yahoo!?Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
RE: Applets--Could not get it working
Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info.Here is the error message I get.Exception in thread "Thread-7" java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.init(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryList(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java:164)Exception in thread "Thread-8" java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.clinit(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.clinit(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.init(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList(UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConvertorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java:166)Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.init(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.init(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.clinit(JDK12Hooks.java:73) ... 13 moreKalyanLarry Lemons [EMAIL PROTECTED] wrote: What error message are you getting? Is the siteat which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:31 PMTo: axis-user@ws.apache.orgSubject: Applets--Could not get it working Hi all,Has anyone found the solution to using java applets as the client.I could do it only this way.1.) Sign the required jars2.) Modify the java.policy file to grant { permission java.security.AllPermission; };So the users would not want to modify the java.policy file. Is there any solution for this problem. I would love to hear a solution.I am using Axis 1.4ThanksKalyan Do you Yahoo!?Next-gen email? Have it all with the all-new Yahoo! Mail Beta. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
Has anyone used Acegi Security with Axis?
I'm trying to use Acegi Securityto handle authentication and authorization but am having a heck of a time... Any chance someone out there has done this and can point me to some reference material or a reference implementation they can pass my way? Thanks, Doug
Re: a question about axis
You need to publish your WSDL first Afterwards you can do a WSDL2Java to create the necessary stubs- M- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Nicolas Guaneme To: axis-user@ws.apache.org Sent: Tuesday, August 15, 2006 4:14 PM Subject: Re: a question about axis j g wrote: Hi, I have a php soap webservice to query mssql database. I need to write a java clientto call this service.Is Axis work for it and how? Will anybody give some example code? Thanks in advance --jg Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 15/08/2006 Hello, with this ant-script you can generate the client: project name="somthing" property name="axis.home" value="C:/axis-1_3" / property name="javamail.home" value="C:/javamail-1.4ea" / property name="jaf.home" value="C:/jaf-1.0.2" / path id="axis.classpath" fileset dir="axis/lib" include name="**/*.jar"/ /fileset fileset dir="C:/javamail-1.4ea/lib" include name="**/*.jar"/ /fileset fileset dir="C:/jaf-1.0.2" include name="**/*.jar"/ /fileset /path taskdef resource="axis-tasks.properties" classpathref="axis.classpath" / target name="generate-client-stub" axis-wsdl2java url="" mapping namespace="namespace" package="packeage"/ /axis-wsdl2java /target/project Nicolás G. Rico Ing. Desarrollador.Avisortech Ltda.Teléfono: (571) 3 - 45 88 33[EMAIL PROTECTED] Este mensaje y cualquier archivo anexo son confidenciales y para uso exclusivo de la persona(s) o entidad(es) a la(s) que va dirigido, en los términos de los acuerdos de confidencialidad previamente suscritos, si los hubiere. Su contenido está protegido por las normas que garantizan la inviolabilidad de la correspondencia y por las que tutelan el secreto industrial, secreto comercial, información sujeta a reserva bancaria o por cualquier otro tipo de secreto profesional o garantía similar, como la reserva entre abogado y cliente, según el caso. Por ello, si usted ha recibido este mensaje por error o equivocación, por favor bórrelo de su sistema inmediatamente, así como todas sus copias y notifique al remitente en forma inmediata. Bajo las leyes penales y civiles del país de origen de este correo, Usted no podrá usar, revelar, distribuir, imprimir o copiar ninguna de las partes de este mensaje sin el consentimiento del remitente.- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis] NullPointerException
Please post the input message and the WSDL and WSDD for the service. On 8/15/06, Yitzchok Good [EMAIL PROTECTED] wrote: Greetings. I'm sending a bunch of stuff to the Axis server and getting back: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body soapenv:Fault faultcodesoapenv:Server.userException/faultcode faultstringjava.lang.NullPointerException/faultstring detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/;Elyse/ns1:hostname /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope How do I track down what is causing the trouble? Can I not send a null string or class? -- - Yitzchok Good - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]Unable to use WSDL2JAVA.
Axis 1.4 should have generated an exception for this WSDL. It isn't valid. You cannot add any additional configuration information. You must make the WSDL valid. On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Anne, but why the same wsdl worked for Axis 1.4 ? Can I add some configuration param without change primary wsdl file? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, No, please don't reopen the JIRA. As Dims says, the latest build throws an informative exception. Your problem is caused by the fact that you do not import your second schema (targetNamespace=urn:/crmondemand/xml/territory) into the first schema, therefore Axis cannot find elements/types with a prefix of xsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/ Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle (SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java:791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED] : Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well) Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invalid data, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek -Original Message- From: Yura Tkachenko [mailto:[EMAIL PROTECTED] ] Sent: Monday, August 14, 2006 7:11 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]Unable to use WSDL2JAVA. Hello, Martin I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class everything was all right, but for Siebel CRM Ondemand Service wsdl I'm
Re: Element Default values
It's always a bad idea to assume that a processing engine will in fact honor default values. As a general rule, avoid using default values and referential integrity constraints in a schema. Anne On 8/15/06, Vinh Tran [EMAIL PROTECTED] wrote: Are default values supported in Axis2. I have client stubs created from wsdl2java but it doesn't appear to honor the default values on XSD elements. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applets--Could not get it working
Please see the following threads: http://marc.theaimsgroup.com/?l=axis-userw=2r=1s=applet+discoveryq=b On 8/15/06, KALYAN [EMAIL PROTECTED] wrote: Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info. Here is the error message I get. Exception in thread Thread-7 java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.init(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryList(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java:164) Exception in thread Thread-8 java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.clinit(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.clinit(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.init(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList(UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConvertorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java:166) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.init(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.init(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.clinit(JDK12Hooks.java:73) ... 13 more Kalyan Larry Lemons [EMAIL PROTECTED] wrote: What error message are you getting? Is the site at which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:31 PM To: axis-user@ws.apache.org Subject: Applets--Could not get it working Hi all, Has anyone found the solution to using java applets as the client. I could do it only this way. 1.) Sign the required jars 2.) Modify the java.policy file to grant { permission java.security.AllPermission; }; So the users would not want to modify the java.policy file. Is there any solution for this problem. I would love to hear a solution. I am using Axis 1.4 Thanks Kalyan Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 client invoking WebLogic WS?
Does anyone have experience invoking a WebLogic 9.1 Web Service via an Axis2 client? I added a simple string concat WS to MedRec's existing WSs, and thenused WSDL2Java to generate the XMLBean bindings. Unfortunately I'm getting an IllegalStateException. See attached WSDL. com.bea.medrec.MedRecWebServicesStub stub = new com.bea.medrec.MedRecWebServicesStub("http://localhost:7001/ws_medrec/MedRecWebServices"); GetStringDocument reqDoc = GetStringDocument.Factory.newInstance(); GetStringDocument.GetString str = GetStringDocument.GetString.Factory.newInstance(); str.setStr("hello"); GetStringResponseDocument resDoc = stub.getString(reqDoc); System.out.println("reponse="+resDoc.getGetStringResponse().getReturn()); DEBUG [21:38:31] (StAXOMBuilder.java:next:141) - START_DOCUMENT:DEBUG [21:38:31] (StAXOMBuilder.java:next:146) - CHARACTERS: []Exception in thread "Main Thread" org.apache.axiom.om.OMException: java.lang.IllegalStateException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322) at com.bea.medrec.MedRecWebServicesStub.toOM(MedRecWebServicesStub.java:302) at com.bea.medrec.MedRecWebServicesStub.toEnvelope(MedRecWebServicesStub.java:317) at com.bea.medrec.MedRecWebServicesStub.getString(MedRecWebServicesStub.java:119) at MedRecWsClient.main(MedRecWsClient.java:26)Caused by: java.lang.IllegalStateException at org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110) at org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123) ... 6 more Suggestions? Thanks. -Chris MedRecWebServices.wsdl Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]