Immortal
Immortal

Hyperic UI not coming up after upgrade, error in logs on service start

I am getting the following error after upgrading hyeric from HQ4.2.0.7-EE to HQ4.5.1-EE on RHEL in the bootstrap.log file. The upgrade process went on smoothly but when I try to restart the service, it throws this error. The services show as started in the services list though. Not sure what is missing here. I checked the UI and it won't open.

Error:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [jar:file:/opt/springsource/server-4.5.1-EE/hq-engine/hq-server/w

ebapps/ROOT/WEB-INF/lib/hq-server-4.5.1.jar!/META-INF/spring/app-context.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in

.class file (unable to load class org.json.JSONException)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:825)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:767)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:685)

        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:771)

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:691)

        ... 101 more

Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.json.JSONException)

        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2737)

        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1124)

        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)

        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)

        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

        at java.lang.Class.getDeclaredMethods0(Native Method)

        at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)

        at java.lang.Class.getDeclaredMethods(Class.java:1763)

        at org.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:317)

        at org.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:297)

        at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:280)

        at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)

        at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:80)

        at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:71)

        at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:279)

        at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2171)

        at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2148)

        at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2038)

        at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:359)

        at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)

        at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)

        at org.hibernate.cfg.Configuration.add(Configuration.java:675)

        at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510)

        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:684)

        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)

        ... 112 more

2012-12-23 20:46:02,761 ERROR Error listenerStart

2012-12-23 20:46:02,762 ERROR Context [] startup failed due to previous errors

2012-12-23 20:46:02,771 INFO  [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]@653] Closing Spring root WebApplicationContext

2012-12-23 20:46:02,781 ERROR The web application [] registered the JBDC driver but failed to unregister it when

the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Thanks,

Pawan

0 Kudos
0 Replies