You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Srinath Perera <he...@opensource.lk> on 2004/08/31 14:04:12 UTC

[EWS]fix the Axis module

Concerning the failure of the EWS on the Axis snap shot it is happen at the
jaxrpc mapper inside axis code. I check the wsdl file with Axis WSDL2Java
tool and it works ok. That means there is something assumned in the jaxrpc
mapper that is broken. Still I do not get what it is.

Ias do you have any idea what would be wrong?
Thanks
Srinath

p.s. stac


the NUllPointer come at here becouse name variable is null
String fieldName = getAsFieldName(elem.getName());  // jongjin.

java.lang.NullPointerException
	at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.getAsFieldName(JavaBeanHelperWriter.java:403)
	at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeMetaData(JavaBeanHelperWriter.java:318)
	at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeFileBody(JavaBeanHelperWriter.java:175)
	at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:130)
	at
org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(JavaBeanWriter.java:243)
	at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:130)
	at
org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:112)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeGeneratorFactory$Writers.generate(J2eeGeneratorFactory.java:303)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generateTypes(J2eeEmitter.java:516)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generate(J2eeEmitter.java:417)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.runServerSide(J2eeEmitter.java:175)
	at
org.apache.geronimo.ews.ws4j2ee.toWs.ws.ServerSideWsGenerator.generate(ServerSideWsGenerator.java:129)
	at
org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeEmitter.generatedSEIandtypes(Ws4J2eeEmitter.java:53)
	at
org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeEmitter.emmit(Ws4J2eeEmitter.java:112)
	at org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2ee.generate(Ws4J2ee.java:129)
	at org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2ee.main(Ws4J2ee.java:360)
	at
org.apache.geronimo.ews.ws4j2ee.GenerateWithoutWSDLTest.testEchoJar(GenerateWithoutWSDLTest.java:147)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)



------------------------------------
Lanka Sofware Foundation
------------------------------------

RE: [EWS]fix the Axis module

Posted by Ias <ia...@hotmail.com>.
All done! (actually yesterday :-)

Ias

P.S. We will refactor J2eeGeneratorFactory and J2eeEmitter soon thanks to
Jongjin's groundwork on Axis. 

> -----Original Message-----
> From: Srinath Perera [mailto:hemapani@opensource.lk] 
> Sent: Wednesday, September 01, 2004 6:14 AM
> To: dev@geronimo.apache.org
> Subject: RE: [EWS]fix the Axis module
> 
> yes please .. I was waiting for correct them to find what is wrong.
> Srinath
> > Hi Srinath,
> >
> > I failed to build EWS with the following message:
> >
> >     [javac] Compiling 583 source files to 
> > C:\java\project\ws-axis\contrib\ews\target\classes
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeBeanWriter.java:225: cannot resolve symbol symbol  : method 
> > getLocalPart ()
> > location: class java.lang.String
> >                     String elemName = elem.getName().getLocalPart();
> >                                                   ^ 
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeBeanWriter.java:400: cannot resolve symbol symbol  : method 
> > getLocalPart ()
> > location: class java.lang.String
> >
> > Utils.xmlNameToJava(elem.getName().getLocalPart()));
> >                                                             ^ 
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeBeanHelperWriter.java:295: cannot resolve symbol
> >
> > symbol  : method getLocalPart ()
> > location: class java.lang.String
> >                     String elemLocalName = 
> elem.getName().getLocalPart();
> >                                                        ^ 
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeBeanHelperWriter.java:298: incompatible types
> > found   : java.lang.String
> > required: javax.xml.namespace.QName
> >                     QName xmlName = elem.getName();
> >                                                 ^ 
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeGeneratorFactory.java:1019: cannot resolve symbo l symbol  : 
> > method holder 
> > 
> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsd
> l.symbolTable.
> > TypeEntry,org.apache.geronimo.
> > ews.jaxrpcmapping.J2eeEmitter)
> > location: class org.apache.axis.wsdl.toJava.Utils
> >                 signature = signature + 
> Utils.holder(p.getMIMEInfo(), 
> > p.getType(), emitter) + " "
> >                                              ^ 
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeHolderWriter.java:77: cannot resolve symbol symbol  : method 
> > holder 
> > 
> (<nulltype>,org.apache.axis.wsdl.symbolTable.TypeEntry,org.apache.gero
> > nimo.e
> > ws.jaxrpcmapping.J2eeEmitter)
> > location: class org.apache.axis.wsdl.toJava.Utils
> >         super(emitter, Utils.holder(null, type, emitter), "holder");
> >                             ^
> > 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpc
> > mappin
> > g\J2eeTestCaseWriter.java:236: cannot resolve symbol symbol 
>  : method 
> > holder 
> > 
> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsd
> l.symbolTable.
> > TypeEntry,org.apache.axis.wsdl
> > toJava.Emitter)
> > location: class org.apache.axis.wsdl.toJava.Utils
> >                     pw.print("new " + 
> > Utils.holder(param.getMIMEInfo(), param.getType(), emitter)
> >                                            ^
> > Note: Some input files use or override a deprecated API.
> > Note: Recompile with -deprecation for details.
> > 7 errors
> >
> > One thing I'm curious of is Utils.holder usage, which is wrong and 
> > should be corrected by
> >
> > Utils.holder(param, emitter)
> >
> >  If you don't mind, I'll commit those corrections :-)
> >
> > Regards,
> >
> > Ias
> >
> >> -----Original Message-----
> >> From: Srinath Perera [mailto:hemapani@opensource.lk]
> >> Sent: Tuesday, August 31, 2004 1:50 PM
> >> To: dev@geronimo.apache.org
> >> Cc: hemapani@opensource.lk; dev@geronimo.apache.org; 'Jongjin Choi'
> >> Subject: RE: [EWS]fix the Axis module
> >>
> >> > Choi.
> >> > Anyway, how can elem.getName() be null? Could you tell me
> >> which test
> >> > case causes this error?
> >>
> >> org.apache.geronimo.ews.jaxrpcmapper.MapperTest,
> >> org.apache.geronimo.ews.ws4j2ee.JaxRpcMappingTest form ews 
> test cases 
> >> failed when I try.
> >>
> >> The trace I refering is to do with sameple/ejb/echo in the ews 
> >> repository.
> >> Thanks
> >> Srinath
> >>
> >>
> >
> >
> 
> 
> ------------------------------------
> Lanka Sofware Foundation
> ------------------------------------
> 

