JPA on the Grid API

Hi All , I am working with JPA on the TopLink grid with Coherence my Intention is to put the data in cache as well as in database , when the database get shutdown i have to get the data from cache ..
so for that i have created cache store to store the data in the cache its working fine when database is on startup mode , when db shutdown its unable to pick the data ...showing error
2012-06-18 21:21:08.173/7.234 Oracle Coherence GE 3.7.1.0 <Error> (thread=DistributedCache:EclipseLinkJPA, member=1): BackingMapManager com.tangosol.net.DefaultConfigurableCacheFactory$Manager: failed to instantiate a cache: Employe
2012-06-18 21:21:08.173/7.234 Oracle Coherence GE 3.7.1.0 <Error> (thread=DistributedCache:EclipseLinkJPA, member=1):
(Wrapped: Missing or inaccessible constructor "oracle.eclipselink.coherence.standalone.EclipseLinkJPACacheStore(String,String)"
<class-scheme>
<!--
Since the client code is using Coherence API we need the "standalone"
version of the cache loader
-->
<class-name>oracle.eclipselink.coherence.standalone.EclipseLinkJPACacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>Employe</param-value>
</init-param>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>CacheStoreProject</param-value>
</init-param>
</init-params>
</class-scheme>) java.lang.reflect.InvocationTargetException
     at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
     at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652)
     at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536)
     at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:3476)
     at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:3324)
     at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1753)
     at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1500)
     at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:4111)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.instantiateBackingMap(PartitionedCache.CDB:22)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.setCacheName(PartitionedCache.CDB:25)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ServiceConfig$ConfigListener.entryInserted(PartitionedCache.CDB:17)
     at com.tangosol.util.MapEvent.dispatch(MapEvent.java:266)
     at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226)
     at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:567)
     at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
     at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
     at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
     at com.tangosol.coherence.component.util.ServiceConfig$Map.put(ServiceConfig.CDB:43)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$StorageIdRequest.onReceived(PartitionedCache.CDB:45)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:34)
     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:3)
     at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694)
     at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611)
     ... 23 more
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:xe
Error Code: 0
     at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:517)
     at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
     at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getServerSession(EntityManagerFactoryDelegate.java:219)
     at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:247)
     at org.eclipse.persistence.jpa.JpaHelper.getServerSession(JpaHelper.java:193)
     at oracle.eclipselink.coherence.standalone.EclipseLinkJPACacheLoader.<init>(EclipseLinkJPACacheLoader.java:70)
     at oracle.eclipselink.coherence.standalone.EclipseLinkJPACacheStore.<init>(EclipseLinkJPACacheStore.java:26)
     ... 29 more
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:xe
Error Code: 0
     at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
     at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:319)
     at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:138)
     at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
     at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:584)
     at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
     at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)
     ... 35 more
Caused by: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:xe
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:261)
     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
     at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
     at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
     at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
     at java.sql.DriverManager.getConnection(Unknown Source)
     at java.sql.DriverManager.getConnection(Unknown Source)
     at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)
     ... 39 more
