Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 997 - When we invoke Jacorb service, we are able to get into the service but the InputParam(list of objects) are null.empty
Summary: When we invoke Jacorb service, we are able to get into the service but the In...
Status: RESOLVED INVALID
Alias: None
Product: JacORB
Classification: Unclassified
Component: ORB (show other bugs)
Version: 2.3.1
Hardware: PC Linux
: P5 blocker
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2014-11-07 01:18 UTC by bharadwaj
Modified: 2014-12-03 03:46 UTC (History)
1 user (show)

See Also:


Attachments
corbaServiceIDL (841 bytes, text/plain)
2014-11-11 03:47 UTC, bharadwaj
Details
corbaService input params IDL (1.67 KB, text/plain)
2014-11-11 03:48 UTC, bharadwaj
Details
CorbaServiceImpl class (4.26 KB, text/plain)
2014-11-11 03:52 UTC, bharadwaj
Details
CorbaServiceTest (3.44 KB, text/plain)
2014-11-12 01:57 UTC, bharadwaj
Details
Corba service test case (3.42 KB, text/plain)
2014-11-12 02:05 UTC, bharadwaj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bharadwaj 2014-11-07 01:18:41 UTC
We set the inputparam's(input) and other String and shot param's as an input to the jacorb service , in the service we are able to get the single param's like string and short but inputparam's(list of objects) object is null/ empty.

But the same inputParam's(output) we are using it for response and we are getting the response output without any problem.
We feel it's some marshaling issue in case of input. It's blocker for our flow because based on inputparam(input) set, we are navigating to the other service to update the same.

Note:the same inputparams set(input) is working in sub corba implementation. 

Could you please help on this. it's very urgent.
Comment 1 Nick Cross 2014-11-07 03:27:55 UTC
Please provide a test case (or modify one of the existing tests/demos) to demonstrate the problem.

Do you have any debug logs? Code? (including IDL) ?
Comment 2 bharadwaj 2014-11-10 01:16:39 UTC
(In reply to bharadwaj from comment #0)
> We set the inputparam's(input) and other String and shot param's as an input
> to the jacorb service , in the service we are able to get the single param's
> like string and short but inputparam's(list of objects) object is null/
> empty.
> 
> But the same inputParam's(output) we are using it for response and we are
> getting the response output without any problem.
> We feel it's some marshaling issue in case of input. It's blocker for our
> flow because based on inputparam(input) set, we are navigating to the other
> service to update the same.
> 
> Note:the same inputparams set(input) is working in sun Corba implementation. 
> 
> Could you please help on this. it's very urgent.
Comment 3 Nick Cross 2014-11-10 03:17:33 UTC
Did you mean to copy and paste your first comment?!
Comment 4 bharadwaj 2014-11-11 03:47:25 UTC
Created attachment 446 [details]
corbaServiceIDL
Comment 5 bharadwaj 2014-11-11 03:48:03 UTC
Created attachment 447 [details]
corbaService input params IDL
Comment 6 bharadwaj 2014-11-11 03:52:01 UTC
Created attachment 448 [details]
CorbaServiceImpl class
Comment 7 bharadwaj 2014-11-11 03:54:08 UTC
Hi Nick,

I have attached the IDL's and implementation for the same.

Please help!!
Comment 8 Nick Cross 2014-11-11 04:18:08 UTC
Can you provide a working standalone test case?
Comment 9 Nick Cross 2014-11-11 04:38:28 UTC
And do you have debug logging demonstrating the issue?
Comment 10 bharadwaj 2014-11-11 04:51:33 UTC
There is no issue in debug level : if u see the IMPL class , line no' 52 it's logging as size 0.
Comment 11 Nick Cross 2014-11-11 04:57:17 UTC
I meant JacORB debugging not yours. A test case demonstrating the issue would be incredibly useful to show the problem.
Comment 12 bharadwaj 2014-11-11 05:20:41 UTC
for jacorb , i dont have any test case. i use UCSV corba simulator to test the service.
but for sun corba i have junit test case.
Comment 13 bharadwaj 2014-11-11 05:35:09 UTC
Shall i share the Sun corba test case, working one?
Comment 14 Nick Cross 2014-11-11 05:52:02 UTC
If its a standalone test case (even one invoked by junit) it should be able to be used with JacORB as well. 
Are you saying you haven't actually used JacORB but just used a simulator ?
Comment 15 bharadwaj 2014-11-11 06:04:17 UTC
Basically we have two types of corba services which uses same code. Sun and jacorb
Jacorb corba service is running in the remote server, to test this jacorb corba service we use Simulator to invoke the service.
We are not sure how to use Jcorb junit test case .
Comment 16 Nick Cross 2014-11-11 06:12:20 UTC
Ok. Can you please provide a client / server test case, even if its for the Oracle ORB that demonstrates your scenario?
Comment 17 bharadwaj 2014-11-12 01:57:25 UTC
Created attachment 449 [details]
CorbaServiceTest

Corbaservice sun/oracle orb based test case
Comment 18 bharadwaj 2014-11-12 02:05:54 UTC
Created attachment 450 [details]
Corba service test case

Sun/orfacle orb based corba test case
Comment 19 Nick Cross 2014-11-14 07:11:34 UTC
Looking at your Oracle test case there doesn't appear to be anything in it that is particularly specific - so I would think you could adapt it to run JacORB instead.

If you can produce both a client *and* a server side to demonstrate the issue it would be helpful. 

Can you clarify - is your remote server running on JacORB or on Oracle ORB? And you use either an Oracle client or a JacORB client ? 

Can you test without using the simulator ? 

Without useful debugging information there is little that appears obviously wrong.
Comment 20 bharadwaj 2014-11-15 04:11:22 UTC
The remote server running on jacorb , and we dont have jacorb based client/test case. so we use only simulator. 
If you could provide us some sort of jacorb client/test(example) case like whatever we have it for sun/oracle corba based client . We would do test that as well.
Comment 21 Nick Cross 2014-11-15 09:45:35 UTC
Your Oracle client should be easily able to run using the JacORB ORB. There are also plenty of demos and unit tests in the JacORB distribution.
Comment 22 Nick Cross 2014-12-03 03:46:07 UTC
I am unable to reproduce a problem.

I am closing this; if you can still reproduce an issue please reopen and retest with the current version (3.5) and without the corba simulator (in case there is a bug in that).