[JBoss JIRA] Created: (JBXB-116) When unmarshalling a repeating element which is a subclass of the declared type, in some cases only the last elmeent is stored in java object
by Karen Lease (JIRA)
When unmarshalling a repeating element which is a subclass of the declared type, in some cases only the last elmeent is stored in java object
---------------------------------------------------------------------------------------------------------------------------------------------
Key: JBXB-116
URL: http://jira.jboss.com/jira/browse/JBXB-116
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-1.0.0.CR11
Environment: Windows XP, Java 5, jboss 4.2.1.GA with jbossws-2.0.x.GA (jboss-xml-binding 1.0.0CR11)
Reporter: Karen Lease
I have a bug unmarshalling an array of objects in a jaxrpc webservice.
The method is declared as purchase(String, Product[]).
If I call the method with an array of ProductA (which is a subclass of Product), then the deserialized Product array only contains 1 element which is always the last one in the array which is being sent.
For example, if the incoming SOAP message is:
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header/>
<env:Body>
<ns1:purchase xmlns:ns1='http://org.jboss.ws/samples/docstyle/wrapped/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<String_1>Karen</String_1>
<arrayOfProduct_2 xsi:type='ns1:ProductA'>
<name>cyfac</name>
<price>3000</price>
</arrayOfProduct_2>
<arrayOfProduct_2 xsi:type='ns1:ProductA'>
<name>look</name>
<price>5000</price>
</arrayOfProduct_2>
<arrayOfProduct_2 xsi:type='ns1:ProductA'>
<name>GOSPORT</name>
<price>1000</price>
</arrayOfProduct_2>
</ns1:purchase>
</env:Body>
</env:Envelope>
the array in the purchase method is passed only the ProductA('GOSPORT',1000).
Using the method purchaseA(String, ProductA[]) and the same input, the call works as expected.
The bug seems related to JBXB-96 which is marked as fixed. My purchase() method works with the 1.0.0.GA version of jboss-xml-binding (which was included with jboss 4.2.1.GA, jbossws-1.2.1.GA), but fails in 1.0.0.SP1 (aka CR11) which has the fix for JBXB-96.
I looked at the test case created for this bug (org.jboss.test.xml.XsiTypeUnitTestCase). In that test, the collection of objects is the only content of the message. I added a test case to add a wrapper object with a member appearing before the collection. That testcase fails in the same way as my webservice; only the last element of the collection appears in the parent object.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[JBoss JIRA] Created: (JGRP-804) FC: max time to block until message is sent
by Bela Ban (JIRA)
FC: max time to block until message is sent
-------------------------------------------
Key: JGRP-804
URL: https://jira.jboss.org/jira/browse/JGRP-804
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 2.6.4, 2.7
When a message doesn't have enough credits to get sent, the sender blocks in FC.down(), sending a credit request every max_block_time ms and will be able to unblock and send the message only when new credits arrive.
To prevent indefinite blocking (e.g. when the OOB thread pool is exhausted and new credits cannot be processed), add a property max_wait_time_per_message, which defines the max number of milliseconds a message will ever be blocked in FC, before it is sent. This is regardless of the number of credits left.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[JBoss JIRA] Created: (JBPORTAL-1816) abillity to create profile at registration
by Andrew Oliver (JIRA)
abillity to create profile at registration
-------------------------------------------
Key: JBPORTAL-1816
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1816
Project: JBoss Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 2.6.3 Final, Identity-1.0.1
Reporter: Andrew Oliver
Presently the user has the ability to register, then after logging in they create a profile. At many places that portal will be used registration and initial profile creation are the same.
The JSF screens should be reworked to allow the profile fields to appear at registration per a setting. The user module/registration pieces would need to allow profile creation by a not yet logged in user when in the registration process.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months