I ran your code with the branch code and the axiom-SNAPSHOT and it works fine. So the problem is with the axiom 1.2.2 you have to use the 1.2.4
Please try with the next RC. On 4/24/07, Jorge Fernandez <[EMAIL PROTECTED]> wrote:
Hi Amila, I tried again without the addressing module and I had the same exception I was having with axiom 1.2.2. Regards, Jorge Fernández Rodríguez *Amila Suriarachchi <[EMAIL PROTECTED]>* escribió: On 4/23/07, Jorge Fernandez <[EMAIL PROTECTED]> wrote: > > Sorry, I don't know what you mean. I think you use the Axis2-1.2-RC2 release. In that release you have a lib directory which contain axiom 1.2.3 jars. (i.e. axiom-api-1.2.3.jar, axiom-impl-1.2.3.jar ,axiom-dom-1.2.3.jar). Get the Axiom 1.2.4 release from here http://ws.apache.org/commons/axiom/download.cgi and replace the 1.2.3 jars with the 1.2.4 jars. It seems that now you are getting some addressing problem. So please check it without addressing. Regards, > > Jorge Fernández > > *Martin Gainty <[EMAIL PROTECTED]>* escribió: > > Jorge > > I cannot display the url for your first namespace > http://external.communication_data_model.medici_link/xsd > > M-- > This email message and any files transmitted with it contain > confidential > information intended only for the person(s) to whom this email message > is > addressed. If you have received this email message in error, please > notify > the sender immediately by telephone or email and destroy the original > message without making a copy. Thank you. > > ----- Original Message ----- > *From:* Jorge Fernandez <[EMAIL PROTECTED]> > *To:* [email protected] ; [EMAIL PROTECTED] > *Sent:* Sunday, April 22, 2007 8:40 PM > *Subject:* Re: Issue with ADB and parsing a response message > (namespaces) > > Hi, > > I couldn't reproduce the error again. If you want I can open a JIRA but > I can't attach any code. > > I had found another problem related with ADB parsing when there is some > hierarchy and I raised JIRA 2578. > > Regards, > > Jorge Fernández > > *Anne Thomas Manes < [EMAIL PROTECTED]>* escribió: > > Please file a JIRA. > > On 4/20/07, Jorge Fernandez wrote: > > Hi all, > > > > > > I'm having problems with the namespaces of a response message like > this: > > > > > > xmlns:ns3=" http://op_messages.medici_link/xsd"> > > > > xmlns:ns0=" http://external.communication_data_model.medici_link/xsd" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " > > xsi:type="ns0:extConfiguration"> > > .................................. > > > > xsi:type="ns0:extAbstractParameterDesc"> > > .................................. > > > > .................................. > > > > xsi:type="ns0:extPrimitiveParameterDesc"> > > ................................. > > > > .................................. > > > > > > > > > > > > > > I have this exception when parsing the first element > > (ns0:abstractParameters): > > > > java.lang.RuntimeException: java.lang.RuntimeException : Unsupported > type > > null extPrimitiveParameterDesc > > at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:5210) > > at > > client.Medici_LinkStub.getDetailedMonitoringStages > (Medici_LinkStub.java:1945) > > at > > client.ClientUtilities.getDetailedMonitoringStagesTest ( > ClientUtilities.java:244) > > at client.Client.main(Client.java:53) > > Caused by: java.lang.RuntimeException: Unsupported type null > > extPrimitiveParameterDesc > > at > > > medici_link.op_messages.xsd.ExtensionMapper.getTypeObject(ExtensionMapperjava:181) > > > at > > > medici_link.communication_data_model.external.xsd.ExtParameterDesc$Factory.parse( > ExtParameterDesc.java:1171) > > at > > > medici_link.communication_data_model.external.xsd.ExtAbstractParameterDesc$Factory.parse( > ExtAbstractParameterDesc.java:1311) > > at > > > medici_link.communication_data_model.external.xsd.ExtConfiguration$Factory.parse( > ExtConfiguration.java:923) > > at > > > medici_link.communication_data_model.external.xsd.ExtStage$Factory.parse( > ExtStage.java:650) > > at > > > medici_link.op_messages.xsd.GetDetailedMonitoringStagesResponse$Factory.parse( > GetDetailedMonitoringStagesResponse.java :424) > > at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:4833) > > .. 3 more > > > > I have a hierachy of classes: > > > > ExtAbstractParameterDesc and ExtPrimitiveParameterDesc that extend > > ExtParameterDesc. > > > > I've been diving in my code that was created with WSDL2Java and ADB > (Axis > > 1.1.1) and I could see that for that element, it enters > > the parse Method of ExtAbstractParameterDesc, then it reaches this: > > > > if > > ("true".equals(reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance > ","nil"))){ > > list9.add(null); > > reader.next(); > > } else { > > > > list9.add > (medici_link.communication_data_model.external.xsd.ExtParameterDesc.Factory.parse(reader)); > > } > > > > And goes to the else statement. So it enters the parse method of > > ExtParameterDesc (it's father class). > > > > When it's inside that method, variable type gets the value > > "ExtPrimitiveParameterDesc" (I don't know if it should be > > ExtAbstractParameterDesc but I made that change and it threw an > exception in > > other place) and finally it tries to get the namespace uri of prefix > ns0 and > > it gets null. > > this is the snippet: > > > > java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1); > > if (!"extParameterDesc".equals(type)){ > > //find namespace for the prefix > > java.lang.String nsUri = > > reader.getNamespaceContext().getNamespaceURI("ns0"); > > > > nsUri="http://external.communication_data_model.medici_link/xsd"; > > return > > > (ExtParameterDesc)medici_link.op_messages.xsd.ExtensionMapper.getTypeObject(nsUri,type,reader); > > } > > > > > > As you can see in the message, it is > > " http://external.communication_data_model.medici_link/xsd". > > So the exception is thrown because it can't get de typeObject. > > > > I added the line > > nsUri="http://external.communication_data_model.medici_link/xsd "; > > just before getTypeObject is called and it works. > > > > With XMLBeans, it works perfectly. > > > > Regards, > > > > Jorge Fernández > > > > > > > > ________________________________ > > > > LLama Gratis a cualquier PC del Mundo. > > Llamadas a fijos y móviles desde 1 céntimo por minuto. > > http://es.voice.yahoo.com > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ------------------------------ > > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com<http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voiceyahoo.com/> > > > ------------------------------ > > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com<http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/> > -- Amila Suriarachchi, WSO2 Inc. ------------------------------ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com<http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/>
-- Amila Suriarachchi, WSO2 Inc.
