You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/07 19:41:51 UTC

[jira] Created: (AXIS-1595) Bug in generateWSDL() method.

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Thu, 7 Oct 2004 10:41 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Mon, 18 Oct 2004 3:51 AM
       Body:
Dims, your code works!
Thank you very much!
Where is the trick?
Please, let me understand.

However, there are other issues in the WSDL generation of Axis 1.2RC1.
Now, I get a client side error when I try to instantiate a Service object from the generated WSDL.
This is the code snippet:

String wsdl="http://localhost:8084/montag/services/QueryService?wsdl";
Service  service = new Service(new java.net.URL(wsdl),new QName("http://localhost:8084/montag/services/QueryService","QueryServiceService"));

This is the exception:

javax.xml.rpc.ServiceException: Error processing WSDL document:  
WSDLException (at /wsdl:definitions/wsdl:binding/wsdl:operation[1]/wsdl:input/wsdlsoap:header[1]): faultCode=NO_PREFIX_SPECIFIED: Unable to determine namespace of 'soapHeader'.: 
        at org.apache.axis.client.Service.initService(Service.java:239)
        at org.apache.axis.client.Service.<init>(Service.java:154)
        at LocalQueryColClient.main(LocalQueryColClient.java:78)
Exception in thread "main" java.lang.NullPointerException
        at LocalQueryColClient.main(LocalQueryColClient.java:134)

And this is the WSDL:

---

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8084/montag/services/QueryService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8084/montag/services/QueryService" xmlns:intf="http://localhost:8084/montag/services/QueryService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://core.montag" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <wsdl:types>

      <schema targetNamespace="http://localhost:8084/montag/services/QueryService" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://core.montag"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="ArrayOf_soapenc_string">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>

      <schema targetNamespace="http://core.montag" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://localhost:8084/montag/services/QueryService"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="MontagSOAPFault">
    <sequence/>
   </complexType>
  </schema>

   </wsdl:types>

   <wsdl:message name="queryDocumentResponse">

      <wsdl:part name="queryDocumentReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="soapHeader">

      <wsdl:part name="username" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="MontagSOAPFault">

      <wsdl:part name="fault" type="tns1:MontagSOAPFault"/>

   </wsdl:message>

   <wsdl:message name="queryCollectionResponse">

      <wsdl:part name="queryCollectionReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="queryCollectionRequest">

      <wsdl:part name="collection" type="soapenc:string"/>

      <wsdl:part name="query" type="soapenc:string"/>

      <wsdl:part name="addNodeSet" type="xsd:boolean"/>

      <wsdl:part name="namespaces" type="impl:ArrayOf_soapenc_string"/>

   </wsdl:message>

   <wsdl:message name="queryDocumentRequest">

      <wsdl:part name="collection" type="soapenc:string"/>

      <wsdl:part name="id" type="soapenc:string"/>

      <wsdl:part name="query" type="soapenc:string"/>

      <wsdl:part name="namespaces" type="impl:ArrayOf_soapenc_string"/>

   </wsdl:message>

   <wsdl:portType name="QueryService">

      <wsdl:operation name="queryDocument" parameterOrder="collection id query namespaces">

         <wsdl:input message="impl:queryDocumentRequest" name="queryDocumentRequest"/>

         <wsdl:output message="impl:queryDocumentResponse" name="queryDocumentResponse"/>

         <wsdl:fault message="impl:MontagSOAPFault" name="MontagSOAPFault"/>

      </wsdl:operation>

      <wsdl:operation name="queryCollection" parameterOrder="collection query addNodeSet namespaces">

         <wsdl:input message="impl:queryCollectionRequest" name="queryCollectionRequest"/>

         <wsdl:output message="impl:queryCollectionResponse" name="queryCollectionResponse"/>

         <wsdl:fault message="impl:MontagSOAPFault" name="MontagSOAPFault"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="QueryServiceSoapBinding" type="impl:QueryService">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="queryDocument">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="queryDocumentRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://local.services.montag" use="encoded"/>

            <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="soapHeader" part="username" use="encoded">

            </wsdlsoap:header>

            <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="soapHeader" part="password" use="encoded">

            </wsdlsoap:header>

         </wsdl:input>

         <wsdl:output name="queryDocumentResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="MontagSOAPFault">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="MontagSOAPFault" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="queryCollection">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="queryCollectionRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://local.services.montag" use="encoded"/>

            <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="soapHeader" part="username" use="encoded">

            </wsdlsoap:header>

            <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="soapHeader" part="password" use="encoded">

            </wsdlsoap:header>

         </wsdl:input>

         <wsdl:output name="queryCollectionResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="MontagSOAPFault">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="MontagSOAPFault" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="QueryServiceService">

      <wsdl:port binding="impl:QueryServiceSoapBinding" name="QueryService">

         <wsdlsoap:address location="http://localhost:8084/montag/services/QueryService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

---

Everything worked fine with Axis 1.1 ... why are there so many problems migrating from 1.1 to 1.2?
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_54301

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Mon, 18 Oct 2004 3:51 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Sat, 9 Oct 2004 9:07 AM
       Body:
I've just tried the Axis 1.2Beta3 version, without modifying my code; I get an InvocationTargetException, but the stack trace is different from the 1.2RC1 one:

java.lang.reflect.InvocationTargetException
        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 org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1116)
        at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:224)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at montag.filters.TimeFilter.doFilter(TimeFilter.java:63)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalArgumentException: invalid QName local part
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:487)
        at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
        ... 36 more
Caused by: java.lang.IllegalArgumentException: invalid QName local part
        at javax.xml.namespace.QName.<init>(QName.java:75)
        at javax.xml.namespace.QName.<init>(QName.java:60)
        at com.ibm.wsdl.util.xml.QNameUtils.newQName(Unknown Source)
        at com.ibm.wsdl.util.xml.QNameUtils.matches(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at montag.services.handlers.RemoteWSDLHook.generateWSDL(RemoteWSDLHook.java:101)
        at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:321)
        at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:467)
        ... 37 more

Now, the exception is thrown in the last line of this code snippet:

            WSDLFactory factory=null;
            Definition def=null;
            Binding binding=null;

            // Removes the previous WSDL:
            ctx.setProperty("WSDL",null);
            // Generates a new one:
            new RPCProvider().generateWSDL(ctx);
            // Gets the generated WSDL:
            wsdl=(org.w3c.dom.Document) ctx.getProperty("WSDL");

            try
            {
                factory=WSDLFactoryImpl.newInstance();
                // Reads the WSDL definition:
                def=factory.newWSDLReader().readWSDL(null,wsdl);
            ...

I hope this can help.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53867

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sat, 9 Oct 2004 9:07 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Sun, 10 Oct 2004 2:24 AM
       Body:
I carefully rebuilt, for the third time, all my application with Axis 1.2RC1 version and now I get the same error reported in my previous comment about the Beta3 version. It's an InvocationTargetException caused by an IllegalArgumentException: invalid QName local part;   
Here is again the full stack trace:

java.lang.reflect.InvocationTargetException
        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 org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1116)
        at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:224)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at montag.filters.TimeFilter.doFilter(TimeFilter.java:63)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
        at java.lang.Thread.run(Thread.java:534)

Caused by: java.lang.IllegalArgumentException: invalid QName local part
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:487)
        at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
        ... 36 more

Caused by: java.lang.IllegalArgumentException: invalid QName local part
        at javax.xml.namespace.QName.<init>(QName.java:75)
        at javax.xml.namespace.QName.<init>(QName.java:60)
        at com.ibm.wsdl.util.xml.QNameUtils.newQName(Unknown Source)
        at com.ibm.wsdl.util.xml.QNameUtils.matches(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at montag.services.handlers.RemoteWSDLHook.generateWSDL(RemoteWSDLHook.java:101)
        at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:316)
        at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:467)
        ... 37 more

For the code, please refer to my previous comment.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53872

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sun, 10 Oct 2004 2:24 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Sun, 17 Oct 2004 12:20 PM
       Body:
Please post more of your code...specifially everything between the "new RPCProvider().generateWSDL(ctx); " and "readWSDL"

I see this problem happening ONLY if the DocumentBuilderFactory's setNamespaceAware flag is set to false.

thanks,
dims
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_54266

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sun, 17 Oct 2004 12:20 PM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Sun, 17 Oct 2004 12:58 PM
       Body:
Try this and let me know.

def=factory.newWSDLReader().readWSDL(null,org.apache.axis.utils.XMLUtils.sourceToInputSource(new javax.xml.transform.dom.DOMSource(wsdl)); 

-- dims
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_54269

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sun, 17 Oct 2004 12:58 PM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Thu, 14 Oct 2004 1:09 PM
       Body:
pretty print the org.w3c.dom.Document and check if it looks ok.

-- dims
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_54082

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Thu, 14 Oct 2004 1:09 PM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Tom Jordahl
    Created: Sat, 9 Oct 2004 12:51 PM
       Body:
I just checked in a change to the CVS source tree that will unwrap the InvocationTargetException and you will see the real exception.

The bottom line is if you are see in incompatible class change, you need to re-build something.  It is highly unlikely that this is an Axis bug.

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53868

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sat, 9 Oct 2004 12:51 PM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Resolved: (AXIS-1595) Bug in generateWSDL() method.

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1595?page=history ]
     
