Skip to main content
4 of 6
added 601 characters in body
Abdul Qadir
  • 2.5k
  • 16
  • 17

java.lang.ExceptionInInitializerError at content delivery while implementing Tridion reference implementation

I m getting this error in core Log file while running Tridion reference implementation website.Stack trace of the error is here

java.lang.ExceptionInInitializerError
        at com.tridion.meta.BinaryMetaFactory.getMetaByURL(BinaryMetaFactory.java:271)
    Caused by: java.lang.RuntimeException: Fatal error, unable to load the StorageManagerFactory
        at com.tridion.storage.StorageManagerFactory.reloadInstance(StorageManagerFactory.java:91)
        at com.tridion.storage.StorageManagerFactory.<clinit>(StorageManagerFactory.java:56)
        ... 1 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultdbEntityManagerFactory': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/ObjectNameNormalizer
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1093)
        at com.tridion.storage.persistence.JPADAOFactory.configureBundle(JPADAOFactory.java:76)
        at com.tridion.storage.configuration.StorageFactoryConfigurationLoader.configureStorage(StorageFactoryConfigurationLoader.java:91)
        at com.tridion.storage.configuration.StorageFactoryConfigurationLoader.configureStorage(StorageFactoryConfigurationLoader.java:65)
        at com.tridion.storage.configuration.StorageFactoryConfigurationLoader.configure(StorageFactoryConfigurationLoader.java:51)
        at com.tridion.configuration.step.ConfigurationStepLoader.configure(ConfigurationStepLoader.java:47)
        at com.tridion.storage.StorageManagerFactory.configure(StorageManagerFactory.java:137)
        at com.tridion.services.BaseService.<init>(BaseService.java:113)
        at com.tridion.storage.StorageManagerFactory.<init>(StorageManagerFactory.java:104)
        at com.tridion.storage.StorageManagerFactory.reloadInstance(StorageManagerFactory.java:84)
        ... 2 more
    Caused by: java.lang.NoClassDefFoundError: org/hibernate/cfg/ObjectNameNormalizer
        at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:150)
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:71)
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:257)
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
        ... 18 more
    Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.ObjectNameNormalizer
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 24 more
    Caused by: java.io.EOFException: Detect premature EOF
        at sun.misc.Resource.getBytes(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        ... 31 more
       at Codemesh.JuggerNET.JavaClass.ThrowException(Exception ex)
       at Codemesh.JuggerNET.NTypeValue.Throw(Int64 inst)
       at Codemesh.JuggerNET.JavaClass.ThrowTypedException(Int64 inst)
       at Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo, JavaMethodArguments args)
       at Com.Tridion.Meta.BinaryMetaFactory.GetMetaByURL(Int32 publicationId, String urlPath)
       at Tridion.ContentDelivery.Meta.BinaryMetaFactory.GetMetaByUrl(Int32 publicationId, String urlPath)
       at DD4T.Providers.SDLTridion2013.TridionBinaryProvider.GetLastPublishedDateByUrl(String url)
       at Sdl.Web.DD4T.Statics.BinaryFileManager.ProcessUrl(String urlPath, Boolean cacheSinceLastRefresh, String physicalPath)`enter code here`

here is cd_storage.config

 <?xml version="1.0" encoding="UTF-8"?>
<Configuration Version="7.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/cd_storage_conf.xsd">
  <Global>
    <ObjectCache Enabled="false">
      <Policy Type="LRU" Class="com.tridion.cache.LRUPolicy">
        <Param Name="MemSize" Value="16mb" />
      </Policy>
      <!-- The Features element specifies classes that add additional functionality to the cache. -->
      <Features>
        <Feature Type="DependencyTracker" Class="com.tridion.cache.DependencyTracker" />
      </Features>
    </ObjectCache>
    <Storages>
      <Storage Type="persistence" Id="defaultdb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
        <Pool Type="jdbc" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
        <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
          <Property Name="serverName" Value="server" />
          <Property Name="portNumber" Value="1433" />
          <Property Name="databaseName" Value="Tridion_Broker" />
          <Property Name="user" Value="TridionBrokerUser" />
          <Property Name="password" Value="password" />
        </DataSource>
      </Storage>
    
    </Storages>
  </Global>
  <ItemTypes defaultStorageId="defaultdb" cached="false">
  </ItemTypes>  
</Configuration>

Here is all jar files in lib folder

activation.jar
antlr.jar
aopalliance.jar
asm.jar
cd_ambient.jar
cd_broker.jar
cd_cache.jar
cd_core.jar
cd_datalayer.jar
cd_dynamic.jar
cd_linking.jar
cd_model.jar
cd_odata.jar
cd_odata_types.jar
cd_preview_ambient.jar
cd_preview_web.jar
cd_session.jar
cd_tcdl.jar
cd_wai.jar
cd_wrapper.jar
commons-beanutils.jar
commons-collections.jar
commons-configuration.jar
commons-dbcp.jar
commons-digester.jar
commons-fileupload.jar
commons-io.jar
commons-jexl.jar
commons-lang.jar
commons-pool.jar
cwd_cartridge.jar
cwd_engine.jar
cwd_taglib.jar
cwd_transformer.jar
dom4j.jar
easylicense.jar
ehcache.jar
guava.jar
hibernate-commons-annotations.jar
hibernate-core.jar
hibernate-ehcache.jar
hibernate-entitymanager.jar
hibernate-jpa-2.0-api.jar
hsqldb.jar
jackson-core-asl.jar
jackson-jaxrs.jar
jackson-mapper-asl.jar
jackson-xc.jar
javassist.jar
jaxb-api.jar
jaxb-impl.jar
jboss-logging.jar
jboss-transaction-api_1.1_spec.jar jcl-over-slf4j.jar
jdbcpool.jar
jersey-core.jar
jersey-json.jar
jersey-server.jar
jersey-servlet.jar
jettison.jar
json-smart.jar
logback-classic.jar
logback-core.jar
patricia-trie.jar
serializer.jar
slf4j-api.jar
snakeyaml.jar
spring-aop.jar
spring-asm.jar
spring-beans.jar
spring-context.jar
spring-context-support.jar
spring-core.jar
spring-expression.jar
spring-jdbc.jar
spring-orm.jar
spring-tx.jar
sqljdbc4.jar
stax-api.jar
ua-parser.jar
xalan.jar

After Debuging the application in visual studio i m getting System.ArgumentNullException: Value cannot be null error on line 32 at Global.asax.cs file

Line 30:             SiteConfiguration.StaticFileManager = (IStaticFileManager)DependencyResolver.Current.GetService(typeof(IStaticFileManager));
Line 31:             SiteConfiguration.MediaHelper = (IMediaHelper)DependencyResolver.Current.GetService(typeof(IMediaHelper));
Line 32:             SiteConfiguration.Initialize(TridionConfig.PublicationMap);
Line 33:             RegisterRoutes(RouteTable.Routes);
Line 34:             AreaRegistration.RegisterAllAreas(); 
Abdul Qadir
  • 2.5k
  • 16
  • 17