Bug 1138605 - Exception not thrown when remote SCA fails while unmarshalling object
Summary: Exception not thrown when remote SCA fails while unmarshalling object
Keywords:
Status: MODIFIED
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: DR4
: 6.1.0
Assignee: Tomohisa Igarashi
QA Contact: Matej Melko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-05 09:53 UTC by Martin Swiech
Modified: 2021-10-15 11:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-2416 0 Major Open Exception not thrown when remote SCA fails while unmarshalling object 2014-10-21 18:02:44 UTC

Description Martin Swiech 2014-09-05 09:53:00 UTC
Description of problem:
Remote SCA service is called with null object instead of throw exception. In case when unmarhalling input object fails.

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

How reproducible:
always

Steps to Reproduce:
1. Create some POJO class without default public contructor and use it as input parameter to remote Switchyard SCA service (using Java interface). 
2. Call this remote service (using HttpInvoker) with some not null input object.

Actual results:
Service is called with null parameter.

Expected results:
Some exception is thown about problematic POJO class (missing default constructor).

Comment 1 Martin Swiech 2014-09-05 10:14:30 UTC
Description of problem:
Remote SCA service is executed with null object instead of throw exception. In case when unmarhalling input object fails.

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

How reproducible:
always

Steps to Reproduce:
1. Create some POJO class without default public contructor and use it as input parameter to remote Switchyard SCA service (using Java interface). 
2. Call this remote service (using HttpInvoker) with some not null input object.

Actual results:
Service is executed with null parameter.

Expected results:
Some exception is thown about problematic POJO class (missing default constructor).

Comment 3 David Ward 2014-10-29 20:39:47 UTC
This is expected behavior.  The object should have a not-null constructor, as per the javabeans specification.  Please see my detailed notes on the attached jira: https://issues.jboss.org/browse/SWITCHYARD-2416

Comment 4 David Ward 2014-10-29 20:41:02 UTC
I meant it needs to have a default, empty constructor. (I didn't mean "not-null", sorry...)


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