Re: Handling collections with Aegis in JAX-RS

2009-09-06 Thread Sergey Beryozkin
-collections-with-Aegis-in-JAX-RS-tp24933144p25076146.html
  Sent from the cxf-dev mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25115676.html
 Sent from the cxf-dev mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25322525.html
Sent from the cxf-dev mailing list archive at Nabble.com.



Re: Handling collections with Aegis in JAX-RS

2009-09-05 Thread Benson Margulies
Sergey,

I've made it as far as the namespace issues with JSON, since the changes
I've made to deal with generic types have made them worse.

There's something here that I just don't follow.

When the output is XML, all the namespaces just take care of themselves.
Aegis assigns prefixes and StaX writes them. Admittedly, if Aegis ever
forgot to assign a prefix StaX would just go add an xmlns=, but I don't
(yet) think that this is something that happens.

Do you have any idea why the JSON environment ends up being so much more
fussy?

--benson


On Mon, Aug 24, 2009 at 8:58 AM, Sergey Beryozkin sergey.beryoz...@iona.com
 wrote:


 Hi Benson

 Thanks for spending your time on these tests, and fixing CXF 2401. I was
 also able to add few more tests, including the one which writes/reads a
 complex Map to/from JSON.

 AegisJSONProvider tries its best for users to avoid setting up a namespace
 map manually, but in cases when it does not guess properly the users would
 be able to overwrite namespaces and their prefixes as needed. This isssue
 would likely arise on the read side only, when CXF reads it. JSON is
 namespace-unaware so when reading, one needs to setup a namespace map for
 Jettison to report values like @ns1.bar to the JAXB reader... (but only if
 AegisJSONProvider has not guessed how to map prefixes to namespaces)

 There's a couple of issues I'd like to discuss. First one is that
 AegisJsonProviderTest.testReadWriteComplexMap does have to setup a
 namespace
 for a map root element, but it does not have to do it for
 testWrite/ReadCollection tests. I'm wondering, can it be avoided in cases
 when Maps are being written/read ? That is, can we modify
 createReader/Writer methods such that QNames for containers like
 Map/Collections and its member types are available ?

 Another one is that DataBindingJSONProvider test (aegis tests) still can
 not
 handle collections. I think the problem there is that when
 DataBindingProvider (the one DataBindingJSONProvider extends) is being
 initialized, it uses a workaround which we discussed in the other thread.
 Namely, it attempts to convert a JAXRS model info into WSDL-like one and
 set
 calls DataBinding.initialize(Service). It's quite limiting for a number of
 reasons, and one of them is that the generic types are not visible to data
 bindings
 So we introduced PropertiesAwareDataBinding interface and I've just updated
 the JAXRS code to call it like this :

 MapClass?, Type allClasses = getAllJAXRSResponseInputTypes();
 MapString, Object props = new HashMapString, Object();
 props.put(PropertiesAwareDataBinding.TYPES_PROPERTY, allClasses);
 ((PropertiesAwareDataBinding)db).initialize(props);

 At the moment no CXF DataBindings implement this newly introduced
 interface.
 I think the only way for  DataBindingJSONProvider aegis tests which handle
 collections to start passing is for Aegis DataBinding to implement
 PropertiesAwareDataBinding and initialize itself using the provided
 MapClass?, Type, as opposed to Service. Would you be open to updating
 the Aegis databinding ?

 thanks, Sergey











 bimargulies wrote:
 
  I have a rather clear memory of working on these, there wasn't enough
  passing of Generic classes around. I'll go have a look.
 
 
  On Fri, Aug 21, 2009 at 6:38 AM, Sergey
  Beryozkinsergey.beryoz...@iona.com wrote:
 
  Hi Benson
 
  if you could look at any of these tests or at least point me in the
 right
  direction then it would be great.
  I know you're busy - so just look at it whenever you get a chance, not
  urgent...
 
  cheers, Sergey
 
 
  Sergey Beryozkin-2 wrote:
 
 
 
  Hi Benson
 
  I can't make the Aegis tests writing/reading collections working in CXF
  JAX-RS.
  I've found that AegisProviderTest#testReadWriteComplexMap is still
  @Ignored, it might've passed for you because it was @Ignored :-)
 
  I've also added testWriteCollections() (which writes
  ListAegisTestBean)
  to AegisJSONProviderTest. I also updated DataBindingJSONProviderTest,
  one
  of its internal classes to return ListBook. AegisJSONProvider extends
  AegisElementProvider, DataBindingJSONProvider extends
  DataBindingProvider
  which actually (in this case) delegates to Aegis DataBinding.
 
  AegisJSONProviderTest fails at the write time, it can't find the
 mapping
  for List. DataBindingJSONProviderTest fails early at the Aegis
  DataBinding
  initialization time for the same reason. I thought Lists were supported
  by
  default ? I haven't found any exam[le showing how a type mapping for
  Lists
  can be created.
  Can you please, whenever you have a chance, have a look at these tests
 ?
 
  thanks, Sergey
 
 
 
  --
  View this message in context:
 
 http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25076146.html
  Sent from the cxf-dev mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25115676.html
 Sent from the cxf

