OpenJPA
  1. OpenJPA
  2. OPENJPA-824

org.apache.openjpa.lib.util.ParseException when try to get property descriptor for property: CacheMarshallers

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M1
    • Component/s: kernel
    • Labels:
      None
    • Environment:
      All supported environments

      Description

      When running org/apache/openjpa/persistence/conf/TestKodoConfiguration, there will be an exception:
      testBeanAccessors(org.apache.openjpa.persistence.conf.TestKodoConfiguration) Time elapsed: 0.172 sec <<< ERROR!
      org.apache.openjpa.lib.util.ParseException: Errors occurred while creating property descriptors for the following properties: [CacheMarshallers].
      at org.apache.openjpa.lib.conf.ConfigurationImpl.getPropertyDescriptors(ConfigurationImpl.java:449)
      at org.apache.openjpa.persistence.conf.TestKodoConfiguration.testBeanAccessors(TestKodoConfiguration.java:128)
      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:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:127)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      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:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      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:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)

        Issue Links

          Activity

          Hide
          Amy Yang added a comment -

          Currently TestKodoConfiguration is excluded.
          To fix the ParseException, there will be 2 parts:
          1. add information for property CacheMarshallers in corresponding localizer.properties.
          2. change test code in TestKodoConfiguration to skip some check for kodo-specific property.

          Then TestKodoConfiguration can be removed from the excluded list.

          I'll attach the patch for review

          Show
          Amy Yang added a comment - Currently TestKodoConfiguration is excluded. To fix the ParseException, there will be 2 parts: 1. add information for property CacheMarshallers in corresponding localizer.properties. 2. change test code in TestKodoConfiguration to skip some check for kodo-specific property. Then TestKodoConfiguration can be removed from the excluded list. I'll attach the patch for review
          Hide
          Amy Yang added a comment -

          patch for review

          Show
          Amy Yang added a comment - patch for review
          Hide
          Amy Yang added a comment -

          The fix has been checked in (Thanks a lot to David Ezzio) with change 726860, 68, and 76.
          The name of the test case is changed from TestKodoConfiguration to TestOpenJPAConfiguration.

          Show
          Amy Yang added a comment - The fix has been checked in (Thanks a lot to David Ezzio) with change 726860, 68, and 76. The name of the test case is changed from TestKodoConfiguration to TestOpenJPAConfiguration.

            People

            • Assignee:
              Unassigned
              Reporter:
              Amy Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development