Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2204

helloworld-ws-sdo fails with exception, using 1.2, RC3 candidate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • Java-SCA-1.2
    • Java-SCA-1.2
    • Java SCA Samples
    • None

    Description

      ant run results in

      C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\helloworld-ws-sdo>ant run
      Buildfile: build.xml

      run:
      [java] Injected helloWorldService
      [java] Called getGreetings
      [java] Exception in thread "main" java.lang.IllegalArgumentException: Pass-
      by-value is not supported for the given object
      [java] at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBin
      ding.copy(JavaBeansDataBinding.java:102)
      [java] at org.apache.tuscany.sca.databinding.DefaultDataBindingExtensio
      nPoint$LazyDataBinding.copy(DefaultDataBindingExtensionPoint.java:171)
      [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter
      ceptor.copy(PassByValueInterceptor.java:235)
      [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter
      ceptor.copyFault(PassByValueInterceptor.java:130)
      [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter
      ceptor.invoke(PassByValueInterceptor.java:115)
      [java] at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.inv
      oke(SCABindingInvoker.java:61)
      [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter
      ceptor.invoke(PassByValueInterceptor.java:108)
      [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i
      nvoke(JDKInvocationHandler.java:286)
      [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i
      nvoke(JDKInvocationHandler.java:154)
      [java] at $Proxy5.getGreetings(Unknown Source)
      [java] at helloworld.HelloWorldClient.main(HelloWorldClient.java:39)
      [java] Caused by: java.io.NotSerializableException: org.apache.axiom.om.imp
      l.llom.OMElementImpl
      [java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.ja
      va:1081)
      [java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStr
      eam.java:1375)
      [java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream
      .java:1347)
      [java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputSt
      ream.java:1290)
      [java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.ja
      va:1079)
      [java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStr
      eam.java:1375)
      [java] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStr
      eam.java:391)
      [java] at java.lang.Throwable.writeObject(Throwable.java:649)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass
      .java:917)
      [java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream
      .java:1339)
      [java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputSt
      ream.java:1290)
      [java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.ja
      va:1079)
      [java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStr
      eam.java:1375)
      [java] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStr
      eam.java:391)
      [java] at java.lang.Throwable.writeObject(Throwable.java:649)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass
      .java:917)
      [java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream
      .java:1339)
      [java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputSt
      ream.java:1290)
      [java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.ja
      va:1079)
      [java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav
      a:302)
      [java] at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBin
      ding.copy(JavaBeansDataBinding.java:71)
      [java] ... 10 more
      [java] Java Result: 1

      BUILD SUCCESSFUL
      Total time: 5 seconds
      C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\helloworld-ws-sdo>

      Attachments

        Activity

          People

            Unassigned Unassigned
            hmahbod Haleh Mahbod
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: