Menu

IllegalAccessException on XMLGregorianCalenda

Help
2008-11-24
2013-04-25
  • Lautaro Mazzitelli

    Trying to deep clone a big large object we are getting the following exception with XMLGregorianCalendar

    Class net.sf.beanlib.provider.replicator.ReplicatorTemplate can not access a member of class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl with modifiers "public"

    Can I bypass this exception with a custom initializer or constructor?

    Thanks

     
    • Hanson Char

      Hanson Char - 2008-11-24

      Yup a custom bean transformer will do the trick.  Some doc (for an upcoming 5.x release):

        http://beanlib.svn.sourceforge.net/viewvc/beanlib/trunk/beanlib-doc/

      The API is not backward compatible, but similar enough in nature.

      HTH.

       
    • Lautaro Mazzitelli

      Thanks Hanson for the quick answer!

      Do you have an example? =P

       
      • Hanson Char

        Hanson Char - 2008-11-24

        Didn't you find any examples in the doc I pointed you to ?

         
    • Lautaro Mazzitelli

      The example shows a strategic to solve a class with  a missing constructor without arguments.

      I think that overriding the "transform" method will do the trick. It's very strange that anyone hasn't had this issue with XMLGregorianCalendar.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.