-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: sun.reflect.annotation.EnumConstantNotPresentExcep tionProxy
PostPosted: Thu Aug 10, 2006 3:33 am 
Newbie

Joined: Tue Mar 01, 2005 2:49 am
Posts: 5
I use Spring 2.0 M3 + Hibernate Annotation 3.2.0 CR1 on weblogic application server 9.1. I get this exception when start the application,but the same .war file can run on tomcat 5.5.16.

this is the applicationContent-hibernate.xml file

Code:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
          lazy-init="false">
        <property name="dataSource">
            <ref bean="dataSource"/>
        </property>
        <property name="annotatedClasses">
            <list>
                <value>com.xxx.xxx.Model</value>
            </list>
        </property>

        <property name="hibernateProperties">
            <props>
                <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
                <prop key="hibernate.hbm2ddl.auto">update</prop>
                <prop key="show_sql">true</prop>
                <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
                <prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
                <prop key="hibernate.jdbc.use_scrollable_resultset">true</prop>
            </props>
        </property>
    </bean>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 3:34 am 
Newbie

Joined: Tue Mar 01, 2005 2:49 am
Posts: 5
and this is the exception:

org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.EnumConstantNotPresentExcep tionProxy
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:878)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 40)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:132)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:237)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:153)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:248)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:337)
at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 49)
at weblogic.servlet.internal.EventsManager$FireContex tListenerAction.run(EventsManager.java:374)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
at weblogic.servlet.internal.EventsManager.notifyCont extCreatedEvent(EventsManager.java:83)
at weblogic.servlet.internal.WebAppServletContext.pre loadResources(WebAppServletContext.java:1581)
at weblogic.servlet.internal.WebAppServletContext.sta rt(WebAppServletContext.java:2678)
at weblogic.servlet.internal.WebAppModule.startContex ts(WebAppModule.java:874)
at weblogic.servlet.internal.WebAppModule.start(WebAp pModule.java:326)
at weblogic.application.internal.flow.ModuleListenerI nvoker.start(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlo w.activate(StartModulesFlow.java:25)
at weblogic.application.internal.BaseDeployment$2.nex t(BaseDeployment.java:640)
at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activ ate(BaseDeployment.java:252)
at weblogic.application.internal.DeploymentStateCheck er.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainer Invoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeploym ent.activate(BasicDeployment.java:176)
at weblogic.deploy.internal.targetserver.BasicDeploym ent.activateFromServerLifecycle(BasicDeployment.ja va:347)
at weblogic.management.deploy.internal.DeploymentAdap ter$1.activate(DeploymentAdapter.java:50)
at weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDepl oyments.transitionApps(ConfiguredDeployments.java: 232)
at weblogic.management.deploy.internal.ConfiguredDepl oyments.activate(ConfiguredDeployments.java:168)
at weblogic.management.deploy.internal.ConfiguredDepl oyments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServ erService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServ erService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemReq uest.java:64)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImp l.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread. java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java :179)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 3:35 am 
Newbie