RE: [EWS]fix the Axis module

Posted by Srinath Perera <he...@opensource.lk>.
yes please .. I was waiting for correct them to find what is wrong.
Srinath
> Hi Srinath,
>
> I failed to build EWS with the following message:
>
>     [javac] Compiling 583 source files to
> C:\java\project\ws-axis\contrib\ews\target\classes
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeBeanWriter.java:225: cannot resolve symbol
> symbol  : method getLocalPart ()
> location: class java.lang.String
>                     String elemName = elem.getName().getLocalPart();
>                                                   ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeBeanWriter.java:400: cannot resolve symbol
> symbol  : method getLocalPart ()
> location: class java.lang.String
>
> Utils.xmlNameToJava(elem.getName().getLocalPart()));
>                                                             ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeBeanHelperWriter.java:295: cannot resolve symbol
>
> symbol  : method getLocalPart ()
> location: class java.lang.String
>                     String elemLocalName = elem.getName().getLocalPart();
>                                                        ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeBeanHelperWriter.java:298: incompatible types
> found   : java.lang.String
> required: javax.xml.namespace.QName
>                     QName xmlName = elem.getName();
>                                                 ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeGeneratorFactory.java:1019: cannot resolve symbo
> l
> symbol  : method holder
> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsdl.symbolTable.
> TypeEntry,org.apache.geronimo.
> ews.jaxrpcmapping.J2eeEmitter)
> location: class org.apache.axis.wsdl.toJava.Utils
>                 signature = signature + Utils.holder(p.getMIMEInfo(),
> p.getType(), emitter) + " "
>                                              ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeHolderWriter.java:77: cannot resolve symbol
> symbol  : method holder
> (<nulltype>,org.apache.axis.wsdl.symbolTable.TypeEntry,org.apache.geronimo.e
> ws.jaxrpcmapping.J2eeEmitter)
> location: class org.apache.axis.wsdl.toJava.Utils
>         super(emitter, Utils.holder(null, type, emitter), "holder");
>                             ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
> g\J2eeTestCaseWriter.java:236: cannot resolve symbol
> symbol  : method holder
> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsdl.symbolTable.
> TypeEntry,org.apache.axis.wsdl
> toJava.Emitter)
> location: class org.apache.axis.wsdl.toJava.Utils
>                     pw.print("new " + Utils.holder(param.getMIMEInfo(),
> param.getType(), emitter)
>                                            ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> 7 errors
>
> One thing I'm curious of is Utils.holder usage, which is wrong and should
> be
> corrected by
>
> Utils.holder(param, emitter)
>
>  If you don't mind, I'll commit those corrections :-)
>
> Regards,
>
> Ias
>
>> -----Original Message-----
>> From: Srinath Perera [mailto:hemapani@opensource.lk]
>> Sent: Tuesday, August 31, 2004 1:50 PM
>> To: dev@geronimo.apache.org
>> Cc: hemapani@opensource.lk; dev@geronimo.apache.org; 'Jongjin Choi'
>> Subject: RE: [EWS]fix the Axis module
>>
>> > Choi.
>> > Anyway, how can elem.getName() be null? Could you tell me
>> which test
>> > case causes this error?
>>
>> org.apache.geronimo.ews.jaxrpcmapper.MapperTest,
>> org.apache.geronimo.ews.ws4j2ee.JaxRpcMappingTest form ews
>> test cases failed when I try.
>>
>> The trace I refering is to do with sameple/ejb/echo in the
>> ews repository.
>> Thanks
>> Srinath
>>
>>
>
>