New Employe from cache is: null
program for put and get the data from cache
package com.cachestore.example;
import com.oracle.employe.Employe;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
public class PutGetData {
     public static void main(String[] args) {
          System.setProperty("tangosol.coherence.distributed.localstorage","true");
          // Get the cache--name is same as Entity
          NamedCache employeeCache = CacheFactory.getCache("Employe");
          Employe employee = new Employe();
          employee.setId(4);
          employee.setFirstname("rambabu");
          employee.setLastname("davuluri");
          //employeeCache.put(employee.getId(), employee);
          // Getting an object from cache produces no SQL
          System.out.println("New Employe from cache is: " + employeeCache.get(4));
Thanks

What's happening is the JPA cache store is failing on creation/initialization due to its inability to connect to the database.
Can you describe the behaviour you're expecting? Are you saying you want an "optional" cache store that works when the database is up and silently ignores problems when the database is down? It would still have to fail on write otherwise Coherence write behind will believe the writes have been successfully performed and won't get retried. On a get() with a cache miss, would retuning a null from the cache store be what you want? Your application will be lead to believe that there is no object with the specified key when in reality there may be such an object that just doesn't happen to have been read into cache yet. Perhaps this is acceptable if you were to fully warm your caches.
--Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • JPA on the Grid

    Hi,
    I am trying to do oracle with coherence.My objective is to put data in to the database using toplink grid and again trying to retrieve data even when database is OFF. Because the data is updated in to the cache.I am following the link http://docs.oracle.com/cd/E17904_01/doc.1111/e16596/configjpa.htm.I am trying to implement 2.3 section in the above link. So i am using Hr schema in the database.I am using eclipse IDE.I created entity class using option "Create entities from tables".
    My entity class is as follows.
    Region.java
    package com;
    import java.io.Serializable;
    import javax.persistence.*;
    import org.eclipse.persistence.annotations.Customizer;
    import oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer;
    * The persistent class for the REGIONS database table.
    @Entity
    @Table(name="REGIONS")
    @Customizer(GridCacheCustomizer.class)
    public class Region implements Serializable {
         private static final long serialVersionUID = 1L;
         @Id
         @Column(name="REGION_ID")
         private long regionId;
         @Column(name="REGION_NAME")
         private String regionName;
    public Region() {
         public long getRegionId() {
              return this.regionId;
         public void setRegionId(long regionId) {
              this.regionId = regionId;
         public String getRegionName() {
              return this.regionName;
         public void setRegionName(String regionName) {
              this.regionName = regionName;
    Persistance.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="2.0" 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_2_0.xsd">
         <persistence-unit name="SimpleCoherenceApp" transaction-type="RESOURCE_LOCAL">
              <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
              <class>com.Region</class>
              <properties>
                   <property name="eclipselink.target-server" value="WebLogic_10"/>
                   <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
                   <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:xe"/>
                   <property name="javax.persistence.jdbc.user" value="hr"/>
                   <property name="javax.persistence.jdbc.password" value="hr"/>
                   <property name="eclipselink.logging.level" value="FINEST"/>
                   <property name="eclipselink.cache.type.default" value="Full"/>
              </properties>
         </persistence-unit>
    </persistence>
    coherence-cache-config.xml
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>*</cache-name>
    <scheme-name>eclipselink-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>eclipselink-distributed</scheme-name>
    <service-name>EclipseLinkJPA</service-name>
    <!--
    Configure a wrapper serializer to support serialization of relationships.
    -->
    <!-- <serializer>
    <class-name>oracle.eclipselink.coherence.integrated.cache.WrapperSerializer</class-name>
    <instance>
    <class-name>oracle.eclipselink.coherence.integrated.cache.WrapperSerializer</class-name>
    <init-params></init-params>
    </instance>
    </serializer> -->
    <backing-map-scheme>
    <!--
    Backing map scheme with no eviction policy.
    -->
    <local-scheme>
    </local-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    </cache-config>
    Now the main class is as follows:
    Manager.java
    package com;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    public class Manager {
         * @param args
         public static void main(String[] args)
              EntityManagerFactory emf=Persistence.createEntityManagerFactory("SimpleCoherenceApp");
              EntityManager em=emf.createEntityManager();
              em.getTransaction().begin();
              Region R = new Region();
              R.setRegionId(9);
              R.setRegionName("Africa");
              em.persist(R);
              em.getTransaction().commit();
    The data is not inserting in to the database.My console is as follows:
    [EL Finest]: 2012-06-07 20:06:13.451--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Begin predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Initial; factoryCount 0
    [EL Finest]: 2012-06-07 20:06:13.708--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.orm.throw.exceptions; default value=true
    [EL Finest]: 2012-06-07 20:06:13.708--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.multitenant.tenants-share-emf; default value=true
    [EL Finest]: 2012-06-07 20:06:13.708--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.multitenant.tenants-share-cache; default value=false
    [EL Finest]: 2012-06-07 20:06:13.725--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.metadata-source; default value=null
    [EL Finer]: 2012-06-07 20:06:13.728--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Searching for default mapping file in file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/
    [EL Finer]: 2012-06-07 20:06:13.732--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Searching for default mapping file in file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/
    [EL Config]: 2012-06-07 20:06:13.866--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--The access type for the persistent class [class com.Region] is set to [FIELD].
    [EL Config]: 2012-06-07 20:06:13.904--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--The alias name for the entity class [class com.Region] is being defaulted to: Region.
    [EL Finest]: 2012-06-07 20:06:13.963--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--End predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 0
    [EL Finer]: 2012-06-07 20:06:13.964--Thread(Thread[Main Thread,5,main])--JavaSECMPInitializer - transformer is null.
    [EL Finest]: 2012-06-07 20:06:13.964--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Begin predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 0
    [EL Finest]: 2012-06-07 20:06:13.964--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--End predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 1
    [EL Finest]: 2012-06-07 20:06:13.979--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Begin deploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 1
    [EL Finer]: 2012-06-07 20:06:14.005--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Could not initialize Validation Factory. Encountered following exception: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory
    [EL Finest]: 2012-06-07 20:06:14.015--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.target-server; value=WebLogic_10; translated value=org.eclipse.persistence.platform.server.wls.WebLogic_10_Platform
    [EL Finest]: 2012-06-07 20:06:14.015--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2012-06-07 20:06:14.015--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2012-06-07 20:06:14.017--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=javax.persistence.jdbc.user; value=hr
    [EL Finest]: 2012-06-07 20:06:14.017--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=javax.persistence.jdbc.password; value=xxxxxx
    [EL Finest]: 2012-06-07 20:06:14.741--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=javax.persistence.jdbc.driver; value=oracle.jdbc.OracleDriver
    [EL Finest]: 2012-06-07 20:06:14.741--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=javax.persistence.jdbc.url; value=jdbc:oracle:thin:@localhost:1521:xe
    [EL Finest]: 2012-06-07 20:06:14.749--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--property=eclipselink.cache.type.default; value=Full; translated value=org.eclipse.persistence.internal.identitymaps.FullIdentityMap
    [EL Info]: 2012-06-07 20:06:14.763--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
    [EL Warning]: 2012-06-07 20:06:14.764--Thread(Thread[Main Thread,5,main])--java.lang.ClassNotFoundException: weblogic.version
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getClassForName(PrivilegedAccessHelper.java:107)
         at org.eclipse.persistence.platform.server.wls.WebLogicPlatform.initializeServerNameAndVersion(WebLogicPlatform.java:86)
         at org.eclipse.persistence.platform.server.ServerPlatformBase.getServerNameAndVersion(ServerPlatformBase.java:181)
         at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.preConnectDatasource(DatabaseSessionImpl.java:661)
         at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)
         at com.Manager.main(Manager.java:15)
    [EL Finest]: 2012-06-07 20:06:15.175--Thread(Thread[Main Thread,5,main])--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle11Platform, regular expression: (?i)oracle.*11
    [EL Finest]: 2012-06-07 20:06:15.178--Thread(Thread[Main Thread,5,main])--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform, regular expression: (?i)oracle.*10
    [EL Fine]: 2012-06-07 20:06:15.178--Thread(Thread[Main Thread,5,main])--Detected database platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Config]: 2012-06-07 20:06:15.203--ServerSession(34841853)--Connection(37577244)--Thread(Thread[Main Thread,5,main])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> "hr"
         datasource URL=> "jdbc:oracle:thin:@localhost:1521:xe"
    [EL Config]: 2012-06-07 20:06:15.217--ServerSession(34841853)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--Connected: jdbc:oracle:thin:@localhost:1521:xe
         User: HR
         Database: Oracle Version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver Version: 10.2.0.1.0XE
    [EL Finest]: 2012-06-07 20:06:15.22--ServerSession(34841853)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--Connection acquired from connection pool [default].
    [EL Finest]: 2012-06-07 20:06:15.221--ServerSession(34841853)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--Connection released to connection pool [default].
    [EL Info]: 2012-06-07 20:06:15.346--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp login successful
    [EL Warning]: 2012-06-07 20:06:15.363--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Failed to find MBean Server: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    [EL Warning]: 2012-06-07 20:06:15.365--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Failed to find MBean Server: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    [EL Warning]: 2012-06-07 20:06:15.365--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Failed to find MBean Server: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    [EL Finest]: 2012-06-07 20:06:15.366--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--The applicationName for the MBean attached to session [file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp] is [unknown]
    [EL Finest]: 2012-06-07 20:06:15.366--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--The moduleName for the MBean attached to session [file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp] is [unknown]
    [EL Finer]: 2012-06-07 20:06:15.402--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--Canonical Metamodel class [com.Region_] not found during initialization.
    [EL Finest]: 2012-06-07 20:06:15.402--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--End deploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Deployed; factoryCount 1
    [EL Finer]: 2012-06-07 20:06:15.422--ServerSession(34841853)--Thread(Thread[Main Thread,5,main])--client acquired: 33723171
    [EL Finer]: 2012-06-07 20:06:15.433--ClientSession(33723171)--Thread(Thread[Main Thread,5,main])--acquire unit of work: 33613802
    [EL Finest]: 2012-06-07 20:06:15.437--UnitOfWork(33613802)--Thread(Thread[Main Thread,5,main])--persist() operation called on: com.Region@200eb1e.
    [EL Finer]: 2012-06-07 20:06:15.448--UnitOfWork(33613802)--Thread(Thread[Main Thread,5,main])--begin unit of work commit
    [EL Finest]: 2012-06-07 20:06:15.492--UnitOfWork(33613802)--Thread(Thread[Main Thread,5,main])--Execute query InsertObjectQuery(com.Region@200eb1e)
    [EL Finest]: 2012-06-07 20:06:15.506--ServerSession(34841853)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--Connection acquired from connection pool [default].
    [EL Finer]: 2012-06-07 20:06:15.508--ClientSession(33723171)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--begin transaction
    [EL Fine]: 2012-06-07 20:06:15.516--ClientSession(33723171)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--INSERT INTO REGIONS (REGION_ID, REGION_NAME) VALUES (?, ?)
         bind => [9, Africa]
    2012-06-07 20:06:15.896/3.638 Oracle Coherence 3.6.0.4 <Info> (thread=Main Thread, member=n/a): Loaded operational configuration from "jar:file:/C:/Oracle/Middleware10.3.4.0/coherence_3.6/lib/coherence.jar!/tangosol-coherence.xml"
    2012-06-07 20:06:15.906/3.647 Oracle Coherence 3.6.0.4 <Info> (thread=Main Thread, member=n/a): Loaded operational overrides from "jar:file:/C:/Oracle/Middleware10.3.4.0/coherence_3.6/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2012-06-07 20:06:15.907/3.648 Oracle Coherence 3.6.0.4 <Info> (thread=Main Thread, member=n/a): Loaded operational overrides from "file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/tangosol-coherence-override.xml"
    2012-06-07 20:06:15.910/3.651 Oracle Coherence 3.6.0.4 <D5> (thread=Main Thread, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.6.0.4 Build 19111
    Grid Edition: Development mode
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    2012-06-07 20:06:16.063/3.804 Oracle Coherence GE 3.6.0.4 <Info> (thread=Main Thread, member=n/a): Loaded cache configuration from "file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/coherence-cache-config.xml"
    2012-06-07 20:06:17.158/4.899 Oracle Coherence GE 3.6.0.4 <D4> (thread=Main Thread, member=n/a): TCMP bound to /172.16.30.150:8090 using SystemSocketProvider
    2012-06-07 20:06:17.818/5.559 Oracle Coherence GE 3.6.0.4 <Info> (thread=Cluster, member=n/a): Failed to satisfy the variance: allowed=16, actual=34
    2012-06-07 20:06:17.819/5.560 Oracle Coherence GE 3.6.0.4 <Info> (thread=Cluster, member=n/a): Increasing allowable variance to 18
    2012-06-07 20:06:18.054/5.795 Oracle Coherence GE 3.6.0.4 <Info> (thread=Cluster, member=n/a): This Member(Id=3, Timestamp=2012-06-07 20:06:17.821, Address=172.16.30.150:8090, MachineId=41622, Location=machine:Praveen-PC,process:316, Role=ManagerManager, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) joined cluster "cluster:0xC4DB" with senior Member(Id=1, Timestamp=2012-06-07 16:51:43.007, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:2836, Role=CoherenceConsole, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2)
    2012-06-07 20:06:18.098/5.839 Oracle Coherence GE 3.6.0.4 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Cluster with senior member 1
    2012-06-07 20:06:18.099/5.840 Oracle Coherence GE 3.6.0.4 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
    2012-06-07 20:06:18.109/5.850 Oracle Coherence GE 3.6.0.4 <Info> (thread=Main Thread, member=n/a): Started cluster Name=cluster:0xC4DB
    Group{Address=224.3.6.0, Port=36000, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=3, Timestamp=2012-06-07 20:06:17.821, Address=172.16.30.150:8090, MachineId=41622, Location=machine:Praveen-PC,process:316, Role=ManagerManager)
    OldestMember=Member(Id=1, Timestamp=2012-06-07 16:51:43.007, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:2836, Role=CoherenceConsole)
    ActualMemberSet=MemberSet(Size=2, BitSetCount=2
    Member(Id=1, Timestamp=2012-06-07 16:51:43.007, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:2836, Role=CoherenceConsole)
    Member(Id=3, Timestamp=2012-06-07 20:06:17.821, Address=172.16.30.150:8090, MachineId=41622, Location=machine:Praveen-PC,process:316, Role=ManagerManager)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[1]}
    IpMonitor{AddressListSize=0}
    2012-06-07 20:06:18.189/5.930 Oracle Coherence GE 3.6.0.4 <D5> (thread=Invocation:Management, member=3): Service Management joined the cluster with senior service member 1
    2012-06-07 20:06:18.394/6.135 Oracle Coherence GE 3.6.0.4 <D5> (thread=DistributedCache:EclipseLinkJPA, member=3): Service EclipseLinkJPA joined the cluster with senior service member 3
    [EL Finer]: 2012-06-07 20:06:18.538--ClientSession(33723171)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--rollback transaction
    [EL Finest]: 2012-06-07 20:06:18.541--ServerSession(34841853)--Connection(37580294)--Thread(Thread[Main Thread,5,main])--Connection released to connection pool [default].
    [EL Warning]: 2012-06-07 20:06:18.542--UnitOfWork(33613802)--Thread(Thread[Main Thread,5,main])--Local Exception Stack:
    Exception [EclipseLink-38] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 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: java.lang.NoSuchMethodError: org/eclipse/persistence/internal/libraries/asm/ClassWriter.<init>(Z)V
    Descriptor: RelationalDescriptor(com.Region --> [DatabaseTable(REGIONS)])
         at org.eclipse.persistence.exceptions.DescriptorException.invalidIdentityMap(DescriptorException.java:838)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:392)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:346)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:950)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLockNoWait(IdentityMapManager.java:175)
         at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLockNoWait(IdentityMapAccessor.java:101)
         at org.eclipse.persistence.internal.helper.WriteLockManager.attemptToAcquireLock(WriteLockManager.java:421)
         at org.eclipse.persistence.internal.helper.WriteLockManager.acquireRequiredLocks(WriteLockManager.java:272)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1623)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1588)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:275)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1143)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:84)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
         at com.Manager.main(Manager.java:21)
    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:382)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:387)
         ... 13 more
    Caused by: java.lang.NoSuchMethodError: org/eclipse/persistence/internal/libraries/asm/ClassWriter.<init>(Z)V
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.generateWrapper(WrapperGenerator.java:104)
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.createWrapperFor(WrapperGenerator.java:96)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.defineWrapperClass(CoherenceCacheHelper.java:573)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.initializeForDescriptor(CoherenceCacheHelper.java:304)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:241)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:79)
         ... 19 more
    [EL Finer]: 2012-06-07 20:06:18.549--UnitOfWork(33613802)--Thread(Thread[Main Thread,5,main])--release unit of work
    [EL Finer]: 2012-06-07 20:06:18.55--ClientSession(33723171)--Thread(Thread[Main Thread,5,main])--client released
    Exception in thread "Main Thread" javax.persistence.RollbackException: Exception [EclipseLink-38] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 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: java.lang.NoSuchMethodError: org/eclipse/persistence/internal/libraries/asm/ClassWriter.<init>(Z)V
    Descriptor: RelationalDescriptor(com.Region --> [DatabaseTable(REGIONS)])
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:102)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
         at com.Manager.main(Manager.java:23)
    Caused by: Exception [EclipseLink-38] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 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: java.lang.NoSuchMethodError: org/eclipse/persistence/internal/libraries/asm/ClassWriter.<init>(Z)V
    Descriptor: RelationalDescriptor(com.Region --> [DatabaseTable(REGIONS)])
         at org.eclipse.persistence.exceptions.DescriptorException.invalidIdentityMap(DescriptorException.java:838)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:392)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:346)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:950)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLockNoWait(IdentityMapManager.java:175)
         at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLockNoWait(IdentityMapAccessor.java:101)
         at org.eclipse.persistence.internal.helper.WriteLockManager.attemptToAcquireLock(WriteLockManager.java:421)
         at org.eclipse.persistence.internal.helper.WriteLockManager.acquireRequiredLocks(WriteLockManager.java:272)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1623)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1588)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:275)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1143)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:84)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
         at com.Manager.main(Manager.java:21)
    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:382)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:387)
         ... 13 more
    Caused by: java.lang.NoSuchMethodError: org/eclipse/persistence/internal/libraries/asm/ClassWriter.<init>(Z)V
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.generateWrapper(WrapperGenerator.java:104)
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.createWrapperFor(WrapperGenerator.java:96)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.defineWrapperClass(CoherenceCacheHelper.java:573)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.initializeForDescriptor(CoherenceCacheHelper.java:304)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:241)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:79)
         ... 19 more
    So, any suggestions would be great.
    Regards,
    Praveen

    HI NJ,
    when i am using @Customizer(GridCacheCustomizer.class) in the entity class,the data is not at all inserting in to the database.So if i commented this annotation,the data is inserting in to the database.The console is showing as follows:
    [EL Finest]: 2012-06-11 14:30:27.803--ServerSession(30146205)--Thread(Thread[main,5,main])--Begin predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Initial; factoryCount 0
    [EL Finest]: 2012-06-11 14:30:27.819--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.orm.throw.exceptions; default value=true
    [EL Finest]: 2012-06-11 14:30:27.82--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.multitenant.tenants-share-emf; default value=true
    [EL Finest]: 2012-06-11 14:30:27.82--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.multitenant.tenants-share-cache; default value=false
    [EL Finest]: 2012-06-11 14:30:27.836--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.metadata-source; default value=null
    [EL Finer]: 2012-06-11 14:30:27.836--ServerSession(30146205)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/
    [EL Finer]: 2012-06-11 14:30:27.839--ServerSession(30146205)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/
    [EL Config]: 2012-06-11 14:30:27.941--ServerSession(30146205)--Thread(Thread[main,5,main])--The access type for the persistent class [class com.Region] is set to [FIELD].
    [EL Config]: 2012-06-11 14:30:27.967--ServerSession(30146205)--Thread(Thread[main,5,main])--The alias name for the entity class [class com.Region] is being defaulted to: Region.
    [EL Finest]: 2012-06-11 14:30:27.989--ServerSession(30146205)--Thread(Thread[main,5,main])--End predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 0
    [EL Finer]: 2012-06-11 14:30:27.989--Thread(Thread[main,5,main])--JavaSECMPInitializer - transformer is null.
    [EL Finest]: 2012-06-11 14:30:27.989--ServerSession(30146205)--Thread(Thread[main,5,main])--Begin predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 0
    [EL Finest]: 2012-06-11 14:30:27.99--ServerSession(30146205)--Thread(Thread[main,5,main])--End predeploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 1
    [EL Finest]: 2012-06-11 14:30:27.994--ServerSession(30146205)--Thread(Thread[main,5,main])--Begin deploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Predeployed; factoryCount 1
    [EL Finer]: 2012-06-11 14:30:28.003--ServerSession(30146205)--Thread(Thread[main,5,main])--Could not initialize Validation Factory. Encountered following exception: java.lang.NoClassDefFoundError: javax/validation/Validation
    [EL Finest]: 2012-06-11 14:30:28.008--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.target-server; value=WebLogic_10; translated value=org.eclipse.persistence.platform.server.wls.WebLogic_10_Platform
    [EL Finest]: 2012-06-11 14:30:28.008--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2012-06-11 14:30:28.008--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2012-06-11 14:30:28.009--ServerSession(30146205)--Thread(Thread[main,5,main])--property=javax.persistence.jdbc.user; value=hr
    [EL Finest]: 2012-06-11 14:30:28.009--ServerSession(30146205)--Thread(Thread[main,5,main])--property=javax.persistence.jdbc.password; value=xxxxxx
    [EL Finest]: 2012-06-11 14:30:28.458--ServerSession(30146205)--Thread(Thread[main,5,main])--property=javax.persistence.jdbc.driver; value=oracle.jdbc.OracleDriver
    [EL Finest]: 2012-06-11 14:30:28.459--ServerSession(30146205)--Thread(Thread[main,5,main])--property=javax.persistence.jdbc.url; value=jdbc:oracle:thin:@localhost:1521:xe
    [EL Finest]: 2012-06-11 14:30:28.459--ServerSession(30146205)--Thread(Thread[main,5,main])--property=eclipselink.cache.type.default; value=Full; translated value=org.eclipse.persistence.internal.identitymaps.FullIdentityMap
    [EL Info]: 2012-06-11 14:30:28.46--ServerSession(30146205)--Thread(Thread[main,5,main])--EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
    [EL Warning]: 2012-06-11 14:30:28.461--Thread(Thread[main,5,main])--java.lang.ClassNotFoundException: weblogic.version
         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:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getClassForName(PrivilegedAccessHelper.java:107)
         at org.eclipse.persistence.platform.server.wls.WebLogicPlatform.initializeServerNameAndVersion(WebLogicPlatform.java:85)
         at org.eclipse.persistence.platform.server.ServerPlatformBase.getServerNameAndVersion(ServerPlatformBase.java:181)
         at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.preConnectDatasource(DatabaseSessionImpl.java:661)
         at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:581)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)
         at com.Manager.main(Manager.java:15)
    [EL Finest]: 2012-06-11 14:30:28.591--Thread(Thread[main,5,main])--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle11Platform, regular expression: (?i)oracle.*11
    [EL Finest]: 2012-06-11 14:30:28.591--Thread(Thread[main,5,main])--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform, regular expression: (?i)oracle.*10
    [EL Fine]: 2012-06-11 14:30:28.591--Thread(Thread[main,5,main])--Detected database platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Config]: 2012-06-11 14:30:28.61--ServerSession(30146205)--Connection(25252664)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> "hr"
         datasource URL=> "jdbc:oracle:thin:@localhost:1521:xe"
    [EL Config]: 2012-06-11 14:30:28.62--ServerSession(30146205)--Connection(3975755)--Thread(Thread[main,5,main])--Connected: jdbc:oracle:thin:@localhost:1521:xe
         User: HR
         Database: Oracle Version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver Version: 10.2.0.1.0XE
    [EL Finest]: 2012-06-11 14:30:28.621--ServerSession(30146205)--Connection(3975755)--Thread(Thread[main,5,main])--Connection acquired from connection pool [default].
    [EL Finest]: 2012-06-11 14:30:28.621--ServerSession(30146205)--Connection(3975755)--Thread(Thread[main,5,main])--Connection released to connection pool [default].
    [EL Info]: 2012-06-11 14:30:28.678--ServerSession(30146205)--Thread(Thread[main,5,main])--file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp login successful
    [EL Warning]: 2012-06-11 14:30:28.681--ServerSession(30146205)--Thread(Thread[main,5,main])--Failed to find MBean Server: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    [EL Warning]: 2012-06-11 14:30:28.681--ServerSession(30146205)--Thread(Thread[main,5,main])--Failed to find MBean Server: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    [EL Warning]: 2012-06-11 14:30:28.681--ServerSession(30146205)--Thread(Thread[main,5,main])--Failed to find MBean Server: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    [EL Finest]: 2012-06-11 14:30:28.681--ServerSession(30146205)--Thread(Thread[main,5,main])--The applicationName for the MBean attached to session [file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp] is [unknown]
    [EL Finest]: 2012-06-11 14:30:28.681--ServerSession(30146205)--Thread(Thread[main,5,main])--The moduleName for the MBean attached to session [file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp] is [unknown]
    [EL Finer]: 2012-06-11 14:30:28.697--ServerSession(30146205)--Thread(Thread[main,5,main])--Canonical Metamodel class [com.Region_] not found during initialization.
    [EL Finest]: 2012-06-11 14:30:28.697--ServerSession(30146205)--Thread(Thread[main,5,main])--End deploying Persistence Unit SimpleCoherenceApp; session file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/_SimpleCoherenceApp; state Deployed; factoryCount 1
    [EL Finer]: 2012-06-11 14:30:28.714--ServerSession(30146205)--Thread(Thread[main,5,main])--client acquired: 6146452
    [EL Finer]: 2012-06-11 14:30:28.727--ClientSession(6146452)--Thread(Thread[main,5,main])--acquire unit of work: 13994297
    [EL Finest]: 2012-06-11 14:30:28.727--UnitOfWork(13994297)--Thread(Thread[main,5,main])--persist() operation called on: com.Region@124111a.
    [EL Finer]: 2012-06-11 14:30:28.729--UnitOfWork(13994297)--Thread(Thread[main,5,main])--begin unit of work commit
    [EL Finest]: 2012-06-11 14:30:28.736--UnitOfWork(13994297)--Thread(Thread[main,5,main])--Execute query InsertObjectQuery(com.Region@124111a)
    [EL Finest]: 2012-06-11 14:30:28.738--ServerSession(30146205)--Connection(3975755)--Thread(Thread[main,5,main])--Connection acquired from connection pool [default].
    [EL Finer]: 2012-06-11 14:30:28.738--ClientSession(6146452)--Connection(3975755)--Thread(Thread[main,5,main])--begin transaction
    [EL Fine]: 2012-06-11 14:30:28.739--ClientSession(6146452)--Connection(3975755)--Thread(Thread[main,5,main])--INSERT INTO REGIONS (REGION_ID, REGION_NAME) VALUES (?, ?)
         bind => [12, Africa]
    2012-06-11 14:30:28.973/1.408 Oracle Coherence 3.6.0.4 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:/Oracle/Middleware10.3.4.0/coherence_3.6/lib/coherence.jar!/tangosol-coherence.xml"
    2012-06-11 14:30:28.976/1.411 Oracle Coherence 3.6.0.4 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/C:/Oracle/Middleware10.3.4.0/coherence_3.6/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2012-06-11 14:30:28.976/1.411 Oracle Coherence 3.6.0.4 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/tangosol-coherence-override.xml"
    2012-06-11 14:30:28.978/1.413 Oracle Coherence 3.6.0.4 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.6.0.4 Build 19111
    Grid Edition: Development mode
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    2012-06-11 14:30:29.131/1.566 Oracle Coherence GE 3.6.0.4 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/Users/Praveen/workspace/SimpleCoherenceApp/build/classes/coherence-cache-config.xml"
    2012-06-11 14:30:29.719/2.154 Oracle Coherence GE 3.6.0.4 <D4> (thread=main, member=n/a): TCMP bound to /172.16.30.150:8088 using SystemSocketProvider
    2012-06-11 14:30:33.317/5.752 Oracle Coherence GE 3.6.0.4 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xC4DB" with Member(Id=1, Timestamp=2012-06-11 14:30:29.778, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:4388, Role=ManagerManager, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) UID=0xAC101E9600000137DAC5DED2A2961F98
    2012-06-11 14:30:33.320/5.755 Oracle Coherence GE 3.6.0.4 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0xC4DB
    Group{Address=224.3.6.0, Port=36000, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=1, Timestamp=2012-06-11 14:30:29.778, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:4388, Role=ManagerManager)
    OldestMember=Member(Id=1, Timestamp=2012-06-11 14:30:29.778, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:4388, Role=ManagerManager)
    ActualMemberSet=MemberSet(Size=1, BitSetCount=2
    Member(Id=1, Timestamp=2012-06-11 14:30:29.778, Address=172.16.30.150:8088, MachineId=41622, Location=machine:Praveen-PC,process:4388, Role=ManagerManager)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    2012-06-11 14:30:33.339/5.774 Oracle Coherence GE 3.6.0.4 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2012-06-11 14:30:33.495/5.930 Oracle Coherence GE 3.6.0.4 <D5> (thread=DistributedCache:EclipseLinkJPA, member=1): Service EclipseLinkJPA joined the cluster with senior service member 1
    [EL Finer]: 2012-06-11 14:30:33.559--ClientSession(6146452)--Connection(3975755)--Thread(Thread[main,5,main])--rollback transaction
    [EL Finest]: 2012-06-11 14:30:33.56--ServerSession(30146205)--Connection(3975755)--Thread(Thread[main,5,main])--Connection released to connection pool [default].
    [EL Warning]: 2012-06-11 14:30:33.56--UnitOfWork(13994297)--Thread(Thread[main,5,main])--Local Exception Stack:
    Exception [EclipseLink-38] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 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: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassWriter.<init>(Z)V
    Descriptor: RelationalDescriptor(com.Region --> [DatabaseTable(REGIONS)])
         at org.eclipse.persistence.exceptions.DescriptorException.invalidIdentityMap(DescriptorException.java:838)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:392)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:346)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:950)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLockNoWait(IdentityMapManager.java:175)
         at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLockNoWait(IdentityMapAccessor.java:101)
         at org.eclipse.persistence.internal.helper.WriteLockManager.attemptToAcquireLock(WriteLockManager.java:421)
         at org.eclipse.persistence.internal.helper.WriteLockManager.acquireRequiredLocks(WriteLockManager.java:272)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1623)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1588)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:275)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1143)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:84)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
         at com.Manager.main(Manager.java:21)
    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:382)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:387)
         ... 13 more
    Caused by: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassWriter.<init>(Z)V
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.generateWrapper(WrapperGenerator.java:104)
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.createWrapperFor(WrapperGenerator.java:96)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.defineWrapperClass(CoherenceCacheHelper.java:573)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.initializeForDescriptor(CoherenceCacheHelper.java:304)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:241)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:79)
         ... 19 more
    [EL Finer]: 2012-06-11 14:30:33.562--UnitOfWork(13994297)--Thread(Thread[main,5,main])--release unit of work
    [EL Finer]: 2012-06-11 14:30:33.562--ClientSession(6146452)--Thread(Thread[main,5,main])--client released
    Exception in thread "main" javax.persistence.RollbackException: Exception [EclipseLink-38] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 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: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassWriter.<init>(Z)V
    Descriptor: RelationalDescriptor(com.Region --> [DatabaseTable(REGIONS)])
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:102)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
         at com.Manager.main(Manager.java:21)
    Caused by: Exception [EclipseLink-38] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 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: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassWriter.<init>(Z)V
    Descriptor: RelationalDescriptor(com.Region --> [DatabaseTable(REGIONS)])
         at org.eclipse.persistence.exceptions.DescriptorException.invalidIdentityMap(DescriptorException.java:838)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:392)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:346)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:950)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.acquireLockNoWait(IdentityMapManager.java:175)
         at org.eclipse.persistence.internal.sessions.IdentityMapAccessor.acquireLockNoWait(IdentityMapAccessor.java:101)
         at org.eclipse.persistence.internal.helper.WriteLockManager.attemptToAcquireLock(WriteLockManager.java:421)
         at org.eclipse.persistence.internal.helper.WriteLockManager.acquireRequiredLocks(WriteLockManager.java:272)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1623)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1588)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:275)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1143)
         at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:84)
         ... 2 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:382)
         at org.eclipse.persistence.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.java:387)
         ... 13 more
    Caused by: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassWriter.<init>(Z)V
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.generateWrapper(WrapperGenerator.java:104)
         at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.createWrapperFor(WrapperGenerator.java:96)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.defineWrapperClass(CoherenceCacheHelper.java:573)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.initializeForDescriptor(CoherenceCacheHelper.java:304)
         at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:241)
         at oracle.eclipselink.coherence.integrated.cache.CoherenceInterceptor.<init>(CoherenceInterceptor.java:79)
         ... 19 more
    2012-06-11 14:30:33.563/5.998 Oracle Coherence GE 3.6.0.4 <D4> (thread=ShutdownHook, member=1): ShutdownHook: stopping cluster node
    Regards,
    Praveen

  • How to realize 'parent first'  with grid api?

    I can realize most of the functions as realized in hyperion analyzer with SetGridOption function in grid api except 'parent first' function. Hyperion analyzer version 5.03 can work in 'Use Grid Api' mode, and can produce the right result, with parent member listed on the top of all it's children members. So I am sure grid api can do it. Could someone tell me how to do it?

    You'd think so, but no. The Grid API works the same way as the spreadsheet add-in - Analyzer has some client code that does the manipulation to "flip" the zoom in results to show the parent first.None of the available options in the SetGridOption function pertain to the positioning of the parent member.Regards,Jade-------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • 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

  • Grid API problem

    Hi, I sort of copied and pasted the example from Grid API doc. But the output doesn't produce as necessary.The result I get is:,Scenario,,,,,,,,,and I think it should be: , ,Year,Product,MarketActual, Sales, 333, , Any ideas ???Here is the Code: ( quite long but mostly copied from the example )#include <stdio.h>#include <essapi.h>#include <essgapi.h>ESSG_PPDATA_T BuildTable (ESSG_PRANGE_T pRange) ;ESSG_PPDATA_T AllocTwoDims (ESS_ULONG_T ulRows, ESS_ULONG_T ulCols) ;ESSG_VOID_T FreeTwoDim(ESSG_PPDATA_T ppDataToFree,ESSG_ULONG_T ulRows) ;int main(void) {     // Initialize API.     ESSG_FUNC_M sts = ESSG_STS_NOERR ;     ESSG_INIT_T InitStruct ;     ESSG_HANDLE_T Handle ;     ESSG_HGRID_T hGrid ;     InitStruct.ulVersion = ESSG_VERSION ;     InitStruct.ulMaxColumns = 1000 ;     InitStruct.ulMaxRows = 200 ;     InitStruct.pfnMessageFunc = ESS_NULL ;     InitStruct.pUserdata = ESS_NULL ;     sts = EssGInit(&InitStruct, &Handle) ;     if(sts != 0) {          printf("API Grid Init failed\n %d\n", sts) ;          return 0 ;     }     // Initialize Grid.     sts = EssGNewGrid(Handle, &hGrid) ;     if(sts != ESSG_STS_NOERR) {          printf("New Grid Init failed\n") ;          return 0 ;     }     // Data Retrieval.     ESSG_ULONG_T     ulRow, ulCol, ulOptions ;     ESSG_PPDATA_T     ppDataIn, ppDataOut ;     ESSG_RANGE_T     rRangeDataIn, rRangeDataOut ;     ESSG_USHORT_T     usState ;     /* Connect to Essbase and assigne to Grid */     sts = EssGConnect(     hGrid,                              "Sever",                              "Admin",                              "admin92",                              "username",                              "pass",                              ESSG_CONNECT_NODIALOG                         ) ;          if(sts == 0) {          ppDataIn = BuildTable(&rRangeDataIn) ;          ulOptions = 0 ;          sts = EssGBeginRetrieve(hGrid, ESSG_RET_RETRIEVE);     } else {               printf( "Connection Problem \n") ;               return 0 ;     }     if(sts == 0) {          sts = EssGSendRows(hGrid, &rRangeDataIn, ppDataIn) ;     } if (sts == 0) {                /* We're done sending rows, perform the retrieval */                sts = EssGPerformOperation(hGrid, 0);                        /* Free the data we built */                FreeTwoDim(ppDataIn, rRangeDataIn.ulNumRows);        }          if (sts == 0) {                /* Determine the results of the retrieve and how much data                 * is being returned.                 */                sts = EssGGetResults(hGrid, 0, &rRangeDataOut, &usState);        } if (sts == 0) {                /* Get all of the data */                sts = EssGGetRows(hGrid,0, &rRangeDataOut,                         &rRangeDataOut, &ppDataOut);        }          if (sts == 0) {                /* Interate though the data ... */                /* First the rows */                for (ulRow = rRangeDataOut.ulRowStart;                                ulRow < rRangeDataOut.ulNumRows;                                ulRow++)                {                        /* Then the columns */                        for (ulCol = rRangeDataOut.ulColumnStart;                                        ulCol < rRangeDataOut.ulNumColumns;                                        ulCol++)                        {                                /* Here's a cell ... just render it. */                                switch (ppDataOut[ulRow][ulCol].usType) {                                        // Renderint it. too big to post.                                }                                             printf(","); }                                                  printf("\n") ; }               }     if(sts == 0) {          EssGEndOperation(hGrid, 0) ;          EssGDisconnect(hGrid,0) ;     }     return 0 ;}ESSG_PPDATA_T BuildTable (ESSG_PRANGE_T pRange){ESSG_PPDATA_T   ppTable;ESSG_STR_T      current_str;ESSG_USHORT_T   slen = 0;   pRange->ulRowStart = 0;   pRange->ulColumnStart = 0;   pRange->ulNumRows = 2 ;   pRange->ulNumColumns = 5;   ppTable = AllocTwoDims(2, 5);   /* ROW 1 */   ppTable[0][0].usType = ESSG_DT_BLANK; ppTable[0][1].usType = ESSG_DT_BLANK; return ppTable ; slen = strlen("Year"); current_str = (ESSG_CHAR_T *) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str = slen;   strcpy( (current_str + 1), "Year");   ppTable[0][2].usType = ESSG_DT_STRING;   ppTable[0][2].Value.pszStr = current_str;      slen = strlen("Product");   current_str = (ESSG_CHAR_T ) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str =  slen;   strcpy( (current_str + 1), "Product");   ppTable[0][3].usType = ESSG_DT_STRING;   ppTable[0][3].Value.pszStr = current_str;   slen = strlen("Market");   current_str = (ESSG_CHAR_T ) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str =  slen;   strcpy((current_str + 1), "Market");   ppTable[0][4].usType = ESSG_DT_STRING;   ppTable[0][4].Value.pszStr = current_str;   /** ROW 2 ***/ slen = strlen("Actual"); current_str = (ESSG_CHAR_T *) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str = slen;   strcpy((current_str + 1), "Actual");   ppTable[1][0].usType = ESSG_DT_STRING;   ppTable[1][0].Value.pszStr = current_str;   ppTable[1][1].usType = ESSG_DT_STRING;   slen = strlen("Sales");   current_str = (ESSG_CHAR_T ) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); *current_str =   slen;   strcpy( (current_str + 1), "Sales");   ppTable[1][1].Value.pszStr = current_str;   ppTable[1][2].usType = ESSG_DT_BLANK;   ppTable[1][3].usType = ESSG_DT_BLANK;   ppTable[1][4].usType = ESSG_DT_BLANK;   return (ppTable);}ESSG_PPDATA_T AllocTwoDims (ESS_ULONG_T ulRows, ESS_ULONG_T ulCols){        ESSG_PPDATA_T   ppTemp;        ESS_ULONG_T     ulIndex;        ppTemp = (ESSG_PDATA_T * ) malloc(sizeof(ESSG_PDATA_T) * ulRows);        for (ulIndex = 0; ulIndex < ulRows; ulIndex++)        {                ppTemp[ulIndex] =( ESSG_DATA_T * ) malloc(sizeof(ESSG_DATA_T) * ulCols); } return ppTemp;}ESSG_VOID_T FreeTwoDim(ESSG_PPDATA_T ppDataToFree, ESSG_ULONG_T ulRows){   ESSG_ULONG_T ulIndex;   for (ulIndex = 0; ulIndex < ulRows; ulIndex++)   {      if (ppDataToFree[ulIndex]->usType == ESSG_DT_STRING) {         free(ppDataToFree[ulIndex]->Value.pszStr); } free(ppDataToFree[ulIndex]); } free(ppDataToFree);}

    Assuming there are no errors happening, it looks like the function you are using to output the results is not displaying the data properly.Could you post that function? It looks like it got truncated...Regards,Jade----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Input the data in to the grid without saving it to the  database

    <PRE lang=jsp id=pre2 style="MARGIN-TOP: 0px" nd="109"><%@ taglib uri="/WEB-INF/tags/datagrid.tld" prefix="grd" %>
    <%@ page import="java.sql.Connection" %>
    <%@ page import="java.sql.DriverManager" %>
    <%@ page import="java.sql.SQLException" %>
    <%@ page import="com.freeware.gridtag.*" %>
    <%
    int intCurr = 1;
    int intSortOrd = 0;
    String strTmp = null;
    String strSQL = null;
    String strSortCol = null;
    String strSortOrd = "ASC";
    boolean blnSortAsc = true;
    strSQL = "SELECT CLICORPORATION, CLICLIENT, CLIDESCRIPTION, " +
    "CLIENABLED, CLIUPDSTAMP FROM CLIENTMASTER ";
    Connection objCnn = null;
    Class objDrvCls = null;
    objDrvCls = Class.forName("oracle.jdbc.driver.OracleDriver");
    objCnn = DriverManager.getConnection("<A class=iAs style="FONT-WEIGHT: normal; FONT-SIZE: 100%; PADDING-BOTTOM: 1px; COLOR: darkgreen; BORDER-BOTTOM: darkgreen 0.07em solid; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" href="#" target=_blank itxtdid="3346226">jdbc</A>:oracle:thin:@Host:port:sid",
    "cashincpri", "cashincpri");
    if (objDrvCls != null) objDrvCls = null;
    strTmp = request.getParameter("txtCurr");
    try
    if (strTmp != null)
    intCurr = Integer.parseInt(strTmp);
    catch (NumberFormatException NFEx)
    strSortCol = request.getParameter("txtSortCol");
    strSortOrd = request.getParameter("txtSortAsc");
    if (strSortCol == null) strSortCol = "CLICLIENT";
    if (strSortOrd == null) strSortOrd = "ASC";
    blnSortAsc = (strSortOrd.equals("ASC"));
    %>
    <html>
    <head>
    <title>Grid Tag Demonstration</title>
    <link REL="StyleSheet" HREF="css/GridStyle.css">
    <script LANGUAGE="javascript">
    function doNavigate(pstrWhere, pintTot)
    var strTmp;
    var intPg;
    strTmp = document.frmMain.txtCurr.value;
    intPg = parseInt(strTmp);
    if (isNaN(intPg)) intPg = 1;
    if ((pstrWhere == 'F' || pstrWhere == 'P') && intPg == 1)
    alert("You are already viewing first page!");
    return;
    else if ((pstrWhere == 'N' || pstrWhere == 'L') && intPg == pintTot)
    alert("You are already viewing last page!");
    return;
    if (pstrWhere == 'F')
    intPg = 1;
    else if (pstrWhere == 'P')
    intPg = intPg - 1;
    else if (pstrWhere == 'N')
    intPg = intPg + 1;
    else if (pstrWhere == 'L')
    intPg = pintTot;
    if (intPg < 1) intPg = 1;
    if (intPg > pintTot) intPg = pintTot;
    document.frmMain.txtCurr.value = intPg;
    document.frmMain.submit();
    function doSort(pstrFld, pstrOrd)
    document.frmMain.txtSortCol.value = pstrFld;
    document.frmMain.txtSortAsc.value = pstrOrd;
    document.frmMain.submit();
    </script>
    </head>
    <body>
    <h2>Grid Example</h2>
    <form NAME="frmMain" METHOD="post">
    <grd:dbgrid id="tblStat" name="tblStat" width="100" pageSize="10"
    currentPage="<%=intCurr%>" border="0" cellSpacing="1" cellPadding="2"
    dataMember="<%=strSQL%>" dataSource="<%=objCnn%>" cssClass="gridTable">
    <grd:gridpager imgFirst="images/First.gif" imgPrevious="images/Previous.gif"
    imgNext="images/Next.gif" imgLast="images/Last.gif"/>
    <grd:gridsorter sortColumn="<%=strSortCol%>" sortAscending="<%=blnSortAsc%>"/>
    <grd:rownumcolumn headerText="#" width="5" HAlign="right"/>
    <grd:imagecolumn headerText="" width="5" HAlign="center"
    imageSrc="images/Edit.gif"
    linkUrl="javascript:doEdit('{CLICORPORATION}', '{CLICLIENT}')"
    imageBorder="0" imageWidth="16" imageHeight="16"
    alterText="Click to edit"/>
    <grd:textcolumn dataField="CLICLIENT" headerText="Client"
    width="10" sortable="true"/>
    <grd:textcolumn dataField="CLIDESCRIPTION" headerText="Description"
    width="50" sortable="true"/>
    <grd:decodecolumn dataField="CLIENABLED" headerText="Enabled" width="10"
    decodeValues="Y,N" displayValues="Yes,No" valueSeperator=","/>
    <grd:datecolumn dataField="CLIUPDSTAMP" headerText="Last Updated"
    dataFormat="dd/MM/yyyy HH:mm:ss" width="20"/>
    </grd:dbgrid>
    <input TYPE="hidden" NAME="txtCurr" VALUE="<%=intCurr%>">
    <input TYPE="hidden" NAME="txtSortCol" VALUE="<%=strSortCol%>">
    <input TYPE="hidden" NAME="txtSortAsc" VALUE="<%=strSortOrd%>">
    </form>
    </body>
    </html>
    <%
    try
    if (objCnn != null)
    objCnn.close();
    catch (SQLException SQLExIgnore)
    if (objCnn != null) objCnn = null;
    %>
    </PRE>
    by using this code we will get the gide.
    but the problem is when we are inserting the new record after click to save the record first saves the data in the Db and then it appears on the grid.
    Is it possible to do reverse of the above :
    first it comes to the grid and then after click to save it save to the database.
    please help me
    Regards,
    imran

    Hi Yamini,
    What do you mean by without query region here? Do you wish to implement the complete search/result functionality without using the Query page? Or your question already answered. Kindly confirm.
    Regards
    Sumit

  • ERROR: Update mode C is not supported by the extraction API - R3 11

    Hi gurus,
    I just tryed to implement the solution I found at this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    The data source is based on an Infoset on the KONV R/3 Table.
    I setted the AIM delta process and I did all the activities as written in the document.
    The process works if I load data to bw in "full", with "Init without data transfer" and "delta" mode. Of course if I change a Purchase document, it will be posted in the delta queue and then loaded to bw with the next delta load.
    The "initialize delta process" (with data) doesen't work and returns the following error:
    Update mode C is not supported by the extraction API
    the error code is R3 11.
    have you any idea about it???
    Thanks!!!
    Regards!
    Matteo

    Hi,
    for me it sounds quite simple. It is that the update mode 'C' get flagged as 'not allowed' for this extractor. Did you check with rsa3? I guess you will get the same error message. May be you can start debugging in rsa3 to find the place where the update mode gets checked.
    Anyway, it shouldn't be a issue as you have a workaround. May be you should raise a error message at sap because of this.
    regards
    Siggi

  • How do I use the Kuler API?

    For more information on the Kuler APIs and guidelines for usage and application naming, see the Kuler
    Update (5/30/13): We're working to rebuild the Kuler API to offer more robust capababilities.  Until then, we're no longer issuing new API keys.  If you already have a key and are using the API, your service will not be interupted (your key will continue to work).

    Neha, thanks for your response.
    However there are two issues that I don't think have been addressed that make the old API unusable:
    1) URLs in the RSS feeds are not publicly accessible links.  For example:
    http://internal-prod-backend-1515523722.us-east-1.elb.amazonaws.com/index.cfm#themeID/5956 36
    (Copied from https://kuler-api.adobe.com/rss/search.cfm?searchQuery=blue&key=mykey)
    2) There are application errors on the thumbnail URLs.  For example:
    https://kuler-api.adobe.com/rss/png/generateThemePng.cfm?themeid=11&key=mykey
    yields: "error on line 1 at column 1: Document is empty"

  • Internal Error occurred while calling the ProcessDPCommands API

    We have installed Business Objects XI  with MySQL. We are getting following error when we click on view query on the WEBI Reports
    " Internal Error occurred while calling the ProcessDPCommands API  Error WIS 30270".
    When we change the CMS database to ORACLE everything works fine it looks like some issues when CMS database is MYSQL
    Please hep to fix this problem
    Installation is on Solaris 10
    Edited by: AshishDatar on Nov 6, 2009 3:00 PM
    Installation is on Solaris 10

    did you check whether universe connection is pointing to the correct db?The following url might be helpful:
    [http://www.forumtopics.com/busobj/viewtopic.php?t=52355&view=previous]

  • Adding Data in the grid

    One thing I am finding a little awkward; Adding data in the grid. It would be nice to be able to use tab to get to the next cell. At present it just highlights the cell and typing doesn't do anything until the cell is clicked. Equally hitting return I would expect it to give me a new blank row. I would like to be able to add a couple of rows of data without resorting to using the mouse at each turn.
    Very good initial impressions though.

    Yes we should do this as it's what everyone will expect from Excel.
    -kris

  • Problems while uploading files using the FileReference API

    I've built an image uploader module in Flex using the FileReference API and PHP.
    While this works perfect for images upto 1 MB, What I'm noticing is that for images greater that 1 MB even after the Event.COMPLETE  has triggered, the file hasn't yet been uploaded into the folder.. its only after a couple of seconds or minutes after the Event.COMPLETE,  that the image actually shows up in the FTP folder. Morever I also noticed that for such files the DataEvent.UPLOAD_COMPLETE_DATA that we are using to get feedback from PHP never gets called.
    I thought it would be related to the PHP script getting timed out... but the PHP script does get executed and the images do show up in the folder but thats way after the Event.Complete has been triggered and more importantly  DataEvent.UPLOAD_COMPLETE_DATA doesnt get called.
    Everything seems to work fine as long as the file size is under 1 MB
    Did others too face similar problems and any ideas on how to fix it?
    Thanks in advance

    I don't believe there is, as the browse button renders out as an html input type file component, and this has no ability to get native file size from the client. The only way to do it is to check the file size server side, but that kind of defeats the purpose to some extent, as the file is required to be uploaded before the file size can be checked.
    There is no way to do this on the client short of using a third party client side component - ie. java, flash or some other active component that gets file system level access.
    Ben

  • How to change tempo without affecting the music (only the grid)

    This is a very basic problem. I have been laying songs (audio files) onto logic and recording vocals over them, and now that I am finished with the recording, i realize that in order to copy and paste the choruses EXACTLY throughout the songs, which can be quite arduous the way I have been trying to do it, one needs to have matched the proper tempo with the the music being used.
    I neglected to do this at the start of these projects, and it has come back to bite me because when I try to change the tempo now, it completely throws my vocals out of whack because my voice is off beat. This is where the problem lies. I know had I addressed this at the beginning, I would be smooth sailing.
    I also tried setting the tempo at the proper rate on a new logic project, but when I drag everything over from the original project, the same problem occurs.
    In reality, I need the grid to match up so I have the proper means to line up my vocals exactly so the choruses are consistent throughout the song (obviously I can do it manually in a way regular listeners might not notice, but Im dissatisfied with that, I want it to be perfect)
    Again, I know that if I had matched the tempo properly with the audio file (the music) at the beginning, there would be no problems, and I'd be able to record over it and then use the bars to align my vocals perfectly.
    If some one would be so kind as to get back to me on this, it would be highly appreciated

    You're close!
    1• Open the automation event list on a track that contains automation. You will now see what looks like a normal event list but it's displaying only the automation data on that track
    2• Click the hierarchy arrow to take you "up a level" so that the automation event list (AEL) now shows you the names of all of the automation regions within the (hidden) automation arrange page. What you'll see is a list of items all starting at bar 1 1 1 1 called "Automation". (If the position of the items is not 1 1 1 1, you have a problem. See below).
    3• Select All (CMD-A) and then use whatever method you prefer to SMPTE-lock them (menu item or key command)
    = OR =
    Do Step #1. Then hit CMD-1 to open a new Arrange window. When you do this right after opening an AEL you will see the automation arrange page. Move the AEL out of the way or simply close it. Then, similar to Step #3, select all of the automation regions in the automation arrange page (CMD-A) and SMPTE-lock them.
    Note: if your automation events are not all starting at 1 1 1 1 then it's an indication that your song's start marker was moved to before bar 1 and you're on your way to having a corrupted song.
    Final caveat: don't attempt to write new automation while the old automation data is SMPTE-locked. It'll create a nice lil' mess. So after you're done changing the tempo (or whatever your reason for SMPTE-locking regions and automation), the first thing you should do is unlock them both before proceeding with any additional recordings. It's very easy to forget that the automation data is locked because you can't see that it's in a locked state unless you're looking at the AEL or the automation arrange page.
    Message was edited by: iSchwartz

  • NI 6008 - Questions on the C APIs and how to use them

    Hi
    I am trying to use the NI 6008 to drive a Digital Programmable Attenuator and had a few questions. I am newbie with this device, so most of my questions are relating to figuring out the basics with this device.
    1) I am hoping to be able to write a simple C program to have the NI USB 6008 drive this Digital Programmable Attenuator. Is this possible? I could find the NI-DAQmx C Reference Help file, but I cant seem to find how to build and load a program onto the NI USB 6008?
    2) I would like to be able to turn ON a particular attenuation setting on the Digital Prog. Atten. at a specific instant and after a few milliseconds turn it OFF. And repeat this endlessly. I was looking for a Timer API to let me control the Digital Prog. Atten. at set timer interrupts but I am not sure if there is a way to do this. I see the APIs: DAQmxCfgImplicitTiming and DAQmxCfgSampClkTiming. But I am not 100% sure if these are the right APIs to use for this purpose. Also which APIs can I use to set the Digital lines in the DAQ to highs and lows?
    Like I said earlier, I am a newbie with this device and I am not really sure if I am going in the right direction. Any help would be greatly appreciated.
    Thanks
    Anand

    You do not load a program onto the device. Your program runs on your pc and you build your program that calls the DAQmx functions.
    There is no clock for for the digital I/O. As the spec says, it is strictly software timed which means you explicitly write a true or false, one state at a time. This is subject to jitter from Windows and I would not expect rates above 100 Hz.

  • How to create a campaign based on a template using the REST API

    Hi CodeIt-ers,
    I'm using the REST API to create campaigns in Eloqua 10, all works well except for 1 thing: I can't seem to create a campaign based on an existing Campaign template.
    Based on the documentation on REST API - Accessing Campaigns I've tried using "sourceTemplateId" (code snippet below) but that did not do the trick.
    Does that functionality simply not work or am I missing something?
    Thanks!
    Ferry
    $campaign_data = new Campaign(); 
    $campaign_data->sourceTemplateId='442';
    $campaign_data->folderId='1137';
    $campaign_data->currentStatus='draft';

    Hi Richard,
    Unfortunately no. I reached out to support, they informed me "sourceTemplateId" could not be used to create new campaigns based on a template, instead they advised to use the "Elements " property as shown in this example: Eloqua REST API - Create a Campaign with a Segment and Email
    Thanks
    Ferry

  • How to print the Grid title in ALV Report?

    Hi All,
    I write ALV Report.When i am going to print this report it is not printing the Grid Header(ie.Title ).even in Print Preview Also i m not getting the title.It shows the Gird with Values.How Can i print the title Also...
    Regards,Ravi

    Hi,
      u will declare the data as below like this
    DATA: LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
            TOP_OF_PAGE  TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
      DATA : ST_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
             IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
             ST_EVENT TYPE SLIS_ALV_EVENT,
             IT_EVENT TYPE SLIS_T_EVENT.
      DATA : ST_LIST  TYPE SLIS_LISTHEADER,
             IT_LIST  TYPE SLIS_T_LISTHEADER,
             IT_LIST1 TYPE SLIS_T_LISTHEADER,
             IT_LIST2 TYPE SLIS_T_LISTHEADER.
    START-OF-SELECTION.
      IF G_FLAG = SPACE.
      W_REPID = SY-REPID.
      G_TOP_PAGE = 'TOP-PAGE'.
          ST_LIST-INFO = '  Title Name '.
          APPEND ST_LIST TO IT_LIST.
          ST_LIST-INFO = '  second Name'.
          APPEND ST_LIST TO IT_LIST.
        ELSE.
      ENDIF.
    FORM TOP-PAGE .
      DATA: V_LOGO(15).
        V_LOGO = 'LOGO'.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = IT_LIST
          I_LOGO             = V_LOGO.
        I_END_OF_LIST_GRID       =
    ENDFORM.                    "TOP-PAGE

Maybe you are looking for

  • My gmail account connecting to the exchange server, does not sync correctly

    Hello, i've been with the sync. problem with my gmail account which is connecting my iPod touch 2nd-gen./iOS v4.2.1 to the google's exchange server, more specifically when i read some emails offline. Actually there is no sync problem when i read emai

  • Aperture 3.2 will not import any older libraries.

    Aperture 3.2 will not import any older libraries. Is there any way to get around this. I have 20 plus computers (students) running the older version and have upgraded mine just to see how good Lion is. Unfortunately, mine is where we gather all of th

  • Why are my imported pictures fuzzy or blurry?

    Recently, some of our images that look good in Preview and Adobe Photoshop look fuzzy or blurry when imported into a layout program (like QuarkXpress) or a word processing program (like MS Word and Bean).  The affected pictures only seem to be those

  • Transportation of Mater and Transactional ETL models

    Hi, please consider the scenario,Ex: One cube " ZSD_C06 " contains 6 infoobjects. each info object having 2 data source ( like attibute  and text ). Now, My questions are 1) Is it neccesay to transport the master data ETL model first and then  tranpo

  • Exporting movie made with bitmaps - problem

    Hey mates, Its REALLY important ill get it done in the next 8 hours, i need to present this somewhere. so ill really appreciate a quick solution if possible... i made a scene in a 3d software, and rendered the whole scene to bitmaps frame by frame, i