axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier MOGHRABI (JIRA)" <axis-...@ws.apache.org>
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
         URL: http://nagoya.apache.org/jira/browse/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


Hello,

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'
java.lang.ClassCastException
        at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(JavaTypeWriter.java:100)
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeGeneratorFactory.getGenerator(J2eeGeneratorFactory.java:2
24)
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generateTypes(J2eeEmitter.java:452)
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generate(J2eeEmitter.java:378)
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.access$2(J2eeEmitter.java:366)
        at org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter$WSDLRunnable.run(J2eeEmitter.java:335)
        at java.lang.Thread.run(Thread.java:534)

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) {
            ((Type)type).setGenerated(true);
     }
   }   
 }

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 Objectweb.org


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message