------------------------------------
Lanka Sofware Foundation
------------------------------------

Re: [EWS]fix the Axis module[Module is fixed]

Posted by Kristian Köhler <Kr...@gmx.de>.
works for me too.

Kristian

Srinath Perera wrote:

> Hi All;
> The Axis module is fixed. It works on my mechine.
> please verify.
> Thanks
> Srinath
> 
> 


RE: [EWS]fix the Axis module[Module is fixed]

Posted by Srinath Perera <he...@opensource.lk>.
Hi All;
The Axis module is fixed. It works on my mechine.
please verify.
Thanks
Srinath


RE: [EWS]fix the Axis module

Posted by Srinath Perera <he...@opensource.lk>.
Thanks very much .. I will test the state with geronimo and get back.
Thanks
Srinath



> Hi all,
>
> Now EWS works fine as it passes all the tests. I updated
> J2eeGeneratorFactory and J2eeXxxWriters to catch up the latest Axis'
> refactoring on toJava package.
>
> Thanks for your patience,
>
> Ias
>
>> -----Original Message-----
>> From: Ias [mailto:iasandcb@hotmail.com]
>> Sent: Tuesday, August 31, 2004 5:17 PM
>> To: dev@geronimo.apache.org; hemapani@opensource.lk
>> Subject: RE: [EWS]fix the Axis module
>>
>> Hi Srinath,
>>
>> I failed to build EWS with the following message:
>>
>>     [javac] Compiling 583 source files to
>> C:\java\project\ws-axis\contrib\ews\target\classes
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeBeanWriter.java:225: cannot resolve symbol symbol  :
>> method getLocalPart ()
>> location: class java.lang.String
>>                     String elemName = elem.getName().getLocalPart();
>>                                                   ^
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeBeanWriter.java:400: cannot resolve symbol symbol  :
>> method getLocalPart ()
>> location: class java.lang.String
>>
>> Utils.xmlNameToJava(elem.getName().getLocalPart()));
>>                                                             ^
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeBeanHelperWriter.java:295: cannot resolve symbol
>>
>> symbol  : method getLocalPart ()
>> location: class java.lang.String
>>                     String elemLocalName =
>> elem.getName().getLocalPart();
>>                                                        ^
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeBeanHelperWriter.java:298: incompatible types
>> found   : java.lang.String
>> required: javax.xml.namespace.QName
>>                     QName xmlName = elem.getName();
>>                                                 ^
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeGeneratorFactory.java:1019: cannot resolve symbo l
>> symbol  : method holder
>> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsd
>> l.symbolTable.
>> TypeEntry,org.apache.geronimo.
>> ews.jaxrpcmapping.J2eeEmitter)
>> location: class org.apache.axis.wsdl.toJava.Utils
>>                 signature = signature +
>> Utils.holder(p.getMIMEInfo(), p.getType(), emitter) + " "
>>                                              ^
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeHolderWriter.java:77: cannot resolve symbol symbol  :
>> method holder
>> (<nulltype>,org.apache.axis.wsdl.symbolTable.TypeEntry,org.apa
>> che.geronimo.e
>> ws.jaxrpcmapping.J2eeEmitter)
>> location: class org.apache.axis.wsdl.toJava.Utils
>>         super(emitter, Utils.holder(null, type, emitter), "holder");
>>                             ^
>> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
>> s\jaxrpcmappin
>> g\J2eeTestCaseWriter.java:236: cannot resolve symbol symbol
>> : method holder
>> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsd
>> l.symbolTable.
>> TypeEntry,org.apache.axis.wsdl
>> toJava.Emitter)
>> location: class org.apache.axis.wsdl.toJava.Utils
>>                     pw.print("new " +
>> Utils.holder(param.getMIMEInfo(), param.getType(), emitter)
>>                                            ^
>> Note: Some input files use or override a deprecated API.
>> Note: Recompile with -deprecation for details.
>> 7 errors
>>
>> One thing I'm curious of is Utils.holder usage, which is
>> wrong and should be corrected by
>>
>> Utils.holder(param, emitter)
>>
>>  If you don't mind, I'll commit those corrections :-)
>>
>> Regards,
>>
>> Ias
>>
>> > -----Original Message-----
>> > From: Srinath Perera [mailto:hemapani@opensource.lk]
>> > Sent: Tuesday, August 31, 2004 1:50 PM
>> > To: dev@geronimo.apache.org
>> > Cc: hemapani@opensource.lk; dev@geronimo.apache.org; 'Jongjin Choi'
>> > Subject: RE: [EWS]fix the Axis module
>> >
>> > > Choi.
>> > > Anyway, how can elem.getName() be null? Could you tell me
>> > which test
>> > > case causes this error?
>> >
>> > org.apache.geronimo.ews.jaxrpcmapper.MapperTest,
>> > org.apache.geronimo.ews.ws4j2ee.JaxRpcMappingTest form ews
>> test cases
>> > failed when I try.
>> >
>> > The trace I refering is to do with sameple/ejb/echo in the ews
>> > repository.
>> > Thanks
>> > Srinath
>> >
>> >
>>
>
>


