Tyrone Yu (JIRA) wrote:
     [ 
https://issues.apache.org/jira/browse/TUSCANY-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tyrone Yu updated TUSCANY-3640:
-------------------------------

    Attachment: CompositionService-jsp.war
                ErrorMessageWhileCallingCompositionService.txt
                ErrorMessageWhileUsingWholeTuscany2.0.M5 Library.txt

problem while using <implementation.web>
----------------------------------------

                Key: TUSCANY-3640
                URL: https://issues.apache.org/jira/browse/TUSCANY-3640
            Project: Tuscany
         Issue Type: Bug
         Components: Java SCA Web App Integration
   Affects Versions: Java-SCA-2.0-M5
        Environment: 1. Windows XP sp3
2. Eclipse 3.5.1 with WTP 3.1.1
3. Tomcat 6.0.26
4. jre6
           Reporter: Tyrone Yu
        Attachments: CompositionService-jsp.war, 
ErrorMessageWhileCallingCompositionService.txt, 
ErrorMessageWhileUsingWholeTuscany2.0.M5 Library.txt


The war file attached, I also export its source code
1. TextService.war : text web service, it combines the two input string and 
return the combined String.
** war file link: http://www.megaupload.com/?d=9I8W3GFG
2. MessageService.war : message web service, This service fetch messages on twitter. It has one method "getMessages", input (UserData, int)\, UserData contains username and password, int means the message amount we want to fetch. It returns Message[], the self-defined POJO array.
** war file link: http://www.megaupload.com/?d=7QK62D8U
3. CompositionService-jsp.war: contains the composition service that assembles the 
two services above. It also contains a <implementation.web> component that 
calls composition service and show result on jsp.
I have two questions:
1. while I deploy these above three war file, I got "java.lang.IllegalArgumentException: Argument is not an array", this message has also been attached as file "ErrorMessageWhileCallingCompositionService.txt" 2. if I change the library of CompositionService-jsp.war by the whole Tuscany 2.0.M5 jar files, I got "java.lang.NullPointerException", this message has been attached as file "ErrorMessageWhileUsingWholeTuscany2.0.M5 Library.txt" P.S. * The file size of TextService.war and MessageService.war are large because their library contain almost all Tuscany 2.0.M5 jar files.
** The lib of CompositionService-jsp.war attached was coped from 
samples\webapps\helloworld-jsp.

Tyrone,

The first error, when using just the embedded version of Tuscany, seems to indicate that the service linked by this reference did not return an Array when an array was expected:

        <reference name="messageService">
              <interface.java interface="composition.reference.MessageService" 
/>
              <binding.ws 
uri="http://localhost:8080/MessageService/TwitterMessageService"; />
        </reference>

You have not shown us the code for this service, so it is hard to tell what is 
going on.

I can suggest:

a) Getting the WSDL document for this service by getting the output of:

   http://localhost:8080/MessageService/TwitterMessageService?wsdl

b) Posting the implementation code for this TwitterMessageService

c) ...if the above look OK, then we shall need to see the Web service response message that is being returned, which may require some tool such as TCPMON being inserted into the response from the service to the reference.


Yours,  Mike.

Reply via email to