Joined: Tue Mar 01, 2005 2:49 am
Posts: 5
java.lang.ArrayStoreException: sun.reflect.annotation.EnumConstantNotPresentExcep tionProxy
at sun.reflect.annotation.AnnotationParser.parseEnumA rray(AnnotationParser.java:654)
at sun.reflect.annotation.AnnotationParser.parseArray (AnnotationParser.java:443)
at sun.reflect.annotation.AnnotationParser.parseMembe rValue(AnnotationParser.java:270)
at sun.reflect.annotation.AnnotationParser.parseAnnot ation(AnnotationParser.java:206)
at sun.reflect.annotation.AnnotationParser.parseAnnot ations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnot ations(AnnotationParser.java:52)
at java.lang.reflect.Method.declaredAnnotations(Metho d.java:676)
at java.lang.reflect.Method.getDeclaredAnnotations(Me thod.java:669)
at java.lang.reflect.AccessibleObject.getAnnotations( AccessibleObject.java:179)
at org.hibernate.reflection.java.JavaAnnotationReader .getAnnotations(JavaAnnotationReader.java:29)
at org.hibernate.reflection.java.EJB3OverridenAnnotat ionReader.initAnnotations(EJB3OverridenAnnotationR eader.java:329)
at org.hibernate.reflection.java.EJB3OverridenAnnotat ionReader.isAnnotationPresent(EJB3OverridenAnnotat ionReader.java:257)
at org.hibernate.reflection.java.JavaXAnnotatedElemen t.isAnnotationPresent(JavaXAnnotatedElement.java:4 0)
at org.hibernate.cfg.AnnotationBinder.mustBeSkipped(A nnotationBinder.java:998)
at org.hibernate.cfg.AnnotationBinder.addProperty(Ann otationBinder.java:978)
at org.hibernate.cfg.AnnotationBinder.addElementsOfAC lass(AnnotationBinder.java:942)
at org.hibernate.cfg.AnnotationBinder.getElementsToPr ocess(AnnotationBinder.java:788)
at org.hibernate.cfg.AnnotationBinder.bindClass(Annot ationBinder.java:614)
at org.hibernate.cfg.AnnotationConfiguration.processA rtifactsOfType(AnnotationConfiguration.java:353)
at org.hibernate.cfg.AnnotationConfiguration.secondPa ssCompile(AnnotationConfiguration.java:265)
at org.hibernate.cfg.Configuration.buildSessionFactor y(Configuration.java:1205)
at org.springframework.orm.hibernate3.LocalSessionFac toryBean.newSessionFactory(LocalSessionFactoryBean .java:871)
at org.springframework.orm.hibernate3.LocalSessionFac toryBean.afterPropertiesSet(LocalSessionFactoryBea n.java:797)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:908)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:875)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 40)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:132)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:237)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:153)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:248)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:337)
at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 49)
at weblogic.servlet.internal.EventsManager$FireContex tListenerAction.run(EventsManager.java:374)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
at weblogic.servlet.internal.EventsManager.notifyCont extCreatedEvent(EventsManager.java:83)
at weblogic.servlet.internal.WebAppServletContext.pre loadResources(WebAppServletContext.java:1581)
at weblogic.servlet.internal.WebAppServletContext.sta rt(WebAppServletContext.java:2678)
at weblogic.servlet.internal.WebAppModule.startContex ts(WebAppModule.java:874)
at weblogic.servlet.internal.WebAppModule.start(WebAp pModule.java:326)
at weblogic.application.internal.flow.ModuleListenerI nvoker.start(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlo w.activate(StartModulesFlow.java:25)
at weblogic.application.internal.BaseDeployment$2.nex t(BaseDeployment.java:640)
at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activ ate(BaseDeployment.java:252)
at weblogic.application.internal.DeploymentStateCheck er.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainer Invoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeploym ent.activate(BasicDeployment.java:176)
at weblogic.deploy.internal.targetserver.BasicDeploym ent.activateFromServerLifecycle(BasicDeployment.ja va:347)
at weblogic.management.deploy.internal.DeploymentAdap ter$1.activate(DeploymentAdapter.java:50)
at weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDepl oyments.transitionApps(ConfiguredDeployments.java: 232)
at weblogic.management.deploy.internal.ConfiguredDepl oyments.activate(ConfiguredDeployments.java:168)
at weblogic.management.deploy.internal.ConfiguredDepl oyments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServ erService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServ erService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemReq uest.java:64)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImp l.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread. java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java :179)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 11:25 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Same VM? on same OS?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 11, 2006 1:02 am 
Newbie

Joined: Tue Mar 01, 2005 2:49 am
Posts: 5
yes,jdk1.5.0_7 on windows 2003.

Maybe this is a weblogic problem.

When I upgrade weblogic to 9.2, the problem resolved.

Thank's for reploy:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.