You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "fabian (Commented) (JIRA)" <ji...@apache.org> on 2011/11/18 12:00:52 UTC

[jira] [Commented] (OPENJPA-1695) OutOfMemoryError from CacheMarshallerImpl.setInputUrlFromResourceLocation.

    [ https://issues.apache.org/jira/browse/OPENJPA-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152779#comment-13152779 ] 

fabian commented on OPENJPA-1695:
---------------------------------

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
                
> OutOfMemoryError from CacheMarshallerImpl.setInputUrlFromResourceLocation.
> --------------------------------------------------------------------------
>
>                 Key: OPENJPA-1695
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1695
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.1.1, 2.0.0, 2.1.0
>            Reporter: Ravi P Palacherla
>            Assignee: Ravi P Palacherla
>            Priority: Minor
>             Fix For: 1.1.1, 2.1.0
>
>         Attachments: OPENJPA-1695-11x.patch, OPENJPA-1695-trunk.patch
>
>
> 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) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Commented] (OPENJPA-1695) OutOfMemoryError from CacheMarshallerImpl.setInputUrlFromResourceLocation.

Posted by Albert Lee <al...@gmail.com>.
fabian,

You are running at revision 1.1.1 r930378 whereas the problem is fixed,
according to the commit history, at the following revision
ASF #954993 <http://svn.apache.org/viewvc?view=rev&rev=954993> Tue Jun 15
18:15:59 UTC 2010 rpalache
OPENJPA-1695<https://issues.apache.org/jira/browse/OPENJPA-1695>OutOfMemoryError
from CacheMarshallerImpl.setInputUrlFromResourceLocation
You have a few choices depends on level of comfort with OpenJPA and level
of support:
1) Rebuilt a level of 1.1.x from the branch that meet your need. This means
you are kind of on your own.
2) Pick up the head revision from 1.1.x, which includes more than what you
need, and incurs some risk.
3) Move to trunk or more recent OpenJPA release.

For option 1) and 2), if you need fixes in the future, you will have to
work with "release manager" of this release due to service considerations.

Hope this help.
Albert Lee.

On Fri, Nov 18, 2011 at 5:00 AM, fabian (Commented) (JIRA)
<ji...@apache.org>wrote:

>
>    [
> https://issues.apache.org/jira/browse/OPENJPA-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152779#comment-13152779]
>
> fabian commented on OPENJPA-1695:
> ---------------------------------
>
> 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
>
> > OutOfMemoryError from
> CacheMarshallerImpl.setInputUrlFromResourceLocation.
> >
> --------------------------------------------------------------------------
> >
> >                 Key: OPENJPA-1695
> >                 URL: https://issues.apache.org/jira/browse/OPENJPA-1695
> >             Project: OpenJPA
> >          Issue Type: Bug
> >    Affects Versions: 1.1.1, 2.0.0, 2.1.0
> >            Reporter: Ravi P Palacherla
> >            Assignee: Ravi P Palacherla
> >            Priority: Minor
> >             Fix For: 1.1.1, 2.1.0
> >
> >         Attachments: OPENJPA-1695-11x.patch, OPENJPA-1695-trunk.patch
> >
> >
> > 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)
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Albert Lee.