Davanum Srinivas resolved AXIS-1595:
------------------------------------

    Resolution: Invalid

Error caused by user code.

thanks,
dims

> Bug in generateWSDL() method.
> -----------------------------
>
>          Key: AXIS-1595
>          URL: http://issues.apache.org/jira/browse/AXIS-1595
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1
>  Environment: JDK 1.4.2_04-b05
> Tomcat 5.0.19 / 5.0.25
> Linux
>     Reporter: Sergio Bossa
>     Priority: Critical

>
> When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
> This is a code snippet from my handler:
> public class RemoteWSDLHook extends BasicHandler
> {
>     private Map wsdlCache;
>     
>     public void init()
>     {
>         super.init();
>         
>         wsdlCache=Collections.synchronizedMap(new HashMap());
>     }
>     
>     public void invoke(MessageContext ctx)
>     {}
>     
>     public void generateWSDL(MessageContext ctx)
>     throws AxisFault
>     {
>         if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
>         ...
>     ...
> The exception is thrown in the if clause.
> The same code works fine with Axis 1.1 version.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Sun, 17 Oct 2004 4:13 AM
       Body:
Here is the WSDL document automatically generated by calling: 
new RPCProvider().generateWSDL(ctx);

-------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8084/montag/services/QueryService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8084/montag/services/QueryService" xmlns:intf="http://localhost:8084/montag/services/QueryService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://core.montag" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2RC1
Built on Sep 29, 2004 (08:29:40 EDT)-->
 <wsdl:types>
  <schema targetNamespace="http://localhost:8084/montag/services/QueryService" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://core.montag"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="ArrayOf_soapenc_string">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
  <schema targetNamespace="http://core.montag" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://localhost:8084/montag/services/QueryService"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="MontagSOAPFault">
    <sequence/>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="queryDocumentResponse">

      <wsdl:part name="queryDocumentReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="queryCollectionResponse">

      <wsdl:part name="queryCollectionReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="MontagSOAPFault">

      <wsdl:part name="fault" type="tns1:MontagSOAPFault"/>

   </wsdl:message>

   <wsdl:message name="queryCollectionRequest">

      <wsdl:part name="collection" type="soapenc:string"/>

      <wsdl:part name="query" type="soapenc:string"/>

      <wsdl:part name="addNodeSet" type="xsd:boolean"/>

      <wsdl:part name="namespaces" type="impl:ArrayOf_soapenc_string"/>

   </wsdl:message>

   <wsdl:message name="queryDocumentRequest">

      <wsdl:part name="collection" type="soapenc:string"/>

      <wsdl:part name="id" type="soapenc:string"/>

      <wsdl:part name="query" type="soapenc:string"/>

      <wsdl:part name="namespaces" type="impl:ArrayOf_soapenc_string"/>

   </wsdl:message>

   <wsdl:portType name="QueryService">

      <wsdl:operation name="queryDocument" parameterOrder="collection id query namespaces">

         <wsdl:input message="impl:queryDocumentRequest" name="queryDocumentRequest"/>

         <wsdl:output message="impl:queryDocumentResponse" name="queryDocumentResponse"/>

         <wsdl:fault message="impl:MontagSOAPFault" name="MontagSOAPFault"/>

      </wsdl:operation>

      <wsdl:operation name="queryCollection" parameterOrder="collection query addNodeSet namespaces">

         <wsdl:input message="impl:queryCollectionRequest" name="queryCollectionRequest"/>

         <wsdl:output message="impl:queryCollectionResponse" name="queryCollectionResponse"/>

         <wsdl:fault message="impl:MontagSOAPFault" name="MontagSOAPFault"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="QueryServiceSoapBinding" type="impl:QueryService">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="queryDocument">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="queryDocumentRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://local.services.montag" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="queryDocumentResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="MontagSOAPFault">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="MontagSOAPFault" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="queryCollection">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="queryCollectionRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://local.services.montag" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="queryCollectionResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="MontagSOAPFault">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="MontagSOAPFault" namespace="http://localhost:8084/montag/services/QueryService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="QueryServiceService">

      <wsdl:port binding="impl:QueryServiceSoapBinding" name="QueryService">

         <wsdlsoap:address location="http://localhost:8084/montag/services/QueryService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

--------------------------------------------------------------

It seems ok, but still fires the "java.lang.IllegalArgumentException: invalid QName local part" in the last line of this code snippet:

WSDLFactory factory=null;
Definition def=null;
[...]
factory=WSDLFactoryImpl.newInstance();
def=factory.newWSDLReader().readWSDL(null,wsdl);
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_54257

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sun, 17 Oct 2004 4:13 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Fri, 8 Oct 2004 2:07 AM
       Body:
The full stack trace follows:

java.lang.reflect.InvocationTargetException
        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 org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1116)
        at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:224)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at montag.filters.TimeFilter.doFilter(TimeFilter.java:63)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
        at java.lang.Thread.run(Thread.java:534)

Caused by: java.lang.IncompatibleClassChangeError
        at montag.services.handlers.RemoteWSDLHook.generateWSDL(RemoteWSDLHook.java:80)
        at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:316)
        at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:467)
        at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
        ... 36 more 
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53833

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Fri, 8 Oct 2004 2:07 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Sun, 17 Oct 2004 12:52 PM
       Body:
Thanks Dims for your help.
This is the code snippet you requested:

        org.w3c.dom.Document wsdl=null;
        
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        {
            wsdl=(org.w3c.dom.Document) 
                    wsdlCache.get(ctx.getService().getServiceDescription().getName());
        }
        else
        {
            WSDLFactory factory=null;
            Definition def=null;
            Binding binding=null;

            ctx.setProperty("WSDL",null);
            new RPCProvider().generateWSDL(ctx);
            wsdl=(org.w3c.dom.Document) ctx.getProperty("WSDL");
            
            try
            {
                factory=WSDLFactoryImpl.newInstance();
                def=factory.newWSDLReader().readWSDL(null,wsdl);
                .......

I don't know the flag you are talking about.
Let me know.
Thanks,

Sergio B.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_54268

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Sun, 17 Oct 2004 12:52 PM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Jayachandra Sekhara Rao Sunkara
    Created: Fri, 8 Oct 2004 2:38 AM
       Body:
Hi Sergio!
Could you once go through the following check-list of items on your side

(i)Can you cross check the jar versions in your classpath and the one you deployed in Tomcat's web-inf/lib directory. And if you are running the program in an IDE the jar that is present in the project's class-path. Different run-time and compile-time jar versions can lead to this error.
AND/OR
(ii)Just once check if happyaxis.jsp is really happy before querying in the browser for any wsdl
AND/OR
(iii)If you compiled the whole of axis source after writing your own handler see if you dumped servlet-api.jar and activation.jar in the lib folder before compiling and getting the fresh axis.jar

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53838

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Fri, 8 Oct 2004 2:38 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Sergio Bossa
    Created: Fri, 8 Oct 2004 5:35 AM
       Body:
Hello Jayachandra,

thank you for your suggestions.
I checked all your hints:

(i) I develop my web application with the NetBeans IDE 3.6 and deploy it into the embedded Tomcat: all Axis jars in the web-inf/lib directory come from the 1.2RC1 version; I tried to deploy the application into an external Tomcat, too, but nothing works. And I use the same jar files during compiling and deploying.

(ii) happyaxis said me that all needed and optional component are installed.

(iii) I haven't compiled Axis, I use the binary distribution: should I compile it? Why? This wasn't necessary in previous versions.

So, i was not able to solve the problem.
It's very critical, preventing me to use the new 1.2 version because I NEED to manipulate the WSDL.
Any further suggestion?
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53844

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Fri, 8 Oct 2004 5:35 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (AXIS-1595) Bug in generateWSDL() method.

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Thu, 7 Oct 2004 11:30 AM
       Body:
please post a stack trace.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1595?page=comments#action_53815

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1595

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1595
    Summary: Bug in generateWSDL() method.
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2RC1

   Assignee: 
   Reporter: Sergio Bossa

    Created: Thu, 7 Oct 2004 10:41 AM
    Updated: Thu, 7 Oct 2004 11:30 AM
Environment: JDK 1.4.2_04-b05
Tomcat 5.0.19 / 5.0.25
Linux

Description:
When I override the generateWSDL() method in my handlers, in order to modify the automatically generated WSDL, I get a java.lang.reflect.InvocationTargetException caused by a java.lang.IncompatibleClassChangeError.
This is a code snippet from my handler:

public class RemoteWSDLHook extends BasicHandler
{
    private Map wsdlCache;
    
    public void init()
    {
        super.init();
        
        wsdlCache=Collections.synchronizedMap(new HashMap());
    }
    
    public void invoke(MessageContext ctx)
    {}
    
    public void generateWSDL(MessageContext ctx)
    throws AxisFault
    {
        if (wsdlCache.containsKey(ctx.getService().getServiceDescription().getName()))
        ...
    ...

The exception is thrown in the if clause.
The same code works fine with Axis 1.1 version.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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