------------------------------------
Lanka Sofware Foundation
------------------------------------

RE: [EWS]fix the Axis module

Posted by Ias <ia...@hotmail.com>.
Hi all,

Now EWS works fine as it passes all the tests. I updated
J2eeGeneratorFactory and J2eeXxxWriters to catch up the latest Axis'
refactoring on toJava package.

Thanks for your patience,

Ias

> -----Original Message-----
> From: Ias [mailto:iasandcb@hotmail.com] 
> Sent: Tuesday, August 31, 2004 5:17 PM
> To: dev@geronimo.apache.org; hemapani@opensource.lk
> Subject: RE: [EWS]fix the Axis module
> 
> Hi Srinath,
> 
> I failed to build EWS with the following message:
> 
>     [javac] Compiling 583 source files to 
> C:\java\project\ws-axis\contrib\ews\target\classes
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeBeanWriter.java:225: cannot resolve symbol symbol  : 
> method getLocalPart ()
> location: class java.lang.String
>                     String elemName = elem.getName().getLocalPart();
>                                                   ^ 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeBeanWriter.java:400: cannot resolve symbol symbol  : 
> method getLocalPart ()
> location: class java.lang.String
>  
> Utils.xmlNameToJava(elem.getName().getLocalPart()));
>                                                             ^ 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeBeanHelperWriter.java:295: cannot resolve symbol
> 
> symbol  : method getLocalPart ()
> location: class java.lang.String
>                     String elemLocalName = 
> elem.getName().getLocalPart();
>                                                        ^ 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeBeanHelperWriter.java:298: incompatible types
> found   : java.lang.String
> required: javax.xml.namespace.QName
>                     QName xmlName = elem.getName();
>                                                 ^ 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeGeneratorFactory.java:1019: cannot resolve symbo l 
> symbol  : method holder 
> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsd
> l.symbolTable.
> TypeEntry,org.apache.geronimo.
> ews.jaxrpcmapping.J2eeEmitter)
> location: class org.apache.axis.wsdl.toJava.Utils
>                 signature = signature + 
> Utils.holder(p.getMIMEInfo(), p.getType(), emitter) + " "
>                                              ^ 
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeHolderWriter.java:77: cannot resolve symbol symbol  : 
> method holder 
> (<nulltype>,org.apache.axis.wsdl.symbolTable.TypeEntry,org.apa
> che.geronimo.e
> ws.jaxrpcmapping.J2eeEmitter)
> location: class org.apache.axis.wsdl.toJava.Utils
>         super(emitter, Utils.holder(null, type, emitter), "holder");
>                             ^
> C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ew
> s\jaxrpcmappin
> g\J2eeTestCaseWriter.java:236: cannot resolve symbol symbol  
> : method holder 
> (org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsd
> l.symbolTable.
> TypeEntry,org.apache.axis.wsdl
> toJava.Emitter)
> location: class org.apache.axis.wsdl.toJava.Utils
>                     pw.print("new " + 
> Utils.holder(param.getMIMEInfo(), param.getType(), emitter)
>                                            ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> 7 errors
> 
> One thing I'm curious of is Utils.holder usage, which is 
> wrong and should be corrected by
> 
> Utils.holder(param, emitter)
> 
>  If you don't mind, I'll commit those corrections :-)
> 
> Regards,
> 
> Ias  
> 
> > -----Original Message-----
> > From: Srinath Perera [mailto:hemapani@opensource.lk]
> > Sent: Tuesday, August 31, 2004 1:50 PM
> > To: dev@geronimo.apache.org
> > Cc: hemapani@opensource.lk; dev@geronimo.apache.org; 'Jongjin Choi'
> > Subject: RE: [EWS]fix the Axis module
> > 
> > > Choi.
> > > Anyway, how can elem.getName() be null? Could you tell me
> > which test
> > > case causes this error?
> > 
> > org.apache.geronimo.ews.jaxrpcmapper.MapperTest,
> > org.apache.geronimo.ews.ws4j2ee.JaxRpcMappingTest form ews 
> test cases 
> > failed when I try.
> > 
> > The trace I refering is to do with sameple/ejb/echo in the ews 
> > repository.
> > Thanks
> > Srinath
> > 
> > 
> 

