6 Replies Latest reply on Jun 19, 2009 9:45 AM by Krumula guillaume

    Problem with a OneToOne relation

    Krumula guillaume Newbie

      Hi,
      I have a problem when i would lyke to deploy my jar on my jboss server 4.2.2 GA. I generate my entity from my database. and when i have an @OneToOne annotation, i have this error when i deploy:

      14:13:55,029 WARN [ServiceController] Problem starting service persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      java.lang.NullPointerException
       at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:135)
       at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
       at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296)
       at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
       at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
       at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
       at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)
       at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
       at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy80.start(Unknown Source)
       at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
       at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy33.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy34.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Unknown Source)
      14:13:55,029 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,029 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=AtlBean,service=EJB3 with dependencies:
      14:13:55,029 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,029 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,029 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Barrage_JTBean,service=EJB3 with dependencies:
      14:13:55,029 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,029 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,029 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=CommBean,service=EJB3 with dependencies:
      14:13:55,029 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,029 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,029 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFMTBean,service=EJB3 with dependencies:
      14:13:55,029 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,029 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,029 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFSTBean,service=EJB3 with dependencies:
      14:13:55,029 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,029 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,029 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=ManeuverBean,service=EJB3 with dependencies:
      14:13:55,029 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,045 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,045 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=MissionBean,service=EJB3 with dependencies:
      14:13:55,045 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,045 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
      14:13:55,045 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Selective_JTBean,service=EJB3 with dependencies:
      14:13:55,045 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      14:13:55,045 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.2.GA/server/default/deploy/thales_isr.missionDAO.jar
      14:13:55,060 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
      14:13:55,060 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=thales_isr.targetdao.jar,unitName=target with dependencies:
      14:13:55,060 INFO [JmxKernelAbstraction] jboss.jca:name=TARGET,service=DataSourceBinding
      14:13:55,060 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=thales_isr.targetdao.jar,unitName=target
      14:13:55,060 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.BarrageJammingParams
      14:13:55,060 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.DfResolutionParams
      14:13:55,076 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.EquipmentType
      14:13:55,076 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.History
      14:13:55,076 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.ListTechAnalysisParams
      14:13:55,076 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.SelectiveJammingParams
      14:13:55,076 INFO [Ejb3Configuration] found EJB3 Entity bean: thales_isr.targetDAO.entity.Workspace
      14:13:55,076 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
      14:13:55,076 INFO [Ejb3Configuration] [PersistenceUnit: target] no META-INF/orm.xml found
      14:13:55,076 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.BarrageJammingParams
      14:13:55,076 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.BarrageJammingParams on table BARRAGE_JAMMING_PARAMS
      14:13:55,076 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.DfResolutionParams
      14:13:55,076 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.DfResolutionParams on table DF_RESOLUTION_PARAMS
      14:13:55,091 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.EquipmentType
      14:13:55,091 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.EquipmentType on table EQUIPMENT_TYPE
      14:13:55,091 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.History
      14:13:55,091 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.History on table HISTORY
      14:13:55,091 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.ListTechAnalysisParams
      14:13:55,091 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.ListTechAnalysisParams on table LIST_TECH_ANALYSIS_PARAMS
      14:13:55,091 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.SelectiveJammingParams
      14:13:55,091 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.SelectiveJammingParams on table SELECTIVE_JAMMING_PARAMS
      14:13:55,091 INFO [AnnotationBinder] Binding entity from annotated class: thales_isr.targetDAO.entity.Workspace
      14:13:55,091 INFO [EntityBinder] Bind entity thales_isr.targetDAO.entity.Workspace on table WORKSPACE
      14:13:55,091 INFO [CollectionBinder] Mapping collection: thales_isr.targetDAO.entity.BarrageJammingParams.equipmentTypes -> EQUIPMENT_TYPE
      14:13:55,091 INFO [CollectionBinder] Mapping collection: thales_isr.targetDAO.entity.DfResolutionParams.equipmentTypes -> EQUIPMENT_TYPE
      14:13:55,091 INFO [CollectionBinder] Mapping collection: thales_isr.targetDAO.entity.ListTechAnalysisParams.equipmentTypes -> EQUIPMENT_TYPE
      14:13:55,091 INFO [CollectionBinder] Mapping collection: thales_isr.targetDAO.entity.SelectiveJammingParams.equipmentTypes -> EQUIPMENT_TYPE
      14:13:55,107 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      14:13:55,107 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      14:13:55,123 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
      With the Partitioning, OLAP and Data Mining options
      14:13:55,123 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.1.0.2.0
      14:13:55,123 INFO [Dialect] Using dialect: org.hibernate.dialect.Oracle10gDialect
      14:13:55,123 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
      14:13:55,123 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      14:13:55,123 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      14:13:55,123 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      14:13:55,123 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      14:13:55,123 INFO [SettingsFactory] JDBC batch size: 15
      14:13:55,123 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      14:13:55,123 INFO [SettingsFactory] Scrollable result sets: enabled
      14:13:55,123 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      14:13:55,123 INFO [SettingsFactory] Connection release mode: auto
      14:13:55,123 INFO [SettingsFactory] Default batch fetch size: 1
      14:13:55,123 INFO [SettingsFactory] Generate SQL with comments: disabled
      14:13:55,123 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      14:13:55,123 INFO [SettingsFactory] Order SQL inserts for batching: disabled
      14:13:55,123 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      14:13:55,123 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      14:13:55,123 INFO [SettingsFactory] Query language substitutions: {}
      14:13:55,123 INFO [SettingsFactory] JPA-QL strict compliance: enabled
      14:13:55,123 INFO [SettingsFactory] Second-level cache: enabled
      14:13:55,123 INFO [SettingsFactory] Query cache: disabled
      14:13:55,123 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      14:13:55,123 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      14:13:55,123 INFO [SettingsFactory] Cache region prefix: thales_isr_targetdao_jar,target
      14:13:55,123 INFO [SettingsFactory] Structured second-level cache entries: disabled
      14:13:55,123 INFO [SettingsFactory] Echoing all SQL to stdout
      14:13:55,123 INFO [SettingsFactory] Statistics: disabled
      14:13:55,123 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      14:13:55,123 INFO [SettingsFactory] Default entity-mode: pojo
      14:13:55,123 INFO [SettingsFactory] Named query checking : enabled
      14:13:55,138 INFO [SessionFactoryImpl] building session factory
      14:13:55,170 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:jar=thales_isr.targetdao.jar,unitName=target
      14:13:55,170 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.
      14:13:55,170 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=thales_isr.targetdao.jar,unitName=target
      14:13:55,170 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
      14:13:55,170 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.
      14:13:55,170 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      14:13:55,170 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=thales_isr.targetdao.jar,name=TargetBean,service=EJB3 with dependencies:
      14:13:55,170 INFO [JmxKernelAbstraction] persistence.units:jar=thales_isr.targetdao.jar,unitName=target
      14:13:55,185 INFO [EJBContainer] STARTED EJB: thales_isr.targetDAO.persist.bean.TargetBean ejbName: TargetBean
      14:13:55,201 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.2.GA/server/default/deploy/thales_isr.targetdao.jar
      14:13:55,216 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      14:13:55,279 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
       State: FAILED
       Reason: java.lang.NullPointerException
       I Depend On:
       jboss.jca:service=DataSourceBinding,name=MISSION
       Depends On Me:
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=AtlBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Barrage_JTBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=CommBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFMTBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFSTBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=ManeuverBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=MissionBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Selective_JTBean,service=EJB3
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=AtlBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Barrage_JTBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=CommBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFMTBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFSTBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=ManeuverBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=MissionBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      ObjectName: jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Selective_JTBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:jar=thales_isr.missionDAO.jar,unitName=mission
       State: FAILED
       Reason: java.lang.NullPointerException
       I Depend On:
       jboss.jca:service=DataSourceBinding,name=MISSION
       Depends On Me:
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=AtlBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Barrage_JTBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=CommBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFMTBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=FFSTBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=ManeuverBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=MissionBean,service=EJB3
       jboss.j2ee:jar=thales_isr.missionDAO.jar,name=Selective_JTBean,service=EJB3
      
      
      14:13:55,326 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      14:13:55,326 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
      14:13:55,341 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 10s:485ms

      But if i put a @OneToMany or @ManyToOne annotation with a Set, i have NO problem to deploy. Can you help me please?
      Thanks

      Krum

        • 2. Re: Problem with a OneToOne relation
          Krumula guillaume Newbie

          ok thanks, can you tell me if this bug exist in any version of JBoss ?

          • 3. Re: Problem with a OneToOne relation
            jaikiran pai Master

            It's been marked as fixed in hibernate annotations 3.3.0.GA. JBossAS - 4.x series do not ship with this version. Not even JBoss AS 4.2.3 GA. However, JBoss AS 5.1.0 GA ships with 3.4.0 GA of hibernate annotations, so migrating to AS-5.1.0 would be an option.

            • 4. Re: Problem with a OneToOne relation
              jaikiran pai Master

              Or maybe on AS-4.2.x, package your own version of Hibernate. But i am not sure at what point this annotation processing is triggered and whether the packaging your own version is going to help.

              • 5. Re: Problem with a OneToOne relation
                Krumula guillaume Newbie

                ok, thanks! i will try with JBoss 5.1.0 GA

                • 6. Re: Problem with a OneToOne relation
                  Krumula guillaume Newbie

                  so i try to deploy with jboss 5.1.0 and i have the same error but there is a description of the problem now:

                  org.hibernate.AnnotationException: Referenced property not a (One|Many)ToOne: thales_isr.missionDAO.entity.FixedFrequency.listTechAnalysisParamses in mappedBy of thales_isr.mi
                  ssionDAO.entity.List_Tech_Analysis_Params.fixedFrequency
                   at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:203)
                   at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1163)
                   at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:329)
                   at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148)
                   at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
                   at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
                   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
                   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
                   at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
                   at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
                   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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                   at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                   at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                   at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                   at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                   at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                   at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                   at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                   at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                   at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                   at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                   at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                   at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                   at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                   at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                   at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
                   at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                   at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                   at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                   at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                   at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                   at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                   at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                   at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                   at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                   at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                   at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                   at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                   at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                   at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                   at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                   at org.jboss.Main.boot(Main.java:221)
                   at org.jboss.Main$1.run(Main.java:556)
                   at java.lang.Thread.run(Thread.java:619)


                  But as you can see, it's a @OneToOne annotation in each class...
                  what can i do?