Re: Handling collections with Aegis in JAX-RS

2009-08-31 Thread Benson Margulies
Sergey,

If you want to me to tackle PADB  for Aegis, you have a writing
assignment.  Please write up a comprehensive explanation in the
javadoc. Just calling it an 'alternative' does not give an implementor
much to go with.

I think the top-level issue with namespaces is going to boil down to
the existence, or nonexistence, of 'parts', but I'll report back
presently.

--benson

On Mon, Aug 24, 2009 at 8:58 AM, Sergey
Beryozkinsergey.beryoz...@iona.com wrote:

 Hi Benson

 Thanks for spending your time on these tests, and fixing CXF 2401. I was
 also able to add few more tests, including the one which writes/reads a
 complex Map to/from JSON.

 AegisJSONProvider tries its best for users to avoid setting up a namespace
 map manually, but in cases when it does not guess properly the users would
 be able to overwrite namespaces and their prefixes as needed. This isssue
 would likely arise on the read side only, when CXF reads it. JSON is
 namespace-unaware so when reading, one needs to setup a namespace map for
 Jettison to report values like @ns1.bar to the JAXB reader... (but only if
 AegisJSONProvider has not guessed how to map prefixes to namespaces)

 There's a couple of issues I'd like to discuss. First one is that
 AegisJsonProviderTest.testReadWriteComplexMap does have to setup a namespace
 for a map root element, but it does not have to do it for
 testWrite/ReadCollection tests. I'm wondering, can it be avoided in cases
 when Maps are being written/read ? That is, can we modify
 createReader/Writer methods such that QNames for containers like
 Map/Collections and its member types are available ?

 Another one is that DataBindingJSONProvider test (aegis tests) still can not
 handle collections. I think the problem there is that when
 DataBindingProvider (the one DataBindingJSONProvider extends) is being
 initialized, it uses a workaround which we discussed in the other thread.
 Namely, it attempts to convert a JAXRS model info into WSDL-like one and set
 calls DataBinding.initialize(Service). It's quite limiting for a number of
 reasons, and one of them is that the generic types are not visible to data
 bindings
 So we introduced PropertiesAwareDataBinding interface and I've just updated
 the JAXRS code to call it like this :

 MapClass?, Type allClasses = getAllJAXRSResponseInputTypes();
 MapString, Object props = new HashMapString, Object();
 props.put(PropertiesAwareDataBinding.TYPES_PROPERTY, allClasses);
 ((PropertiesAwareDataBinding)db).initialize(props);

 At the moment no CXF DataBindings implement this newly introduced interface.
 I think the only way for  DataBindingJSONProvider aegis tests which handle
 collections to start passing is for Aegis DataBinding to implement
 PropertiesAwareDataBinding and initialize itself using the provided
 MapClass?, Type, as opposed to Service. Would you be open to updating
 the Aegis databinding ?

 thanks, Sergey











 bimargulies wrote:

 I have a rather clear memory of working on these, there wasn't enough
 passing of Generic classes around. I'll go have a look.


 On Fri, Aug 21, 2009 at 6:38 AM, Sergey
 Beryozkinsergey.beryoz...@iona.com wrote:

 Hi Benson

 if you could look at any of these tests or at least point me in the right
 direction then it would be great.
 I know you're busy - so just look at it whenever you get a chance, not
 urgent...

 cheers, Sergey


 Sergey Beryozkin-2 wrote:



 Hi Benson

 I can't make the Aegis tests writing/reading collections working in CXF
 JAX-RS.
 I've found that AegisProviderTest#testReadWriteComplexMap is still
 @Ignored, it might've passed for you because it was @Ignored :-)

 I've also added testWriteCollections() (which writes
 ListAegisTestBean)
 to AegisJSONProviderTest. I also updated DataBindingJSONProviderTest,
 one
 of its internal classes to return ListBook. AegisJSONProvider extends
 AegisElementProvider, DataBindingJSONProvider extends
 DataBindingProvider
 which actually (in this case) delegates to Aegis DataBinding.

 AegisJSONProviderTest fails at the write time, it can't find the mapping
 for List. DataBindingJSONProviderTest fails early at the Aegis
 DataBinding
 initialization time for the same reason. I thought Lists were supported
 by
 default ? I haven't found any exam[le showing how a type mapping for
 Lists
 can be created.
 Can you please, whenever you have a chance, have a look at these tests ?

 thanks, Sergey



 --
 View this message in context:
 http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25076146.html
 Sent from the cxf-dev mailing list archive at Nabble.com.





 --
 View this message in context: 
 http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25115676.html
 Sent from the cxf-dev mailing list archive at Nabble.com.




Re: Handling collections with Aegis in JAX-RS

2009-08-31 Thread Benson Margulies
, whenever you have a chance, have a look at these tests
?

 thanks, Sergey



 --
 View this message in context:

http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25076146.html
 Sent from the cxf-dev mailing list archive at Nabble.com.





 --
 View this message in context:
http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25115676.html
 Sent from the cxf-dev mailing list archive at Nabble.com.




Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread Benson Margulies
Sergey,

You have to be kidding me. The test (testReadWriteComplexMap) writes a
plain bean and then expects to read a map. Of course if fails!

--benson


On Fri, Aug 21, 2009 at 6:38 AM, Sergey
Beryozkinsergey.beryoz...@iona.com wrote:

 Hi Benson

 if you could look at any of these tests or at least point me in the right
 direction then it would be great.
 I know you're busy - so just look at it whenever you get a chance, not
 urgent...

 cheers, Sergey


 Sergey Beryozkin-2 wrote:



 Hi Benson

 I can't make the Aegis tests writing/reading collections working in CXF
 JAX-RS.
 I've found that AegisProviderTest#testReadWriteComplexMap is still
 @Ignored, it might've passed for you because it was @Ignored :-)

 I've also added testWriteCollections() (which writes ListAegisTestBean)
 to AegisJSONProviderTest. I also updated DataBindingJSONProviderTest, one
 of its internal classes to return ListBook. AegisJSONProvider extends
 AegisElementProvider, DataBindingJSONProvider extends DataBindingProvider
 which actually (in this case) delegates to Aegis DataBinding.

 AegisJSONProviderTest fails at the write time, it can't find the mapping
 for List. DataBindingJSONProviderTest fails early at the Aegis DataBinding
 initialization time for the same reason. I thought Lists were supported by
 default ? I haven't found any exam[le showing how a type mapping for Lists
 can be created.
 Can you please, whenever you have a chance, have a look at these tests ?

 thanks, Sergey



 --
 View this message in context: 
 http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25076146.html
 Sent from the cxf-dev mailing list archive at Nabble.com.




Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread Sergey Beryozkin

Hi Benson

As far as I remember writing a map (that is fixing the code) won't make a difference, I tried it when I spotted this test was still 
ignored...



cheers, Sergey

- Original Message - 
From: Benson Margulies bimargul...@gmail.com

To: dev@cxf.apache.org
Sent: Friday, August 21, 2009 1:34 PM
Subject: Re: Handling collections with Aegis in JAX-RS



Sergey,

You have to be kidding me. The test (testReadWriteComplexMap) writes a
plain bean and then expects to read a map. Of course if fails!

--benson


On Fri, Aug 21, 2009 at 6:38 AM, Sergey
Beryozkinsergey.beryoz...@iona.com wrote:


Hi Benson

if you could look at any of these tests or at least point me in the right
direction then it would be great.
I know you're busy - so just look at it whenever you get a chance, not
urgent...

cheers, Sergey


Sergey Beryozkin-2 wrote:




Hi Benson

I can't make the Aegis tests writing/reading collections working in CXF
JAX-RS.
I've found that AegisProviderTest#testReadWriteComplexMap is still
@Ignored, it might've passed for you because it was @Ignored :-)

I've also added testWriteCollections() (which writes ListAegisTestBean)
to AegisJSONProviderTest. I also updated DataBindingJSONProviderTest, one
of its internal classes to return ListBook. AegisJSONProvider extends
AegisElementProvider, DataBindingJSONProvider extends DataBindingProvider
which actually (in this case) delegates to Aegis DataBinding.

AegisJSONProviderTest fails at the write time, it can't find the mapping
for List. DataBindingJSONProviderTest fails early at the Aegis DataBinding
initialization time for the same reason. I thought Lists were supported by
default ? I haven't found any exam[le showing how a type mapping for Lists
can be created.
Can you please, whenever you have a chance, have a look at these tests ?

thanks, Sergey




--
View this message in context: 
http://www.nabble.com/Handling-collections-with-Aegis-in-JAX-RS-tp24933144p25076146.html
Sent from the cxf-dev mailing list archive at Nabble.com.






Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread Sergey Beryozkin

Hi Benson

I'm seeing all the Aegis write tests failing at the momentOr is it only me ?

cheers, Sergey

- Original Message - 
From: Benson Margulies bimargul...@gmail.com

To: dev@cxf.apache.org
Sent: Friday, August 21, 2009 5:00 PM
Subject: Re: Handling collections with Aegis in JAX-RS



All fixed now.

I finally remembered the history of this. When you first inveigled me
into working up the Aegis provider, I got as far as this test, and
sent you email saying, 'OK, you fix the test, and I'll work out the
rest of the kinks.' And then if you even fixed up the test I missed
the email, so I never went back to it.


Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread Sergey Beryozkin

I'm confused... Hudson has apparently run the build with your changes - I'll do 
the clean build

cheers, Sergey

- Original Message - 
From: Sergey Beryozkin sbery...@progress.com

To: dev@cxf.apache.org
Sent: Friday, August 21, 2009 6:19 PM
Subject: Re: Handling collections with Aegis in JAX-RS



Hmm...

Still seeing them - Hudson has not run the build yet with the latest changes
I've done 'mvn clean install' on rt/databinding/aegis and rt/frontend/jaxrs...

By the way, I mean Aegis JAXRS tests

cheers, Sergey

- Original Message - 
From: Benson Margulies bimargul...@gmail.com

To: dev@cxf.apache.org
Sent: Friday, August 21, 2009 5:52 PM
Subject: Re: Handling collections with Aegis in JAX-RS



It appears to be you. I ran mvn in rt/databinding/aegis again, and
still no hate mail from hudson as well.

On Fri, Aug 21, 2009 at 12:39 PM, Sergey Beryozkinsbery...@progress.com wrote:

Hi Benson

I'm seeing all the Aegis write tests failing at the momentOr is it only
me ?

cheers, Sergey

- Original Message - From: Benson Margulies
bimargul...@gmail.com
To: dev@cxf.apache.org
Sent: Friday, August 21, 2009 5:00 PM
Subject: Re: Handling collections with Aegis in JAX-RS



All fixed now.

I finally remembered the history of this. When you first inveigled me
into working up the Aegis provider, I got as far as this test, and
sent you email saying, 'OK, you fix the test, and I'll work out the
rest of the kinks.' And then if you even fixed up the test I missed
the email, so I never went back to it.




Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread D G

You are a funny man Benson - do you mind if I ask where you are located?



On Aug 21, 2009, at 2:14 PM, Benson Margulies bimargul...@gmail.com  
wrote:



I are at whole foods with iPhone - will engage when I get home.

On Aug 21, 2009, at 1:28 PM, Sergey Beryozkin  
sbery...@progress.com wrote:



This one

testWriteTo(org.apache.cxf.jaxrs.provider.AegisProviderTest)

also fails

Hudson provides some strange info
http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/

shows that Benson's changes has made it into the build but

http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/org.apache.cxf$cxf-rt-frontend-jaxrs/

shows that no changes has been applied

Sergey



- Original Message - From: Daniel Kulp dk...@apache.org
To: dev@cxf.apache.org
Cc: Benson Margulies bimargul...@gmail.com
Sent: Friday, August 21, 2009 6:22 PM
Subject: Re: Handling collections with Aegis in JAX-RS



On Fri August 21 2009 12:52:32 pm Benson Margulies wrote:

It appears to be you. I ran mvn in rt/databinding/aegis again, and
still no hate mail from hudson as well.
No.  He's refering to the  
org.apache.cxf.jaxrs.provider.AegisJSONProviderTest

in the jaxrs frontend.
Dan
On Fri, Aug 21, 2009 at 12:39 PM, Sergey Beryozkinsbery...@progress.com 


wrote:

 Hi Benson

 I'm seeing all the Aegis write tests failing at the  
