Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3185

Open JPA and Java 7 problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: 1.2.3.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      There seems to be a problem with OpenJPA support with java 7.

      Script:
      project --topLevelPackage com.example --java 7
      jpa setup --provider OPENJPA --database HYPERSONIC_IN_MEMORY
      entity jpa --class com.example.Foo
      field string --fieldName someName
      entity jpa --class com.example.Foo2
      field string --fieldName someName2
      field reference --fieldName tro --type com.example.Foo
      web jsf setup
      web jsf all --package com.example.web

      And after deploying application doesn't start. Exception:

      java.lang.VerifyError: Expecting a stackmap frame at branch target 54 in method com.example.Foo2.<clinit>()V at offset 45
      java.lang.Class.forName0(Native Method)
      java.lang.Class.forName(Class.java:264)
      org.apache.openjpa.meta.MetaDataRepository.classForName(MetaDataRepository.java:1552)
      org.apache.openjpa.meta.MetaDataRepository.loadPersistentTypesInternal(MetaDataRepository.java:1528)
      org.apache.openjpa.meta.MetaDataRepository.loadPersistentTypes(MetaDataRepository.java:1506)
      org.apache.openjpa.meta.MetaDataRepository.loadPersistentTypes(MetaDataRepository.java:1486)
      org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:141)
      org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:164)
      org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:122)

      When i removed "--java 7" parameter application worked Ok, but still some errors were present in tomcat logs.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            mc MC
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: