You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sébastien (JIRA)" <ji...@apache.org> on 2010/08/24 15:03:18 UTC
[jira] Created: (CXF-2955) Null message part type class
org.apache.cxf.xmlbeans.DataWriterImpl
Null message part type class org.apache.cxf.xmlbeans.DataWriterImpl
--------------------------------------------------------------------
Key: CXF-2955
URL: https://issues.apache.org/jira/browse/CXF-2955
Project: CXF
Issue Type: Bug
Affects Versions: 2.2.10, 2.2.6
Reporter: Sébastien
I've a NullPointerException when I set a SOAP header by using an XmlObject:
final XmlObject userDetails = getDetails();
final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
message.getHeaders().add(userDetailsHeader);
The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
if (b != null) {
MessagePartInfo part = new MessagePartInfo(header.getName(), null);
part.setConcreteName(header.getName());
b.createWriter(XMLStreamWriter.class)
.write(header.getObject(), part, writer);
Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
try {
Class<?> typeClass = part.getTypeClass();
if (!XmlObject.class.isAssignableFrom(typeClass)) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2955) Null message part type class
org.apache.cxf.xmlbeans.DataWriterImpl
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902448#action_12902448 ]
Willem Jiang commented on CXF-2955:
-----------------------------------
Hi
Can you create small test case and attached it with this JIRA?
I will take a look at this issue when I get time this week.
Willem
> Null message part type class org.apache.cxf.xmlbeans.DataWriterImpl
> --------------------------------------------------------------------
>
> Key: CXF-2955
> URL: https://issues.apache.org/jira/browse/CXF-2955
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.6, 2.2.10
> Reporter: Sébastien
>
> I've a NullPointerException when I set a SOAP header by using an XmlObject:
> final XmlObject userDetails = getDetails();
> final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
> final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
> userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
> message.getHeaders().add(userDetailsHeader);
> The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
> if (b != null) {
> MessagePartInfo part = new MessagePartInfo(header.getName(), null);
> part.setConcreteName(header.getName());
> b.createWriter(XMLStreamWriter.class)
> .write(header.getObject(), part, writer);
> Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
> public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
> try {
> Class<?> typeClass = part.getTypeClass();
> if (!XmlObject.class.isAssignableFrom(typeClass)) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-2955) Null message part type class
org.apache.cxf.xmlbeans.DataWriterImpl
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-2955:
--------------------------------
Assignee: Daniel Kulp
> Null message part type class org.apache.cxf.xmlbeans.DataWriterImpl
> --------------------------------------------------------------------
>
> Key: CXF-2955
> URL: https://issues.apache.org/jira/browse/CXF-2955
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.6, 2.2.10
> Reporter: Sébastien
> Assignee: Daniel Kulp
>
> I've a NullPointerException when I set a SOAP header by using an XmlObject:
> final XmlObject userDetails = getDetails();
> final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
> final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
> userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
> message.getHeaders().add(userDetailsHeader);
> The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
> if (b != null) {
> MessagePartInfo part = new MessagePartInfo(header.getName(), null);
> part.setConcreteName(header.getName());
> b.createWriter(XMLStreamWriter.class)
> .write(header.getObject(), part, writer);
> Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
> public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
> try {
> Class<?> typeClass = part.getTypeClass();
> if (!XmlObject.class.isAssignableFrom(typeClass)) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2955) Null message part type class
org.apache.cxf.xmlbeans.DataWriterImpl
Posted by "Sébastien (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902776#action_12902776 ]
Sébastien commented on CXF-2955:
--------------------------------
Ok I do that ASAP
> Null message part type class org.apache.cxf.xmlbeans.DataWriterImpl
> --------------------------------------------------------------------
>
> Key: CXF-2955
> URL: https://issues.apache.org/jira/browse/CXF-2955
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.6, 2.2.10
> Reporter: Sébastien
>
> I've a NullPointerException when I set a SOAP header by using an XmlObject:
> final XmlObject userDetails = getDetails();
> final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
> final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
> userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
> message.getHeaders().add(userDetailsHeader);
> The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
> if (b != null) {
> MessagePartInfo part = new MessagePartInfo(header.getName(), null);
> part.setConcreteName(header.getName());
> b.createWriter(XMLStreamWriter.class)
> .write(header.getObject(), part, writer);
> Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
> public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
> try {
> Class<?> typeClass = part.getTypeClass();
> if (!XmlObject.class.isAssignableFrom(typeClass)) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2955) Null message part type class
org.apache.cxf.xmlbeans.DataWriterImpl
Posted by "Sébastien (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sébastien updated CXF-2955:
---------------------------
Description:
I've a NullPointerException when I set a SOAP header by using an XmlObject:
final XmlObject userDetails = getDetails();
final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
message.getHeaders().add(userDetailsHeader);
The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
if (b != null) {
MessagePartInfo part = new MessagePartInfo(header.getName(), null);
part.setConcreteName(header.getName());
b.createWriter(XMLStreamWriter.class)
.write(header.getObject(), part, writer);
Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
try {
Class<?> typeClass = part.getTypeClass();
if (!XmlObject.class.isAssignableFrom(typeClass)) {
was:
I've a NullPointerException when I set a SOAP header by using an XmlObject:
final XmlObject userDetails = getDetails();
final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
message.getHeaders().add(userDetailsHeader);
The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
if (b != null) {
MessagePartInfo part = new MessagePartInfo(header.getName(), null);
part.setConcreteName(header.getName());
b.createWriter(XMLStreamWriter.class)
.write(header.getObject(), part, writer);
Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
try {
Class<?> typeClass = part.getTypeClass();
if (!XmlObject.class.isAssignableFrom(typeClass)) {
> Null message part type class org.apache.cxf.xmlbeans.DataWriterImpl
> --------------------------------------------------------------------
>
> Key: CXF-2955
> URL: https://issues.apache.org/jira/browse/CXF-2955
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.6, 2.2.10
> Reporter: Sébastien
>
> I've a NullPointerException when I set a SOAP header by using an XmlObject:
> final XmlObject userDetails = getDetails();
> final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
> final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
> userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
> message.getHeaders().add(userDetailsHeader);
> The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
> if (b != null) {
> MessagePartInfo part = new MessagePartInfo(header.getName(), null);
> part.setConcreteName(header.getName());
> b.createWriter(XMLStreamWriter.class)
> .write(header.getObject(), part, writer);
> Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
> public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
> try {
> Class<?> typeClass = part.getTypeClass();
> if (!XmlObject.class.isAssignableFrom(typeClass)) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2955) Null message part type class
org.apache.cxf.xmlbeans.DataWriterImpl
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2955.
------------------------------
Resolution: Fixed
Fix Version/s: 2.2.11
> Null message part type class org.apache.cxf.xmlbeans.DataWriterImpl
> --------------------------------------------------------------------
>
> Key: CXF-2955
> URL: https://issues.apache.org/jira/browse/CXF-2955
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.6, 2.2.10
> Reporter: Sébastien
> Assignee: Daniel Kulp
> Fix For: 2.2.11
>
>
> I've a NullPointerException when I set a SOAP header by using an XmlObject:
> final XmlObject userDetails = getDetails();
> final QName name = EndUserDetailsDocumentXML.type.getDocumentElementName();
> final Header userDetailsHeader = new Header(name, userDetails, new XmlBeansDataBinding());
> userDetailsHeader.setDirection(Header.Direction.DIRECTION_OUT);
> message.getHeaders().add(userDetailsHeader);
> The problem is that the XmlBeans implementation is guessing that the type class of the message part is not null (part.getTypeClass()). But it's always null, see the class org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor:
> if (b != null) {
> MessagePartInfo part = new MessagePartInfo(header.getName(), null);
> part.setConcreteName(header.getName());
> b.createWriter(XMLStreamWriter.class)
> .write(header.getObject(), part, writer);
> Later in org.apache.cxf.xmlbeans.DataWriterImpl (line 71):
> public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) {
> try {
> Class<?> typeClass = part.getTypeClass();
> if (!XmlObject.class.isAssignableFrom(typeClass)) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.