Details
- 
        Type: Bug Bug
- 
        Status: Closed Closed
- 
            Resolution: Fixed
- 
            Affects Version/s: None
- 
            Fix Version/s: 1.x Maintenance
- 
            Component/s: None
- 
            Labels:None
Description
xstream.toXML(accountManagerEJB) successfully creates accountManagerEJB.xml as follows;
          <accountManagerEJB class="dynamic-proxy">
            <interface>com.telus.eas.account.ejb.AccountManagerEJBRemote</interface>
            <handler class="com.telus.provider.SynchronizedEJBInvocationHandler">
              <name>telus-eca/ejb/stateful/AccountManager</name>
              <interfaceClass>com.telus.eas.account.ejb.AccountManagerEJBHome</interfaceClass>
              <arumentClasses>
                <java-class>java.lang.String</java-class>
                <java-class>java.lang.String</java-class>
                <java-class>java.lang.String</java-class>
              </arumentClasses>
              <arguments>
                <string>19171</string>
                <string>ad26dou</string>
                <string>OFFERM</string>
              </arguments>
              <initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory>
              <providerURL>t3://wld3easeca:8382</providerURL>
            </handler>
          </accountManagerEJB>
However, deserializing accountManager.xml via xstream.fromXML( ) method results in the following exception when the parser encounters the accountManagerEJB closing tag;
com.thoughtworks.xstream.converters.ConversionException: Cannot convert type $Proxy23 to type com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy
---- Debugging information ----
required-type       : com.telus.provider.TMProvider 
class               : com.telus.provider.account.TMIDENSubscriber 
line number         : 400 
path                : /com.telus.provider.account.TMIDENSubscriber/accountSummary/account/alternateCreditCheckAddress/provider/accountManagerEJB 
-------------------------------
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:165)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:118)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:182)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:159)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:118)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:182)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:159)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:118)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:182)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:159)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:118)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:182)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:159)
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:118)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
	at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:826)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:813)
	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:769)




The third-last line of XML should read;
<providerURL>t3://wld3easeca:8382</providerURL>