Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Upgrading from 2.1.3 to 2.3.0

Hi Guy

Your fourth option 
@Column(name="platformId") for that attribute on PEcuAcronym

is already in place. I've attached the entity definition and it's composite
key definition below. When I view the corresponding table in the database
(mySQL) I can see that the column name is actually platformId

Regards

@Entity
@Table(name="PEcuAcronym")
public class PEcuAcronym implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private PEcuAcronymPK id;

	//bi-directional many-to-one association to Platform
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="platformId", nullable=false, insertable=false,
updatable=false)
	private Platform platform;

	@Column(name="acronym")
	private String acronym;
	
    public PEcuAcronym() {
    }

	public PEcuAcronymPK getId() {
		return this.id;
	}

	public void setId(PEcuAcronymPK id) {
		this.id = id;
	}
	
	public Platform getPlatform() {
		return this.platform;
	}

	public void setPlatform(Platform platform) {
		this.platform = platform;
	}

	public String getAcronym() {
		return acronym;
	}

	public void setAcronym(String acronym) {
		this.acronym = acronym;
	}
	
	
	
}

@Embeddable
public class PEcuAcronymPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="acronym", unique=true, nullable=false, length=10)
	private String acronym;

	@Column(name="busId",unique=true, nullable=false)
	private int busId;

	@Column(name="txAddress",unique=true, nullable=false, length=3)
	private String txAddress;

	@Column(name="platformId",unique=true, nullable=false)
	private int platformId;

    public PEcuAcronymPK() {
    }
	public String getAcronym() {
		return this.acronym;
	}
	public void setAcronym(String acronym) {
		this.acronym = acronym;
	}
	public int getBusId() {
		return this.busId;
	}
	public void setBusId(int busId) {
		this.busId = busId;
	}
	public String getTxAddress() {
		return this.txAddress;
	}
	public void setTxAddress(String txAddress) {
		this.txAddress = txAddress;
	}
	public int getPlatformId() {
		return this.platformId;
	}
	public void setPlatformId(int platformId) {
		this.platformId = platformId;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof PEcuAcronymPK)) {
			return false;
		}
		PEcuAcronymPK castOther = (PEcuAcronymPK)other;
		return 
			this.acronym.equals(castOther.acronym)
			&& (this.busId == castOther.busId)
			&& this.txAddress.equals(castOther.txAddress)
			&& (this.platformId == castOther.platformId);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.acronym.hashCode();
		hash = hash * prime + this.busId;
		hash = hash * prime + this.txAddress.hashCode();
		hash = hash * prime + this.platformId;
		
		return hash;
    }
}




Guy Pelletier wrote:
> 
>   Hi Roger,
> 
> You'll need to add the following property in your persistence.xml
> 
> <property name="eclipselink.jpa.uppercase-column-names" value="true"/>
> 
> EclipseLink is case sensitive meaning it can't look up the referenced 
> column name 'platformId' on PEcuAcronym.
> 
> Alternatively, you could specify instead :
> 
> @JoinColumn(name="platformId",referencedColumnName="PLATFORMID"),
> 
> or add
> 
> @Column(name="platformId") for that attribute on PEcuAcronym
> 
> Cheers,
> Guy
> 
> 
> On 12/08/2011 4:52 AM, RogerV wrote:
>> Hi
>>
>> After upgrading EclipseLink, on deployment (Eclipse Helios) my web-app
>> throws the stacktrace listed below. I've also included the @Entity that
>> appears to be causing the problem. If I revert back to 2.1.3 then
>> everything
>> is fine and the web-app deploys and works as expected. What do I need to
>> change?
>>
>> Regards
>>
>> Mapping:
>>
>> @Entity
>> @Table(name="PEcu")
>> public class PEcu implements Serializable {
>> 	private static final long serialVersionUID = 1L;
>>
>> 	@Id
>> 	@GeneratedValue(strategy=GenerationType.IDENTITY)
>> 	@Column(unique=true, nullable=false)
>> 	private int id;
>>
>> 	@Column(name="busid",nullable=false)
>> 	private int busId;
>>
>> 	@Column(nullable=false, length=1)
>> 	private String fitment;
>>
>> 	@Column(nullable=false, length=64)
>> 	private String idsName;
>>
>> 	@Column(nullable=false, length=128)
>> 	private String idsText;
>>
>> 	@Column(nullable=false, length=3)
>> 	private String rxAddress;
>>
>> 	@Column(name="txAddress", nullable=false, length=3)
>> 	private String txAddress;
>> 	
>> 	@Column(name="programmeSeed", length=10, nullable=false)
>> 	private String pseed;
>> 	
>> 	@Column(name="diagnosticSeed", length=10, nullable=false)
>> 	private String dseed;
>>
>> 	//bi-directional many-to-one association to Platform
>> 	@ManyToOne(fetch=FetchType.LAZY)
>> 	@JoinColumn(name="platformId", nullable=false)
>> 	private Platform platform;
>> 	
>> 	@OneToMany
>> 	@JoinTable(name = "PEcuAcronym", joinColumns =
>> 	{
>> 		@JoinColumn(name="platformId",referencedColumnName="platformId"),
>> 		@JoinColumn(name="txAddress", referencedColumnName="txAddress")
>> 	})
>> 	private List<PEcuAcronym>  acronyms;
>>
>> StackTrace:
>>
>> INFO: Initializing Spring root WebApplicationContext
>> 12-Aug-2011 10:58:24 org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener instance
>> of
>> class org.springframework.web.context.ContextLoaderListener
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'ecuFactory' defined in file
>> [K:\workspace\FaultmateGenesis-Server\build\classes\com\blackbox\x\vehicle\EcuFactory.class]:
>> Instantiation of bean failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate
>> bean class [com.blackbox.x.vehicle.EcuFactory]: Constructor threw
>> exception;
>> nested exception is java.lang.ExceptionInInitializerError
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:955)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:901)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>> 	at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>> 	at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
>> 	at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
>> 	at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
>> 	at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
>> 	at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>> 	at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> 	at
>> org.apache.catalina.core.StandardService.start(StandardService.java:519)
>> 	at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>> 	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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Caused by: org.springframework.beans.BeanInstantiationException: Could
>> not
>> instantiate bean class [com.blackbox.x.vehicle.EcuFactory]: Constructor
>> threw exception; nested exception is
>> java.lang.ExceptionInInitializerError
>> 	at
>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
>> 	at
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:72)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:948)
>> 	... 28 more
>> Caused by: java.lang.ExceptionInInitializerError
>> 	at com.blackbox.x.vehicle.EcuFactory.<init>(EcuFactory.java:24)
>> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> 	at
>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
>> 	... 30 more
>> Caused by: Exception [EclipseLink-30005] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
>> Exception Description: An exception was thrown while searching for
>> persistence archives with ClassLoader:
>> org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader
>> WebappClassLoader
>>    delegate: false
>>    repositories:
>> ---------->  Parent Classloader:
>> org.apache.catalina.loader.StandardClassLoader@1004901
>>
>> Internal Exception: javax.persistence.PersistenceException: Exception
>> [EclipseLink-28018] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>> Exception Description: Predeployment of PersistenceUnit [ids2_develop]
>> failed.
>> Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence
>> Services - 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:126)
>> 	at
>> org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:115)
>> 	at javax.persistence.Persistence.createEntityManagerFactory(Unknown
>> Source)
>> 	at javax.persistence.Persistence.createEntityManagerFactory(Unknown
>> Source)
>> 	at com.blackbox.dao.DaoManager.<clinit>(DaoManager.java:16)
>> 	... 36 more
>> Caused by: javax.persistence.PersistenceException: Exception
>> [EclipseLink-28018] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>> Exception Description: Predeployment of PersistenceUnit [ids2_develop]
>> failed.
>> Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence
>> Services - 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1385)
>> 	at
>> org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:98)
>> 	at
>> org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:105)
>> 	... 39 more
>> Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>> Exception Description: Predeployment of PersistenceUnit [ids2_develop]
>> failed.
>> Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence
>> Services - 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:221)
>> 	... 42 more
>> Caused by: Exception [EclipseLink-7333] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.exceptions.ValidationException.invalidReferenceColumnName(ValidationException.java:1821)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor.getReferencedField(MetadataAccessor.java:457)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor.getReferencedField(MetadataAccessor.java:406)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.addJoinTableRelationKeyFields(RelationshipAccessor.java:201)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.processJoinTable(RelationshipAccessor.java:650)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToManyAccessor.processManyToManyMapping(OneToManyAccessor.java:189)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToManyAccessor.process(OneToManyAccessor.java:140)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processOwningRelationshipAccessors(MetadataProject.java:1432)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage3(MetadataProject.java:1667)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:521)
>> 	at
>> org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:526)
>> 	at
>> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1320)
>> 	... 41 more
>> 12-Aug-2011 10:58:24 org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener instance
>> of
>> class com.blackbox.x.web.struts.listeners.StartUp
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'ecuFactory' defined in file
>> [K:\workspace\FaultmateGenesis-Server\build\classes\com\blackbox\x\vehicle\EcuFactory.class]:
>> Instantiation of bean failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate
>> bean class [com.blackbox.x.vehicle.EcuFactory]: Constructor threw
>> exception;
>> nested exception is java.lang.ExceptionInInitializerError
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:955)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:901)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>> 	at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>> 	at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
>> 	at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
>> 	at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
>> 	at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
>> 	at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>> 	at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> 	at
>> org.apache.catalina.core.StandardService.start(StandardService.java:519)
>> 	at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>> 	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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Caused by: org.springframework.beans.BeanInstantiationException: Could
>> not
>> instantiate bean class [com.blackbox.x.vehicle.EcuFactory]: Constructor
>> threw exception; nested exception is
>> java.lang.ExceptionInInitializerError
>> 	at
>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
>> 	at
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:72)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:948)
>> 	... 28 more
>> Caused by: java.lang.ExceptionInInitializerError
>> 	at com.blackbox.x.vehicle.EcuFactory.<init>(EcuFactory.java:24)
>> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> 	at
>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
>> 	... 30 more
>> Caused by: Exception [EclipseLink-30005] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
>> Exception Description: An exception was thrown while searching for
>> persistence archives with ClassLoader:
>> org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader
>> WebappClassLoader
>>    delegate: false
>>    repositories:
>> ---------->  Parent Classloader:
>> org.apache.catalina.loader.StandardClassLoader@1004901
>>
>> Internal Exception: javax.persistence.PersistenceException: Exception
>> [EclipseLink-28018] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>> Exception Description: Predeployment of PersistenceUnit [ids2_develop]
>> failed.
>> Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence
>> Services - 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:126)
>> 	at
>> org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:115)
>> 	at javax.persistence.Persistence.createEntityManagerFactory(Unknown
>> Source)
>> 	at javax.persistence.Persistence.createEntityManagerFactory(Unknown
>> Source)
>> 	at com.blackbox.dao.DaoManager.<clinit>(DaoManager.java:16)
>> 	... 36 more
>> Caused by: javax.persistence.PersistenceException: Exception
>> [EclipseLink-28018] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>> Exception Description: Predeployment of PersistenceUnit [ids2_develop]
>> failed.
>> Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence
>> Services - 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1385)
>> 	at
>> org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:98)
>> 	at
>> org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:105)
>> 	... 39 more
>> Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>> Exception Description: Predeployment of PersistenceUnit [ids2_develop]
>> failed.
>> Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence
>> Services - 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:221)
>> 	... 42 more
>> Caused by: Exception [EclipseLink-7333] (Eclipse Persistence Services -
>> 2.3.0.v20110604-r9504):
>> org.eclipse.persistence.exceptions.ValidationException
>> Exception Description: The reference column name [platformId] mapped on
>> the
>> element [field acronyms] does not correspond to a valid field on the
>> mapping
>> reference.
>> 	at
>> org.eclipse.persistence.exceptions.ValidationException.invalidReferenceColumnName(ValidationException.java:1821)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor.getReferencedField(MetadataAccessor.java:457)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor.getReferencedField(MetadataAccessor.java:406)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.addJoinTableRelationKeyFields(RelationshipAccessor.java:201)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.processJoinTable(RelationshipAccessor.java:650)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToManyAccessor.processManyToManyMapping(OneToManyAccessor.java:189)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToManyAccessor.process(OneToManyAccessor.java:140)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processOwningRelationshipAccessors(MetadataProject.java:1432)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage3(MetadataProject.java:1667)
>> 	at
>> org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:521)
>> 	at
>> org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:526)
>> 	at
>> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1320)
>> 	... 41 more
>> 12-Aug-2011 10:58:25 org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener instance
>> of
>> class org.apache.struts2.dispatcher.ng.listener.StrutsListener
>> Class: com.opensymphony.xwork2.spring.SpringObjectFactory
>> File: SpringObjectFactory.java
>> Method: getClassInstance
>> Line: 220 -
>> com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
>> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
>> 	at
>> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
>> 	at
>> org.apache.struts2.dispatcher.ng.listener.StrutsListener.contextInitialized(StrutsListener.java:47)
>> 	at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>> 	at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> 	at
>> org.apache.catalina.core.StandardService.start(StandardService.java:519)
>> 	at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>> 	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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Caused by: java.lang.NullPointerException
>> 	at
>> com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:220)
>> 	at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:530)
>> 	at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:501)
>> 	at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:457)
>> 	at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
>> 	at
>> org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>> 	at
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
>> 	at
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
>> 	at
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
>> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
>> 	... 17 more
>> 12-Aug-2011 10:58:25 org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> 12-Aug-2011 10:58:25 org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/FaultmateGenesis-Server] startup failed due to previous
>> errors
>> 12-Aug-2011 10:58:25 org.apache.catalina.core.StandardContext
>> listenerStop
>> SEVERE: Exception sending context destroyed event to listener instance of
>> class org.apache.struts2.dispatcher.ng.listener.StrutsListener
>> java.lang.NullPointerException
>> 	at
>> org.apache.struts2.dispatcher.ng.listener.StrutsListener.contextDestroyed(StrutsListener.java:58)
>> 	at
>> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4011)
>> 	at
>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4615)
>> 	at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4512)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> 	at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> 	at
>> org.apache.catalina.core.StandardService.start(StandardService.java:519)
>> 	at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>> 	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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> 12-Aug-2011 10:58:25 org.apache.catalina.core.ApplicationContext log
>> INFO: Closing Spring root WebApplicationContext
>> 12-Aug-2011 10:58:25 org.apache.catalina.loader.WebappClassLoader
>> clearReferencesJdbc
>> SEVERE: A web application registered the JBDC driver
>> [com.mysql.jdbc.Driver]
>> but failed to unregister it when the web application was stopped. To
>> prevent
>> a memory leak, the JDBC Driver has been forcibly unregistered.
>> 12-Aug-2011 10:58:25 org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [null]
>> (value [com.opensymphony.xwork2.inject.ContainerImpl$10@175ace6]) and a
>> value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@aa4c7c])
>> but
>> failed to remove it when the web application was stopped. To prevent a
>> memory leak, the ThreadLocal has been forcibly removed.
>> 12-Aug-2011 10:58:25 org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [null]
>> (value [com.opensymphony.xwork2.inject.ContainerImpl$10@836869]) and a
>> value
>> of type [java.lang.Object[]] (value [[Ljava.lang.Object;@13bedc4]) but
>> failed to remove it when the web application was stopped. To prevent a
>> memory leak, the ThreadLocal has been forcibly removed.
>>
> 
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 

-- 
View this message in context: http://old.nabble.com/Upgrading-from-2.1.3-to-2.3.0-tp32248155p32270474.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top