momentOr is it

 only me ?

 cheers, Sergey

 - Original Message - From: Benson Margulies
 bimargul...@gmail.com
 To: dev@cxf.apache.org
 Sent: Friday, August 21, 2009 5:00 PM
 Subject: Re: Handling collections with Aegis in JAX-RS

 All fixed now.

 I finally remembered the history of this. When you first  
inveigled me
 into working up the Aegis provider, I got as far as this test,  
and
 sent you email saying, 'OK, you fix the test, and I'll work  
out the
 rest of the kinks.' And then if you even fixed up the test I  
missed

 the email, so I never went back to it.

--
Daniel Kulp
dk...@apache.org
http://www.dankulp.com/blog


Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread Benson Margulies
Lexington, MA, outside of Boston.

On Fri, Aug 21, 2009 at 2:26 PM, D Gdemet...@ece.neu.edu wrote:
 You are a funny man Benson - do you mind if I ask where you are located?



 On Aug 21, 2009, at 2:14 PM, Benson Margulies bimargul...@gmail.com wrote:

 I are at whole foods with iPhone - will engage when I get home.

 On Aug 21, 2009, at 1:28 PM, Sergey Beryozkin sbery...@progress.com
 wrote:

 This one

 testWriteTo(org.apache.cxf.jaxrs.provider.AegisProviderTest)

 also fails

 Hudson provides some strange info
 http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/

 shows that Benson's changes has made it into the build but


 http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/org.apache.cxf$cxf-rt-frontend-jaxrs/

 shows that no changes has been applied

 Sergey



 - Original Message - From: Daniel Kulp dk...@apache.org
 To: dev@cxf.apache.org
 Cc: Benson Margulies bimargul...@gmail.com
 Sent: Friday, August 21, 2009 6:22 PM
 Subject: Re: Handling collections with Aegis in JAX-RS


 On Fri August 21 2009 12:52:32 pm Benson Margulies wrote:

 It appears to be you. I ran mvn in rt/databinding/aegis again, and
 still no hate mail from hudson as well.

 No.  He's refering to the
 org.apache.cxf.jaxrs.provider.AegisJSONProviderTest
 in the jaxrs frontend.
 Dan

 On Fri, Aug 21, 2009 at 12:39 PM, Sergey
 Beryozkinsbery...@progress.com

 wrote:

  Hi Benson
 
  I'm seeing all the Aegis write tests failing at the momentOr is
  it
  only me ?
 
  cheers, Sergey
 
  - Original Message - From: Benson Margulies
  bimargul...@gmail.com
  To: dev@cxf.apache.org
  Sent: Friday, August 21, 2009 5:00 PM
  Subject: Re: Handling collections with Aegis in JAX-RS
 
  All fixed now.
 
  I finally remembered the history of this. When you first inveigled
  me
  into working up the Aegis provider, I got as far as this test, and
  sent you email saying, 'OK, you fix the test, and I'll work out the
  rest of the kinks.' And then if you even fixed up the test I missed
  the email, so I never went back to it.

 --
 Daniel Kulp
 dk...@apache.org
 http://www.dankulp.com/blog



Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread Benson Margulies
We've got canned XML being checked, I'll have to recan some of it.

On Fri, Aug 21, 2009 at 1:28 PM, Sergey Beryozkinsbery...@progress.com wrote:
 This one

 testWriteTo(org.apache.cxf.jaxrs.provider.AegisProviderTest)

 also fails

 Hudson provides some strange info
 http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/

 shows that Benson's changes has made it into the build but

 http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/org.apache.cxf$cxf-rt-frontend-jaxrs/

 shows that no changes has been applied

 Sergey



 - Original Message - From: Daniel Kulp dk...@apache.org
 To: dev@cxf.apache.org
 Cc: Benson Margulies bimargul...@gmail.com
 Sent: Friday, August 21, 2009 6:22 PM
 Subject: Re: Handling collections with Aegis in JAX-RS


 On Fri August 21 2009 12:52:32 pm Benson Margulies wrote:

 It appears to be you. I ran mvn in rt/databinding/aegis again, and
 still no hate mail from hudson as well.

 No.  He's refering to the
 org.apache.cxf.jaxrs.provider.AegisJSONProviderTest
 in the jaxrs frontend.

 Dan


 On Fri, Aug 21, 2009 at 12:39 PM, Sergey Beryozkinsbery...@progress.com

 wrote:

  Hi Benson
 
  I'm seeing all the Aegis write tests failing at the momentOr is it
  only me ?
 
  cheers, Sergey
 
  - Original Message - From: Benson Margulies
  bimargul...@gmail.com
  To: dev@cxf.apache.org
  Sent: Friday, August 21, 2009 5:00 PM
  Subject: Re: Handling collections with Aegis in JAX-RS
 
  All fixed now.
 
  I finally remembered the history of this. When you first inveigled me
  into working up the Aegis provider, I got as far as this test, and
  sent you email saying, 'OK, you fix the test, and I'll work out the
  rest of the kinks.' And then if you even fixed up the test I missed
  the email, so I never went back to it.

 --
 Daniel Kulp
 dk...@apache.org
 http://www.dankulp.com/blog



Re: Handling collections with Aegis in JAX-RS

2009-08-21 Thread D G
Ha - I am in Waltham on the line of Lexington and Waltham close to  
IBM. How funny is that man.




On Aug 21, 2009, at 2:36 PM, Benson Margulies bimargul...@gmail.com  
wrote:



Lexington, MA, outside of Boston.

On Fri, Aug 21, 2009 at 2:26 PM, D Gdemet...@ece.neu.edu wrote:
You are a funny man Benson - do you mind if I ask where you are  
located?




On Aug 21, 2009, at 2:14 PM, Benson Margulies  
bimargul...@gmail.com wrote:



I are at whole foods with iPhone - will engage when I get home.

On Aug 21, 2009, at 1:28 PM, Sergey Beryozkin sbery...@progress.com 


wrote:


This one

testWriteTo(org.apache.cxf.jaxrs.provider.AegisProviderTest)

also fails

Hudson provides some strange info
http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/

shows that Benson's changes has made it into the build but


http://hudson.zones.apache.org/hudson/view/CXF/job/CXF-Trunk-JDK15/676/org.apache.cxf$cxf-rt-frontend-jaxrs/

shows that no changes has been applied

Sergey



- Original Message - From: Daniel Kulp dk...@apache.org
To: dev@cxf.apache.org
Cc: Benson Margulies bimargul...@gmail.com
Sent: Friday, August 21, 2009 6:22 PM
Subject: Re: Handling collections with Aegis in JAX-RS



On Fri August 21 2009 12:52:32 pm Benson Margulies wrote:


It appears to be you. I ran mvn in rt/databinding/aegis again,  
and

still no hate mail from hudson as well.


No.  He's refering to the
org.apache.cxf.jaxrs.provider.AegisJSONProviderTest
in the jaxrs frontend.
Dan


On Fri, Aug 21, 2009 at 12:39 PM, Sergey
Beryozkinsbery...@progress.com


wrote:



Hi Benson

I'm seeing all the Aegis write tests failing at the  
momentOr is

it
only me ?

cheers, Sergey

- Original Message - From: Benson Margulies
bimargul...@gmail.com
To: dev@cxf.apache.org
Sent: Friday, August 21, 2009 5:00 PM
Subject: Re: Handling collections with Aegis in JAX-RS


All fixed now.

I finally remembered the history of this. When you first  
inveigled

me
into working up the Aegis provider, I got as far as this  
test, and
sent you email saying, 'OK, you fix the test, and I'll work  
out the
rest of the kinks.' And then if you even fixed up the test I  
missed

the email, so I never went back to it.


--
Daniel Kulp
dk...@apache.org
http://www.dankulp.com/blog




Handling collections with Aegis in JAX-RS

2009-08-12 Thread Sergey Beryozkin


Hi Benson

I can't make the Aegis tests writing/reading collections working in CXF JAX-RS.
I've found that AegisProviderTest#testReadWriteComplexMap is still @Ignored, it 
might've passed for you because it was @Ignored :-)

I've also added testWriteCollections() (which writes ListAegisTestBean) to 
AegisJSONProviderTest. I also updated DataBindingJSONProviderTest, one of its 
internal classes to return ListBook. AegisJSONProvider extends 
AegisElementProvider, DataBindingJSONProvider extends DataBindingProvider which 
actually (in this case) delegates to Aegis DataBinding.

AegisJSONProviderTest fails at the write time, it can't find the mapping for 
List. DataBindingJSONProviderTest fails early at the Aegis DataBinding 
initialization time for the same reason. I thought Lists were supported by 
default ? I haven't found any exam[le showing how a type mapping for Lists can 
be created. 
Can you please, whenever you have a chance, have a look at these tests ?

thanks, Sergey