That&#39;s very strange. Perhaps the session manager is not serializable? Or is somehow @XmlTransient?<br><br>Can you copy the fields you need into a DTO before you send it over the wire?<br><br>~Lincoln<br><br><div class="gmail_quote">
On Fri, Mar 2, 2012 at 11:34 AM, Max Schwaab <span dir="ltr">&lt;<a href="mailto:max.schwaab@akquinet.de">max.schwaab@akquinet.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    No exceptions..<br>
    <br>
    In a way the unmarshalling is successful, but some content (session
    manager) is missing<br>
    <br>
    Am 02.03.2012 17:27, schrieb Lincoln Baxter, III:
    <div><div class="h5"><blockquote type="cite">
      
      Are you getting any exceptions?<br>
      <br>
      <div class="gmail_quote">On Fri, Mar 2, 2012 at 11:22 AM, Max
        Schwaab <span dir="ltr">&lt;<a href="mailto:max.schwaab@akquinet.de" target="_blank">max.schwaab@akquinet.de</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Hey there,<br>
          <br>
          I&#39;ve got another tricky problem with my hibersap plugin<br>
          <br>
          I&#39;m using the HibersapJaxbXmlParser to parse a hibersap.xml
          file.<br>
          What the parser does is the following:<br>
          <br>
          * creating a JAXB context [ jaxbContext =
          JAXBContext.newInstance(<br>
          HibersapConfig.class ); ]<br>
          * creating a JAXB unmarshaller [ unmarshaller =<br>
          jaxbContext.createUnmarshaller(); ]<br>
          * unmarshall the given resource stream [ unmarshalledObject =<br>
          unmarshaller.unmarshal( resourceStream ); ]<br>
          <br>
          The problem is:<br>
          It unmarshalles the file to the correct class, but some
          content gets lost.<br>
          <br>
          The funny thing:<br>
          If I try this in a seperate test without forge, it works!<br>
          The test is part of the plugin and can be found at the github
          repo<br>
          (<a href="https://github.com/forge/plugin-hibersap" target="_blank">https://github.com/forge/plugin-hibersap</a>)<br>
          <br>
          What I want it to do:<br>
          Unmarshall a hibersap.xml file and recognize the hibersap
          config AND the<br>
          session manager in the config.<br>
          Within Forge it seems to recognize only the hibersap config
          and not the<br>
          session manager.<br>
          <br>
          The hibersap.xml is something like this:<br>
          <br>
          &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br>
          &lt;hibersap xmlns=&quot;<a href="http://hibersap.org/xml/ns/hibersap-config" target="_blank">http://hibersap.org/xml/ns/hibersap-config</a>&quot;&gt;<br>
          &lt;session-manager name=&quot;SM001&quot;&gt;<br>
&lt;context&gt;org.hibersap.execution.jco.JCAContext&lt;/context&gt;<br>
                  .<br>
                  .<br>
                  .<br>
          &lt;/session-manager&gt;<br>
          &lt;/hibersap&gt;<br>
          <br>
          Here is the code from the HibersapJaxbXmlParser:<br>
          <br>
          public HibersapConfig parseResource( final InputStream
          resourceStream,<br>
          final String resourceName )<br>
                      throws HibersapParseException<br>
              {<br>
                  Unmarshaller unmarshaller;<br>
                  try<br>
                  {<br>
                      unmarshaller = jaxbContext.createUnmarshaller();<br>
                  }<br>
                  catch ( final JAXBException e )<br>
                  {<br>
                      throw new InternalHiberSapException( &quot;Cannot
          create an<br>
          unmarshaller. &quot;, e );<br>
                  }<br>
          <br>
                  Object unmarshalledObject;<br>
                  try<br>
                  {<br>
                      unmarshalledObject = unmarshaller.unmarshal(
          resourceStream );<br>
                  }<br>
                  catch ( final JAXBException e )<br>
                  {<br>
                      throw new HibersapParseException( &quot;Cannot parse
          the<br>
          resource &quot; + resourceName, e );<br>
                  }<br>
                  if ( unmarshalledObject == null )<br>
                  {<br>
                      throw new HibersapParseException( &quot;Resource &quot; +<br>
          resourceName + &quot; is empty.&quot; );<br>
                  }<br>
                  if ( !( unmarshalledObject instanceof HibersapConfig )
          )<br>
                  {<br>
                      throw new HibersapParseException( &quot;Resource &quot; +
          resourceName<br>
                              + &quot; does not consist of a hibersap
          specification. I<br>
          found a &quot;<br>
                              +
          unmarshalledObject.getClass().getSimpleName() );<br>
                  }<br>
                  return ( HibersapConfig ) unmarshalledObject;<br>
              }<br>
          <br>
          <br>
          Thank you for your help and best regards<br>
          <br>
          Max<br>
          <br>
          _______________________________________________<br>
          forge-users mailing list<br>
          <a href="mailto:forge-users@lists.jboss.org" target="_blank">forge-users@lists.jboss.org</a><br>
          <a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Lincoln Baxter, III<br>
      <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
      <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
      &quot;Keep it Simple&quot;<br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
forge-users mailing list
<a href="mailto:forge-users@lists.jboss.org" target="_blank">forge-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a>
</pre>
    </blockquote>
  </div></div></div>

<br>_______________________________________________<br>
forge-users mailing list<br>
<a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>