openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: [jira] [Commented] (OPENJPA-2139) OpenJPA fails to recover from a broken database on startup
Date Mon, 27 Feb 2012 18:47:44 GMT
Yes! My first patch attached to this JIRA *should* address this problem,
but ultimately might fail in the same manner in a different part of our
code.

On Mon, Feb 27, 2012 at 12:03 PM, Albert Lee <allee8285@gmail.com> wrote:

> I think this is what you are looking for:
>
> [2/23/12 5:12:04:214 GMT+08:00]     FFDC
> Exception:com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException
>
> SourceId:com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper
> ProbeId:199 Reporter:com.ibm.ejs.j2c.FreePool@2a062a06
> com.ibm.ws.exception.WsException: DSRA8100E: Unable to get a
> PooledConnection from the DataSource. with SQL State : 08001 SQL Code :
> -4499
>    at
>
> com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException.setLinkedException(DataStoreAdapterException.java:530)
>    at com.ibm.ws.rsadapter.AdapterUtil.mapException(AdapterUtil.java:2152)
>    at
>
> com.ibm.ws.rsadapter.spi.WSRdbDataSource.getPooledConnection(WSRdbDataSource.java:2312)
>    at
>
> com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:1598)
>    at
>
> com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:2034)
>    at
> com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1711)
>    at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2496)
>    at
>
> com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1061)
>    at
>
> com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:698)
>    at
>
> com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:668)
>    at
>
> com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:635)
>    at
>
> org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:106)
>    at
>
> org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:87)
>    at
>
> org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:91)
>    at
>
> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:562)
>    at
>
> org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1344)
>    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.PluginValue.instantiate(PluginValue.java:103)
>    at
>
> org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
>    at
> org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
>    at
>
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:863)
>    at
>
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:854)
>    at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.<init>(PersistenceProviderImpl.java:234)
>    at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.<init>(PersistenceProviderImpl.java:217)
>    at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:134)
>    at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:59)
>    at
>
> com.ibm.ws.jpa.management.JPAPUnitInfo.createEMFactory(JPAPUnitInfo.java:1498)
>
> Albert
>
> On Mon, Feb 27, 2012 at 10:24 AM, Rick Curtis <curtisr7@gmail.com> wrote:
>
> > I was referring to the exception that resulted in this message :
> > "openjpa.Runtime: Warn: An error occurred while registering a
> > ClassTransformer with..... "
> >
> > On Mon, Feb 27, 2012 at 9:24 AM, Albert Lee <allee8285@gmail.com> wrote:
> >
> > > Exception data: <openjpa-1.2.3-SNAPSHOT-r422266:1053401 nonfatal user
> > > error> org.apache.openjpa.persistence.ArgumentException: An error
> > occurred
> > > while parsing the query filter "SELECT b from AuditLogon b WHERE
> > > b.sessionId = :sessionId". Error message: The name "AuditLogon" is not
> a
> > > recognized entity or identifier. Known entity names: []
> > >         at
> > >
> > >
> >
> org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:118)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:180)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:150)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:225)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:195)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:188)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$600(JPQLExpressionBuilder.java:69)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:1756)
> > >        at
> > > org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:56)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:156)
> > >        at
> > > org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:658)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:639)
> > >        at
> > >
> > >
> >
> org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:605)
> > >        at
> > >
> >
> org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:667)
> > >        at
> org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:574)
> > >  ....
> > >
> > >
> > > On Mon, Feb 27, 2012 at 8:14 AM, Rick Curtis (Commented) (JIRA) <
> > > jira@apache.org> wrote:
> > >
> > > >
> > > >    [
> > > >
> > >
> >
> https://issues.apache.org/jira/browse/OPENJPA-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217198#comment-13217198
> > > ]
> > > >
> > > > Rick Curtis commented on OPENJPA-2139:
> > > > --------------------------------------
> > > >
> > > > Albert -
> > > >
> > > > In the case that you mentioned, do you know what/where the exception
> is
> > > > that we encounter?
> > > >
> > > > > OpenJPA fails to recover from a broken database on startup
> > > > > ----------------------------------------------------------
> > > > >
> > > > >                 Key: OPENJPA-2139
> > > > >                 URL:
> > > https://issues.apache.org/jira/browse/OPENJPA-2139
> > > > >             Project: OpenJPA
> > > > >          Issue Type: Bug
> > > > >    Affects Versions: 2.2.0
> > > > >            Reporter: Mark Struberg
> > > > >            Assignee: Mark Struberg
> > > > >            Priority: Critical
> > > > >             Fix For: 2.3.0
> > > > >
> > > > >         Attachments: OPENJPA-2139.mdr.patch, OPENJPA-2139.patch
> > > > >
> > > > >
> > > > > The following scenario:
> > > > > 1.) turn off the database
> > > > > 2.) perform a query against the database
> > > > > 3.) turn on the database
> > > > > 4.) try to re-run the query from 2.)
> > > > > In 4.) you will get the following Exception:
> > > > > openjpa-2.2.0-r422266:1244990 nonfatal user error>
> > > > org.apache.openjpa.persistence.ArgumentException: An error occurred
> > while
> > > > parsing the query filter "SELECT k FROM DbEnumKey AS k where
> > k.type=:typ
> > > > ORDER BY k.ordinal". Error message: The name "DbEnumKey" is not a
> > > > recognized entity or identifier. Known entity names: []
> > > > > Basically the whole app is stale afterwards!
> > > > > Solution: caching the entities might only be done if a connection
> can
> > > be
> > > > established.
> > > >
> > > > --
> > > > 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.
> > >
> >
> >
> >
> > --
> > *Rick Curtis*
> >
>
>
>
> --
> Albert Lee.
>



-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message