3 Replies Latest reply on Feb 22, 2003 6:05 AM by isabella

    problem using XMLEncoder...

    isabella

      hi all,

      i have to create XML file from certain EJBs but i seem to have problems using XMLEncoder...

      i got the following errors during runtime:
      --------------------------------------------------------
      [STDERR} java.lang.InstantiationException: org.jboss.mx.loading.UnifiedClassLoader

      Continuing ...

      [STDERR] java.lang.Exception: discarding statement XMLEncoder0.writeObject($Proxy840);

      Continuing ...

      ----------------------------------------------------

      please, does anyone know if i have done something wrong, or if i can't use XMLEncoder (since it's in the JDK 1.4.* only??)

      thx alot,
      isabella~

        • 1. Re: problem using XMLEncoder...

          umm.. full stack traces, server logs, jboss version, os version, etc etc... please

          • 2. Re: problem using XMLEncoder...
            isabella

            hello Juha,

            thx alot for your reply, and here's the info about my environment...

            os : W2K, SP3
            jdk : 1.4.1.01
            jboss : 3.0.2

            also, i am attaching the server log, a screen capture of the runtime and the program codes for the XMLEncoder part...

            i am actually quite new to Java and i dun really know what is full stack traces...(?) i hope i am enclosing something relevant =P

            thx again,
            isabella~

            • 3. Re: problem using XMLEncoder...
              isabella

              hello again,

              sorry, i just thought of something more...

              i have been using the jdk version 1.3.* and then a few days ago, i got to realize that i would need jdk 1.4.* in order to use the XMLEncoder class....

              so i installed jdk 1.4.* and update my environment variables... and nothing more...

              did i miss any other configuration regarding the part of jboss??

              thx alot,
              isabella~