RE: [EWS]fix the Axis module

Posted by Ias <ia...@hotmail.com>.
Hi Srinath,

I failed to build EWS with the following message:

    [javac] Compiling 583 source files to
C:\java\project\ws-axis\contrib\ews\target\classes
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeBeanWriter.java:225: cannot resolve symbol
symbol  : method getLocalPart ()
location: class java.lang.String
                    String elemName = elem.getName().getLocalPart();
                                                  ^
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeBeanWriter.java:400: cannot resolve symbol
symbol  : method getLocalPart ()
location: class java.lang.String
 
Utils.xmlNameToJava(elem.getName().getLocalPart()));
                                                            ^
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeBeanHelperWriter.java:295: cannot resolve symbol

symbol  : method getLocalPart ()
location: class java.lang.String
                    String elemLocalName = elem.getName().getLocalPart();
                                                       ^
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeBeanHelperWriter.java:298: incompatible types
found   : java.lang.String
required: javax.xml.namespace.QName
                    QName xmlName = elem.getName();
                                                ^
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeGeneratorFactory.java:1019: cannot resolve symbo
l
symbol  : method holder
(org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsdl.symbolTable.
TypeEntry,org.apache.geronimo.
ews.jaxrpcmapping.J2eeEmitter)
location: class org.apache.axis.wsdl.toJava.Utils
                signature = signature + Utils.holder(p.getMIMEInfo(),
p.getType(), emitter) + " "
                                             ^
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeHolderWriter.java:77: cannot resolve symbol
symbol  : method holder
(<nulltype>,org.apache.axis.wsdl.symbolTable.TypeEntry,org.apache.geronimo.e
ws.jaxrpcmapping.J2eeEmitter)
location: class org.apache.axis.wsdl.toJava.Utils
        super(emitter, Utils.holder(null, type, emitter), "holder");
                            ^
C:\java\project\ws-axis\contrib\ews\src\org\apache\geronimo\ews\jaxrpcmappin
g\J2eeTestCaseWriter.java:236: cannot resolve symbol
symbol  : method holder
(org.apache.axis.wsdl.symbolTable.MimeInfo,org.apache.axis.wsdl.symbolTable.
TypeEntry,org.apache.axis.wsdl
toJava.Emitter)
location: class org.apache.axis.wsdl.toJava.Utils
                    pw.print("new " + Utils.holder(param.getMIMEInfo(),
param.getType(), emitter)
                                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
7 errors

One thing I'm curious of is Utils.holder usage, which is wrong and should be
corrected by

Utils.holder(param, emitter)

 If you don't mind, I'll commit those corrections :-)

Regards,

Ias  

> -----Original Message-----
> From: Srinath Perera [mailto:hemapani@opensource.lk] 
> Sent: Tuesday, August 31, 2004 1:50 PM
> To: dev@geronimo.apache.org
> Cc: hemapani@opensource.lk; dev@geronimo.apache.org; 'Jongjin Choi'
> Subject: RE: [EWS]fix the Axis module
> 
> > Choi.
> > Anyway, how can elem.getName() be null? Could you tell me 
> which test 
> > case causes this error?
> 
> org.apache.geronimo.ews.jaxrpcmapper.MapperTest,
> org.apache.geronimo.ews.ws4j2ee.JaxRpcMappingTest form ews 
> test cases failed when I try.
> 
> The trace I refering is to do with sameple/ejb/echo in the 
> ews repository.
> Thanks
> Srinath
> 
> 

RE: [EWS]fix the Axis module

Posted by Srinath Perera <he...@opensource.lk>.
> Choi.
> Anyway, how can elem.getName() be null? Could you tell me which test case
> causes this error?

org.apache.geronimo.ews.jaxrpcmapper.MapperTest,
org.apache.geronimo.ews.ws4j2ee.JaxRpcMappingTest form ews test cases
failed when I try.

The trace I refering is to do with sameple/ejb/echo in the ews repository.
Thanks
Srinath


RE: [EWS]fix the Axis module

Posted by Ias <ia...@hotmail.com>.
> Concerning the failure of the EWS on the Axis snap shot it is 
> happen at the jaxrpc mapper inside axis code. I check the 
> wsdl file with Axis WSDL2Java tool and it works ok. That 
> means there is something assumned in the jaxrpc mapper that 
> is broken. Still I do not get what it is.
> 
> Ias do you have any idea what would be wrong?
> Thanks
> Srinath
> 
> p.s. stac
> 
> 
> the NUllPointer come at here becouse name variable is null 
> String fieldName = getAsFieldName(elem.getName());  // jongjin.

>From the comment (// jongjin), I think that the logic comes from Jongjin
Choi. 
Anyway, how can elem.getName() be null? Could you tell me which test case
causes this error?

Regards,

Ias
 
> 
> java.lang.NullPointerException
> 	at
> org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.getAsFieldNam
> e(JavaBeanHelperWriter.java:403)
> 	at
> org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeMetaData
> (JavaBeanHelperWriter.java:318)
> 	at
> org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeFileBody
> (JavaBeanHelperWriter.java:175)
> 	at 
> org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:130)
> 	at
> org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(JavaB
> eanWriter.java:243)
> 	at 
> org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:130)
> 	at
> org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWr
> iter.java:112)
> 	at
> org.apache.geronimo.ews.jaxrpcmapping.J2eeGeneratorFactory$Wri
> ters.generate(J2eeGeneratorFactory.java:303)
> 	at
> org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generateType
> s(J2eeEmitter.java:516)
> 	at
> org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generate(J2e
> eEmitter.java:417)
> 	at
> org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.runServerSid
> e(J2eeEmitter.java:175)
> 	at
> org.apache.geronimo.ews.ws4j2ee.toWs.ws.ServerSideWsGenerator.
> generate(ServerSideWsGenerator.java:129)
> 	at
> org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeEmitter.generatedS
> EIandtypes(Ws4J2eeEmitter.java:53)
> 	at
> org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeEmitter.emmit(Ws4J
> 2eeEmitter.java:112)
> 	at 
> org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2ee.generate(Ws4J2ee.
> java:129)
> 	at 
> org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2ee.main(Ws4J2ee.java:360)
> 	at
> org.apache.geronimo.ews.ws4j2ee.GenerateWithoutWSDLTest.testEc
> hoJar(GenerateWithoutWSDLTest.java:147)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest
> s(RemoteTestRunner.java:392)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(Rem
> oteTestRunner.java:276)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(Re
> moteTestRunner.java:167)
> 
> 
> 
> ------------------------------------
> Lanka Sofware Foundation
> ------------------------------------
>