axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier MOGHRABI (JIRA)" <>
Subject [jira] Created: (AXIS-1684) Error in class : org.apache.axis.wsdl.toJava.JavaTypeWriter
Date Thu, 25 Nov 2004 16:00:18 GMT
Error in class : org.apache.axis.wsdl.toJava.JavaTypeWriter

         Key: AXIS-1684
     Project: Axis
        Type: Bug
    Versions: current (nightly), 1.2RC2    
 Environment: Red Hat Enterprise 2.1, JDK 1.4.2_06-b03
Axis is embbeded in JOnAS Application Server.
    Reporter: Xavier MOGHRABI
    Priority: Blocker


I was working in J2EE Certification effort for JOnAS and I've met a bug in webservice.

The error reporting by JOnAS is the following :

Error when running axis WSDL2Java tool. 'null'
        at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeGeneratorFactory.getGenerator(
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generateTypes(
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generate(
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.access$2(
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter$

I had a look at the class org.apache.axis.wsdl.toJava.JavaTypeWriter and at line 100 there
is an error :
 public JavaTypeWriter(Emitter emitter, TypeEntry type, SymbolTable symbolTable) {   
     if (typeWriter != null) {

But the classe Type extends TypeEntry so you can not say that all objects implementing TypeEntry
are a kind of Type !
So if you want to warm from this ClassCastException put a check like this :
 if (type instance of Type) {...

Thanks for notice this

Xavier MOGHRABI -- Consortium OBJECTWEB
Email : xavier.moghrabi at

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message