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

Similar Messages

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • 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

  • 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

  • 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

  • How do I remove the grid map over an object when working in 3D?

    I am working through Adobe's Photoshop CS6 Classroom in a Book, Section 12 - Working with 3D Images.
    So far I have found it all fairly straight forward and very useful.
    I am at a point where I am applying textures and materials to my objects, however I cannot seem to find out how to remove the grid that has mapped itself over the objects. I have included a image to illustrate.
    Can anyone help?
    What is the command that will hide these grid maps?!
    Thanks so much in advance.

    I went into YouTube as well, and indeed: It didn't remove the white background.
    Then I went into Photoshop and was surprised: It was able to remove the white background by just playing around with the Magic Wand Tool. I also went into other programmes similar to Photoshop and was excited that there were connatural ways to remove the white background. Finally, I went into Illustrator and observed that the clipping path route worked. Even in CS6.
    Not sure why it didn't work for you.

  • Where does Lightroom put HDR in the grid view? Is there anyway to have Lightroom stack the HDR file with the source files?

    I can't decipher where (and why) the program is putting the HDR image in the grid. I stack all of my HDR source images so they are easy to track and manage. Other apps/plugins allow you to stack resulting images with their source image. That would be great if there's a way to set that in LR preferences.

    Thanks, but this doesn't really answer the question about stacking the HDR file with the source files. Yes, it does put the file in the same folder, however many of my folders have 100s of images (that often look similar) and as far as I can tell, LR places them randomly in the sort order. It doesn't appear to put them at the beginning or end of the sort (usually by date), but somewhere randomly in the middle. Even if it could be made clear what method it is using to sort them, that would help locate one file among hundreds.
    Ideally, however it should allow you to stack with the stacked source files. Is there anyway to do this? If not, is it a feature that could be requested?

  • When I have a border around a group of cellsand remove it, it also removes the grid lines. When I go to print the sheet, there are blank spaces where the border had been. I'm sing a MacBook.

    When I have  a border around a group of cell, how do I remove it. If I outline the cells again and then show in the Inspector NO BORDER, it removes not only the borderbut when I go to print it also the grid lines.

    What application are you using? Numbers? Excel? Something else?
    For help with Numbers spreadsheets go to this forum.
    If you are using Excel, Microsoft has a forum to help you.
    If it is something else, let us know what and we will try to point you in the right direction.
    Best of luck.

  • How to print the data in the grid?

    Hi all,
    I'm new to java. So, I need some helps.
    I want to print the data in the grid. Data could be more than one page. But I have no idea how to start writing code.
    Please let me know if you know.
    Thank you.
    DT.

    Follow this steps.
    1- the Grid which you wish to print must locate in a class which implements Printable() interface.
    e.g.
    import javax.swing.table.*;
    import java.awt.print.*;
    import javax.infobus.*;
    public class myGridControl extends GridControl implements Printable{
    // add the following statements in the definition section of your class
    int m_maxNumPage =1;
    JTable m_table;
    TableModel m_tableModel;
    ScrollableRowsetAccess myRs;
    // add the folowing statemnts in the
    //constructor or init method or start method
    //(Notice:if you couldn't print, possible
    //you didn't put these stetment on the right
    //location and one or all of them
    //are "null".change the location and make
    //sure they are not null when you issue a
    //print order)
    m_table = new JTable();
    m_table = masterGrid.getTable();
    m_tableModel = m_table.getModel();
    myRs = (ScrollableRowsetAccess)masterGrid.getDataItem();
    3- add following methods to your class(myGridControl). just cut and paste.
    // Print Methods
    public void printData() {
    try {
    PrinterJob prnJob = PrinterJob.getPrinterJob();
    prnJob.setPrintable(this);
    if (!prnJob.printDialog())
    return;
    prnJob.print();
    catch (PrinterException e) {
    e.printStackTrace();
    System.err.println("Printing error: "+e.toString());
    public int print(Graphics pg, PageFormat pageFormat,int pageIndex) throws PrinterException {
    JLabel m_title=new JLabel("Alexus Report : "+titleName);
    if (pageIndex >= m_maxNumPage)
    return NO_SUCH_PAGE;
    pg.translate((int)pageFormat.getImageableX(),
    (int)pageFormat.getImageableY());
    int wPage = 0;
    int hPage = 0;
    if (pageFormat.getOrientation() == pageFormat.PORTRAIT) {
    wPage = (int)pageFormat.getImageableWidth();
    hPage = (int)pageFormat.getImageableHeight();
    else {
    wPage = (int)pageFormat.getImageableWidth();
    wPage += wPage/2;
    hPage = (int)pageFormat.getImageableHeight();
    pg.setClip(0,0,wPage,hPage);
    int y = 0;
    pg.setFont(m_title.getFont());
    pg.setColor(Color.black);
    Font fn = pg.getFont();
    FontMetrics fm = pg.getFontMetrics();
    y += fm.getAscent();
    pg.drawString(m_title.getText(), 0, y);
    y += 20; // space between title and table headers
    Font headerFont = m_table.getFont().deriveFont(Font.BOLD);
    pg.setFont(headerFont);
    fm = pg.getFontMetrics();
    TableColumnModel colModel = m_table.getColumnModel();
    int nColumns = colModel.getColumnCount();
    int x[] = new int[nColumns];
    x[0] = 0;
    int h = fm.getAscent();
    y += h; // add ascent of header font because of baseline
    // positioning (see figure 2.10)
    int nRow, nCol;
    for (nCol=0; nCol<nColumns; nCol++) {
    TableColumn tk = colModel.getColumn(nCol);
    int width = tk.getWidth();
    if (x[nCol] + width > wPage) {
    nColumns = nCol;
    break;
    if (nCol+1<nColumns)
    x[nCol+1] = x[nCol] + width;
    String title = (String)tk.getIdentifier();
    pg.drawString(title, x[nCol], y);
    pg.setFont(m_table.getFont());
    fm = pg.getFontMetrics();
    int header = y;
    h = fm.getHeight();
    int rowH = Math.max((int)(h*1.5), 10);
    int rowPerPage = (hPage-header)/rowH;
    m_maxNumPage = Math.max((int)Math.ceil(m_table.getRowCount()/
    (double)rowPerPage), 1);
    int iniRow = pageIndex*rowPerPage;
    int endRow = Math.min(m_table.getRowCount(),
    iniRow+rowPerPage);
    // take an array to store columns header
    String colNames[] = new String[nColumns];
    for (nCol=0; nCol<nColumns; nCol++) {
    colNames[nCol] = myRs.getColumnName(nCol+1).toString();
    try{
    for (nRow=iniRow; nRow<endRow; nRow++) {
    y += h;
    // set RowSet on the specific row
    myRs.absolute(nRow+1);
    for (nCol=0; nCol<nColumns; nCol++) {
    /* the next 3 lines are old code
    int col = m_table.getColumnModel().getColumn(nCol).getModelIndex();
    Object obj = m_tableModel.getValueAt(nRow, col);
    String str = obj.toString();
    // take the values column by columns
    ImmediateAccess ia = (ImmediateAccess)myRs.getColumnItem(colNames[nCol]);
    String str = ia.getValueAsString();
    if (str.equals("")) str=" ";
    /* this if is usefull if we'd like to have coloring in printing
    if (obj instanceof ColorData)
    pg.setColor(((ColorData)obj).m_color);
    else
    pg.setColor(Color.black);
    pg.drawString(str, x[nCol], y);
    }catch(Exception e){
    e.printStackTrace();
    System.gc();
    return PAGE_EXISTS;
    public void printData() {
    try {
    PrinterJob prnJob = PrinterJob.getPrinterJob();
    prnJob.setPrintable(this);
    if (!prnJob.printDialog())
    return;
    prnJob.print();
    catch (PrinterException e) {
    e.printStackTrace();
    System.err.println("Printing error: "+e.toString());
    public int print(Graphics pg, PageFormat pageFormat,int pageIndex) throws PrinterException {
    JLabel m_title=new JLabel("Alexus Report : "+titleName);
    if (pageIndex >= m_maxNumPage)
    return NO_SUCH_PAGE;
    pg.translate((int)pageFormat.getImageableX(),
    (int)pageFormat.getImageableY());
    int wPage = 0;
    int hPage = 0;
    if (pageFormat.getOrientation() == pageFormat.PORTRAIT) {
    wPage = (int)pageFormat.getImageableWidth();
    hPage = (int)pageFormat.getImageableHeight();
    else {
    wPage = (int)pageFormat.getImageableWidth();
    wPage += wPage/2;
    hPage = (int)pageFormat.getImageableHeight();
    pg.setClip(0,0,wPage,hPage);
    int y = 0;
    pg.setFont(m_title.getFont());
    pg.setColor(Color.black);
    Font fn = pg.getFont();
    FontMetrics fm = pg.getFontMetrics();
    y += fm.getAscent();
    pg.drawString(m_title.getText(), 0, y);
    y += 20; // space between title and table headers
    Font headerFont = m_table.getFont().deriveFont(Font.BOLD);
    pg.setFont(headerFont);
    fm = pg.getFontMetrics();
    TableColumnModel colModel = m_table.getColumnModel();
    int nColumns = colModel.getColumnCount();
    int x[] = new int[nColumns];
    x[0] = 0;
    int h = fm.getAscent();
    y += h; // add ascent of header font because of baseline
    // positioning (see figure 2.10)
    int nRow, nCol;
    for (nCol=0; nCol<nColumns; nCol++) {
    TableColumn tk = colModel.getColumn(nCol);
    int width = tk.getWidth();
    if (x[nCol] + width > wPage) {
    nColumns = nCol;
    break;
    if (nCol+1<nColumns)
    x[nCol+1] = x[nCol] + width;
    String title = (String)tk.getIdentifier();
    pg.drawString(title, x[nCol], y);
    pg.setFont(m_table.getFont());
    fm = pg.getFontMetrics();
    int header = y;
    h = fm.getHeight();
    int rowH = Math.max((int)(h*1.5), 10);
    int rowPerPage = (hPage-header)/rowH;
    m_maxNumPage = Math.max((int)Math.ceil(m_table.getRowCount()/
    (double)rowPerPage), 1);
    int iniRow = pageIndex*rowPerPage;
    int endRow = Math.min(m_table.getRowCount(),
    iniRow+rowPerPage);
    // take an array to store columns header
    String colNames[] = new String[nColumns];
    for (nCol=0; nCol<nColumns; nCol++) {
    colNames[nCol] = myRs.getColumnName(nCol+1).toString();
    try{
    for (nRow=iniRow; nRow<endRow; nRow++) {
    y += h;
    // set RowSet on the specific row
    myRs.absolute(nRow+1);
    for (nCol=0; nCol<nColumns; nCol++) {
    /* the next 3 lines are old code
    int col = m_table.getColumnModel().getColumn(nCol).getModelIndex();
    Object obj = m_tableModel.getValueAt(nRow, col);
    String str = obj.toString();
    // take the values column by columns
    ImmediateAccess ia = (ImmediateAccess)myRs.getColumnItem(colNames[nCol]);
    String str = ia.getValueAsString();
    if (str.equals("")) str=" ";
    /* this if is usefull if we'd like to have coloring in printing
    if (obj instanceof ColorData)
    pg.setColor(((ColorData)obj).m_color);
    else
    pg.setColor(Color.black);
    pg.drawString(str, x[nCol], y);
    }catch(Exception e){
    e.printStackTrace();
    System.gc();
    return PAGE_EXISTS;
    4- execute printData() method to print.
    e.g. myGridControl.printData();
    let me know if you still cannot print.
    Ali

  • In Lightroom 3 I am in Library mode in the Grid View and need to rearrange images, but it is not allowing me to move them.

    In Lightroom 3 I am in Library mode in the Grid View and need to rearrange images, but it is not allowing me to move them.

    I don't do a lot of dragging to custom arrange my images. But the custom order is right at the bottom of the list of sort orders on my computer.
    Added later: But don't worry about the custom order. It doesn't make any difference on my system. Are you sure you are dragging the image itself, and not the border around the image?

  • Hiding a column Attribute in the Grid Control in a DAC form.

    Hi,
    My RowsetInfo has a Image AttributeInfo and other kinds of AttributeInfo.I wanted to display the image in a seperate area in the form.The remaining Attributes would come in form as a detail grid.
    However, since I bind the Grid control to my rowsetInfo, and also since my rowsetinfo has an image AttributeInfo, I see an Image column there(which ofcourse contains references to these Image objects!!).
    I would want to hide this column in the grid.How do I go about it?Do I need to create a seperate rowsetinfo for the Image controlor there is a workaround for this?
    Any ideas??
    --Sandeep                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Going through the previous discussions in this forum, I had also tried the following :
    JTable table = detailGrid.getTable();
    TableColumnModel tableColumnModel =
    table.getColumnModel();
    table.removeColumn(tableColumnModel.
    getColumn(1));
    This doesnot seem to work.I get the following exception:
    java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
    java.lang.Object java.util.Vector.elementAt(int)
    javax.swing.table.TableColumn
    javax.swing.table.DefaultTableColumnModel.getColumn(int)
    void DAC2Package.DAC2Frame.jbInit()
    void DAC2Package.DAC2Frame.<init>()
    void DAC2Package.DAC2Application.<init>()
    void DAC2Package.DAC2Application.main(java.lang.String[])
    Since I have quite a few number of columns in the GridControl, I shouldnot be getting this
    exception in the first place.
    Also, I donot understand why
    tableColumnModel.getColumnCount() prints zero in the console.
    Thanks in advance,
    Sandeep
    null

  • Can one organize a playlist in the grid or artist view in iTunes 11?

    can one organize a playlist in the grid or artist view in iTunes 11, i.e visually? the playlist as just a list of songs/ artists is a hopeless & very frustrating way to orgaize a list of maybe 30 songs/ artists that i might have downloaded in one session. or do the boffins at mac have that kind of brain numbing memory capacity?

    hi, yes i use that, but what i'm asking is can i drag the songs into the order i want when i have grid or artist list. in artist list it just lists alphabetically, it does not list in playlist order. it seem s to me that only in 'list' view without images that i can drag songs around, which is useless.
    thanks

  • Error creating a user defined report in the grid control

    I am trying to create a simple User Defined report in the Grid OEM
    Under the 'Elements' tab I have a 'Type' - 'Database Table from SQL'
    And I have this 'Statement' - SELECT * FROM SYS.DBA_USERS
    When I Click the 'Preview' button I get this error.
    Error rendering element. Exception: ORA-00942: table or view does not exist
    I'm logged on as SYSTEM.
    Isn't the SYS.DBA_USERS table accessible by SYSTEM?
    Any advice on what I'm doing wrong/
    Edited by: bfee_sdc on Oct 19, 2010 9:12 AM

    What are the tricks?
    It has to be some what supported since I found this somewhere in an Oracle note...
    How to create custom reports on tables other than mgmt* views.
    To create reports on other tables, grant permissions to MGMT_VIEW user as MGMT_VIEW is responsible for creating reports in grid control
    SQL> GRANT SELECT on SYSMAN.<table_name> to MGMT_VIEW;
    And then create the reports in the reporting framework referencing SYSMAN.<table_name> in the query.
    I tried GRANT SELECT on SYS.DBA_USERS to MGNT_VIEW but this did not work.

  • How can I make the GRID lines more bold within a table in the new Pages?  (Not the outline of a table)

    I can't find where to darken GRID lines on a table in the new Pages.  I can make the outline more bold, but not the grid lines within the table.  Is there a way to do this?  The default grid lines are far too faint.

    Yeah, the Help is missing a little.
    If you select the block of cells that you want to change, then in the Format inspector:
    Select the Cell tab
    Expand the Border section
    Set a line type
    Set a line width
    Choose a line color
    Choose one of the nine options for which borders get the new settings

Maybe you are looking for

  • Want to install Windows 7 to my Mac with Boot Camp, but my laptop's monitor is broken. How could I start the Windows installation through an HDMI video source?

    Hi everyone, I'm trying to start a bootcamp installation of Windows 7 though an external monitor using HDMI. Is there anyway to have the installation screen show up on the external monitor? I get stuck at the beginning of the installation due to not

  • Your Feedback please on GUI design/development

    Hi everyone, I am doing some research on GUI development in java and I would like your feedback on a few things: (1) Do you consider GUI development in java complex and time consuming(more than what it should be)? (2) How satisfied are you with exist

  • T400 build quality issue

    Here it goes, I purchased my Lenovo T400 less than a month ago and have noticed the following defects - Bottom of the screen basel there is a 2-3mm gap between the LCD and the plactic basel which is about 4 cm long   Dust started collecing not to men

  • Browser Control In Java Application is Exists?

    Hello i need a Browser control for Swing java application! equivalent to the activeX controller of visual basic. it would have to be in a position to accepting the commanos base of the browser. example (onclose,onfocus, opener) ecc...

  • Embedding Unicode Characters

    Dear List I am at a loss with flash fonts embedding once again.   I am using Flex 3 for coding and the Flash 4 IDE for font and assets management. I used the following steps to include the fonts: CS4 IDE: 1) Library : New Font 'HelveticaNeueRegular'