CCBRONET
asked on
Liferay + JBoss 5.0.1 GA "Couldn't Execute JDBC Batch Update"
After adding the mysql connectivity through the portal-ext.properties file, I get "Couldn't Execute JDBC Batch Update" error....
ERROR MESSAGE AS FOLLOWS......
>./run.sh
========================== ========== ========== ========== ========== =======
JBoss Bootstrap Environment
JBOSS_HOME: /opt/liferay-portal-6.0.6/ jboss-5.1. 0
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx1024m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warni ng=true -Dsun.rmi.dgc.client.gcInt erval=3600 000 -Dsun.rmi.dgc.server.gcInt erval=3600 000 -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack =true -Djboss.vfs.forceVfsJar=tr ue -Dorg.jboss.logging.Log4jS ervice.cat chSystemOu t=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack =true
CLASSPATH: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/bin/run. jar
========================== ========== ========== ========== ========== =======
04:56:02,368 INFO [ServerImpl] Starting JBoss (Microcontainer)...
04:56:02,368 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
04:56:02,368 INFO [ServerImpl] Bootstrap URL: null
04:56:02,368 INFO [ServerImpl] Home Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0
04:56:02,369 INFO [ServerImpl] Home URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/
04:56:02,369 INFO [ServerImpl] Library URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/lib /
04:56:02,369 INFO [ServerImpl] Patch URL: null
04:56:02,369 INFO [ServerImpl] Common Base URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/com mon/
04:56:02,369 INFO [ServerImpl] Common Library URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/com mon/lib/
04:56:02,369 INFO [ServerImpl] Server Name: default
04:56:02,369 INFO [ServerImpl] Server Base Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server
04:56:02,369 INFO [ServerImpl] Server Base URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/ser ver/
04:56:02,369 INFO [ServerImpl] Server Config URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/ser ver/defaul t/conf/
04:56:02,369 INFO [ServerImpl] Server Home Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault
04:56:02,370 INFO [ServerImpl] Server Home URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/ser ver/defaul t/
04:56:02,370 INFO [ServerImpl] Server Data Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault/dat a
04:56:02,370 INFO [ServerImpl] Server Library URL: file:/opt/liferay-portal-6 .0.6/jboss -5.1.0/ser ver/defaul t/lib/
04:56:02,370 INFO [ServerImpl] Server Log Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault/log
04:56:02,370 INFO [ServerImpl] Server Native Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault/tmp /native
04:56:02,370 INFO [ServerImpl] Server Temp Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault/tmp
04:56:02,370 INFO [ServerImpl] Server Temp Deploy Dir: /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault/tmp /deploy
04:56:02,796 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/opt/lif eray-porta l-6.0.6/jb oss-5.1.0/ server/def ault/conf/ bootstrap. xml
04:56:03,167 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins .cache.Com binedVFSCa che]
04:56:03,169 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cac he: null]]
04:56:03,196 INFO [FileSystemContext] VFS forced fallback to vfsjar is enabled.
04:56:03,361 INFO [AbstractVirtualFileHandle r] VFS force copy (NestedJarHandler) is enabled.
04:56:04,156 INFO [ServerInfo] Java version: 1.6.0_21,Sun Microsystems Inc.
04:56:04,156 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
04:56:04,156 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 17.0-b16,Sun Microsystems Inc.
04:56:04,157 INFO [ServerInfo] OS-System: Linux 2.6.32.12-0.7-default,i386
04:56:04,157 INFO [ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms128m -Xmx1024m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warni ng=true -Dsun.rmi.dgc.client.gcInt erval=3600 000 -Dsun.rmi.dgc.server.gcInt erval=3600 000 -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack =true -Djboss.vfs.forceVfsJar=tr ue -Dorg.jboss.logging.Log4jS ervice.cat chSystemOu t=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack =true -Djava.endorsed.dirs=/opt/ liferay-po rtal-6.0.6 /jboss-5.1 .0/lib/end orsed
04:56:04,182 INFO [JMXKernel] Legacy JMX core initialized
04:56:05,582 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1b2e44d[domain= default, server=default, name=default]
04:56:30,906 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.anno tation.Man agementCom ponent
04:56:30,955 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.anno tation.Man agementCom ponent
04:56:30,987 INFO [TransactionManagerService ] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
04:56:30,987 INFO [TransactionManagerService ] Setting up property manager MBean and JMX layer
04:56:31,165 INFO [TransactionManagerService ] Initializing recovery manager
04:56:31,272 INFO [TransactionManagerService ] Recovery manager configured
04:56:31,272 INFO [TransactionManagerService ] Binding TransactionManager JNDI Reference
04:56:31,290 INFO [TransactionManagerService ] Starting transaction recovery manager
04:56:31,481 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_21/jre/ lib/i386/s erver:/usr /java/jdk1 .6.0_21/jr e/lib/i386 :/usr/java /jdk1.6.0_ 21/jre/../ lib/i386:/ usr/java/p ackages/li b/i386:/li b:/usr/lib
04:56:31,525 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
04:56:31,526 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
04:56:31,538 INFO [StandardService] Starting service jboss.web
04:56:31,542 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
04:56:31,574 INFO [Catalina] Server startup in 48 ms
04:56:31,602 INFO [TomcatDeployment] deploy, ctxPath=/invoker
04:56:31,921 INFO [RARDeployment] Required license terms exist, view vfsfile:/opt/liferay-porta l-6.0.6/jb oss-5.1.0/ server/def ault/deplo y/jboss-lo cal-jdbc.r ar/META-IN F/ra.xml
04:56:31,928 INFO [RARDeployment] Required license terms exist, view vfsfile:/opt/liferay-porta l-6.0.6/jb oss-5.1.0/ server/def ault/deplo y/jboss-xa -jdbc.rar/ META-INF/r a.xml
04:56:31,994 INFO [ConnectionFactoryBindingS ervice] Bound ConnectionManager 'jboss.jca:service=DataSou rceBinding ,name=jdbc /LiferayPo ol' to JNDI name 'java:jdbc/LiferayPool'
04:56:32,015 INFO [TomcatDeployment] deploy, ctxPath=/
Loading vfsfile:/opt/liferay-porta l-6.0.6/jb oss-5.1.0/ server/def ault/deplo y/ROOT.war /WEB-INF/l ib/portal- impl.jar/s ystem.prop erties
04:56:32,458 INFO [ServerDetector] Detected server jboss
04:56:32,587 INFO [[/]] Initializing Spring root WebApplicationContext
Loading vfsfile:/opt/liferay-porta l-6.0.6/jb oss-5.1.0/ server/def ault/deplo y/ROOT.war /WEB-INF/l ib/portal- impl.jar/p ortal.prop erties
Loading file:/opt/liferay-portal-6 .0.6/porta l-ext.prop erties
04:56:36,295 INFO [DialectDetector] Determining dialect for MySQL 5
04:56:36,362 INFO [DialectDetector] Using dialect org.hibernate.dialect.MySQ LDialect
04:56:38,959 INFO [PortalImpl] Global lib directory
04:56:38,960 INFO [PortalImpl] Portal lib directory /opt/liferay-portal-6.0.6/ jboss-5.1. 0/server/d efault/dep loy/ROOT.w ar/WEB-INF /lib/
Starting Liferay Portal Community Edition 6.0.6 CE (Bunyan / Build 6006 / February 17, 2011)
04:56:50,350 INFO [BaseDB] Database does not support case sensitive queries
04:56:50,565 ERROR [JDBCExceptionReporter] Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
04:56:50,569 ERROR [MainServlet] com.liferay.portal.kernel. events.Act ionExcepti on: com.liferay.portal.kernel. exception. SystemExce ption: com.liferay.portal.kernel. dao.orm.OR MException : org.hibernate.exception.Ge nericJDBCE xception: Could not execute JDBC batch update
com.liferay.portal.kernel. events.Act ionExcepti on: com.liferay.portal.kernel. exception. SystemExce ption: com.liferay.portal.kernel. dao.orm.OR MException : org.hibernate.exception.Ge nericJDBCE xception: Could not execute JDBC batch update
at com.liferay.portal.events. StartupAct ion.run(St artupActio n.java:53)
at com.liferay.portal.servlet .MainServl et.process StartupEve nts(MainSe rvlet.java :1166)
at com.liferay.portal.servlet .MainServl et.init(Ma inServlet. java:199)
at javax.servlet.GenericServl et.init(Ge nericServl et.java:21 2)
at org.apache.catalina.core.S tandardWra pper.loadS ervlet(Sta ndardWrapp er.java:10 48)
at org.apache.catalina.core.S tandardWra pper.load( StandardWr apper.java :950)
at org.apache.catalina.core.S tandardCon text.loadO nStartup(S tandardCon text.java: 4122)
at org.apache.catalina.core.S tandardCon text.start (StandardC ontext.jav a:4421)
at org.jboss.web.tomcat.servi ce.deploye rs.TomcatD eployment. performDep loyInterna l(TomcatDe ployment.j ava:310)
at org.jboss.web.tomcat.servi ce.deploye rs.TomcatD eployment. performDep loy(Tomcat Deployment .java:142)
at org.jboss.web.deployers.Ab stractWarD eployment. start(Abst ractWarDep loyment.ja va:461)
at org.jboss.web.deployers.We bModule.st artModule( WebModule. java:118)
at org.jboss.web.deployers.We bModule.st art(WebMod ule.java:9 7)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at org.jboss.mx.interceptor.R eflectedDi spatcher.i nvoke(Refl ectedDispa tcher.java :157)
at org.jboss.mx.server.Invoca tion.dispa tch(Invoca tion.java: 96)
at org.jboss.mx.server.Invoca tion.invok e(Invocati on.java:88 )
at org.jboss.mx.server.Abstra ctMBeanInv oker.invok e(Abstract MBeanInvok er.java:26 4)
at org.jboss.mx.server.MBeanS erverImpl. invoke(MBe anServerIm pl.java:66 8)
at org.jboss.system.microcont ainer.Serv iceProxy.i nvoke(Serv iceProxy.j ava:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcont ainer.Star tStopLifec ycleAction .installAc tion(Start StopLifecy cleAction. java:42)
at org.jboss.system.microcont ainer.Star tStopLifec ycleAction .installAc tion(Start StopLifecy cleAction. java:37)
at org.jboss.dependency.plugi ns.action. SimpleCont rollerCont extAction. simpleInst allAction( SimpleCont rollerCont extAction. java:62)
at org.jboss.dependency.plugi ns.action. AccessCont rollerCont extAction. install(Ac cessContro llerContex tAction.ja va:71)
at org.jboss.dependency.plugi ns.Abstrac tControlle rContextAc tions.inst all(Abstra ctControll erContextA ctions.jav a:51)
at org.jboss.dependency.plugi ns.Abstrac tControlle rContext.i nstall(Abs tractContr ollerConte xt.java:34 8)
at org.jboss.system.microcont ainer.Serv iceControl lerContext .install(S erviceCont rollerCont ext.java:2 86)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.install( AbstractCo ntroller.j ava:1631)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.incremen tState(Abs tractContr oller.java :934)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.resolveC ontexts(Ab stractCont roller.jav a:1082)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.resolveC ontexts(Ab stractCont roller.jav a:984)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.change(A bstractCon troller.ja va:822)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.change(A bstractCon troller.ja va:553)
at org.jboss.system.ServiceCo ntroller.d oChange(Se rviceContr oller.java :688)
at org.jboss.system.ServiceCo ntroller.s tart(Servi ceControll er.java:46 0)
at org.jboss.system.deployers .ServiceDe ployer.sta rt(Service Deployer.j ava:163)
at org.jboss.system.deployers .ServiceDe ployer.dep loy(Servic eDeployer. java:99)
at org.jboss.system.deployers .ServiceDe ployer.dep loy(Servic eDeployer. java:46)
at org.jboss.deployers.spi.de ployer.hel pers.Abstr actSimpleR ealDeploye r.internal Deploy(Abs tractSimpl eRealDeplo yer.java:6 2)
at org.jboss.deployers.spi.de ployer.hel pers.Abstr actRealDep loyer.depl oy(Abstrac tRealDeplo yer.java:5 0)
at org.jboss.deployers.plugin s.deployer s.Deployer Wrapper.de ploy(Deplo yerWrapper .java:171)
at org.jboss.deployers.plugin s.deployer s.Deployer sImpl.doDe ploy(Deplo yersImpl.j ava:1439)
at org.jboss.deployers.plugin s.deployer s.Deployer sImpl.doIn stallParen tFirst(Dep loyersImpl .java:1157 )
at org.jboss.deployers.plugin s.deployer s.Deployer sImpl.doIn stallParen tFirst(Dep loyersImpl .java:1178 )
at org.jboss.deployers.plugin s.deployer s.Deployer sImpl.inst all(Deploy ersImpl.ja va:1098)
at org.jboss.dependency.plugi ns.Abstrac tControlle rContext.i nstall(Abs tractContr ollerConte xt.java:34 8)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.install( AbstractCo ntroller.j ava:1631)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.incremen tState(Abs tractContr oller.java :934)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.resolveC ontexts(Ab stractCont roller.jav a:1082)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.resolveC ontexts(Ab stractCont roller.jav a:984)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.change(A bstractCon troller.ja va:822)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.change(A bstractCon troller.ja va:553)
at org.jboss.deployers.plugin s.deployer s.Deployer sImpl.proc ess(Deploy ersImpl.ja va:781)
at org.jboss.deployers.plugin s.main.Mai nDeployerI mpl.proces s(MainDepl oyerImpl.j ava:702)
at org.jboss.system.server.pr ofileservi ce.reposit ory.MainDe ployerAdap ter.proces s(MainDepl oyerAdapte r.java:117 )
at org.jboss.system.server.pr ofileservi ce.reposit ory.Profil eDeployAct ion.instal l(ProfileD eployActio n.java:70)
at org.jboss.system.server.pr ofileservi ce.reposit ory.Abstra ctProfileA ction.inst all(Abstra ctProfileA ction.java :53)
at org.jboss.system.server.pr ofileservi ce.reposit ory.Abstra ctProfileS ervice.ins tall(Abstr actProfile Service.ja va:361)
at org.jboss.dependency.plugi ns.Abstrac tControlle rContext.i nstall(Abs tractContr ollerConte xt.java:34 8)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.install( AbstractCo ntroller.j ava:1631)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.incremen tState(Abs tractContr oller.java :934)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.resolveC ontexts(Ab stractCont roller.jav a:1082)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.resolveC ontexts(Ab stractCont roller.jav a:984)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.change(A bstractCon troller.ja va:822)
at org.jboss.dependency.plugi ns.Abstrac tControlle r.change(A bstractCon troller.ja va:553)
at org.jboss.system.server.pr ofileservi ce.reposit ory.Abstra ctProfileS ervice.act ivateProfi le(Abstrac tProfileSe rvice.java :306)
at org.jboss.system.server.pr ofileservi ce.Profile ServiceBoo tstrap.sta rt(Profile ServiceBoo tstrap.jav a:271)
at org.jboss.bootstrap.Abstra ctServerIm pl.start(A bstractSer verImpl.ja va:461)
at org.jboss.Main.boot(Main.j ava:221)
at org.jboss.Main$1.run(Main. java:556)
at java.lang.Thread.run(Threa d.java:619 )
Caused by: com.liferay.portal.kernel. exception. SystemExce ption: com.liferay.portal.kernel. dao.orm.OR MException : org.hibernate.exception.Ge nericJDBCE xception: Could not execute JDBC batch update
at com.liferay.portal.service .persisten ce.impl.Ba sePersiste nceImpl.pr ocessExcep tion(BaseP ersistence Impl.java: 195)
at com.liferay.portal.service .persisten ce.ClassNa mePersiste nceImpl.up dateImpl(C lassNamePe rsistenceI mpl.java:2 58)
at com.liferay.portal.service .persisten ce.ClassNa mePersiste nceImpl.up dateImpl(C lassNamePe rsistenceI mpl.java:1 )
at com.liferay.portal.service .persisten ce.impl.Ba sePersiste nceImpl.up date(BaseP ersistence Impl.java: 262)
at com.liferay.portal.service .impl.Clas sNameLocal ServiceImp l.addClass Name(Class NameLocalS erviceImpl .java:43)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at org.springframework.aop.su pport.AopU tils.invok eJoinpoint UsingRefle ction(AopU tils.java: 309)
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.invok eJoinpoint (Reflectiv eMethodInv ocation.ja va:183)
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.proce ed(Reflect iveMethodI nvocation. java:150)
at com.liferay.portal.spring. transactio n.Transact ionInterce ptor.invok e(Transact ionInterce ptor.java: 82)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.proce ed(Reflect iveMethodI nvocation. java:172)
at org.springframework.aop.in terceptor. ExposeInvo cationInte rceptor.in voke(Expos eInvocatio nIntercept or.java:89 )
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.proce ed(Reflect iveMethodI nvocation. java:172)
at org.springframework.aop.fr amework.Jd kDynamicAo pProxy.inv oke(JdkDyn amicAopPro xy.java:20 2)
at $Proxy252.addClassName(Unk nown Source)
at com.liferay.portal.service .impl.Clas sNameLocal ServiceImp l.getClass Name(Class NameLocalS erviceImpl .java:85)
at com.liferay.portal.service .impl.Clas sNameLocal ServiceImp l.checkCla ssNames(Cl assNameLoc alServiceI mpl.java:6 1)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at org.springframework.aop.su pport.AopU tils.invok eJoinpoint UsingRefle ction(AopU tils.java: 309)
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.invok eJoinpoint (Reflectiv eMethodInv ocation.ja va:183)
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.proce ed(Reflect iveMethodI nvocation. java:150)
at com.liferay.portal.spring. transactio n.Transact ionInterce ptor.invok e(Transact ionInterce ptor.java: 82)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at com.liferay.portal.spring. aop.Chaina bleMethodA dvice.invo ke(Chainab leMethodAd vice.java: 58)
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.proce ed(Reflect iveMethodI nvocation. java:172)
at org.springframework.aop.in terceptor. ExposeInvo cationInte rceptor.in voke(Expos eInvocatio nIntercept or.java:89 )
at org.springframework.aop.fr amework.Re flectiveMe thodInvoca tion.proce ed(Reflect iveMethodI nvocation. java:172)
at org.springframework.aop.fr amework.Jd kDynamicAo pProxy.inv oke(JdkDyn amicAopPro xy.java:20 2)
at $Proxy252.checkClassNames( Unknown Source)
at com.liferay.portal.service .ClassName LocalServi ceUtil.che ckClassNam es(ClassNa meLocalSer viceUtil.j ava:236)
at com.liferay.portal.tools.D BUpgrader. upgrade(DB Upgrader.j ava:102)
at com.liferay.portal.events. StartupAct ion.doRun( StartupAct ion.java:1 17)
at com.liferay.portal.events. StartupAct ion.run(St artupActio n.java:47)
... 74 more
Caused by: com.liferay.portal.kernel. dao.orm.OR MException : org.hibernate.exception.Ge nericJDBCE xception: Could not execute JDBC batch update
at com.liferay.portal.dao.orm .hibernate .Exception Translator .translate (Exception Translator .java:30)
at com.liferay.portal.dao.orm .hibernate .SessionIm pl.flush(S essionImpl .java:111)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at com.liferay.portal.kernel. bean.Class LoaderBean Handler.in voke(Class LoaderBean Handler.ja va:54)
at $Proxy471.flush(Unknown Source)
at com.liferay.portal.service .persisten ce.BatchSe ssionImpl. update(Bat chSessionI mpl.java:9 5)
at com.liferay.portal.service .persisten ce.BatchSe ssionUtil. update(Bat chSessionU til.java:4 9)
at com.liferay.portal.service .persisten ce.ClassNa mePersiste nceImpl.up dateImpl(C lassNamePe rsistenceI mpl.java:2 53)
... 117 more
Caused by: org.hibernate.exception.Ge nericJDBCE xception: Could not execute JDBC batch update
at org.hibernate.exception.SQ LStateConv erter.hand ledNonSpec ificExcept ion(SQLSta teConverte r.java:140 )
at org.hibernate.exception.SQ LStateConv erter.conv ert(SQLSta teConverte r.java:128 )
at org.hibernate.exception.JD BCExceptio nHelper.co nvert(JDBC ExceptionH elper.java :66)
at org.hibernate.jdbc.Abstrac tBatcher.e xecuteBatc h(Abstract Batcher.ja va:275)
at org.hibernate.engine.Actio nQueue.exe cuteAction s(ActionQu eue.java:2 63)
at org.hibernate.engine.Actio nQueue.exe cuteAction s(ActionQu eue.java:1 79)
at org.hibernate.event.def.Ab stractFlus hingEventL istener.pe rformExecu tions(Abst ractFlushi ngEventLis tener.java :321)
at org.hibernate.event.def.De faultFlush EventListe ner.onFlus h(DefaultF lushEventL istener.ja va:51)
at org.hibernate.impl.Session Impl.flush (SessionIm pl.java:12 06)
at com.liferay.portal.dao.orm .hibernate .SessionIm pl.flush(S essionImpl .java:108)
... 126 more
Caused by: java.sql.BatchUpdateExcept ion: Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
at com.mysql.jdbc.PreparedSta tement.exe cuteBatchS erially(Pr eparedStat ement.java :2020)
at com.mysql.jdbc.PreparedSta tement.exe cuteBatch( PreparedSt atement.ja va:1451)
at org.jboss.resource.adapter .jdbc.Wrap pedStateme nt.execute Batch(Wrap pedStateme nt.java:77 4)
at org.hibernate.jdbc.Batchin gBatcher.d oExecuteBa tch(Batchi ngBatcher. java:70)
at org.hibernate.jdbc.Abstrac tBatcher.e xecuteBatc h(Abstract Batcher.ja va:268)
... 132 more
Stopping the server due to unexpected startup errors
04:56:50,573 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
04:56:50,609 WARN [ProfileServiceBootstrap] Error deactivating profile: ProfileKey@1b2e44d[domain= default, server=default, name=default]
org.jboss.profileservice.s pi.NoSuchP rofileExce ption: No active profile for: ProfileKey@1b2e44d[domain= default, server=default, name=default]
at org.jboss.system.server.pr ofileservi ce.reposit ory.Abstra ctProfileS ervice.dea ctivatePro file(Abstr actProfile Service.ja va:391)
at org.jboss.system.server.pr ofileservi ce.Profile ServiceBoo tstrap.shu tdown(Prof ileService Bootstrap. java:327)
at org.jboss.bootstrap.Abstra ctServerIm pl.shutdow nServer(Ab stractServ erImpl.jav a:571)
at org.jboss.bootstrap.Abstra ctServerIm pl$Shutdow nHook.run( AbstractSe rverImpl.j ava:909)
04:56:50,760 INFO [TomcatDeployment] undeploy, ctxPath=/invoker
04:56:50,803 INFO [StandardService] Stopping service jboss.web
ERROR MESSAGE AS FOLLOWS......
>./run.sh
==========================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/liferay-portal-6.0.6/
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx1024m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warni
CLASSPATH: /opt/liferay-portal-6.0.6/
==========================
04:56:02,368 INFO [ServerImpl] Starting JBoss (Microcontainer)...
04:56:02,368 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
04:56:02,368 INFO [ServerImpl] Bootstrap URL: null
04:56:02,368 INFO [ServerImpl] Home Dir: /opt/liferay-portal-6.0.6/
04:56:02,369 INFO [ServerImpl] Home URL: file:/opt/liferay-portal-6
04:56:02,369 INFO [ServerImpl] Library URL: file:/opt/liferay-portal-6
04:56:02,369 INFO [ServerImpl] Patch URL: null
04:56:02,369 INFO [ServerImpl] Common Base URL: file:/opt/liferay-portal-6
04:56:02,369 INFO [ServerImpl] Common Library URL: file:/opt/liferay-portal-6
04:56:02,369 INFO [ServerImpl] Server Name: default
04:56:02,369 INFO [ServerImpl] Server Base Dir: /opt/liferay-portal-6.0.6/
04:56:02,369 INFO [ServerImpl] Server Base URL: file:/opt/liferay-portal-6
04:56:02,369 INFO [ServerImpl] Server Config URL: file:/opt/liferay-portal-6
04:56:02,369 INFO [ServerImpl] Server Home Dir: /opt/liferay-portal-6.0.6/
04:56:02,370 INFO [ServerImpl] Server Home URL: file:/opt/liferay-portal-6
04:56:02,370 INFO [ServerImpl] Server Data Dir: /opt/liferay-portal-6.0.6/
04:56:02,370 INFO [ServerImpl] Server Library URL: file:/opt/liferay-portal-6
04:56:02,370 INFO [ServerImpl] Server Log Dir: /opt/liferay-portal-6.0.6/
04:56:02,370 INFO [ServerImpl] Server Native Dir: /opt/liferay-portal-6.0.6/
04:56:02,370 INFO [ServerImpl] Server Temp Dir: /opt/liferay-portal-6.0.6/
04:56:02,370 INFO [ServerImpl] Server Temp Deploy Dir: /opt/liferay-portal-6.0.6/
04:56:02,796 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/opt/lif
04:56:03,167 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins
04:56:03,169 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cac
04:56:03,196 INFO [FileSystemContext] VFS forced fallback to vfsjar is enabled.
04:56:03,361 INFO [AbstractVirtualFileHandle
04:56:04,156 INFO [ServerInfo] Java version: 1.6.0_21,Sun Microsystems Inc.
04:56:04,156 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
04:56:04,156 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 17.0-b16,Sun Microsystems Inc.
04:56:04,157 INFO [ServerInfo] OS-System: Linux 2.6.32.12-0.7-default,i386
04:56:04,157 INFO [ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms128m -Xmx1024m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warni
04:56:04,182 INFO [JMXKernel] Legacy JMX core initialized
04:56:05,582 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1b2e44d[domain=
04:56:30,906 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.anno
04:56:30,955 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.anno
04:56:30,987 INFO [TransactionManagerService
04:56:30,987 INFO [TransactionManagerService
04:56:31,165 INFO [TransactionManagerService
04:56:31,272 INFO [TransactionManagerService
04:56:31,272 INFO [TransactionManagerService
04:56:31,290 INFO [TransactionManagerService
04:56:31,481 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_21/jre/
04:56:31,525 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
04:56:31,526 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
04:56:31,538 INFO [StandardService] Starting service jboss.web
04:56:31,542 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
04:56:31,574 INFO [Catalina] Server startup in 48 ms
04:56:31,602 INFO [TomcatDeployment] deploy, ctxPath=/invoker
04:56:31,921 INFO [RARDeployment] Required license terms exist, view vfsfile:/opt/liferay-porta
04:56:31,928 INFO [RARDeployment] Required license terms exist, view vfsfile:/opt/liferay-porta
04:56:31,994 INFO [ConnectionFactoryBindingS
04:56:32,015 INFO [TomcatDeployment] deploy, ctxPath=/
Loading vfsfile:/opt/liferay-porta
04:56:32,458 INFO [ServerDetector] Detected server jboss
04:56:32,587 INFO [[/]] Initializing Spring root WebApplicationContext
Loading vfsfile:/opt/liferay-porta
Loading file:/opt/liferay-portal-6
04:56:36,295 INFO [DialectDetector] Determining dialect for MySQL 5
04:56:36,362 INFO [DialectDetector] Using dialect org.hibernate.dialect.MySQ
04:56:38,959 INFO [PortalImpl] Global lib directory
04:56:38,960 INFO [PortalImpl] Portal lib directory /opt/liferay-portal-6.0.6/
Starting Liferay Portal Community Edition 6.0.6 CE (Bunyan / Build 6006 / February 17, 2011)
04:56:50,350 INFO [BaseDB] Database does not support case sensitive queries
04:56:50,565 ERROR [JDBCExceptionReporter] Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
04:56:50,569 ERROR [MainServlet] com.liferay.portal.kernel.
com.liferay.portal.kernel.
at com.liferay.portal.events.
at com.liferay.portal.servlet
at com.liferay.portal.servlet
at javax.servlet.GenericServl
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.jboss.web.tomcat.servi
at org.jboss.web.tomcat.servi
at org.jboss.web.deployers.Ab
at org.jboss.web.deployers.We
at org.jboss.web.deployers.We
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.jboss.mx.interceptor.R
at org.jboss.mx.server.Invoca
at org.jboss.mx.server.Invoca
at org.jboss.mx.server.Abstra
at org.jboss.mx.server.MBeanS
at org.jboss.system.microcont
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcont
at org.jboss.system.microcont
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.system.microcont
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.system.ServiceCo
at org.jboss.system.ServiceCo
at org.jboss.system.deployers
at org.jboss.system.deployers
at org.jboss.system.deployers
at org.jboss.deployers.spi.de
at org.jboss.deployers.spi.de
at org.jboss.deployers.plugin
at org.jboss.deployers.plugin
at org.jboss.deployers.plugin
at org.jboss.deployers.plugin
at org.jboss.deployers.plugin
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.deployers.plugin
at org.jboss.deployers.plugin
at org.jboss.system.server.pr
at org.jboss.system.server.pr
at org.jboss.system.server.pr
at org.jboss.system.server.pr
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.dependency.plugi
at org.jboss.system.server.pr
at org.jboss.system.server.pr
at org.jboss.bootstrap.Abstra
at org.jboss.Main.boot(Main.j
at org.jboss.Main$1.run(Main.
at java.lang.Thread.run(Threa
Caused by: com.liferay.portal.kernel.
at com.liferay.portal.service
at com.liferay.portal.service
at com.liferay.portal.service
at com.liferay.portal.service
at com.liferay.portal.service
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.springframework.aop.su
at org.springframework.aop.fr
at org.springframework.aop.fr
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at org.springframework.aop.fr
at org.springframework.aop.in
at org.springframework.aop.fr
at org.springframework.aop.fr
at $Proxy252.addClassName(Unk
at com.liferay.portal.service
at com.liferay.portal.service
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.springframework.aop.su
at org.springframework.aop.fr
at org.springframework.aop.fr
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at com.liferay.portal.spring.
at org.springframework.aop.fr
at org.springframework.aop.in
at org.springframework.aop.fr
at org.springframework.aop.fr
at $Proxy252.checkClassNames(
at com.liferay.portal.service
at com.liferay.portal.tools.D
at com.liferay.portal.events.
at com.liferay.portal.events.
... 74 more
Caused by: com.liferay.portal.kernel.
at com.liferay.portal.dao.orm
at com.liferay.portal.dao.orm
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.liferay.portal.kernel.
at $Proxy471.flush(Unknown Source)
at com.liferay.portal.service
at com.liferay.portal.service
at com.liferay.portal.service
... 117 more
Caused by: org.hibernate.exception.Ge
at org.hibernate.exception.SQ
at org.hibernate.exception.SQ
at org.hibernate.exception.JD
at org.hibernate.jdbc.Abstrac
at org.hibernate.engine.Actio
at org.hibernate.engine.Actio
at org.hibernate.event.def.Ab
at org.hibernate.event.def.De
at org.hibernate.impl.Session
at com.liferay.portal.dao.orm
... 126 more
Caused by: java.sql.BatchUpdateExcept
at com.mysql.jdbc.PreparedSta
at com.mysql.jdbc.PreparedSta
at org.jboss.resource.adapter
at org.hibernate.jdbc.Batchin
at org.hibernate.jdbc.Abstrac
... 132 more
Stopping the server due to unexpected startup errors
04:56:50,573 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
04:56:50,609 WARN [ProfileServiceBootstrap] Error deactivating profile: ProfileKey@1b2e44d[domain=
org.jboss.profileservice.s
at org.jboss.system.server.pr
at org.jboss.system.server.pr
at org.jboss.bootstrap.Abstra
at org.jboss.bootstrap.Abstra
04:56:50,760 INFO [TomcatDeployment] undeploy, ctxPath=/invoker
04:56:50,803 INFO [StandardService] Stopping service jboss.web
ASKER
Hey Blue Hunter,
How do i change this????
How do i change this????
ASKER
My my.cnf file
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/lib/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 1520
sort_buffer_size = 32M
net_buffer_length = 8K
read_buffer_size = 1M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Disable Federated by default
skip-federated
# Replication Master Server (default)
# binary logging is required for replication
# log-bin=mysql-bin
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST='125.564.12.1' , MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
#
# The replication master for this slave - required
#master-host = <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Point the following paths to different dedicated disks
#tmpdir = /tmp/
#log-update = /path-to-dedicated-directo ry/hostnam e
# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_poo l_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_c ommit = 1
#innodb_lock_wait_timeout = 50
default-storage-engine = InnoDB
expire_logs_days = 1
long_query_time = 2
log-error = cbs-flav.err
max_connections = 200
skip-host-cache
skip-name-resolve
tmp_table_size = 88M
thread_cache_size = 100
query_cache_limit = 50M
query_cache_size = 1M
innodb_additional_mem_pool _size = 22M
innodb_buffer_pool_size = 3G
innodb_thread_concurrency = 8
innodb_log_buffer_size = 20M
slow-query-log
slow_query_log_file = cbs-flav.slow
general-log
general_log_file = cbs-flav.log
log-bin = mysql-bin
table_open_cache = 2000
# The safe_mysqld script
[safe_mysqld]
log-error=/var/lib/mysql/m ysqld.log
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
log = /var/log/mysqld_multi.log
# user = multi_admin
# password = secret
# If you want to use mysqld_multi uncomment 1 or more mysqld sections
# below or add your own ones.
# WARNING
# --------
# If you uncomment mysqld1 than make absolutely sure, that database mysql,
# configured above, is not started. This may result in corrupted data!
# [mysqld1]
# port = 3306
# datadir = /var/lib/mysql
# pid-file = /var/lib/mysql/mysqld.pid
# socket = /var/lib/mysql/mysql.sock
# user = mysql
# [mysqld2]
# port = 3307
# datadir = /var/lib/mysql-databases/m ysqld2
# pid-file = /var/lib/mysql-databases/m ysqld2/mys ql.pid
# socket = /var/lib/mysql-databases/m ysqld2/mys ql.sock
# user = mysql
# [mysqld3]
# port = 3308
# datadir = /var/lib/mysql-databases/m ysqld3
# pid-file = /var/lib/mysql-databases/m ysqld3/mys ql.pid
# socket = /var/lib/mysql-databases/m ysqld3/mys ql.sock
# user = mysql
# [mysqld6]
# port = 3309
# datadir = /var/lib/mysql-databases/m ysqld6
# pid-file = /var/lib/mysql-databases/m ysqld6/mys ql.pid
# socket = /var/lib/mysql-databases/m ysqld6/mys ql.sock
# user = mysql
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/lib/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 1520
sort_buffer_size = 32M
net_buffer_length = 8K
read_buffer_size = 1M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Disable Federated by default
skip-federated
# Replication Master Server (default)
# binary logging is required for replication
# log-bin=mysql-bin
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password>
#
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST='125.564.12.1'
# MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
#
# The replication master for this slave - required
#master-host = <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Point the following paths to different dedicated disks
#tmpdir = /tmp/
#log-update = /path-to-dedicated-directo
# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_poo
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_c
#innodb_lock_wait_timeout = 50
default-storage-engine = InnoDB
expire_logs_days = 1
long_query_time = 2
log-error = cbs-flav.err
max_connections = 200
skip-host-cache
skip-name-resolve
tmp_table_size = 88M
thread_cache_size = 100
query_cache_limit = 50M
query_cache_size = 1M
innodb_additional_mem_pool
innodb_buffer_pool_size = 3G
innodb_thread_concurrency = 8
innodb_log_buffer_size = 20M
slow-query-log
slow_query_log_file = cbs-flav.slow
general-log
general_log_file = cbs-flav.log
log-bin = mysql-bin
table_open_cache = 2000
# The safe_mysqld script
[safe_mysqld]
log-error=/var/lib/mysql/m
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
log = /var/log/mysqld_multi.log
# user = multi_admin
# password = secret
# If you want to use mysqld_multi uncomment 1 or more mysqld sections
# below or add your own ones.
# WARNING
# --------
# If you uncomment mysqld1 than make absolutely sure, that database mysql,
# configured above, is not started. This may result in corrupted data!
# [mysqld1]
# port = 3306
# datadir = /var/lib/mysql
# pid-file = /var/lib/mysql/mysqld.pid
# socket = /var/lib/mysql/mysql.sock
# user = mysql
# [mysqld2]
# port = 3307
# datadir = /var/lib/mysql-databases/m
# pid-file = /var/lib/mysql-databases/m
# socket = /var/lib/mysql-databases/m
# user = mysql
# [mysqld3]
# port = 3308
# datadir = /var/lib/mysql-databases/m
# pid-file = /var/lib/mysql-databases/m
# socket = /var/lib/mysql-databases/m
# user = mysql
# [mysqld6]
# port = 3309
# datadir = /var/lib/mysql-databases/m
# pid-file = /var/lib/mysql-databases/m
# socket = /var/lib/mysql-databases/m
# user = mysql
Hi please run the following command in your mysql shell
mysql> show global variables like "%binlog%";
check what's the value of binlog format. in the error you pasted, the transaction isolation level you are using is READ-COMMITTED for your isolation level, you have to use ROW-base binlog format, instead of "STATEMENT", you may choose the "MIXED" as well for better binlog management.
http://dev.mysql.com/doc/refman/5.1/en/set-transaction.html
As of MySQL 5.1, if you use READ COMMITTED or enable innodb_locks_unsafe_for_bi nlog, you must use row-based binary logging.
mysql> show global variables like "%binlog%";
check what's the value of binlog format. in the error you pasted, the transaction isolation level you are using is READ-COMMITTED for your isolation level, you have to use ROW-base binlog format, instead of "STATEMENT", you may choose the "MIXED" as well for better binlog management.
http://dev.mysql.com/doc/refman/5.1/en/set-transaction.html
As of MySQL 5.1, if you use READ COMMITTED or enable innodb_locks_unsafe_for_bi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great!!!! Will be helpfull for others.....
This is the problem, you have to set it to suitable Transaction level. Refer here:
http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html