[JBoss Portal] - Problem init managed beans
by schlumsch
Hello everyone,
i have a little big :) problem initializing the managed beans of my portlet, maybe someone could help me out. What i do is the following:
| <managed-bean>
| <managed-bean-name>mailPlanning</managed-bean-name>
| <managed-bean-class>com.e2e.portal.ta.beans.MailPlanningBean</managed-bean-class>
| <managed-bean-scope>request</managed-bean-scope>
| </managed-bean>
| <managed-bean>
| <managed-bean-name>e2e</managed-bean-name>
| <managed-bean-class>com.e2e.portal.ta.beans.BigBean</managed-bean-class>
| <managed-bean-scope>session</managed-bean-scope>
|
| </managed-bean>
|
| <managed-bean>
| <managed-bean-name>ctrl</managed-bean-name>
| <managed-bean-class>e2e.ta.portal.ui.beans.ControllerBean</managed-bean-class>
| <managed-bean-scope>session</managed-bean-scope>
| </managed-bean>
|
The result: my e2e-bean is initialized correctly cause im calling via jsf. Also ctrl works that way. Only mailPlanning isnt initialized. Only when i call by jsf it works, but thats not the way it should do. Does someone see an error / solution?
Thanx a lot
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237929#4237929
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237929
17 years, 1 month
[Persistence, JBoss/CMP, Hibernate, Database] - Problems with one-to-many relationship mapping
by a.mulone
Hi,
I have this 2 tables:
| TABLE TPS16_CONFIGURATION
| ( TPS16_NAME, TPS16_VALID_FROM_DATE, TPS16_OPERATING_RANGE_HI, TPS16_OPERATING_RANGE_LO,
| TPS16_MAX_OPERATING_DELTA, TPS16_TIME_GRID_PROTOTYPE)
|
| TPS25_CURRENCIES_DIFFMIN
| ( TPS16_ID, TPS25_ISO_CURRENCY, TPS25_DIFF_MIN
| )
|
I underlined the keys of the tables.
There is a foreign key in the table TPS25_CURRENCIES_DIFFMIN in fact TPS16_ID refers to TPS16_CONFIGURATION(TPS16_NAME).
Now I have a problem of mapping.
The object EConfiguration maps the table TPS16_CONFIGURATION in this way:
| <?xml version="1.0"?>
| <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
| <hibernate-mapping>
| <class name="com.intesasanpaolo.tps.model.EConfiguration"
| table="TPS16_CONFIGURATION" catalog="@CATALOG@" mutable="true">
| <comment></comment>
| <id name="name" type="string" column="TPS16_NAME"
| access="field">
| </id>
|
| <property name="validFrom" type="java.util.Date">
| <column name="TPS16_VALID_FROM_DATE" not-null="false" />
| </property>
|
| <property name="operatingRangeHigh" type="java.math.BigDecimal">
| <column name="TPS16_OPERATING_RANGE_HI" not-null="false" />
| </property>
|
| <property name="operatingRangeLow" type="java.math.BigDecimal">
| <column name="TPS16_OPERATING_RANGE_LO" not-null="false" />
| </property>
|
| <property name="maxOperatingDelta" type="java.math.BigDecimal">
| <column name="TPS16_MAX_OPERATING_DELTA" not-null="false" />
| </property>
|
| <many-to-one name="timeGridPrototype" column="TPS16_TIME_GRID_PROTOTYPE"
| unique="false" not-null="false" fetch="join" cascade="all">
| </many-to-one>
|
| <list name="internalPortfolios" cascade="all" table="TPS17_INTERNAL_PORTFOLIO" catalog="@CATALOG@" lazy="false">
| <key column="TPS16_ID"/>
| <index column="TPS16_IDX"/>
| <element column="TPS17_NAME" type="string"/>
| </list>
|
| <list name="externalPortfolios" cascade="all" table="TPS18_EXTERNAL_PORTFOLIO" catalog="@CATALOG@" lazy="false">
| <key column="TPS16_ID"/>
| <index column="TPS16_IDX"/>
| <element column="TPS18_NAME" type="string"/>
| </list>
|
| <list name="internalCounterparts" cascade="all" table="TPS19_INTERNAL_COUNTERPART" catalog="@CATALOG@" lazy="false">
| <key column="TPS16_ID"/>
| <index column="TPS16_IDX"/>
| <element column="TPS19_NAME" type="string"/>
| </list>
|
| <list name="externalCounterparts" cascade="all" table="TPS20_EXTERNAL_COUNTERPART" catalog="@CATALOG@" lazy="false">
| <key column="TPS16_ID"/>
| <index column="TPS16_IDX"/>
| <element column="TPS20_NAME" type="string"/>
| </list>
|
| <set name="currenciesDiffMin" lazy="true" inverse="true" cascade="all-delete-orphan">
| <key column="TPS16_ID"/>
| <one-to-many class="com.intesasanpaolo.tps.model.ECurrenciesDiffmin"/>
| </set>
|
| </class>
| </hibernate-mapping>
|
The object ECurrenciesDiffmin maps the table TPS25_CURRENCIES_DIFFMIN in this way:
| <?xml version="1.0"?>
| <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
| <hibernate-mapping>
| <class name="com.intesasanpaolo.tps.model.ECurrenciesDiffmin"
| table="TPS25_CURRENCIES_DIFFMIN" catalog="@CATALOG@" mutable="true">
| <comment>Oggetto hibernate che mappa la tabella TPS25_CURRENCIES_DIFFMIN</comment>
|
| <composite-id>
| <key-many-to-one name="configuration" column="TPS16_NAME" ></key-many-to-one>
| <key-property name="currency" type="string">
| <column name="TPS25_ISO_CURRENCY"></column>
| </key-property>
| </composite-id>
|
| <property name="diffMin" type="double">
| <column name="TPS25_DIFF_MIN" not-null="false" />
| </property>
|
| </class>
| </hibernate-mapping>
|
So I have the classes that maps the table in this way:
| public class EConfiguration {
| protected String name;
| private Date validFrom;
| private ETimeGridConfiguration timeGridPrototype;
| private List externalPortfolios;
| private List internalPortfolios;
| private List externalCounterparts;
| private List internalCounterparts;
| private BigDecimal operatingRangeHigh;
| private BigDecimal operatingRangeLow;
| private BigDecimal maxOperatingDelta;
| private Set currenciesDiffMin;
|
|
| public Set getCurrenciesDiffMin() {
| return currenciesDiffMin;
| }
| public void setCurrenciesDiffMin(Set currenciesDiffMin) {
| this.currenciesDiffMin = currenciesDiffMin;
| }
| protected EConfiguration() {}
| public EConfiguration(String name) {
| this.name = name;
| }
| /**
| * Configuration name
| * @return The name of the configuration
| */
| public String getName() {
| return name;
| }
| /**
| * Validity date
| * @return The first date for which this configuration is valid
| */
| public Date getValidFrom() {
| return validFrom;
| }
| public void setValidFrom(Date validFrom) {
| this.validFrom = validFrom;
| }
| /**
| * Time grid prototype
| * @return A {@link ETimeGridConfiguration} object
| */
| public ETimeGridConfiguration getTimeGridPrototype() {
| return timeGridPrototype;
| }
| public void setTimeGridPrototype(ETimeGridConfiguration timeGridPrototype) {
| this.timeGridPrototype = timeGridPrototype;
| }
| /**
| * External deal portfolios that must be used for this hedging process
| * @return A List of String representing the names of the portfolios
| */
| public List getExternalPortfolios() {
| return externalPortfolios;
| }
| public void setExternalPortfolios(List externalPortfolios) {
| this.externalPortfolios = externalPortfolios;
| }
| /**
| * Internal deal portfolios that must be hedged by this hedging process
| * @return A List of String representing the names of the portfolios
| */
| public List getInternalPortfolios() {
| return internalPortfolios;
| }
| public void setInternalPortfolios(List internalPortfolios) {
| this.internalPortfolios = internalPortfolios;
| }
| /**
| * External deal counterparts that must be used for this hedging process
| * @return A List of String representing the names of the counterparts
| */
| public List getExternalCounterparts() {
| return externalCounterparts;
| }
| public void setExternalCounterparts(List externalCounterparts) {
| this.externalCounterparts = externalCounterparts;
| }
| /**
| * Internal deal counterparts that must be hedged by this hedging process
| * @return A List of String representing the names of the counterparts
| */
| public List getInternalCounterparts() {
| return internalCounterparts;
| }
| public void setInternalCounterparts(List internalCounterparts) {
| this.internalCounterparts = internalCounterparts;
| }
| /**
| * High limit of hedging ratio
| * @return A BigDecimal representing a hedge/risk ratio
| */
| public BigDecimal getOperatingRangeHigh() {
| return operatingRangeHigh;
| }
| public void setOperatingRangeHigh(BigDecimal operatingRangeHigh) {
| this.operatingRangeHigh = operatingRangeHigh;
| }
| /**
| * Low limit of hedging ratio
| * @return A BigDecimal representing a hedge/risk ratio
| */
| public BigDecimal getOperatingRangeLow() {
| return operatingRangeLow;
| }
| public void setOperatingRangeLow(BigDecimal operatingRangeLow) {
| this.operatingRangeLow = operatingRangeLow;
| }
| /**
| * Absolute value of the maximum risk amount that can exceed hedging for every time bucket
| * @return A BigDecimal representing an amount
| */
| public BigDecimal getMaxOperatingDelta() {
| return maxOperatingDelta;
| }
| public void setMaxOperatingDelta(BigDecimal maxOperatingDelta) {
| this.maxOperatingDelta = maxOperatingDelta;
| }
| public void setName(String name) {
| this.name = name;
| }
| }
|
|
and
| public class ECurrenciesDiffmin {
|
| private EConfiguration configuration;
| private String currency;
| private double diffMin;
|
| public ECurrenciesDiffmin() {
| super();
| }
|
| public ECurrenciesDiffmin(EConfiguration configuration, String currency, double diffMin) {
| super();
| this.configuration = configuration;
| this.currency = currency;
| this.diffMin = diffMin;
| }
| public EConfiguration getConfiguration() {
| return configuration;
| }
| public void setConfiguration(EConfiguration configuration) {
| this.configuration = configuration;
| }
| public String getCurrency() {
| return currency;
| }
| public void setCurrency(String currency) {
| this.currency = currency;
| }
| public double getDiffMin() {
| return diffMin;
| }
| public void setDiffMin(double diffMin) {
| this.diffMin = diffMin;
| }
|
| }
|
This mapping does not work and I do not understand why, can someone help me?
Where do I make a mistake?
How can I solve?
Thanks, bye bye.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237923#4237923
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237923
17 years, 1 month
[Persistence, JBoss/CMP, Hibernate, Database] - Problem with a OneToOne relation
by krum
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
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237913#4237913
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237913
17 years, 1 month