[jboss-user] [EJB/JBoss] - Problem with a OneToOne relation

krum do-not-reply at jboss.com
Fri Jun 19 04:56:22 EDT 2009


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. I found which classes made the problem:

package thales_isr.missionDAO.entity;
  | 
  | import java.math.BigDecimal;
  | 
  | import javax.persistence.Column;
  | import javax.persistence.Entity;
  | import javax.persistence.FetchType;
  | import javax.persistence.Id;
  | import javax.persistence.OneToOne;
  | import javax.persistence.Table;
  | 
  | /**
  |  * FixedFrequency entity. @author MyEclipse Persistence Tools
  |  */
  | @Entity
  | @Table(name = "FIXED_FREQUENCY", schema = "EPS_USER_MISS")
  | public class FixedFrequency implements java.io.Serializable {
  | 
  | 	// Fields
  | 
  | 	/**
  | 	 * 
  | 	 */
  | 	private static final long serialVersionUID = -8674835846710051609L;
  | 	private String fixedFrequencyId;
  | 	
  | 	@OneToOne(fetch = FetchType.LAZY, mappedBy = "fixedFrequency")
  | 	private AtlAlerteTransmitters atlAlerteTransmitters;
  | 	private BigDecimal frequency;
  | 	private BigDecimal bandwith;
  | 	private String equipmentTypeId;
  | //	@OneToOne
  | //	private List_Tech_Analysis_Params listTechAnalysisParamses;
  | 
  | 	// Constructors
  | 
  | 	/** default constructor */
  | 	public FixedFrequency() {
  | 	}
  | 
  | 	/** minimal constructor */
  | 	public FixedFrequency(String fixedFrequencyId, BigDecimal frequency,
  | 			BigDecimal bandwith) {
  | 		this.fixedFrequencyId = fixedFrequencyId;
  | 		this.frequency = frequency;
  | 		this.bandwith = bandwith;
  | 	}
  | 
  | 	/** full constructor */
  | 	public FixedFrequency(String fixedFrequencyId,
  | 			AtlAlerteTransmitters atlAlerteTransmitters, BigDecimal frequency,
  | 			BigDecimal bandwith, String equipmentTypeId,
  | 			List_Tech_Analysis_Params listTechAnalysisParamses) {
  | 		this.fixedFrequencyId = fixedFrequencyId;
  | 		this.atlAlerteTransmitters = atlAlerteTransmitters;
  | 		this.frequency = frequency;
  | 		this.bandwith = bandwith;
  | 		this.equipmentTypeId = equipmentTypeId;
  | //		this.listTechAnalysisParamses = listTechAnalysisParamses;
  | 	}
  | 
  | 	// Property accessors
  | 	@Id
  | 	@Column(name = "FIXED_FREQUENCY_ID", unique = true, nullable = false, length = 36)
  | 	public String getFixedFrequencyId() {
  | 		return this.fixedFrequencyId;
  | 	}
  | 
  | 	public void setFixedFrequencyId(String fixedFrequencyId) {
  | 		this.fixedFrequencyId = fixedFrequencyId;
  | 	}
  | 
  | 	public AtlAlerteTransmitters getAtlAlerteTransmitters() {
  | 		return this.atlAlerteTransmitters;
  | 	}
  | 
  | 	public void setAtlAlerteTransmitters(
  | 			AtlAlerteTransmitters atlAlerteTransmitters) {
  | 		this.atlAlerteTransmitters = atlAlerteTransmitters;
  | 	}
  | 
  | 	@Column(name = "FREQUENCY", nullable = false, precision = 22, scale = 0)
  | 	public BigDecimal getFrequency() {
  | 		return this.frequency;
  | 	}
  | 
  | 	public void setFrequency(BigDecimal frequency) {
  | 		this.frequency = frequency;
  | 	}
  | 
  | 	@Column(name = "BANDWITH", nullable = false, precision = 22, scale = 0)
  | 	public BigDecimal getBandwith() {
  | 		return this.bandwith;
  | 	}
  | 
  | 	public void setBandwith(BigDecimal bandwith) {
  | 		this.bandwith = bandwith;
  | 	}
  | 
  | 	@Column(name = "EQUIPMENT_TYPE_ID", length = 36)
  | 	public String getEquipmentTypeId() {
  | 		return this.equipmentTypeId;
  | 	}
  | 
  | 	public void setEquipmentTypeId(String equipmentTypeId) {
  | 		this.equipmentTypeId = equipmentTypeId;
  | 	}
  | 
  | //	public List_Tech_Analysis_Params getListTechAnalysisParamses() {
  | //		return this.listTechAnalysisParamses;
  | //	}
  | //
  | //	public void setListTechAnalysisParamses(List_Tech_Analysis_Params listTechAnalysisParamses) {
  | //		this.listTechAnalysisParamses = listTechAnalysisParamses;
  | //	}
  | 
  | }

/**
  |  * 
  |  */
  | package thales_isr.missionDAO.entity;
  | 
  | import java.io.Serializable;
  | import java.util.HashSet;
  | import java.util.Set;
  | 
  | import javax.persistence.CascadeType;
  | import javax.persistence.Column;
  | import javax.persistence.Entity;
  | import javax.persistence.FetchType;
  | import javax.persistence.Id;
  | import javax.persistence.OneToMany;
  | import javax.persistence.OneToOne;
  | import javax.persistence.Table;
  | 
  | /**
  |  * @author krumula
  |  *
  |  */
  | @Entity
  | @Table(name="LIST_TECH_ANALYSIS_PARAMS")
  | public class List_Tech_Analysis_Params implements Serializable {
  | 
  | 	/**
  | 	 * 
  | 	 */
  | 	private static final long serialVersionUID = -8052600522934224873L;
  | 
  | 	@Id
  | 	@Column(name="PARAM_ID",length=36)
  | 	private String paramID;
  | 	
  | //	@OneToOne(fetch = FetchType.LAZY, mappedBy = "listTechAnalysisParamses")
  | //	private FixedFrequency fixedFrequency;
  | 	
  | 	@Column(name="MODULATION")
  | 	private int modulation;
  | 	
  | 	@Column(name="SPEED")
  | 	private int speed;
  | 	
  | 	@Column(name="SUB_CARRIER_FREQ")
  | 	private int subCarrierFreq;
  | 	
  | 	@Column(name="BANDWITH")
  | 	private int bandwith;
  | 	
  | 	@Column(name="FSK_SHIFT")
  | 	private int fskShift;
  | 	
  | 	@Column(name="NUMBER_OF_MODULATION_STATES")
  | 	private int integerOfModulationStates;
  | 	
  | 	@Column(name="CODING_PROCESS",length=64)
  | 	private String codingProcess;
  | 	
  | 	@Column(name="ALPHABET",length=64)
  | 	private String alphabet;
  | 	
  | 	@Column(name="BFO")
  | 	private int bfo;
  | 	
  | 	@OneToMany(mappedBy="techAnalysis",cascade={CascadeType.REFRESH})
  | 	private Set<FFMT_Surv_Discrete_Freq> discreteFreq = new HashSet<FFMT_Surv_Discrete_Freq>();
  | 	
  | 	@OneToMany(mappedBy="techAnalysis",cascade={CascadeType.REFRESH})
  | 	private Set<FFST_Surv_Freq_Plan> freqPlan = new HashSet<FFST_Surv_Freq_Plan>();
  | 
  | 	/**
  | 	 * This constructor use No argument to create a new List_Tech_Analysis_Params
  | 	 */
  | 	public List_Tech_Analysis_Params() {
  | 	}
  | 
  | 	/**
  | 	 * @param paramID
  | 	 * @param modulation
  | 	 * @param speed
  | 	 * @param subCarrierFreq
  | 	 * @param bandwith
  | 	 * @param fskShift
  | 	 * @param integerOfModulationStates
  | 	 * @param codingProcess
  | 	 * @param alphabet
  | 	 * @param bfo
  | 	 * @param discreteFreq
  | 	 * @param freqPlan
  | 	 */
  | 	public List_Tech_Analysis_Params(String paramID, int modulation, int speed,
  | 			int subCarrierFreq, int bandwith, int fskShift,
  | 			int integerOfModulationStates, String codingProcess,
  | 			String alphabet, int bfo, FixedFrequency fixedFrequency,
  | 			Set<FFMT_Surv_Discrete_Freq> discreteFreq,
  | 			Set<FFST_Surv_Freq_Plan> freqPlan) {
  | 		this.paramID = paramID;
  | 		this.modulation = modulation;
  | 		this.speed = speed;
  | 		this.subCarrierFreq = subCarrierFreq;
  | 		this.bandwith = bandwith;
  | 		this.fskShift = fskShift;
  | 		this.integerOfModulationStates = integerOfModulationStates;
  | 		this.codingProcess = codingProcess;
  | 		this.alphabet = alphabet;
  | 		this.bfo = bfo;
  | 		this.discreteFreq = discreteFreq;
  | 		this.freqPlan = freqPlan;
  | //		this.fixedFrequency = fixedFrequency;
  | 	}
  | 
  | 	/**
  | 	 * @return the paramID
  | 	 */
  | 	public String getParamID() {
  | 		return paramID;
  | 	}
  | 
  | 	/**
  | 	 * @param paramID the paramID to set
  | 	 */
  | 	public void setParamID(String paramID) {
  | 		this.paramID = paramID;
  | 	}
  | 
  | 	/**
  | 	 * @return the modulation
  | 	 */
  | 	public int getModulation() {
  | 		return modulation;
  | 	}
  | 
  | 	/**
  | 	 * @param modulation the modulation to set
  | 	 */
  | 	public void setModulation(int modulation) {
  | 		this.modulation = modulation;
  | 	}
  | 
  | 	/**
  | 	 * @return the speed
  | 	 */
  | 	public int getSpeed() {
  | 		return speed;
  | 	}
  | 
  | 	/**
  | 	 * @param speed the speed to set
  | 	 */
  | 	public void setSpeed(int speed) {
  | 		this.speed = speed;
  | 	}
  | 
  | 	/**
  | 	 * @return the subCarrierFreq
  | 	 */
  | 	public int getSubCarrierFreq() {
  | 		return subCarrierFreq;
  | 	}
  | 
  | 	/**
  | 	 * @param subCarrierFreq the subCarrierFreq to set
  | 	 */
  | 	public void setSubCarrierFreq(int subCarrierFreq) {
  | 		this.subCarrierFreq = subCarrierFreq;
  | 	}
  | 
  | 	/**
  | 	 * @return the bandwith
  | 	 */
  | 	public int getBandwith() {
  | 		return bandwith;
  | 	}
  | 
  | 	/**
  | 	 * @param bandwith the bandwith to set
  | 	 */
  | 	public void setBandwith(int bandwith) {
  | 		this.bandwith = bandwith;
  | 	}
  | 
  | 	/**
  | 	 * @return the fskShift
  | 	 */
  | 	public int getFskShift() {
  | 		return fskShift;
  | 	}
  | 
  | 	/**
  | 	 * @param fskShift the fskShift to set
  | 	 */
  | 	public void setFskShift(int fskShift) {
  | 		this.fskShift = fskShift;
  | 	}
  | 
  | 	/**
  | 	 * @return the integerOfModulationStates
  | 	 */
  | 	public int getIntegerOfModulationStates() {
  | 		return integerOfModulationStates;
  | 	}
  | 
  | 	/**
  | 	 * @param integerOfModulationStates the integerOfModulationStates to set
  | 	 */
  | 	public void setIntegerOfModulationStates(int integerOfModulationStates) {
  | 		this.integerOfModulationStates = integerOfModulationStates;
  | 	}
  | 
  | 	/**
  | 	 * @return the codingProcess
  | 	 */
  | 	public String getCodingProcess() {
  | 		return codingProcess;
  | 	}
  | 
  | 	/**
  | 	 * @param codingProcess the codingProcess to set
  | 	 */
  | 	public void setCodingProcess(String codingProcess) {
  | 		this.codingProcess = codingProcess;
  | 	}
  | 
  | 	/**
  | 	 * @return the alphabet
  | 	 */
  | 	public String getAlphabet() {
  | 		return alphabet;
  | 	}
  | 
  | 	/**
  | 	 * @param alphabet the alphabet to set
  | 	 */
  | 	public void setAlphabet(String alphabet) {
  | 		this.alphabet = alphabet;
  | 	}
  | 
  | 	/**
  | 	 * @return the bfo
  | 	 */
  | 	public int getBfo() {
  | 		return bfo;
  | 	}
  | 
  | 	/**
  | 	 * @param bfo the bfo to set
  | 	 */
  | 	public void setBfo(int bfo) {
  | 		this.bfo = bfo;
  | 	}
  | 
  | 	/**
  | 	 * @return the discreteFreq
  | 	 */
  | 	public Set<FFMT_Surv_Discrete_Freq> getDiscreteFreq() {
  | 		return discreteFreq;
  | 	}
  | 
  | 	/**
  | 	 * @param discreteFreq the discreteFreq to set
  | 	 */
  | 	public void setDiscreteFreq(Set<FFMT_Surv_Discrete_Freq> discreteFreq) {
  | 		this.discreteFreq = discreteFreq;
  | 	}
  | 
  | 	/**
  | 	 * @return the freqPlan
  | 	 */
  | 	public Set<FFST_Surv_Freq_Plan> getFreqPlan() {
  | 		return freqPlan;
  | 	}
  | 
  | 	/**
  | 	 * @param freqPlan the freqPlan to set
  | 	 */
  | 	public void setFreqPlan(Set<FFST_Surv_Freq_Plan> freqPlan) {
  | 		this.freqPlan = freqPlan;
  | 	}
  | 	
  | //	/**
  | //	 * @return the fixed frequency
  | //	 */
  | //	public FixedFrequency getFixedFrequency() {
  | //		return this.fixedFrequency;
  | //	}
  | //
  | //	/**
  | //	 * @param fixedFrequency
  | //	 */
  | //	public void setFixedFrequency(FixedFrequency fixedFrequency) {
  | //		this.fixedFrequency = fixedFrequency;
  | //	}
  | }

if i put the red text in comments, it's ok i can deploy, but of it's not in comments, i have the problem.

Can you help me please???

Thanks

Krum

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238696#4238696

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238696



More information about the jboss-user mailing list