glassfish
  1. glassfish
  2. GLASSFISH-17075

EJB Timer not working with SQL Server 2008

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      SQL Server 2008
      WIndows XP or 2003

      Description

      Error:

      Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ConversionException
      Exception Description: The object [com.sun.ejb.containers.TimerState$Blob@1e71ec7], of class [class com.sun.ejb.containers.TimerState$Blob], could not be converted to [class [B].

      Database structure is:

      EJB_TIMER_TBL
      ******************************************
      CREATIONTIMERAW, numeric(20,0)
      BLOB, image
      TIMERID, varchar(255)
      CONTAINERID, numeric(20,0)
      OWNERID, varchar(255)
      STATE, int,>
      PKHASHCODE, int
      INTERVALDURATION, numeric(20,0)
      INITIALEXPIRATIONRAW, numeric(20,0)
      LASTEXPIRATIONRAW, numeric(20,0)
      SCHEDULE, varchar(255)
      APPLICATIONID, numeric(20,0)
      ******************************************

      Full log is here:

      20-lug-2011 16.27.36 com.sun.enterprise.admin.launcher.GFLauncherLogger info
      INFO: JVM invocation command line:
      C:\Program Files\Java\jdk1.6.0_26\bin\java.exe
      -cp
      D:/glassfish3/glassfish/modules/glassfish.jar
      -XX:+UnlockDiagnosticVMOptions
      -XX:MaxPermSize=128m
      -XX:PermSize=128m
      -XX:NewRatio=2
      -Xss512k
      -Xmx512m
      -javaagent:/glassfish3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
      -server
      -Dosgi.shell.telnet.maxconn=1
      -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
      -Dfelix.fileinstall.disableConfigSave=false
      -Dfelix.fileinstall.dir=D:\glassfish3\glassfish/modules/autostart/
      -Djavax.net.ssl.keyStore=D:\glassfish3\glassfish\nodes\localhost-domain1\instance1/config/keystore.jks
      -Dosgi.shell.telnet.port=26666
      -Djava.security.policy=D:\glassfish3\glassfish\nodes\localhost-domain1\instance1/config/server.policy
      -Dfelix.fileinstall.log.level=3
      -Dfelix.fileinstall.poll=5000
      -Dcom.sun.aas.instanceRoot=D:\glassfish3\glassfish\nodes\localhost-domain1\instance1
      -Dosgi.shell.telnet.ip=127.0.0.1
      -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
      -Djava.endorsed.dirs=D:\glassfish3\glassfish/modules/endorsed;D:\glassfish3\glassfish/lib/endorsed
      -Dcom.sun.aas.installRoot=D:\glassfish3\glassfish
      -Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_26/lib/ext;C:\Program Files\Java\jdk1.6.0_26/jre/lib/ext;D:\glassfish3\glassfish\nodes\localhost-domain1\instance1/lib/ext
      -Dfelix.fileinstall.bundles.startTransient=true
      -Dfelix.fileinstall.bundles.new.start=true
      -Djavax.net.ssl.trustStore=D:\glassfish3\glassfish\nodes\localhost-domain1\instance1/config/cacerts.jks
      -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command
      -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
      -DANTLR_USE_DIRECT_CLASS_LOADING=true
      -Djava.security.auth.login.config=D:\glassfish3\glassfish\nodes\localhost-domain1\instance1/config/login.conf
      Dgosh.args=-noshutdown -c noop=true
      -Djava.library.path=D:/glassfish3/glassfish/lib;C:/Program Files/Java/jdk1.6.0_26/bin;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/Program Files/Support Tools;C:/WINDOWS/system32/wbem;D:/IBM/db2cmv8/inso;D:/IBM/db2cmv8;D:/IBM/db2cmv8/bin;D:/IBM/db2cmv8/dll;D:/Program Files/UltraEdit;C:/WINDOWS/system32/windowspowershell/v1.0;C:/Program Files/QuickTime/QTSystem;C:/Inetpub/wwwroot/sun-passthrough/sun-passthrough.dll;C:/Inetpub/glassfish-lbplugin/lib;D:/glassfish3/glassfish/domains/domain1/config
      com.sun.enterprise.glassfish.bootstrap.ASMain
      -asadmin-args
      -host,,,localhost,,,port,,,4848,,,user,,,admin,,,secure=false,,,terse=false,,,echo=false,,,interactive=false,,,start-local-instance,,,verbose=false,,,debug=false,,,-node,,,localhost-domain1,,,instance1
      -instancename
      instance1
      -verbose
      false
      -debug
      false
      -asadmin-classpath
      D:/glassfish3/glassfish/modules/admin-cli.jar
      -asadmin-classname
      com.sun.enterprise.admin.cli.AsadminMain
      -upgrade
      false
      -type
      INSTANCE
      -instancedir
      D:/glassfish3/glassfish/nodes/localhost-domain1/instance1
      -read-stdin
      true
      20-lug-2011 16.27.36 com.sun.enterprise.admin.launcher.GFLauncherLogger info
      INFO: Successfully launched in 16 msec.
      [#|2011-07-20T16:27:56.531+0200|INFO|glassfish3.1|null|_ThreadID=1;_ThreadName=Thread-1;|Running GlassFish Version: GlassFish Server Open Source Edition 3.1 (build 43)|#]

      [#|2011-07-20T16:27:57.609+0200|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-1;|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

      [#|2011-07-20T16:27:58.000+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=10;_ThreadName=Thread-1;|GMS1095: member: instance1 is joining group: CSIPortal-cluster ...|#]

      [#|2011-07-20T16:27:58.531+0200|INFO|glassfish3.1|grizzly|_ThreadID=11;_ThreadName=Thread-1;|GRIZZLY0001: Starting Grizzly Framework 1.9.31 - 20/07/11 16.27|#]

      [#|2011-07-20T16:27:58.703+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=10;_ThreadName=Thread-1;|starting cluster CSIPortal-cluster for member:instance1|#]

      [#|2011-07-20T16:27:58.703+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=10;_ThreadName=Thread-1;|GMS1061: MasterNode message listener is registered for member: instance1 group: CSIPortal-cluster|#]

      [#|2011-07-20T16:27:58.703+0200|INFO|glassfish3.1|javax.org.glassfish.gms.org.glassfish.gms|_ThreadID=1;_ThreadName=Thread-1;|GMSAD1005: Member instance1 joined group CSIPortal-cluster|#]

      [#|2011-07-20T16:27:58.718+0200|INFO|glassfish3.1|javax.org.glassfish.gms.org.glassfish.gms|_ThreadID=1;_ThreadName=Thread-1;|GMSAD1004: Started GMS for instance instance1 in group CSIPortal-cluster|#]

      [#|2011-07-20T16:27:59.265+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1092: GMS View Change Received for group: CSIPortal-cluster : Members in view for MASTER_CHANGE_EVENT(before change analysis) are :
      1: MemberId: instance1, MemberType: CORE, Address: 10.5.2.92:9166:228.9.21.114:28109:CSIPortal-cluster:instance1

      #]

      [#|2011-07-20T16:27:59.265+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1016: Analyzing new membership snapshot received as part of event: MASTER_CHANGE_EVENT for member: instance1 of group: CSIPortal-cluster|#]

      [#|2011-07-20T16:27:59.281+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1093: adding GroupLeadershipNotification signal leadermember: instance1 of group: CSIPortal-cluster|#]

      [#|2011-07-20T16:27:59.531+0200|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=35;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 172ms - bound to [0.0.0.0:28080]|#]

      [#|2011-07-20T16:27:59.656+0200|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=40;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 31ms - bound to [0.0.0.0:28181]|#]

      [#|2011-07-20T16:27:59.812+0200|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=45;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 141ms - bound to [0.0.0.0:24848]|#]

      [#|2011-07-20T16:27:59.937+0200|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=48;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 203ms - bound to [0.0.0.0:27676]|#]

      [#|2011-07-20T16:28:00.359+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1092: GMS View Change Received for group: CSIPortal-cluster : Members in view for MASTER_CHANGE_EVENT(before change analysis) are :
      1: MemberId: instance1, MemberType: CORE, Address: 10.5.2.92:9166:228.9.21.114:28109:CSIPortal-cluster:instance1
      2: MemberId: server, MemberType: SPECTATOR, Address: 10.5.2.92:9186:228.9.21.114:28109:CSIPortal-cluster:server

      #]

      [#|2011-07-20T16:28:00.359+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1016: Analyzing new membership snapshot received as part of event: MASTER_CHANGE_EVENT for member: server of group: CSIPortal-cluster|#]

      [#|2011-07-20T16:28:00.359+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1093: adding GroupLeadershipNotification signal leadermember: server of group: CSIPortal-cluster|#]

      [#|2011-07-20T16:28:03.078+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1092: GMS View Change Received for group: CSIPortal-cluster : Members in view for ADD_EVENT(before change analysis) are :
      1: MemberId: instance1, MemberType: CORE, Address: 10.5.2.92:9166:228.9.21.114:28109:CSIPortal-cluster:instance1
      2: MemberId: server, MemberType: SPECTATOR, Address: 10.5.2.92:9186:228.9.21.114:28109:CSIPortal-cluster:server

      #]

      [#|2011-07-20T16:28:03.078+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1016: Analyzing new membership snapshot received as part of event: ADD_EVENT for member: instance1 of group: CSIPortal-cluster|#]

      [#|2011-07-20T16:28:03.078+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1024: Adding Join member: instance1 group: CSIPortal-cluster StartupState: GROUP_STARTUP |#]

      [#|2011-07-20T16:28:05.296+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:28080]|#]

      [#|2011-07-20T16:28:05.328+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:28181]|#]

      [#|2011-07-20T16:28:05.343+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:24848]|#]

      [#|2011-07-20T16:28:05.515+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0171: Created virtual server [server]|#]

      [#|2011-07-20T16:28:05.515+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0171: Created virtual server [__asadmin]|#]

      [#|2011-07-20T16:28:07.671+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0172: Virtual server [server] loaded default web module []|#]

      [#|2011-07-20T16:28:13.203+0200|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=1;_ThreadName=Thread-1;|core.start_container_done|#]

      [#|2011-07-20T16:28:54.890+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1002: Security Manager is OFF.|#]

      [#|2011-07-20T16:28:55.312+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1010: Entering Security Startup Service|#]

      [#|2011-07-20T16:28:55.343+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

      [#|2011-07-20T16:28:56.843+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

      [#|2011-07-20T16:28:56.859+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

      [#|2011-07-20T16:28:56.906+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#]

      [#|2011-07-20T16:28:56.937+0200|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1011: Security Service(s) Started Successfully|#]

      [#|2011-07-20T16:28:58.265+0200|INFO|glassfish3.1|org.hibernate.validator.util.Version|_ThreadID=10;_ThreadName=Thread-1;|Hibernate Validator 4.1.0.Final|#]

      [#|2011-07-20T16:28:58.296+0200|INFO|glassfish3.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=10;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]

      [#|2011-07-20T16:29:02.890+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.mct.CustomsDeclarationEntity actually got transformed|#]

      [#|2011-07-20T16:29:05.281+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.mct.CustomsDeclarationEntityPK actually got transformed|#]

      [#|2011-07-20T16:29:05.375+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB MCTServicesSessionBean : [java:global/CSIPortal-J2EE6/MCTServices-ejb/MCTServicesSessionBean, java:global/CSIPortal-J2EE6/MCTServices-ejb/MCTServicesSessionBean!com.contshipitalia.ejb.mct.MCTServicesSession]|#]

      [#|2011-07-20T16:29:05.859+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB LSCTServicesSessionBean : [java:global/CSIPortal-J2EE6/LSCTServices-ejb/LSCTServicesSessionBean, java:global/CSIPortal-J2EE6/LSCTServices-ejb/LSCTServicesSessionBean!com.contshipitalia.ejb.lsct.LSCTServicesSession]|#]

      [#|2011-07-20T16:29:06.140+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Loading EJBTimerService. Please wait.|#]

      [#|2011-07-20T16:29:09.843+0200|INFO|glassfish3.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=10;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]

      [#|2011-07-20T16:29:11.609+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|[TimerBeanContainer] Created TimerBeanContainer: TimerBean|#]

      [#|2011-07-20T16:29:11.640+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB TimerBean : [java:global/ejb-timer-service-app/TimerBean, java:global/ejb-timer-service-app/TimerBean!com.sun.ejb.containers.TimerLocal]|#]

      [#|2011-07-20T16:29:12.093+0200|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0671: Loading application [ejb-timer-service-app] at [/ejb-timer-service-app]|#]

      [#|2011-07-20T16:29:12.093+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|EJB5109:EJB Timer Service started successfully for data source [jdbc/__TimerPool]|#]

      [#|2011-07-20T16:29:12.109+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Setting DBReadBeforeTimeout to true|#]

      [#|2011-07-20T16:29:12.109+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|==> Restoring Timers ... |#]

      [#|2011-07-20T16:29:12.281+0200|INFO|glassfish3.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=10;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]

      [#|2011-07-20T16:29:12.359+0200|INFO|glassfish3.1|org.eclipse.persistence.session.file:/D:/glassfish3/glassfish/nodes/localhost-domain1/instance1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App|_ThreadID=10;_ThreadName=Thread-1;|EclipseLink, version: Eclipse Persistence Services - 2.2.0.v20110202-r8913|#]

      [#|2011-07-20T16:29:14.093+0200|INFO|glassfish3.1|javax.enterprise.system.core.transaction.com.sun.jts.CosTransactions|_ThreadID=1;_ThreadName=Thread-1;|JTS5014: Recoverable JTS instance, serverId = [100]|#]

      [#|2011-07-20T16:29:14.296+0200|INFO|glassfish3.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.inbound|_ThreadID=94;_ThreadName=Thread-1;|Recovery of Inbound Transactions started.|#]

      [#|2011-07-20T16:29:17.109+0200|INFO|glassfish3.1|org.eclipse.persistence.session.file:/D:/glassfish3/glassfish/nodes/localhost-domain1/instance1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App|_ThreadID=10;_ThreadName=Thread-1;|file:/D:/glassfish3/glassfish/nodes/localhost-domain1/instance1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App login successful|#]

      [#|2011-07-20T16:29:17.359+0200|WARNING|glassfish3.1|org.eclipse.persistence.session.file:/D:/glassfish3/glassfish/nodes/localhost-domain1/instance1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App|_ThreadID=10;_ThreadName=Thread-1;|
      Local Exception Stack:
      Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ConversionException
      Exception Description: The object [com.sun.ejb.containers.TimerState$Blob@1e71ec7], of class [class com.sun.ejb.containers.TimerState$Blob], could not be converted to [class [B].
      at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:71)
      at org.eclipse.persistence.internal.helper.ConversionManager.convertObjectToByteArray(ConversionManager.java:341)
      at org.eclipse.persistence.internal.helper.ConversionManager.convertObject(ConversionManager.java:133)
      at org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.convertObject(DatasourcePlatform.java:157)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:1140)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:927)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:649)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
      at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1729)
      at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)
      at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:207)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:647)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2558)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2517)
      at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:410)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1080)
      at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:808)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1040)
      at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:383)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1126)
      at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2842)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1521)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1503)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1477)
      at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:484)
      at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:741)
      at com.sun.ejb.containers.TimerBean.findTimersByOwnerAndState(TimerBean.java:204)
      at com.sun.ejb.containers.TimerBean.findActiveTimersOwnedByThisServer(TimerBean.java:518)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
      at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5367)
      at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
      at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5339)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
      at $Proxy136.findActiveTimersOwnedByThisServer(Unknown Source)
      at com.sun.ejb.containers.EJBTimerService.restoreEJBTimers(EJBTimerService.java:489)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:302)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:284)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:269)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:755)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
      at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
      at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
      at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)

      #]

      [#|2011-07-20T16:29:17.390+0200|WARNING|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|A system exception occurred during an invocation on EJB TimerBean method public java.util.Set com.sun.ejb.containers.TimerBean.findActiveTimersOwnedByThisServer()
      javax.ejb.EJBException
      at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5194)
      at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5092)
      at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4880)
      at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2039)
      at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1990)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
      at $Proxy136.findActiveTimersOwnedByThisServer(Unknown Source)
      at com.sun.ejb.containers.EJBTimerService.restoreEJBTimers(EJBTimerService.java:489)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:302)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:284)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:269)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:755)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
      at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
      at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
      at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
      Caused by: Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ConversionException
      Exception Description: The object [com.sun.ejb.containers.TimerState$Blob@1e71ec7], of class [class com.sun.ejb.containers.TimerState$Blob], could not be converted to [class [B].
      at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:71)
      at org.eclipse.persistence.internal.helper.ConversionManager.convertObjectToByteArray(ConversionManager.java:341)
      at org.eclipse.persistence.internal.helper.ConversionManager.convertObject(ConversionManager.java:133)
      at org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.convertObject(DatasourcePlatform.java:157)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:1140)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:927)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:649)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
      at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1729)
      at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)
      at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:207)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:647)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2558)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2517)
      at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:410)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1080)
      at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:808)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1040)
      at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:383)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1126)
      at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2842)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1521)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1503)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1477)
      at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:484)
      at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:741)
      at com.sun.ejb.containers.TimerBean.findTimersByOwnerAndState(TimerBean.java:204)
      at com.sun.ejb.containers.TimerBean.findActiveTimersOwnedByThisServer(TimerBean.java:518)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
      at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5367)
      at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
      at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5339)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
      ... 34 more

      #]

      [#|2011-07-20T16:29:17.390+0200|WARNING|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|EJB5108:Unable to initialize EJB Timer Service. The possible cause is the timer resource is not configured correctly, the database has not been started, or the timer database table has not been created.
      javax.ejb.EJBException
      at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5194)
      at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5092)
      at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4880)
      at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2039)
      at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1990)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
      at $Proxy136.findActiveTimersOwnedByThisServer(Unknown Source)
      at com.sun.ejb.containers.EJBTimerService.restoreEJBTimers(EJBTimerService.java:489)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:302)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:284)
      at com.sun.ejb.containers.EjbContainerUtilImpl.getEJBTimerService(EjbContainerUtilImpl.java:269)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:755)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
      at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
      at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
      at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
      Caused by: Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ConversionException
      Exception Description: The object [com.sun.ejb.containers.TimerState$Blob@1e71ec7], of class [class com.sun.ejb.containers.TimerState$Blob], could not be converted to [class [B].
      at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:71)
      at org.eclipse.persistence.internal.helper.ConversionManager.convertObjectToByteArray(ConversionManager.java:341)
      at org.eclipse.persistence.internal.helper.ConversionManager.convertObject(ConversionManager.java:133)
      at org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.convertObject(DatasourcePlatform.java:157)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:1140)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:927)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:649)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
      at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1729)
      at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)
      at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:207)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:647)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2558)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2517)
      at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:410)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1080)
      at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:808)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1040)
      at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:383)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1126)
      at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2842)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1521)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1503)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1477)
      at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:484)
      at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:741)
      at com.sun.ejb.containers.TimerBean.findTimersByOwnerAndState(TimerBean.java:204)
      at com.sun.ejb.containers.TimerBean.findActiveTimersOwnedByThisServer(TimerBean.java:518)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
      at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5367)
      at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
      at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5339)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
      ... 34 more

      #]

      [#|2011-07-20T16:29:17.390+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB EJBSchedulerSessionBean : [java:global/CSIPortal-J2EE6/EJBScheduler-ejb/EJBSchedulerSessionBean, java:global/CSIPortal-J2EE6/EJBScheduler-ejb/EJBSchedulerSessionBean!com.portal.scheduler.EJBSchedulerSessionBeanLocal]|#]

      [#|2011-07-20T16:29:36.718+0200|INFO|glassfish3.1|javax.enterprise.system.core.transaction.com.sun.jts.CosTransactions|_ThreadID=1;_ThreadName=Thread-1;|JTS5014: Recoverable JTS instance, serverId = [23700]|#]

      [#|2011-07-20T16:29:40.968+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB EJBSessionTerminalBean : [java:global/CSIPortal-J2EE6/CSIPortalTS-ejb/EJBSessionTerminalBean, java:global/CSIPortal-J2EE6/CSIPortalTS-ejb/EJBSessionTerminalBean!com.contshipitalia.ejb.EJBSessionTerminal]|#]

      [#|2011-07-20T16:29:40.968+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Glassfish-specific (Non-portable) JNDI names for EJB EJBSessionTerminalBean : com.contshipitalia.ejb.EJBSessionTerminal, com.contshipitalia.ejb.EJBSessionTerminal#com.contshipitalia.ejb.EJBSessionTerminal|#]

      [#|2011-07-20T16:29:49.296+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB EJBSessionGeneralBean : [java:global/CSIPortal-J2EE6/CSIPortalGS-ejb/EJBSessionGeneralBean!com.contshipitalia.ejb.EJBSessionGeneral, java:global/CSIPortal-J2EE6/CSIPortalGS-ejb/EJBSessionGeneralBean]|#]

      [#|2011-07-20T16:29:49.296+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Glassfish-specific (Non-portable) JNDI names for EJB EJBSessionGeneralBean : com.contshipitalia.ejb.EJBSessionGeneral, com.contshipitalia.ejb.EJBSessionGeneral#com.contshipitalia.ejb.EJBSessionGeneral|#]

      [#|2011-07-20T16:29:49.890+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB GenericSessionBean : [java:global/CSIPortal-J2EE6/CSIPortalGeneric-ejb/GenericSessionBean!com.contshipitalia.ejb.GenericSession, java:global/CSIPortal-J2EE6/CSIPortalGeneric-ejb/GenericSessionBean]|#]

      [#|2011-07-20T16:29:49.890+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Glassfish-specific (Non-portable) JNDI names for EJB GenericSessionBean : com.contshipitalia.ejb.GenericSession, com.contshipitalia.ejb.GenericSession#com.contshipitalia.ejb.GenericSession|#]

      [#|2011-07-20T16:29:50.000+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.MonitorOutEntity actually got transformed|#]

      [#|2011-07-20T16:29:50.015+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB MonitorOutEntityFacade : [java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/MonitorOutEntityFacade!com.contshipitalia.ejb.MonitorOutEntityFacadeLocal, java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/MonitorOutEntityFacade]|#]

      [#|2011-07-20T16:29:50.078+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.DownloadEntity actually got transformed|#]

      [#|2011-07-20T16:29:50.093+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB DownloadEntityFacade : [java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/DownloadEntityFacade!com.contshipitalia.ejb.DownloadEntityFacadeLocal, java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/DownloadEntityFacade]|#]

      [#|2011-07-20T16:29:50.140+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.MonitorInEntity actually got transformed|#]

      [#|2011-07-20T16:29:50.156+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB MonitorInEntityFacade : [java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/MonitorInEntityFacade!com.contshipitalia.ejb.MonitorInEntityFacadeLocal, java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/MonitorInEntityFacade]|#]

      [#|2011-07-20T16:29:51.625+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.CargoManifestEntity actually got transformed|#]

      [#|2011-07-20T16:29:51.671+0200|INFO|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-1;|com.contshipitalia.ejb.CargoManifestEntityPK actually got transformed|#]

      [#|2011-07-20T16:29:51.687+0200|INFO|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=1;_ThreadName=Thread-1;|Portable JNDI names for EJB CargoManifestEntityFacade : [java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/CargoManifestEntityFacade!com.contshipitalia.ejb.CargoManifestEntityFacadeLocal, java:global/CSIPortal-J2EE6/CSIPortalEntityFacades/CargoManifestEntityFacade]|#]

      [#|2011-07-20T16:29:52.015+0200|SEVERE|glassfish3.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=1;_ThreadName=Thread-1;|Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
      java.lang.RuntimeException: EJB Timer Service is not available
      at com.sun.ejb.containers.BaseContainer.startApplication(BaseContainer.java:3987)
      at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:174)
      at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
      at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
      at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
      at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
      at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
      at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)

      #]

      [#|2011-07-20T16:29:52.015+0200|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|Exception while loading the app|#]

      [#|2011-07-20T16:29:52.265+0200|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|Exception while loading the app|#]

      [#|2011-07-20T16:29:52.265+0200|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|GlassFish Server Open Source Edition 3.1 (43) startup time : Felix (18.141ms), startup services(116.781ms), total(134.922ms)|#]

      [#|2011-07-20T16:29:52.265+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=10;_ThreadName=Thread-1;|GMS1099: GMS:Reporting Joined and Ready state to group: CSIPortal-cluster|#]

      [#|2011-07-20T16:29:52.453+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1092: GMS View Change Received for group: CSIPortal-cluster : Members in view for JOINED_AND_READY_EVENT(before change analysis) are :
      1: MemberId: instance1, MemberType: CORE, Address: 10.5.2.92:9166:228.9.21.114:28109:CSIPortal-cluster:instance1
      2: MemberId: server, MemberType: SPECTATOR, Address: 10.5.2.92:9186:228.9.21.114:28109:CSIPortal-cluster:server

      #]

      [#|2011-07-20T16:29:52.453+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1016: Analyzing new membership snapshot received as part of event: JOINED_AND_READY_EVENT for member: instance1 of group: CSIPortal-cluster|#]

      [#|2011-07-20T16:29:52.453+0200|INFO|glassfish3.1|ShoalLogger|_ThreadID=12;_ThreadName=Thread-1;|GMS1025: Adding Joined And Ready member: instance1 group: CSIPortal-cluster StartupState: GROUP_STARTUP |#]

      [#|2011-07-20T16:29:52.843+0200|SEVERE|glassfish3.1|com.sun.pkg.client.SystemInfo|_ThreadID=10;_ThreadName=Thread-1;|invalidproxy|#]

      [#|2011-07-20T16:29:55.187+0200|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|ThreadID=100;_ThreadName=Thread-1;|___________________________
      Welcome to Apache Felix Gogo

      #]

      [#|2011-07-20T16:29:56.906+0200|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=102;_ThreadName=Thread-1;|JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://CSICVS.contship.net:28686/jndi/rmi://CSICVS.contship.net:28686/jmxrmi|#]

        Activity

        Hide
        cistox added a comment -

        I analyzed the EclipseLink code and I found that the TimerState$Blob cannot be converted just because it doesn't match any valid SQL data. At least TimerState$Blob should implement the java.sql.Blob interface, but it doesn't.

        The EclipseLink conversion code can be inspected at this link (see row 304):

        http://grepcode.com/file/maven.glassfish.org/content/repositories/eclipselink/org.eclipse.persistence/eclipselink/2.1.0/org/eclipse/persistence/internal/helper/ConversionManager.java#ConversionManager.convertObjectToByteArray%28java.lang.Object%29

        I believe that switching from EclipseLink to Hibernate will not solve this issue.

        I am not a JPA expert but I do not believe that EJB Timer has been seriously tested with most common databases.

        I would please ask you to provide a workaround.

        Show
        cistox added a comment - I analyzed the EclipseLink code and I found that the TimerState$Blob cannot be converted just because it doesn't match any valid SQL data. At least TimerState$Blob should implement the java.sql.Blob interface, but it doesn't. The EclipseLink conversion code can be inspected at this link (see row 304): http://grepcode.com/file/maven.glassfish.org/content/repositories/eclipselink/org.eclipse.persistence/eclipselink/2.1.0/org/eclipse/persistence/internal/helper/ConversionManager.java#ConversionManager.convertObjectToByteArray%28java.lang.Object%29 I believe that switching from EclipseLink to Hibernate will not solve this issue. I am not a JPA expert but I do not believe that EJB Timer has been seriously tested with most common databases. I would please ask you to provide a workaround.
        Hide
        marina vatkina added a comment -

        EJB Timer Service had been tested on various databases, and the attached application that uses EJB Timers was tested on SQL Server 2008. There is either something special in your SQL Server setup or in your application. Try undeploying your application, restarting GlassFish, then deploying the attached app. If you see the error, the problem is in the SQL Server setup, and we need to identify what is it. If there is no error, something in your app triggers the issue, and we would need a test case that reproduces the problem to move any further.

        Show
        marina vatkina added a comment - EJB Timer Service had been tested on various databases, and the attached application that uses EJB Timers was tested on SQL Server 2008. There is either something special in your SQL Server setup or in your application. Try undeploying your application, restarting GlassFish, then deploying the attached app. If you see the error, the problem is in the SQL Server setup, and we need to identify what is it. If there is no error, something in your app triggers the issue, and we would need a test case that reproduces the problem to move any further.
        Hide
        cistox added a comment -

        I solved the issue by changing the driver.
        It seems the problem was with INET Merlia driver that is mapping the Blob type in a way that is not supported by EclipseLink. Personally I think EclipseLink is quite tricky on handling Blob data.

        Anyway now I use SQL Server JDBC Driver 3.0 and all is working.

        Show
        cistox added a comment - I solved the issue by changing the driver. It seems the problem was with INET Merlia driver that is mapping the Blob type in a way that is not supported by EclipseLink. Personally I think EclipseLink is quite tricky on handling Blob data. Anyway now I use SQL Server JDBC Driver 3.0 and all is working.
        Hide
        marina vatkina added a comment -

        Thanks for tracking it down.

        Show
        marina vatkina added a comment - Thanks for tracking it down.
        Hide
        lprimak added a comment -

        This issue can be resolved using I-Net Merlia driver without switching drivers.
        set JAVA_OBJECT to false (default is true) into 'Additional Properties' for the JDBC connection pool

        Here is some documentation:
        http://www.inetsoftware.de/documentation/jdbc-driver/ms-sql/manual.html#Properties

        The side effect is that the JDBC data type JAVA_OBJECT does not work. Which is very rare used.

        Show
        lprimak added a comment - This issue can be resolved using I-Net Merlia driver without switching drivers. set JAVA_OBJECT to false (default is true) into 'Additional Properties' for the JDBC connection pool Here is some documentation: http://www.inetsoftware.de/documentation/jdbc-driver/ms-sql/manual.html#Properties The side effect is that the JDBC data type JAVA_OBJECT does not work. Which is very rare used.

          People

          • Assignee:
            marina vatkina
            Reporter:
            cistox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: