TopLink Grid: NullPointerException for @EmbeddedId

Hi,
I need short help with TopLink Grid (111130). I am trying to use L2 caching for the following entity:
@Entity
@Table(name = "T_CONFIGURATION")
@OptimisticLocking(type = OptimisticLockingType.VERSION_COLUMN)
@CacheInterceptor(CoherenceInterceptor.class)
public class ConfigurationDBVO implements Serializable {
@EmbeddedId
protected ConfigurationDBKey key = new ConfigurationDBKey();
@Column(name = "ATTRIBUTE_VALUE")
private String attributeValue;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumns(value = {@JoinColumn(name = "CONFIG_TYPE", referencedColumnName = "CONFIG_TYPE")})
private ConfigurationTypeDBVO configurationType;
@Version
private int version;
/* getters and setters */
@Embeddable
public class ConfigurationDBKey implements Serializable {
@Column(name = "ATTRIBUTE_NAME")
private String attributeName;
@Column(name = "CONFIGURATION_ID")
private String configurationID;
/* getters and setters */
I receive the following NullPointerException when trying to execute simple JPQL (SELECT c FROM ConfigurationDBVO c WHERE c.configurationType.configType = :configurationType ORDER BY c.key.configurationID):
java.lang.NullPointerException
at org.eclipse.persistence.descriptors.CMPPolicy.createPrimaryKeyInstance(CMPPolicy.java:337)
at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getCoherenceKey(CoherenceCacheHelper.java:615)
at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getFromCoherence(CoherenceCacheHelper.java:91)
at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.acquireLock(CoherenceInterceptor.java:104)
at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLock(IdentityMapManager.java:127)
at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLock(IdentityMapAccessor.java:88)
at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLock(IdentityMapAccessor.java:79)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:642)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java:583)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:552)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:492)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:444)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:635)
at org.eclipse.persistence.queries.ReadAllQuery.registerResultInUnitOfWork(ReadAllQuery.java:838)
at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:464)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:997)
at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:675)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:958)
at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:432)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1021)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2898)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1225)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1207)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1181)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:453)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:681)
at *.ConfigurationACSImpl.searchConfigurations(ConfigurationACSImpl.java:*)
It seems that EclipseLink is not able to extract correct fields mapping information for keys since the key fields are inside the EmbeddedId object.
Is there anything wrong in entity mappings (I was able to solve my problem with patching of EclipseLink)?
Thanks in advance
Denis

Hi Gordon,
Thanks for your answer. Actually, I used my own 1-line patch like this (is it wrong?):
org.eclipse.persistence.descriptors.CMPPolicy
for (int index = 0; index < pkElementArray.length; index++) {
KeyElementAccessor accessor = pkElementArray[index];
DatabaseMapping mapping = getDescriptor().getObjectBuilder().getMappingForAttributeName(accessor.getAttributeName());
// begin of patch
if (mapping == null) {
mapping = accessor.getMapping();
// end of patch
Object fieldValue = null;
if (mapping.isDirectToFieldMapping()) {
Thanks in advance
Denis

Similar Messages

  • Problem using TopLink Grid on WebLogic

    I encountered an error using TopLink Grid with WebLogic.
    I have a servlet that persists an object through TopLink Grid, and then try to retrieve an object. It has the following setup:
    JPA 2.0
    TopLink 11.1.1.4.0
    Coherence 3.6.0.4 (bundled with WebLogic)
    WebLogic Server 10.3.4
    Cache config: Grid Entity
    Method of obtaining EntityManager: Injection of @PersistenceContext
    Transaction Management: JTA
    I put coherence-cache-config.xml and tangosol-coherence-override.xml in /APP-INF/classes in my EAR file.
    I did not use active-cache.jar in my servlet. After the WebLogic server is started, the Coherence cache client is to be launched when the persist operation is called.
    However, found that the insertion fails with error. Only when em.find() is called could the Coherence cache client be launched properly. I find it very strange because toplink grid complains about missing coherence-cache-config.xml when it tries to insert, but is perfectly ok when it tries to do an em.find().
    Has anybody encountered the same issue before?
    The log is: (the lines starting with #### are output by the servlet)
    #### Inserting new dept
    <Mar 7, 2011 10:17:43 AM CST> <Notice> <EclipseLink> <BEA-2005000> <2011-03-07 10:17:43.816--EclipseLink, version: Eclipse Persistence Services - 2.1.2.v20101206-r8635>
    <Mar 7, 2011 10:17:43 AM CST> <Notice> <EclipseLink> <BEA-2005000> <2011-03-07 10:17:43.82--Server: 10.3.4.0>
    <Mar 7, 2011 10:17:44 AM CST> <Notice> <EclipseLink> <BEA-2005000> <2011-03-07 10:17:44.261--file:/C:/Oracle/Middleware_1034/user_projects/domains/base_domain/servers/ManagedServer01/tmp/_WL_user/TopLinkGridApp/6df6x4/APP-INF/lib/TopLinkGridJPA.jar_GridLinkJPA login successful>
    2011-03-07 10:17:45.113/50.199 Oracle Coherence 3.6.0.0 <Info> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational configuration from "zip:C:/Oracle/Middleware_1034/user_projects/domains/base_domain/servers/ManagedServer01/tmp/_WL_user/TopLinkGridApp/6df6x4/APP-INF/lib/coherence.jar!/tangosol-coherence.xml"
    2011-03-07 10:17:45.132/50.217 Oracle Coherence 3.6.0.0 <Info> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational overrides from "zip:C:/Oracle/Middleware_1034/user_projects/domains/base_domain/servers/ManagedServer01/tmp/_WL_user/TopLinkGridApp/6df6x4/APP-INF/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2011-03-07 10:17:45.141/50.226 Oracle Coherence 3.6.0.0 <Info> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational overrides from "file:/C:/Oracle/Middleware_1034/user_projects/domains/base_domain/servers/ManagedServer01/tmp/_WL_user/TopLinkGridApp/6df6x4/APP-INF/classes/tangosol-coherence-override.xml"
    2011-03-07 10:17:45.148/50.233 Oracle Coherence 3.6.0.0 <D5> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.6.0.0 Build 17229
    Grid Edition: Development mode
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    <Mar 7, 2011 10:17:45 AM CST> <Warning> <EclipseLink> <BEA-2005000> <2011-03-07 10:17:45.491--Exception [EclipseLink-38] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: Identity map constructor failed because an invalid identity map was specified.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [EclipseLink-80000] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): oracle.eclipselink.coherence.exceptions.IntegrationException
    Exception Description: Unable to connect to Coherence Cache by name: Dept.
    Internal Exception: (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
    Descriptor: RelationalDescriptor(test.gridlink.Dept --> [DatabaseTable(DEPT)])>
    <Mar 7, 2011 10:17:45 AM CST> <Warning> <EclipseLink> <BEA-2005000> <2011-03-07 10:17:45.502--Exception [EclipseLink-38] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: Identity map constructor failed because an invalid identity map was specified.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [EclipseLink-80000] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): oracle.eclipselink.coherence.exceptions.IntegrationException
    Exception Description: Unable to connect to Coherence Cache by name: Dept.
    Internal Exception: (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
    Descriptor: RelationalDescriptor(test.gridlink.Dept --> [DatabaseTable(DEPT)])>
    <Mar 7, 2011 10:17:45 AM CST> <Warning> <EclipseLink> <BEA-2005000> <2011-03-07 10:17:45.584--Exception [EclipseLink-23011] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.TransactionException
    Exception Description: Error trying to format exception message: UnitOfWork [{0}] was rendered inactive before associated externally managed transaction was complete. The arguments are: [Exception [EclipseLink-4022] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DatabaseException
    Exception Description: Accessor or its connection has been set to null. This can occur if the ClientSession or UnitOfWork was released in a seperate thread, for instance if a Timeout occurred.]>
    <Mar 7, 2011 10:17:45 AM CST> <Warning> <JTA> <BEA-110401> <Ignoring error in afterCompletion. Object=[email protected]6e18, Exception=Exception [EclipseLink-23011] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.TransactionException
    Exception Description: Error trying to format exception message: UnitOfWork [{0}] was rendered inactive before associated externally managed transaction was complete. The arguments are: [Exception [EclipseLink-4022] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DatabaseException
    Exception Description: Accessor or its connection has been set to null. This can occur if the ClientSession or UnitOfWork was released in a seperate thread, for instance if a Timeout occurred.]
    Exception [EclipseLink-23011] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.TransactionException
    Exception Description: Error trying to format exception message: UnitOfWork [{0}] was rendered inactive before associated externally managed transaction was complete. The arguments are: [Exception [EclipseLink-4022] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DatabaseException
    Exception Description: Accessor or its connection has been set to null. This can occur if the ClientSession or UnitOfWork was released in a seperate thread, for instance if a Timeout occurred.]
         at org.eclipse.persistence.exceptions.TransactionException.inactiveUnitOfWork(TransactionException.java:118)
         at org.eclipse.persistence.transaction.AbstractSynchronizationListener.afterCompletion(AbstractSynchronizationListener.java:203)
         at org.eclipse.persistence.transaction.JTASynchronizationListener.afterCompletion(JTASynchronizationListener.java:79)
         at weblogic.transaction.internal.ServerSCInfo.doAfterCompletion(ServerSCInfo.java:1048)
         at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:1023)
         Truncated. see log file for complete stacktrace
    >
    weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=[email protected]6e18
    Exception Description: Identity map constructor failed because an invalid identity map was specified.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [EclipseLink-80000] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): oracle.eclipselink.coherence.exceptions.IntegrationException
    Exception Description: Unable to connect to Coherence Cache by name: Dept.
    Internal Exception: (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
    Descriptor: RelationalDescriptor(test.gridlink.Dept --> [DatabaseTable(DEPT)])
         at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1881)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:345)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:240)
         at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:300)
         at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:294)
         at test.gridlink.servlet.Test.process(Test.java:89)
         at test.gridlink.servlet.Test.doGet(Test.java:52)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: Exception [EclipseLink-38] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: Identity map constructor failed because an invalid identity map was specified.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [EclipseLink-80000] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): oracle.eclipselink.coherence.exceptions.IntegrationException
    Exception Description: Unable to connect to Coherence Cache by name: Dept.
    Internal Exception: (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
    Descriptor: RelationalDescriptor(test.gridlink.Dept --> [DatabaseTable(DEPT)])
         at org.eclipse.persistence.exceptions.DescriptorException.invalidIdentityMap(DescriptorException.java:822)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:362)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:327)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:902)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLockNoWait(IdentityMapManager.java:160)
         at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLockNoWait(IdentityMapAccessor.java:101)
         at org.eclipse.persistence.internal.helper.WriteLockManager.attemptToAcquireLock(WriteLockManager.java:412)
         at org.eclipse.persistence.internal.helper.WriteLockManager.acquireRequiredLocks(WriteLockManager.java:284)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1601)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:340)
         at org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:157)
         at org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:68)
         at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1239)
         at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1214)
         at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:116)
         at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1316)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2132)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:272)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:239)
         at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:299)
         at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:293)
         at test.gridlink.servlet.Test.process(Test.java:89)
         at test.gridlink.servlet.Test.doGet(Test.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
         ... 9 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.invokeConstructor(PrivilegedAccessHelper.java:350)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:357)
         ... 36 more
    Caused by: Exception [EclipseLink-80000] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): oracle.eclipselink.coherence.exceptions.IntegrationException
    Exception Description: Unable to connect to Coherence Cache by name: Dept.
    Internal Exception: (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
         at oracle.eclipselink.coherence.exceptions.IntegrationException.unableToFindCoherenceCache(IntegrationException.java:76)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:84)
         ... 42 more
    Caused by: (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getDefaultFactory(DefaultCacheFactoryBuilder.java:419)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(DefaultCacheFactoryBuilder.java:113)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFactoryBuilder.java:173)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getConfigurableCacheFactory(DefaultCacheFactoryBuilder.java:149)
         at oracle.eclipselink.coherence.integrated.internal.cache.Coherence35Adaptor.getNamedCache(Coherence35Adaptor.java:34)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:240)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:79)
         ... 42 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getDefaultFactory(DefaultCacheFactoryBuilder.java:381)
         ... 48 more
    Caused by: (Wrapped: Failed to load cache configuration: coherence-cache-config.xml) java.io.IOException: The cache configuration is missing: "coherence-cache-config.xml", loader=null
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
         at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
         at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:396)
         at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:382)
         at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfigurableCacheFactory.java:148)
         ... 54 more
    Caused by: java.io.IOException: The cache configuration is missing: "coherence-cache-config.xml", loader=null
         at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
         at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
         at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:396)
         at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:382)
         at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfigurableCacheFactory.java:148)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getDefaultFactory(DefaultCacheFactoryBuilder.java:381)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(DefaultCacheFactoryBuilder.java:113)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFactoryBuilder.java:173)
         at com.tangosol.net.DefaultCacheFactoryBuilder.getConfigurableCacheFactory(DefaultCacheFactoryBuilder.java:149)
         at oracle.eclipselink.coherence.integrated.internal.cache.Coherence35Adaptor.getNamedCache(Coherence35Adaptor.java:34)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:240)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:79)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.invokeConstructor(PrivilegedAccessHelper.java:350)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:357)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:327)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:902)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLockNoWait(IdentityMapManager.java:160)
         at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLockNoWait(IdentityMapAccessor.java:101)
         at org.eclipse.persistence.internal.helper.WriteLockManager.attemptToAcquireLock(WriteLockManager.java:412)
         at org.eclipse.persistence.internal.helper.WriteLockManager.acquireRequiredLocks(WriteLockManager.java:285)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1601)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:342)
         at org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:157)
         at org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:69)
         at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1239)
         at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1214)
         at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:116)
         at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1318)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2136)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:272)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:240)
         at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:300)
         at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:294)
         at test.gridlink.servlet.Test.process(Test.java:89)
         at test.gridlink.servlet.Test.doGet(Test.java:52)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
         ... 9 more
    #### Finding dept
    2011-03-07 10:17:45.783/50.868 Oracle Coherence GE 3.6.0.0 <Info> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded cache configuration from "file:/C:/Oracle/Middleware_1034/user_projects/domains/base_domain/servers/ManagedServer01/tmp/_WL_user/TopLinkGridApp/6df6x4/APP-INF/classes/coherence-cache-config.xml"
    2011-03-07 10:17:46.746/51.831 Oracle Coherence GE 3.6.0.0 <D4> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): TCMP bound to /10.222.60.143:8088 using SystemSocketProvider
    2011-03-07 10:17:48.288/53.373 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): Failed to satisfy the variance: allowed=16, actual=60
    2011-03-07 10:17:48.288/53.373 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): Increasing allowable variance to 21
    2011-03-07 10:17:49.355/54.440 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2011-03-07 10:17:49.299, Address=10.222.60.143:8088, MachineId=59535, Location=site:corp.oocl.com,machine:WONGST3-W7-TEST,process:2952, Role=WeblogicServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1) joined cluster "CoherenceClusterRock" with senior Member(Id=1, Timestamp=2011-03-07 09:53:59.431, Address=10.222.60.143:8098, MachineId=59535, Location=site:corp.oocl.com,machine:WONGST3-W7-TEST,process:1204,member:CacheServerRock01, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1)
    2011-03-07 10:17:49.419/54.504 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Cluster with senior member 1
    2011-03-07 10:17:49.421/54.506 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
    2011-03-07 10:17:49.421/54.506 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service EclipseLinkJPAReadWrite with senior member 1
    2011-03-07 10:17:49.437/54.522 Oracle Coherence GE 3.6.0.0 <Info> (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Started cluster Name=CoherenceClusterRock
    Group{Address=224.3.6.0, Port=36000, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=2, Timestamp=2011-03-07 10:17:49.299, Address=10.222.60.143:8088, MachineId=59535, Location=site:corp.oocl.com,machine:WONGST3-W7-TEST,process:2952, Role=WeblogicServer)
    OldestMember=Member(Id=1, Timestamp=2011-03-07 09:53:59.431, Address=10.222.60.143:8098, MachineId=59535, Location=site:corp.oocl.com,machine:WONGST3-W7-TEST,process:1204,member:CacheServerRock01, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=2, BitSetCount=2
    Member(Id=1, Timestamp=2011-03-07 09:53:59.431, Address=10.222.60.143:8098, MachineId=59535, Location=site:corp.oocl.com,machine:WONGST3-W7-TEST,process:1204,member:CacheServerRock01, Role=CoherenceServer)
    Member(Id=2, Timestamp=2011-03-07 10:17:49.299, Address=10.222.60.143:8088, MachineId=59535, Location=site:corp.oocl.com,machine:WONGST3-W7-TEST,process:2952, Role=WeblogicServer)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[1]}
    IpMonitor{AddressListSize=0}
    2011-03-07 10:17:49.578/54.664 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:Management, member=2): Service Management joined the cluster with senior service member 1
    2011-03-07 10:17:49.996/55.081 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache:EclipseLinkJPAReadWrite, member=2): Service EclipseLinkJPAReadWrite joined the cluster with senior service member 1
    #### em: test.gridlink.Dept@bebae9
    #### em: TEST DEPT

    It seems Coherence is unable to load the config files using the application class loader. You could try placing the config files in a location that gives them the same visibility as your PersistenceUnit.

  • Coherence with toplink grid

    Hi All , I am working with J PA coherence using top Link grid i have taken a dynamic web project from eclipse .(My requirement is to my web application is integrating with database in that i am using coherence as well when ever the database got shutdown i have to retrieve  the data from the coherence cache)
    *1.created the JPA dynamic webproject*
    *2.calling entities from the tables(configured the persistence.xml)*
    *3.I have created the jsp file to put the data into the database*
    <%@ page import=" javax.persistence.EntityManager"%>
    <%@ page import= "javax.persistence.EntityManagerFactory" %>
    <%@ page import= "javax.persistence.Persistence"%>
    <%@ page import=" com.lakshman.weblogicJPA.Employee"%>
    <%
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("WeblogicJPA");
                   EntityManager em = emf.createEntityManager();
                   em.getTransaction().begin();
                   //Employee emp = new Employee();
              emp.setEmpId(101);
              emp.setEmpSummary("my jpa web apps");
              emp.setEmpDescription("????????????");
                   em.persist(emp);
    %>
    Its working fine (Successfully Inserted data into the database)
    After that ihave created another method to get the data from database which i have inserted before...
    code:
    Employee emp1=em.find(Employee.class,116L);
              out.println(emp1.getEmpDescription());
              out.println(emp1.getEmpId());
                   em.getTransaction().commit();
    This is also working fine(I got the data what ever inserted before)
    *4.created coherence-cache-config.xml(to created the cache server )*
    code :
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <defaults>
    <serializer system-property="tangosol.coherence.serializer"/>
    <socket-provider system-property="tangosol.coherence.socketprovider"/>
    </defaults>
    <caching-scheme-mapping>
    <cache-mapping>
    <!-- Set the name of the cache to be the entity name -->
    <cache-name>Employee</cache-name>
    <!-- Configure this cache to use the scheme defined below -->
    <scheme-name>jpa-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>jpa-distributed</scheme-name>
    <service-name>JpaDistributedCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <!--
    Define the cache scheme
    -->
    <internal-cache-scheme>
    <local-scheme/>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.tangosol.coherence.jpa.JpaCacheStore</class-name>
    <init-params>
    <!--
    This param is the entity name
    This param is the fully qualified entity class
    This param should match the value of the
    persistence unit name in persistence.xml
    -->
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>com.lakshman.weblogicJPA.{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>WeblogicJPA</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    </cache-config>
    After deploying my application into the weblogic server .
    The data was  not inserted into cache server_
    when i am trying to start cache server its showing the following error :_
    i imported  cohernce-cache-config.xml path  into my default cache , coherence servers as well
    1.coherence.jpa.jar,coherence-eclipselink.jar.javax-persistance.jar,coherence-common.jar,toplinkgrid,jar into cache
    <param-value>Employee</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>com.lakshman.weblogicJPA.Employee</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>WeblogicJPA</param-value>
    </init-param>
    </init-params>
    </class-scheme>) java.lang.ClassNotFoundException: com.tangosol.coherence.jpa.JpaCacheStore
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2542)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2426)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:3256)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:3106)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1674)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1429)
    at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3904)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.instantiateResourceMap
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.setCacheName(Partition
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureKnownStorage(Partitioned
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.finalizeAcceptingClients(Parti
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.finalizeStartup(PartitionedService.CDB:15)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onServiceStarted(PartitionedService.CDB:70)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onServiceStarted(PartitionedCa
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$MemberWelcomeRequest$Poll.onCompletion(Grid.CDB:18)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService$MemberWelcomeRequest$Poll.onCompletion(Partitio
    at com.tangosol.coherence.component.net.Poll.close(Poll.CDB:13)
    at com.tangosol.coherence.component.net.Poll.onResponded(Poll.CDB:32)
    at com.tangosol.coherence.component.net.Poll.onResponse(Poll.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: com.tangosol.coherence.jpa.JpaCacheStore
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:3011)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2500)
    ... 24 more
    2012-06-11 19:05:59.647/1.915 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 7 for 20 primary
    2012-06-11 19:05:59.780/2.049 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 8 for 21 primary
    2012-06-11 19:05:59.916/2.184 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 1 for 21 primary
    2012-06-11 19:06:00.035/2.303 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 7 for 1 primary
    2012-06-11 19:06:00.138/2.406 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 1 for 1 primary
    without shutdown the database also data is not showing in cache ,(My requirement is to data should be available even database shutdown also)
    Is it correct way  to interacting with coherence ,
    How to approach to solve this problem , pls help me how to do my requirement
    is there any extra settings i need to do change to store the data into cache  servers...
    pls provide me the details ...
    is there any storage i need to create to store the data in cache
    Thanks-laxman

    When accessing the Coherence caches directly using Coherence API you have two options for getting access to the Entity instance. If you are calling from a non TopLink-Grid VM you can set the system property "eclipselink.coherence.not-eclipselink" to "true" and any wrappers will automatically be unwrapped but without any of the relationships populated. An easier mechanism is to cast the result to oracle.eclipselink.coherence.integrated.cache.Wrapper and call "unwrap()" One of the benefits to accessing the wrapper is all of the information for rebuilding the relationships is available.
    As for indexes you can simply add @Property(name="eclipselink.coherence.indexed", value="true") to the @Basic mappings you wish to index. A patch is required see oracle bug 9645880.
    The TopLink-Grid indexes should be compatible with the Coherence ReflectionExtractor if you are using native Coherence APIs.

  • CreateEntityManagerFactory throws NullPointerException for ejb3 jse client

    This question has been posted to the Toplink/jpa forum without any reply.
    Dear experts!
    I am trying to create a java standard edition client, to test outside the weblogic server, my ejb 3 entities, declared as shown in the following persistence.xml.
    The java code follows also. I have read about some relevant bugs in eclipselink back in 2006, or 7 or 8 and mostly unanswered threads :
    CreateEntityManagerFactory null pointer exception and
    Returned null to createEntityManagerFactory about tomcat and oc4j.
    Persistence.createEntityManagerFactory() throw NullPointerException in oc4j
    I am using JDeveloper 11g Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
    Any helping hand available?
    Thank you very much in advance!
    NA
    package chapter12javaseclient;
    import actionbazaar.buslogic.BidException;
    import actionbazaar.persistence.Bid;
    import actionbazaar.persistence.Bidder;
    import actionbazaar.persistence.Item;
    import java.util.HashMap;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import org.eclipse.persistence.config.EntityManagerProperties;
    public class PlaceBidBeanJavaSE {
    private static EntityManagerFactory emf;
    private static EntityManager em;
    public static void main(String[] args) {
    String userId= "idiot";
    Long itemId = new Long (1);
    Double bidPrice = 2001.50;
    try {
    if (emf == null){
    emf = Persistence.createEntityManagerFactory("actionBazaar");
    System.out.println("EntityManagerFactory created!");
    getEntityManager();
    System.out.println("EntityManager created!");
    addBid(userId,itemId,bidPrice);
    commitTransaction();
    } finally {
    // close the EntityManager when done
    em.close();
    emf.close();
    private static void getEntityManager() {
    HashMap emProps = new HashMap();
    emProps.put(EntityManagerProperties.JDBC_USER, "ab");
    emProps.put(EntityManagerProperties.JDBC_PASSWORD, "ab");
    System.out.println("Creating entity manager");
    em = emf.createEntityManager(emProps);
    em.getTransaction().begin();
    private static void commitTransaction() {
    em.getTransaction().commit();
    private static Long addBid(String userId, Long itemId, Double bidPrice) throws BidException {
    Item item = em.find(Item.class,itemId);
    if (item == null)
    throw new BidException("Invalid Item Id");
    Bidder bidder = em.find(Bidder.class,userId);
    if (bidder == null)
    throw new BidException("Invalid Bidder Id");
    Bid bid = new Bid();
    bid.setItem(item);
    bid.setBidBidder(bidder);
    bid.setBidPrice(bidPrice);
    em.persist(bid);
    return bid.getBidId();
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="actionBazaar" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>actionbazaar.persistence.Bid</class>
    <class>actionbazaar.persistence.Item</class>
    <class>actionbazaar.persistence.User</class>
    <class>actionbazaar.persistence.Bidder</class>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.target-database" value="Oracle11"/>
    <property name="javax.persistence.jdbc.driver"
    value="oracle.jdbc.OracleDriver"/>
    <property name="javax.persistence.jdbc.password"
    value="ab"/>
    <property name="javax.persistence.jdbc.url"
    value="jdbc:oracle:thin:@hera:1521:orcl"/>
    <property name="javax.persistence.jdbc.user" value="ab"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    </properties>
    </persistence-unit>
    </persistence>

    A solution might be found here:
    Re: createEntityManagerFactory() throws NullPointerException for ejb jse client
    Re: createEntityManagerFactory() throws NullPointerException for ejb jse client
    NA
    [http://nickaiva.blogspot.com/]

  • How can we use Essbase grid API for VB

    Hi Experts
    I am developing a custom application to talk to Essbase in VB6 environment.
    I need to retrieve data from the essbase. When i am using EsbReport to execute the report script query, it takes a lot of time to parse through the returned output and even sometimes, the application prompts "Out of Memory" error.
    1. Is there any faster way to extract data from Essbase using VB APIs
    2. I was going through Grid APIs which gives the ability to extract data from Essbase in Grid format in a comparatively faster manner. Do we have any such Grid APIs for VB? or is there any way to use C grid APIs in VB program?
    Please help :(

    Hi,
    Its hard to say if there is a faster way without knowing how you're doing it now. A few questions:
    - why are you using the API to get at Essbase Data, especially if you've already defined a (some) report scripts?
    - if you want to use provider services, vs having to ensure all the libraries and the client are present, why not use the JAPI?
    - Without seeing your code, its hard to know why you're getting out of memory errors. What are you doing with the data as you're parsing it from the report?
    Grid API exists for the C API, and more noteable the JAPI, but not VB(I'm surprised the VB api still exists).
    Why not just use the Java API?
    Robb

  • Looking for best practice / installation guide for grid agent for RAC

    I am looking for best practice / installation guide for grid agent for RAC, running on windows server.
    Thanks.

    Please refer :
    MOS note Id : [ID 378037.1] -- How To Install Oracle 10g Grid Agent On RAC
    http://repettas.wordpress.com/2007/10/21/how-to-install-oracle-10g-grid-agent-on-rac/
    Regards
    Rajesh

  • Set default grid artwork for composer grid view

    As the title I wanted to know if there is a way to set default grid artwork for composer grid view.
    Thanks.

    Nope. It is the first image from the first track of the first album that has artwork. As you move your pointer over the icon you will get any other images assoicated with that composer.
    tt2

  • Grid Control for windows

    Hi Experts,
    We're trying to download and install Oracle grid control for windows 64bit but we can't find any 64bit release!
    Can we safely download and install Enterprise Manager 11g Grid Control Release (11.1.0.1.0) - Windows 32bit from http://www.oracle.com/technetwork/oem/grid-control/downloads/index.html ? or should we be installing a different version??
    Should Grid control be installed on the DB server in the 1st place or should it be installed on another server?
    Current Oracle Software: 11.2.0.1 64bit.
    Server OS: Windows 2008 Server 64bit.
    Can you kindly let us know.
    Thanks

    We finally got our facts right..
    The Grid Control Enterprise Manager comes only in 32 bits.. However the Grid Control agent that needs to be installed on the DB server comes in 32/64bits and is supported under different OS platforms.
    Metalink (Doc ID 412431.1) shows the Oracle Enterprise Manager Grid Control Certification Checker/matrix that we found extremely useful.
    Enterprise Manager Grid Control comes with the basic features and is free to use. Any extra features are considered addons and do need to be properly licensed.
    Thanks

  • Restore snap-to-grid behaviour for path handles

    Hi,
    one of the new features in AI CC 2014 is path handles ignoring any grid. However, when one wants to construct C2-contious joins between seperate objects, precise control over the handle position is needed. I do a lot of icon and sprite art, and there it is imperative that curves from differnent objects flow exactly the same to create a smoth transition between individual pieces.
    How can one restore the ability of handles to snap to the grid like in previous versions of AI?
    Reagrds,
    Chris

    First of all, let's just hope Adobe fixes this issue in the next version. My workaround:
    1. Turn on Snap to Grid and the Grid and using Guides create your own grid. Tedious work, but handles actually still snap to the intersection of Guides.
    2. In the Preference panel, choose your Guides color to match the Grid color. This way you won't notice the difference.
    3. Turn off the Grid but leave Snap to Grid on for easy anchor placement.
    4. Name the layer you did this on 'Grid' or something. Do not lock this layer, otherwise this improvised 'handle snapping feature' won't work.
    5. Create a new layer on top of your 'Grid' layer. This new layer will be the first layer to work on.
    6. Save this file as a template to do your linework on.
    Keep in mind that the 'Grid' layer isn't locked, so you could accidentally drag a Guide out of place...
    Hope this helps!

  • Configure Oracle Grid Infrastructure for a standalone server

    As I understand and as the following doc indicated, to install Oracle database, I'd have to install Grid Infrastructure first. I am not configuring RAC/cluster, only on a standalone server.
    I executed runinstaller, and choose " install the software only", then after I selected "configure oralce grid infrastructure for a standalone server", I am getting the following error:
    [INS-40410] The installer has detected a configured instance of Oracle Grid Infrastructure software on the system
    Please advice how this instance have been configured, and how to remove it before I can proceed?
    Thanks!

    943714 wrote:
    As I understand and as the following doc indicated, to install Oracle database, I'd have to install Grid Infrastructure first. I am not configuring RAC/cluster, only on a standalone server.
    I executed runinstaller, and choose " install the software only", then after I selected "configure oralce grid infrastructure for a standalone server", I am getting the following error:
    [INS-40410] The installer has detected a configured instance of Oracle Grid Infrastructure software on the system
    Please advice how this instance have been configured, and how to remove it before I can proceed?
    Thanks!what is OS name & version?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Grid Infrastructure for a Standalone Server or Grid Infrastructure for a Cluster?

    Hi,
    I want to install a single instance database and I want to use ASM.
    Now my configuration is only one node but in the future probably it scale on multiple node.
    So, can I use Grid Infrastructure for a Cluster for only one node or I must use Grid Infrastructure for a Standalone Server?
    Regards

    If you plan later ro use more than one server, than install the cluster grid infrastructure. It is possible to install on one server.

  • Set up grid control for Oracle application 11i

    Hi,
    I want to set up the grid control for his/her application 11i.
    Our system is on 11.5.10.2 and the database is 10.1.0.4
    Is there any good documentation for this?
    Thanks,
    Lily

    Yes, please have a look at Metalink Note 308320.1.
    Cheers,
    B.

  • Grid Infrastructure for Win32

    hi,
    I was downloading Oracle 11g R2 SW from official site for Win32...I did not see "Grid Infrastructure" for win32...what is the reason...how is the ASM installed for Oracle 11g R2 on Win32....
    thanx

    In previous releases, Oracle Automatic Storage Management (Oracle ASM) was installed as part of the Oracle Database installation. With Oracle Database 11g Release 2 (11.2), Automatic Storage Management is part of an Oracle grid infrastructure installation, either for a cluster, or for a standalone server.
    If you want to upgrade an existing Automatic Storage Management installation, then you must upgrade Automatic Storage Management by running an Oracle grid infrastructure upgrade. If you do not have Automatic Storage Management installed and you want to use Automatic Storage Management as your storage option, then you must complete an Oracle grid infrastructure installation before you start your Oracle Database installation.
    Source: http://download.oracle.com/docs/cd/E11882_01/install.112/e10843/install.htm#CIHIFHCB

  • Grid size for Curves in PhotoShop CS

    I want to get back to the default grid size for Curves in PhotoShop CS. I accidentally changed it to a much smaller grid (100 squares) from its default grid size which I think was 16 squares. I don 't know what I did to change it, but I'd sure like to unchange it.

    Option-click on the grid.

  • No grid values for PO 4500000002 00010; goods receipt not possible

    Dear Experts
    I have been configuring AFS, 1st I create Charactreristic for Size and Colour, 2nd assigned it in MM01. And create PR and PO. When I Goods receipt the following error occured.
    "" No grid values for PO 4500000002 00010; goods receipt not possible
    Message no. 8J658 ""
    But I can see the grid like the below mentioned in MIGO screen "Grid Value " field
    I have mentioned One size and three colours
    Grids like
             Size
    Grn       S
    Blu       S
    Yell      S
    Pls help me.
    Thanks
    Rajakumar.K

    In PO item level go to Delivery shcdule tab and over there you have to select the grid value
    Hope u clear

Maybe you are looking for

  • Why is my iMessage app not updating?

    I have used (and LOVE) the iMessage app on my Macbook Pro.  Has worked perfectly, even through iOS7 upgrades, and the Mavericks update, as well. However over the past few days, it will not update correctly.  I can send messages from it, but it does n

  • A Modest Proposal

    Let's assume that a 61 year old guy, we'll call him Andy, is staying at his son's place temporarily, as an alternative to homelessness due to the on-going depression. Let's further assume that Andy needs to be able to print files on his son's Windows

  • Can desktop manager be configured to view email attachment?

    Hi, I have posted this question few times before and still have not gotten a definite answer. Can someone confirm if I can configure the desktop manager to view email attachment? If so, how do I achieve it? I am not one BES or BIS. I have looked at t

  • Do I need 16gb of RAM and/or and SSD

    Hi, My wife has an early 2011 macbook pro, entry level 13''. I upgraded it to 2x4gb of RAM but she still gets a lot of lag. I've tried convoncing her that it's because she has 20 odd file open in Adobe illustrator and a couple of files open in a few

  • Delphi Crystal 10 vcl subreport link issue (on second run)

    Post Author: mkozma CA Forum: Other I have a Delphi application (Delphi 7 using Crystal 10 VCL) that calls a subreport based on a link. The report (and subreport) work fine for a particular id the first time but if I rerun the report a second time, t