[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    RE: ClassCastException when migrating to xmlbeans 2.2.9
From:       "Cezar Andrei" <cezar () bea ! com>
Date:       2008-06-04 21:50:07
Message-ID: BF6B6CA032BA0A429BD924F96765147DCC66F5 () repbex02 ! amer ! bea ! com
[Download RAW message or body]

When old xmlbeans jars were compiled, the user may have been used an
.xsdconfig file that modified the generated package of the xbean classes
and interfaces.

You should use the same .xsdconfig file, or modify the code that
references those intf/classes to match the ones in the new xbean jars.

 

Cezar

 

________________________________

From: Shikhar_Srivastava@tufts-health.com
[mailto:Shikhar_Srivastava@tufts-health.com] 
Sent: Wednesday, June 04, 2008 10:58 AM
To: user@xmlbeans.apache.org
Subject: Re: ClassCastException when migrating to xmlbeans 2.2.9

 


Yes, we recompiled the schema. Schema goes into a separate jar.   

BEA ships two versions of xbean in 9.2 . The server/lib version is no
good for us and documentation says to use apache_xbean version that
ships in common/lib. 

The only problem I am seeing is that at compile time, it creates classes
along the lines of com.tuftshealth.*    . But when  we pass XML payload
to XmlObject or XmlObjectBase then it returns com.tuftshealth.www.*
which results in conflict. 

I will give compilation another shot but we have been struggling with
this for almost a week. 


Shikhar 


  




"Jacob Danner" <jacob.danner@gmail.com> 

06/04/2008 11:34 AM 

Please respond to
user@xmlbeans.apache.org

To

user@xmlbeans.apache.org 

cc

 

Subject

Re: ClassCastException when migrating to xmlbeans 2.2.9

 

 

 




Hi Shikhar,
Have you recompiled all of your schemas? Are there any conflicting
jars still on the classpath?
-jacobd

On Wed, Jun 4, 2008 at 7:57 AM,  <Shikhar_Srivastava@tufts-health.com>
wrote:
> 
> Hi
> 
> We are migrating our applications from Weblogic 8.1 / xbean (?)  to
Weblogic
> 9.2 / apache xbean 2.2.9-r540734 .
> 
> We compiled our schema successfully with new version after making
changes
> recommended by bea  (replaced all com.bea.xml occurrences to
> org.apache.xmlbeans ) along with ant task def etc.
> XBEAN Compilation produces classes in following package structure:
> com.tuftshealth.container.providerListService.*   and
> com.tuftshealth.container.providerListService.impl.*
> 
> 
> Our XSD looks like below:
> 
> ===============================
> <?xml version="1.0" encoding="UTF-8"?>
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:this="http://www.tuftshealth.com/Container/ProviderListService"
> xmlns:messageheader="http://www.tuftshealth.com/Base/MessageHeader"
> xmlns:name="http://www.tuftshealth.com/Base/Name"
> xmlns:status="http://www.tuftshealth.com/Base/Status"
> xmlns:network="http://www.tuftshealth.com/Base/Network"
> xmlns:date="http://www.tuftshealth.com/Base/DateRange"
> xmlns:contact="http://www.tuftshealth.com/Base/Contact"
> xmlns:address="http://www.tuftshealth.com/Base/Address"
> xmlns:reference="http://www.tuftshealth.com/Base/Reference"
> xmlns:member="http://www.tuftshealth.com/Base/Member"
> xmlns:benefit="http://www.tuftshealth.com/Base/Benefit"
> xmlns:covlimit="http://www.tuftshealth.com/Base/CoverageLimitations"
> xmlns:groupriders="http://www.tuftshealth.com/Base/GroupRiders"
> xmlns:buslninfo="http://www.tuftshealth.com/Base/BusinessLineInfo"
> xmlns:phone="http://www.tuftshealth.com/Base/Phone"
> 
targetNamespace="http://www.tuftshealth.com/Container/ProviderListServic
e"
> elementFormDefault="qualified">
> <import
namespace="http://www.tuftshealth.com/Base/MessageHeader"
> schemaLocation="../Base/MessageHeader.xsd"/>
> ..........
> <element name="ProviderListRequest"
> type="this:PrivderListServiceRequestType"/>
> 
> <complexType name="PrivderListServiceRequestType">
> <sequence>
> <element name="MessageHeader"
> type="messageheader:MessageHeaderType"/>
> <element name="providerRequestInfo"
> type="this:ProviderListRequestParamsType"/>
> 
> =================================
> 
> 
> This results in exceptions at run time when we call a Tibco using a
generic
> broker class.
> 
> The broker uses following method to return class to us:
> 
> obj = XmlObjectBase.Factory.parse(XMLString);
> 
> XMLString contains following payload:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <ns0:ProviderListResponse
> xmlns:ns0="http://www.tuftshealth.com/Container/ProviderListService">
> 
> Debug Info:
> PACKAGE NAME:  ****
com.tuftshealth.www.container.providerlistservice.impl
> CLASS NAME: ******
> 
com.tuftshealth.www.container.providerlistservice.impl.ProviderListRespo
nseDocumentImpl
> java.lang.ClassCastException:
> 
com.tuftshealth.www.container.providerlistservice.impl.ProviderListRespo
nseDocumentImpl
> 
> 
> XmlObjectBase is returning the class with www in package name. This
causes
> ClassCastException.
> 
> We tried to use XmlObject and XmlOptions is various combinations to
see if
> "www" in package name goes away but it stays the same.
> 
> Can someone please help us here ? It seems that behavior of XmlObject
or
> XmlObjectBase has changed between two versions. Our apps can't work
without
> the broker to return correct class type.
> 
> Thanks for your help,
> 
> Shikhar
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Confidential and Proprietary: This email message and any attached
files
> contain information intended for the exclusive use of the individual
or
> entity to whom it is addressed and may contain information that is
> considered privileged, proprietary, confidential and/or exempt from
> disclosure under applicable law.  Please notify the sender, by email
or
> telephone, if you are an unintended recipient, and delete the original
> message without making any copies.  Thank you.
> 



-- 
I'm competing in a Half-Ironman distance triathlon to raise money for
the fight against cancer!
Please help support my efforts by going to:
http://www.active.com/donate/tntwaak/jacobd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org





Notice:  This email message, together with any attachments, may contain information  \
of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be \
confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended \
solely for the use of the individual or entity named in this message. If you are not \
the intended recipient, and have received this message in error, please immediately \
return this by email and then delete it.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:st1="urn:schemas-microsoft-com:office:smarttags" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Lucida Sans";
	panose-1:2 11 6 2 3 5 4 2 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:sans-serif;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
tt
	{font-family:"Courier New";}
p.Code, li.Code, div.Code
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Lucida Sans";
	color:navy;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>When old xmlbeans jars were compiled, the
user may have been used an .xsdconfig file that modified the generated package
of the xbean classes and interfaces.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You should use the same .xsdconfig file, or
modify the code that references those intf/classes to match the ones in the new
xbean jars.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Cezar<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
Shikhar_Srivastava@tufts-health.com
[mailto:Shikhar_Srivastava@tufts-health.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, June 04, 2008
10:58 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName \
w:st="on">user@xmlbeans.apache.org</st1:PersonName><br> <b><span \
style='font-weight:bold'>Subject:</span></b> Re: ClassCastException when migrating to \
xmlbeans 2.2.9</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face=sans-serif><span style='font-size:10.0pt;
font-family:sans-serif'>Yes, we recompiled the schema. Schema goes into a
separate jar. &nbsp;</span></font> <br>
<br>
<font size=2 face=sans-serif><span \
style='font-size:10.0pt;font-family:sans-serif'>BEA ships two versions of xbean in \
9.2 . The server/lib version is no good for us and documentation says to use \
apache_xbean version that ships in common/lib. </span></font><br> <br>
<font size=2 face=sans-serif><span \
style='font-size:10.0pt;font-family:sans-serif'>The only problem I am seeing is that \
at compile time, it creates classes along the lines of com.tuftshealth.* &nbsp; \
&nbsp;. But when &nbsp;we pass XML payload to XmlObject or XmlObjectBase then it \
returns com.tuftshealth.www.* which results in conflict. </span></font><br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>I
will give compilation another shot but we have been struggling with this for
almost a week. </span></font><br>
<br>
<br>
<font size=2 face=sans-serif><span \
style='font-size:10.0pt;font-family:sans-serif'>Shikhar</span></font> <br>
<br>
<br>
<font size=2 face=sans-serif><span \
style='font-size:10.0pt;font-family:sans-serif'>&nbsp; </span></font><br>
<br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="40%" valign=top style='width:40.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><font size=1 face=sans-serif><span style='font-size:
  7.5pt;font-family:sans-serif;font-weight:bold'>&quot;Jacob Danner&quot;
  &lt;jacob.danner@gmail.com&gt;</span></font></b><font size=1 face=sans-serif><span
  style='font-size:7.5pt;font-family:sans-serif'> </span></font><o:p></o:p></p>
  <p><font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:
  sans-serif'>06/04/2008 11:34 AM</span></font> <o:p></o:p></p>
  <table class=MsoNormalTable border=1 cellpadding=0>
   <tr>
    <td valign=top bgcolor=white style='background:white;padding:.75pt .75pt .75pt \
.75pt'>  <p class=MsoNormal align=center style='text-align:center'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Please
    respond to<br>
<st1:PersonName w:st="on">user@xmlbeans.apache.org</st1:PersonName></span></font><o:p></o:p></p>
  </td>
   </tr>
  </table>
  <p><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'><o:p></o:p></span></font></p>  </td>
  <td width="59%" valign=top style='width:59.0%;padding:.75pt .75pt .75pt .75pt'>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span \
style='font-size:7.5pt;font-family:sans-serif'>To</span></font><o:p></o:p></p>  </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><st1:PersonName w:st="on"><font size=1 face=sans-serif><span
     style='font-size:7.5pt;font-family:sans-serif'>user@xmlbeans.apache.org</span></font></st1:PersonName>
  <o:p></o:p></p>
    </td>
   </tr>
   <tr>
    <td style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span \
style='font-size:7.5pt;font-family:sans-serif'>cc</span></font><o:p></o:p></p>  </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
   <tr>
    <td style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span \
style='font-size:7.5pt;font-family:sans-serif'>Subject</span></font><o:p></o:p></p>  \
</td>  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
    7.5pt;font-family:sans-serif'>Re: ClassCastException when migrating to
    xmlbeans 2.2.9</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
  <table class=MsoNormalTable border=0 cellpadding=0>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>Hi
Shikhar,</span></font></tt><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">Have you recompiled all of your schemas? Are there
any conflicting</font></tt><br>
<tt><font face="Courier New">jars still on the classpath?</font></tt><br>
<tt><font face="Courier New">-jacobd</font></tt><br>
<br>
<tt><font face="Courier New">On Wed, Jun 4, 2008 at 7:57 AM,
&nbsp;&lt;Shikhar_Srivastava@tufts-health.com&gt; wrote:</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Hi</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; We are migrating our applications from
Weblogic 8.1 / xbean (?) &nbsp;to Weblogic</font></tt><br>
<tt><font face="Courier New">&gt; 9.2 / apache xbean 2.2.9-r540734 .</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; We compiled our schema successfully with new
version after making changes</font></tt><br>
<tt><font face="Courier New">&gt; recommended by bea &nbsp;(replaced all
com.bea.xml occurrences to</font></tt><br>
<tt><font face="Courier New">&gt; org.apache.xmlbeans ) along with ant task def
etc.</font></tt><br>
<tt><font face="Courier New">&gt; XBEAN Compilation produces classes in
following package structure:</font></tt><br>
<tt><font face="Courier New">&gt; com.tuftshealth.container.providerListService.*
&nbsp; and</font></tt><br>
<tt><font face="Courier New">&gt;
com.tuftshealth.container.providerListService.impl.*</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Our XSD looks like below:</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; ===============================</font></tt><br>
<tt><font face="Courier New">&gt; &lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &lt;schema
xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot;</font></tt><br>
<tt><font face="Courier New">&gt; \
xmlns:this=&quot;http://www.tuftshealth.com/Container/ProviderListService&quot;</font></tt><br>
 <tt><font face="Courier New">&gt;
xmlns:messageheader=&quot;http://www.tuftshealth.com/Base/MessageHeader&quot;</font></tt><br>
 <tt><font face="Courier New">&gt;
xmlns:name=&quot;http://www.tuftshealth.com/Base/Name&quot;</font></tt><br>
<tt><font face="Courier New">&gt;
xmlns:status=&quot;http://www.tuftshealth.com/Base/Status&quot;</font></tt><br>
<tt><font face="Courier New">&gt; \
xmlns:network=&quot;http://www.tuftshealth.com/Base/Network&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:date=&quot;http://www.tuftshealth.com/Base/DateRange&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:contact=&quot;http://www.tuftshealth.com/Base/Contact&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:address=&quot;http://www.tuftshealth.com/Base/Address&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:reference=&quot;http://www.tuftshealth.com/Base/Reference&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:member=&quot;http://www.tuftshealth.com/Base/Member&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:benefit=&quot;http://www.tuftshealth.com/Base/Benefit&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
xmlns:covlimit=&quot;http://www.tuftshealth.com/Base/CoverageLimitations&quot;</font></tt><br>
 <tt><font face="Courier New">&gt;
xmlns:groupriders=&quot;http://www.tuftshealth.com/Base/GroupRiders&quot;</font></tt><br>
 <tt><font face="Courier New">&gt; \
xmlns:buslninfo=&quot;http://www.tuftshealth.com/Base/BusinessLineInfo&quot;</font></tt><br>
 <tt><font face="Courier New">&gt;
xmlns:phone=&quot;http://www.tuftshealth.com/Base/Phone&quot;</font></tt><br>
<tt><font face="Courier New">&gt;
targetNamespace=&quot;http://www.tuftshealth.com/Container/ProviderListService&quot;</font></tt><br>
 <tt><font face="Courier New">&gt; \
elementFormDefault=&quot;qualified&quot;&gt;</font></tt><br> <tt><font face="Courier \
New">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;import \
namespace=&quot;http://www.tuftshealth.com/Base/MessageHeader&quot;</font></tt><br> \
<tt><font face="Courier New">&gt; \
schemaLocation=&quot;../Base/MessageHeader.xsd&quot;/&gt;</font></tt><br> <tt><font \
face="Courier New">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;..........</font></tt><br> <tt><font face="Courier New">&gt; &nbsp; &nbsp; \
&nbsp; &nbsp; &lt;element name=&quot;ProviderListRequest&quot;</font></tt><br>
<tt><font face="Courier New">&gt;
type=&quot;this:PrivderListServiceRequestType&quot;/&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;complexType
name=&quot;PrivderListServiceRequestType&quot;&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;sequence&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;element
name=&quot;MessageHeader&quot;</font></tt><br>
<tt><font face="Courier New">&gt;
type=&quot;messageheader:MessageHeaderType&quot;/&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;element
name=&quot;providerRequestInfo&quot;</font></tt><br>
<tt><font face="Courier New">&gt; \
type=&quot;this:ProviderListRequestParamsType&quot;/&gt;</font></tt><br> <tt><font \
face="Courier New">&gt;</font></tt><br> <tt><font face="Courier New">&gt; \
=================================</font></tt><br> <tt><font face="Courier \
New">&gt;</font></tt><br> <tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; This results in exceptions at run time when
we call a Tibco using a generic</font></tt><br>
<tt><font face="Courier New">&gt; broker class.</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; The broker uses following method to return
class to us:</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; obj = \
XmlObjectBase.Factory.parse(XMLString);</font></tt><br> <tt><font face="Courier \
New">&gt;</font></tt><br> <tt><font face="Courier New">&gt; XMLString contains \
following payload:</font></tt><br> <tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;</font></tt><br>
<tt><font face="Courier New">&gt; &lt;ns0:ProviderListResponse</font></tt><br>
<tt><font face="Courier New">&gt;
xmlns:ns0=&quot;http://www.tuftshealth.com/Container/ProviderListService&quot;&gt;</font></tt><br>
 <tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Debug Info:</font></tt><br>
<tt><font face="Courier New">&gt; &nbsp;PACKAGE NAME: &nbsp;**** \
com.tuftshealth.www.container.providerlistservice.impl</font></tt><br> <tt><font \
face="Courier New">&gt; &nbsp;CLASS NAME: ******</font></tt><br> <tt><font \
face="Courier New">&gt; \
com.tuftshealth.www.container.providerlistservice.impl.ProviderListResponseDocumentImpl</font></tt><br>
 <tt><font face="Courier New">&gt; java.lang.ClassCastException:</font></tt><br>
<tt><font face="Courier New">&gt;
com.tuftshealth.www.container.providerlistservice.impl.ProviderListResponseDocumentImpl</font></tt><br>
 <tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; XmlObjectBase is returning the class with www
in package name. This causes</font></tt><br>
<tt><font face="Courier New">&gt; ClassCastException.</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; We tried to use XmlObject and XmlOptions is
various combinations to see if</font></tt><br>
<tt><font face="Courier New">&gt; &quot;www&quot; in package name goes away but
it stays the same.</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Can someone please help us here ? It seems
that behavior of XmlObject or</font></tt><br>
<tt><font face="Courier New">&gt; XmlObjectBase has changed between two
versions. Our apps can't work without</font></tt><br>
<tt><font face="Courier New">&gt; the broker to return correct class \
type.</font></tt><br> <tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Thanks for your help,</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Shikhar</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Confidential and Proprietary: This email
message and any attached files</font></tt><br>
<tt><font face="Courier New">&gt; contain information intended for the
exclusive use of the individual or</font></tt><br>
<tt><font face="Courier New">&gt; entity to whom it is addressed and may
contain information that is</font></tt><br>
<tt><font face="Courier New">&gt; considered privileged, proprietary,
confidential and/or exempt from</font></tt><br>
<tt><font face="Courier New">&gt; disclosure under applicable law. &nbsp;Please
notify the sender, by email or</font></tt><br>
<tt><font face="Courier New">&gt; telephone, if you are an unintended
recipient, and delete the original</font></tt><br>
<tt><font face="Courier New">&gt; message without making any copies. &nbsp;Thank
you.</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<br>
<br>
<br>
<tt><font face="Courier New">-- </font></tt><br>
<tt><font face="Courier New">I'm competing in a Half-Ironman distance triathlon
to raise money for</font></tt><br>
<tt><font face="Courier New">the fight against cancer!</font></tt><br>
<tt><font face="Courier New">Please help support my efforts by going \
to:</font></tt><br> <tt><font face="Courier \
New">http://www.active.com/donate/tntwaak/jacobd</font></tt><br> <br>
<tt><font face="Courier \
New">---------------------------------------------------------------------</font></tt><br>
 <tt><font face="Courier New">To unsubscribe, e-mail:
user-unsubscribe@xmlbeans.apache.org</font></tt><br>
<tt><font face="Courier New">For additional commands, e-mail: <st1:PersonName
w:st="on">user-help@xmlbeans.apache.org</st1:PersonName></font></tt><br>
<br>
<br>
</span></font><o:p></o:p></p>

</div>

</div>

</body>

</html>
<br>
Notice:  This email message, together with any attachments, may contain information  \
of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be \
confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended \
solely for the use of the individual or entity named in this message. If you are not \
the intended recipient, and have received this message in error, please immediately \
return this by email and then delete it.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic