Re: NullPointerException in SchemaCompiler
Hi all - I have answered my own question. Just in case anyone else runs into this error: My problem was that there were included WSDL files that did not include , , and tags. This was because they were not defining any operations, just messages. However, the WSDL2C tool expects these tags to be present. Thus I added a dummy operation, and made a binding and service for it. I discovered this by trying to run the tool on some of the included individual wsdl files instead of just the "top" wsdl file that was including several other files. Best, Karolina On Fri, Oct 10, 2008 at 10:39 PM, Karolina <[EMAIL PROTECTED]> wrote: > Hello List, > > I am getting the following NullPointerException when running the WSDL2C > tool with my WSDL files. Any ideas what could be wrong? I am using > version 1.5.0. (Under version 1.4.0 the tool generated the skeleton > service code without any problems.) > > I have validated my WSDL files with Altova XMLSpy and have attempted to > examine them thoroughly for possible causes but no luck. > > My WSDL files are attached. > > The command I used to run my files: > > sh WSDL2C.sh -uri rbyteio.wsdl -ss -sd -d adb -u -o RandomByteIO > > Thanks for any help! > Karolina > > - > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: java.lang.reflect.InvocationTargetException >at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) >at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) >at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31) > Caused by: java.lang.RuntimeException: > java.lang.reflect.InvocationTargetException >at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53) >at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) >...2 more > Caused by: java.lang.reflect.InvocationTargetException >at java.lang.reflect.Method.invoke(libgcj.so.81) >at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50) >...3 more > Caused by: org.apache.axis2.schema.SchemaCompilationException: > java.lang.NullPointerException >at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:289) >at > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103) >at java.lang.reflect.Method.invoke(libgcj.so.81) >...4 more > Caused by: java.lang.NullPointerException >at > org.apache.axis2.schema.SchemaCompiler.writeElement(SchemaCompiler.java:522) >at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:381) >at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:352) >at > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280) >...6 more >
Re: url decode
Thanks for the reply! I wanted to send this email to the apache modules mailing list but sent it to axis2 list by mistake. Thanks anyways :-) On Thu, Oct 23, 2008 at 4:19 PM, Dinesh Premalal <[EMAIL PROTECTED]> wrote: > Subra, > > "Subra Aswathanarayanan" <[EMAIL PROTECTED]> writes: > > > Hi, > > > > In my module I want to url decode the query string before I process it. > Does > > apache provide any such helper functions? > > Please look at axutil > > util/include/axutil_utils.h:245 > > there is a function called "axutil_url_decode" > > > HTH > > Dinesh > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: url decode
Subra, "Subra Aswathanarayanan" <[EMAIL PROTECTED]> writes: > Hi, > > In my module I want to url decode the query string before I process it. Does > apache provide any such helper functions? Please look at axutil util/include/axutil_utils.h:245 there is a function called "axutil_url_decode" HTH Dinesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url decode
Hi, In my module I want to url decode the query string before I process it. Does apache provide any such helper functions? Pls let me know if this is not the right forum to ask this question. Subra
Re: Does Axis2C support multi-threading requests
1. Everytime when sending a request, one instance of axis2_svc_client_t is created by axis2_stub_get_svc_client(), why it will affect other thread? 2. How to use axis2_op_client_t instance to send requests? Is there any sample? Thanks. Steven - Original Message - From: Supun Kamburugamuva To: Apache AXIS C User List Sent: Thursday, October 23, 2008 11:22 AM Subject: Re: Does Axis2C support multi-threading requests You cannot achieve this with a single instance of axis2_svc_client_t. But you can achieve this with axis2_op_client_t. You have to use a single axis2_op_client_t for a single thread. But not like in axis2_svc_client_t you don't have to create everyting from the beginning. Supun.. On Thu, Oct 23, 2008 at 10:59 PM, Steven Zhang <[EMAIL PROTECTED]> wrote: Hello: Does Axis2C support sending requests concurrently in multiple threads? I tried some times using version 1.0, exception happened. Will any new version support this? Any special settings needed? Thanks. Steven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software Engineer, WSO2 Inc http://wso2.org
Re: Does Axis2C support multi-threading requests
You cannot achieve this with a single instance of axis2_svc_client_t. But you can achieve this with axis2_op_client_t. You have to use a single axis2_op_client_t for a single thread. But not like in axis2_svc_client_t you don't have to create everyting from the beginning. Supun.. On Thu, Oct 23, 2008 at 10:59 PM, Steven Zhang <[EMAIL PROTECTED]> wrote: > Hello: > Does Axis2C support sending requests concurrently in multiple threads? I > tried some times using version 1.0, exception happened. Will any new version > support this? Any special settings needed? > > Thanks. > Steven > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Software Engineer, WSO2 Inc http://wso2.org
Does Axis2C support multi-threading requests
Hello: Does Axis2C support sending requests concurrently in multiple threads? I tried some times using version 1.0, exception happened. Will any new version support this? Any special settings needed? Thanks. Steven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I create a saml_response_t from a string?
Let me amend my question to give a bit more detail: I have a SAML 1.1 response from a service as a UTF-8 string. I want to get a list of the assertions in that response, also as UTF-8 strings, preserving all of the signatures. How can I accomplish this? I believe that the process involves deserializing the SAML response, iterating over its assertions, and serializing those individually, but when I attempt to do so I am unable to get the process to work. If it makes a difference, I am using saml_assertion_build to construct the assertion object, and saml_assertion_free is issuing a segment violation when attempting to free the saml_status part of the response. Chris Rose wrote: What is the correct method for creating a saml_response_t from a string? I have a SAML 1.1 response (and, probably, I'll have to do this with SAML 1.0 as well, so if there's anything relevant there, I'd like to do both). I will have these as UTF-8 char* data. How can I create a saml_response_t object from these, and ideally clean up all of the xml processing bits after it? I'm still a bit fuzzy on memory management within Axis2/C and Rampart/C, so a detailed response would be fantastic. -- Chris Rose DeveloperPlanet Consulting Group (780) 577-8433 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]