OpenJPA
  1. OpenJPA
  2. OPENJPA-1790

java.lang.VerifyError thrown when trying to commit entity.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2, 2.1.0
    • Component/s: kernel
    • Labels:
      None
    • Environment:
      JDK1.6 u20, maven 2.2.1, Apache Shindig 2.0, OpenJPA 2.0.1

      Description

      Hi,

      Now I am working on OpenJPA support for Apache Shindig 2.0. There is a test case to insert some entity into backend derby database, but every time when running to commint(), there is such error thrown, unfortunately I am not to work it out, and ask here if this is a known issue? Thanks.

      I searched an issue past of: https://issues.apache.org/jira/browse/OPENJPA-91, and tried to put all openjpa related jars into jdk/jre/lib/ext, but it does not work for.

      In DOS cmd line or in eclipse IDE, I run the junit test case with jdk 1.6, both returning same error:

      -------------------------------------------------------------------------------
      Test set: org.apache.shindig.social.opensocial.jpa.spi.PersonServiceDbTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.391 sec <<< FAILURE!
      org.apache.shindig.social.opensocial.jpa.spi.PersonServiceDbTest Time elapsed: 0.438 sec <<< ERROR!
      java.lang.VerifyError: (class: org/apache/openjpa/util/java$util$concurrent$ConcurrentHashMap$11$proxy, method: remove signature: (Ljava/lang/Object;Ljava/lang/Object;)Z) Expecting to find integer on stack
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.apache.openjpa.util.GeneratedClasses.loadBCClass(GeneratedClasses.java:67)
      at org.apache.openjpa.util.ProxyManagerImpl.getFactoryProxyMap(ProxyManagerImpl.java:382)
      at org.apache.openjpa.util.ProxyManagerImpl.newMapProxy(ProxyManagerImpl.java:207)
      at org.apache.openjpa.kernel.StateManagerImpl.newFieldProxy(StateManagerImpl.java:1829)
      at org.apache.openjpa.kernel.SingleFieldManager.proxy(SingleFieldManager.java:117)
      at org.apache.openjpa.kernel.StateManagerImpl.proxyFields(StateManagerImpl.java:2896)
      at org.apache.openjpa.kernel.PNonTransState.initialize(PNonTransState.java:45)
      at org.apache.openjpa.kernel.StateManagerImpl.setPCState(StateManagerImpl.java:287)
      at org.apache.openjpa.kernel.StateManagerImpl.commit(StateManagerImpl.java:1128)
      at org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2383)
      at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:1975)
      at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:94)
      at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1479)
      at org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:925)
      at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:560)
      at org.apache.shindig.social.opensocial.jpa.spi.SpiDatabaseBootstrap.bootstrapDatabase(SpiDatabaseBootstrap.java:186)
      at org.apache.shindig.social.opensocial.jpa.spi.SpiDatabaseBootstrap.init(SpiDatabaseBootstrap.java:85)
      at org.apache.shindig.social.opensocial.jpa.spi.PersonServiceDbTest.setup(PersonServiceDbTest.java:71)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

      1. concurrent_junit.patch
        6 kB
        Jody Grassel
      2. openjpa-1790.patch
        10 kB
        Jody Grassel
      3. OPENJPA-1790-2.0.x.patch
        10 kB
        Heath Thomann
      4. persistence.xml
        6 kB
        Kai Feng Zhang
      5. PersonServiceDbTest.java
        5 kB
        Kai Feng Zhang
      6. pom.xml
        7 kB
        Kai Feng Zhang
      7. SpiDatabaseBootstrap.java
        27 kB
        Kai Feng Zhang

        Activity

          People

          • Assignee:
            Jody Grassel
            Reporter:
            Kai Feng Zhang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development