castor
  1. castor
  2. CASTOR-3052

The jar files from "http://dist.codehaus.org/castor/1.3.2/" seems to be compiled for Java 1.6

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat 6 / SUN JDK 5.0
    • Number of attachments :
      0

      Description

      I have downloaded the version from the link and I'm getting this error:

       
       GRAVE: El Servlet /documentaPVM lanzó excepción de load()
       java.lang.UnsupportedClassVersionError: Bad version number in .class
       file (no puedo cargar clase org.exolab.castor.mapping.MappingException)
           at
       org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
           at
       org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
           at
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
           at
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
           at java.lang.ClassLoader.loadClassInternal(Unknown Source)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Unknown Source)
           at
       mx.com.bibs.util.castorbean.database.DataBaseParser.busca(DataBaseParser.java:202)
           at mx.com.bibs.util.castorbean.CastorBean.get(CastorBean.java:58)
           at
       mx.com.bibs.Sherpa2seg.business.local.facade.JdoGenericaFacadeImpl.<init>(JdoGenericaFacadeImpl.java:43)
      

      The project works well on castor-1.3

        Activity

        Werner Guttmann made changes -
        Field Original Value New Value
        Assignee Werner Guttmann [ wguttmn ]
        Hide
        Werner Guttmann added a comment -

        Yes, you are right. I will re-upload the JARs tonight.

        Show
        Werner Guttmann added a comment - Yes, you are right. I will re-upload the JARs tonight.
        Werner Guttmann made changes -
        Description I have downloaded the version from the link and I'm getting this error:
         
         GRAVE: El Servlet /documentaPVM lanzó excepción de load()
         java.lang.UnsupportedClassVersionError: Bad version number in .class
         file (no puedo cargar clase org.exolab.castor.mapping.MappingException)
             at
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
             at
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
             at
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
             at
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
             at java.lang.ClassLoader.loadClassInternal(Unknown Source)
             at java.lang.Class.forName0(Native Method)
             at java.lang.Class.forName(Unknown Source)
             at
         mx.com.bibs.util.castorbean.database.DataBaseParser.busca(DataBaseParser.java:202)
             at mx.com.bibs.util.castorbean.CastorBean.get(CastorBean.java:58)
             at
         mx.com.bibs.Sherpa2seg.business.local.facade.JdoGenericaFacadeImpl.<init>(JdoGenericaFacadeImpl.java:43)

        The project works well on castor-1.3
        I have downloaded the version from the link and I'm getting this error:

        {code}
         GRAVE: El Servlet /documentaPVM lanzó excepción de load()
         java.lang.UnsupportedClassVersionError: Bad version number in .class
         file (no puedo cargar clase org.exolab.castor.mapping.MappingException)
             at
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
             at
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
             at
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
             at
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
             at java.lang.ClassLoader.loadClassInternal(Unknown Source)
             at java.lang.Class.forName0(Native Method)
             at java.lang.Class.forName(Unknown Source)
             at
         mx.com.bibs.util.castorbean.database.DataBaseParser.busca(DataBaseParser.java:202)
             at mx.com.bibs.util.castorbean.CastorBean.get(CastorBean.java:58)
             at
         mx.com.bibs.Sherpa2seg.business.local.facade.JdoGenericaFacadeImpl.<init>(JdoGenericaFacadeImpl.java:43)
        {code}

        The project works well on castor-1.3
        Hide
        Werner Guttmann added a comment -

        Just re-uploaded the JARs for XML and DDLGEN so that they are compatible with Java 5.0. Please cross-check and re-open this issue if I have missed anything.

        Show
        Werner Guttmann added a comment - Just re-uploaded the JARs for XML and DDLGEN so that they are compatible with Java 5.0. Please cross-check and re-open this issue if I have missed anything.
        Werner Guttmann made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3.2 [ 13817 ]
        Resolution Fixed [ 1 ]
        Hide
        Jorge Najera added a comment -

        Hi, I have the same problem using castor 1.3.2 with tomcat 6.
        There is hotfix for this problem?
        How can i solve it?
        If i downgrade to 1.3.1 the problem can be fixed?

        Show
        Jorge Najera added a comment - Hi, I have the same problem using castor 1.3.2 with tomcat 6. There is hotfix for this problem? How can i solve it? If i downgrade to 1.3.1 the problem can be fixed?
        Hide
        Jorge Najera added a comment -

        Hi, i download the new Jars but i still have the problem. My problem ocurrs when i run the ant task.

        <taskdef name="castor-srcgen" classname="org.castor.anttask.CastorCodeGenTask">

        The result is:

        buildXMLDTOs.xml:27: java.lang.UnsupportedClassVersionError: Bad version number in .class file

        Thanks

        Show
        Jorge Najera added a comment - Hi, i download the new Jars but i still have the problem. My problem ocurrs when i run the ant task. <taskdef name="castor-srcgen" classname="org.castor.anttask.CastorCodeGenTask"> The result is: buildXMLDTOs.xml:27: java.lang.UnsupportedClassVersionError: Bad version number in .class file Thanks
        Hide
        Werner Guttmann added a comment -

        Can you pease create a new Jira issue for this and I will look into this.

        Show
        Werner Guttmann added a comment - Can you pease create a new Jira issue for this and I will look into this.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Victor Manuel Iniestra Alvarez
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: