OpenJPA
  1. OpenJPA
  2. OPENJPA-1695

OutOfMemoryError from CacheMarshallerImpl.setInputUrlFromResourceLocation.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 2.0.0, 2.1.0
    • Fix Version/s: 1.1.1, 2.1.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:930378 fatal internal error>
      org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class
      "org.apache.openjpa.abstractstore.AbstractStoreBrokerFactory". See the nested exception for details.
      at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)
      at kodo.jdo.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(PersistenceManagerFactoryImpl.java:41)
      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 javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)

      caused by

      java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2760)
      at java.util.Arrays.copyOf(Arrays.java:2734)
      at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
      at java.util.ArrayList.add(ArrayList.java:351)
      at org.apache.openjpa.conf.CacheMarshallerImpl.setInputUrlFromResourceLocation(CacheMarshallerImpl.java:226)
      at org.apache.openjpa.conf.CacheMarshallerImpl.endConfiguration(CacheMarshallerImpl.java:207)
      at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:505)
      at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:430)
      at org.apache.openjpa.lib.conf.PluginListValue.instantiate(PluginListValue.java:93)
      at org.apache.openjpa.conf.CacheMarshallersValue.instantiate(CacheMarshallersValue.java:60)
      at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
      at org.apache.openjpa.conf.CacheMarshallersValue.initialize(CacheMarshallersValue.java:117)
      at org.apache.openjpa.conf.CacheMarshallersValue.getMarshallerById(CacheMarshallersValue.java:81)
      at org.apache.openjpa.conf.CacheMarshallersValue.getMarshallerById(CacheMarshallersValue.java:108)
      at org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:54)
      at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
      at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:843)
      at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:834)
      at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:638)
      at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)
      at org.apache.openjpa.abstractstore.AbstractStoreBrokerFactory.getInstance(AbstractStoreBrokerFactory.java:83)
      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.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:124)
      at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:90)

      1. OPENJPA-1695-trunk.patch
        2 kB
        Ravi P Palacherla
      2. OPENJPA-1695-11x.patch
        2 kB
        Ravi P Palacherla

        Activity

        Hide
        Ravi P Palacherla added a comment -

        This bug is introduced by openJPA change :

        r657162 | pcl | 2008-05-16 12:40:46 -0600 (Fri, 16 May 2008) | 1 line
        Make the CacheMarshallerImpl a bit more tolerant to different configurations.

        Show
        Ravi P Palacherla added a comment - This bug is introduced by openJPA change : r657162 | pcl | 2008-05-16 12:40:46 -0600 (Fri, 16 May 2008) | 1 line Make the CacheMarshallerImpl a bit more tolerant to different configurations.
        Hide
        Rick Curtis added a comment -

        Update fix / affects version fields.

        Show
        Rick Curtis added a comment - Update fix / affects version fields.
        Hide
        Michael Dick added a comment -

        Closing issues which have been resolved for some time. If the problem persists, please reopen.

        Show
        Michael Dick added a comment - Closing issues which have been resolved for some time. If the problem persists, please reopen.
        Hide
        fabian added a comment -

        Hi,
        I getting the below error "Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:930378 fatal internal error>
        org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class"

        I understood this is a bug..But how should i fix it??Please help..Im facing this problem on production server (after i installed fusion middleware 11g on solaris Sparc)

        Regards
        Fabian

        Show
        fabian added a comment - Hi, I getting the below error "Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:930378 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class" I understood this is a bug..But how should i fix it??Please help..Im facing this problem on production server (after i installed fusion middleware 11g on solaris Sparc) Regards Fabian

          People

          • Assignee:
            Ravi P Palacherla
            Reporter:
            Ravi P Palacherla
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development