2 Replies Latest reply on Nov 5, 2007 6:27 AM by 605715

    Error processing WSDL document: java.lang.ClassCastException: java.util.Ar

    605715
      Hi
      Program is giving unpredictable behaviour.

      Am trying to consume webservice using Axis Client.

      When running as stand alone Java programs its working fine.

      But when deployed on OC4J its giving problem


      Error processing WSDL document: java.lang.ClassCastException: java.util.ArrayList

      Could you please give some hint

      Regards
      Bajarang
        • 1. Re: Error processing WSDL document: java.lang.ClassCastException: java.util
          441615
          Hi Bajarang,

          It's hard to tell the problem without the Exception Stack trace & the code snippet that the Exception Stack Trace is pointing to. Can you please post the Exception Stack Trace & the code snippet ?

          Also, you could try to lookup the Class of a Java Object like this :-
          objMyObject.getClass();
          The getClass() method of the object could help in your debugging efforts.

          Regards,
          Sandeep
          • 2. Re: Error processing WSDL document: java.lang.ClassCastException: java.util
            605715
            Here is the program

            QName serviceQN = new QName(targetNamespace,serviceName );
            System.out.println("After serviceQN "+ serviceQN);

            QName portQN = new QName( targetNamespace, portName );
            System.out.println("After port "+ portQN);
            // This Call object will be used the invocation

            Service service = new Service(implURI,serviceQN);
            System.out.println("After service "+ service);

            Call call = (Call) service.createCall();
            System.out.println("After call "+ call);
            // Now make the call...
            System.out.println("Invoking service>> " + serviceName + " <<...");

            call.setOperation(portQN,operationName);
            call.invoke( inputParams );
            System.out.println("Result returned from call to "+ serviceName+" ");


            Error while execution

            javax.xml.rpc.ServiceException: Error processing WSDL document:
            java.lang.ClassCastException: java.util.ArrayList