Bug 969592 - SY quickstart remote-invoker - applicant name is null
Summary: SY quickstart remote-invoker - applicant name is null
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Examples
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR6
: 6.0.0
Assignee: Keith Babo
QA Contact: Jiri Sedlacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-31 20:42 UTC by Matt Davis
Modified: 2015-08-02 23:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Users encountered errors with the remote-invoker quickstart in previous versions. When attempting to run this quickstart, the system receives null details instead of the applicant name. This resulted in incorrect approval messages. This has been fixed in the current version and the quickstart runs as expected.
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1343 0 Major Closed tweak JSON serialization to recognize javabean setters with return values 2014-06-17 00:24:06 UTC

Description Matt Davis 2013-05-31 20:42:07 UTC
Description of problem:
Run the remote-invoker quick start and the application is approved, but null is returned to system out instead of John Smith :
[stdout] (http-localhost/127.0.0.1:8080-2) Approving credit for null

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Build and deploy remote-invoker quickstart, then run - mvn exec:java
2. Look at the corresponding entry in the server.log file
3.

Actual results:
Approving credit for null

Expected results:
Approving credit for John Smith

Additional info:

Comment 1 Keith Babo 2013-06-03 00:43:18 UTC
This is a mistake in the quickstart as it relies on JSON serialization recognizing non-void return methods as setters, but that is not present in 0.8.x :
https://issues.jboss.org/browse/SWITCHYARD-1343

It is, however, present in 1.0.  I have tested this qs in a 1.0 build and the console output is correct.  If you want to work around the issue in a 0.8 build (SOA-P 6 Alpha), then change the setName() method in Application to look like this:

public void setName(String name) {
   this.name = name;
}

Comment 3 Jiri Sedlacek 2013-07-01 11:09:31 UTC
verified in DR6

Comment 7 JBoss JIRA Server 2014-06-16 23:48:30 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1343 to Closed


Note You need to log in before you can comment on or make changes to this bug.