I started from scratch and I am not hitting with the following exception, any 
idea what might be going on?

Text in the console:
Dec 6, 2007 10:41:11 AM org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
java.lang.IllegalArgumentException: Can't handle mixed payloads betweem 
OMElements and other types.
    at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.createOperationClient(Axis2BindingInvoker.java:128)
    at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:93)
    at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:75)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
    at $Proxy6.getQuote(Unknown Source)
    at stockquote.StockQuoteServiceImpl.getQuotes(StockQuoteServiceImpl.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
    at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:49)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
    at $Proxy5.getQuotes(Unknown Source)
    at test.StockClient.main(StockClient.java:20)
Exception in thread "main" java.rmi.RemoteException: 
java.lang.IllegalArgumentExceptionCan't handle mixed payloads betweem 
OMElements and other types.; nested exception is: 
    java.lang.IllegalArgumentException: Can't handle mixed payloads betweem 
OMElements and other types.
    at 
stockquote.StockQuoteServiceImpl.getQuotes(StockQuoteServiceImpl.java:118)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
    at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:49)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
    at $Proxy5.getQuotes(Unknown Source)
    at test.StockClient.main(StockClient.java:20)
Caused by: java.lang.IllegalArgumentException: Can't handle mixed payloads 
betweem OMElements and other types.
    at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.createOperationClient(Axis2BindingInvoker.java:128)
    at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:93)
    at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:75)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
    at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
    at $Proxy6.getQuote(Unknown Source)
    at stockquote.StockQuoteServiceImpl.getQuotes(StockQuoteServiceImpl.java:66)
    ... 10 more

Raymond Feng <[EMAIL PROTECTED]> wrote: Hi,

It seems that the component business logic ran into a RemoteException and the 
Tuscany runtime doesn't know how to map it to a fault for the Web Service. The 
bad news is that we don't dump the orginal exception in this case. The error 
handling could be improved. 

I suggest you look into the component implementation code to figure out what's 
behind the exception.

Thanks,
Raymond
  ----- Original Message ----- 
  From: Mahi 
  To: [email protected] 
  Sent: Monday, December 03, 2007 1:58 PM
  Subject: [jira] Problems calling the real stock quote


  Driver: apache-tuscany-sca-1.0.1-incubating-src

  I am trying to invoke the live stock service that was used in older (m1 ans 
m2) drivers.  I have attached the WSDL file. I have tested this web service in 
Web Services Explorer in RAD, and it works.

  I am pasting code followed by the exception when I run it.
  Stockquote.composite
  
  
             xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance";         
             name="StockQuoteWS">
      
          
              
          
                  
          
              
                  wsdli:wsdlLocation="http://www.webserviceX.NET/ 
wsdl/stockquote.wsdl" />
              
                  location="wsdl/stockquote.wsdl" />       
                 
  

  StockQuoteServiceImpl.java:
  public class StockQuoteServiceImpl implements StockQuoteService {

      StockQuoteSoap stockQuoteService = null; // Injected by the SCA container.
      
      @Constructor
      public StockQuoteServiceImpl(@Reference(name = "stockQuoteService", 
required = true)
              StockQuoteSoap stockQuoteService) {
          this.stockQuoteService = stockQuoteService;
      }
       
      /**
       * @throws RemoteException
       */
      public Map getQuotes(final String[] symbols) throws RemoteException {
          try {
              if (stockQuoteService == null)
                  System.out.println("stockQuoteService was not set by the SCA 
runtime!");
  ....
  ....


  StockClient.java that I am using to test:
  public class StockClient {
      public static void main(String[] args) throws Exception {

          SCADomain scaDomain = SCADomain.newInstance("stockquote.composite");
          
          StockQuoteService stockQuoteService = 
              scaDomain.getService(StockQuoteService.class, 
"StockQuoteServiceComponent");
          
          String[] stocks = {"IBM"};
          
          System.out.println(stockQuoteService.getQuotes(stocks));       
          
          scaDomain.close();
      }

  }

  The following is the exception I am getting running the client:
  org.apache.tuscany.sca.databinding.TransformationException: Target fault type 
cannot be resolved: class java.rmi.RemoteException 
org.apache.axiom.om.OMElement Element: {http://stockquote/}RemoteException 
Type: null
      at 
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:126)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
      at $Proxy6.getQuote(Unknown Source)
      at 
stockquote.StockQuoteServiceImpl.getQuotes(StockQuoteServiceImpl.java:64)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
      at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:49)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
      at $Proxy5.getQuotes(Unknown Source)
      at test.StockClient.main(StockClient.java:20)
  Exception in thread "main" java.rmi.RemoteException: 
org.apache.tuscany.sca.databinding.TransformationExceptionTarget fault type 
cannot be resolved: class java.rmi.RemoteException 
org.apache.axiom.om.OMElement Element: {http://stockquote/}RemoteException 
Type: null; nested exception is: 
      org.apache.tuscany.sca.databinding.TransformationException: Target fault 
type cannot be resolved: class java.rmi.RemoteException 
org.apache.axiom.om.OMElement Element: {http://stockquote/}RemoteException 
Type: null
      at 
stockquote.StockQuoteServiceImpl.getQuotes(StockQuoteServiceImpl.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
      at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:49)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
      at $Proxy5.getQuotes(Unknown Source)
      at test.StockClient.main(StockClient.java:20)
  Caused by: org.apache.tuscany.sca.databinding.TransformationException: Target 
fault type cannot be resolved: class java.rmi.RemoteException 
org.apache.axiom.om.OMElement Element: {http://stockquote/}RemoteException 
Type: null
      at 
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:126)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
      at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
      at $Proxy6.getQuote(Unknown Source)
      at 
stockquote.StockQuoteServiceImpl.getQuotes(StockQuoteServiceImpl.java:64)
      ... 10 more

  Any thoughts?

  Thanks


  Mahi

  "You must be the change you wish to see in the world" -- Mahatma Gandhi.


------------------------------------------------------------------------------
  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


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


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


"You must be the change you wish to see in the world" -- Mahatma Gandhi.
       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Reply via email to