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

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Could not deserialize error
PostPosted: Mon Feb 08, 2010 4:44 am 
Newbie

Joined: Mon Feb 08, 2010 3:59 am
Posts: 3
Hi,

I am encountering the error below when trying to run my application in eclipse. I used Generate Seam Entities and it generated xhtml pages for me.
Below is the log trace:
15:54:29,333 INFO [STDOUT] Hibernate:
select
*
from
( select
orgperson0_.ID as ID14_,
orgperson0_.BIRTH_DATE as BIRTH2_14_,
orgperson0_.BLOOD as BLOOD14_,
orgperson0_.CEASE_DATE as CEASE4_14_,
orgperson0_.CONTACT as CONTACT14_,
orgperson0_.DISPLAY_NAME as DISPLAY6_14_,
orgperson0_.EFFECTIVE_DATE as EFFECTIVE7_14_,
orgperson0_.GENDER as GENDER14_,
orgperson0_.HEIGHT as HEIGHT14_,
orgperson0_.LOCAL_NAME as LOCAL10_14_,
orgperson0_.NATIONALITY as NATIONA11_14_,
orgperson0_.OFFICIAL_NAME1 as OFFICIAL12_14_,
orgperson0_.OFFICIAL_NAME2 as OFFICIAL13_14_,
orgperson0_.OFFICIAL_NAME3 as OFFICIAL14_14_,
orgperson0_.PARENT_ID as PARENT15_14_,
orgperson0_.PERSON_ID as PERSON16_14_,
orgperson0_.RACE as RACE14_,
orgperson0_.REFER_ID as REFER18_14_,
orgperson0_.REFER_TYPE as REFER19_14_,
orgperson0_.RELIGION as RELIGION14_,
orgperson0_.REMARKS as REMARKS14_,
orgperson0_.SHORT_NAME as SHORT22_14_,
orgperson0_.STATUS as STATUS14_,
orgperson0_.TITLE as TITLE14_,
orgperson0_.WEIGHT as WEIGHT14_
from
ONEADM.ORGPERSON orgperson0_ )
where
rownum <= ?
15:54:31,659 INFO [SerializableType] could not read column value from result set: CONTACT14_; could not deserialize
15:54:31,663 SEVERE [viewhandler] Error Rendering View[/OrgpersonList.xhtml]
javax.el.ELException: /OrgpersonList.xhtml: Error reading 'resultList' on type org.domain.oneseamproj.session.OrgpersonList_$$_javassist_seam_2
at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:48)
at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeBegin(PanelRenderer.java:189)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeBegin(PanelRenderer.java:148)
at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
at org.jboss.seam.framework.EntityQuery.initResultList(EntityQuery.java:80)
at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at org.domain.oneseamproj.session.OrgpersonList_$$_javassist_seam_2.getResultList(OrgpersonList_$$_javassist_seam_2.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
at org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
at org.jboss.el.parser.AstChoice.getValue(AstChoice.java:27)
at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
... 58 more
Caused by: org.hibernate.type.SerializationException: could not deserialize
at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:188)
at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:211)
at org.hibernate.type.SerializableType.fromBytes(SerializableType.java:105)
at org.hibernate.type.SerializableType.get(SerializableType.java:62)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2124)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1404)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1332)
at org.hibernate.loader.Loader.getRow(Loader.java:1230)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:603)
at org.hibernate.loader.Loader.doQuery(Loader.java:724)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
... 94 more
Caused by: java.io.StreamCorruptedException: invalid stream header: 00690043
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at org.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(SerializationHelper.java:223)
at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:180)
... 116 more
15:54:31,708 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
15:54:31,708 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >)
15:54:31,715 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
15:54:31,715 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >)
15:54:31,717 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
15:54:31,717 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >)
15:54:31,721 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
15:54:31,721 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >)
15:54:31,883 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
15:54:31,883 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fd9b:eba5:4b6fb90f:f2 status: ActionStatus.ABORT_ONLY >)


Im using Oracle 10g as my db. I've seen that CONTACT table has NVARCHAR2 data type as well as DISPLAY_NAME, OFFICIAL_NAME1-3, LOCAL_NAME, SHORT_NAME, and REMARKS. And these are the columns with Serializable data type:(Entity generated by Seam)

package org.domain.oneseamproj.entity;

// Generated Feb 6, 2010 2:42:24 PM by Hibernate Tools 3.2.5.Beta

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
* Orgperson generated by hbm2java
*/
@Entity
@Table(name = "ORGPERSON", schema = "ONEADM", uniqueConstraints = {
@UniqueConstraint(columnNames = "DISPLAY_NAME"),
@UniqueConstraint(columnNames = "PERSON_ID") })
public class Orgperson implements java.io.Serializable {

private long id;
private String personId;
private Serializable displayName;
private Serializable shortName;
private Serializable officialName1;
private Serializable officialName2;
private Serializable officialName3;
private Serializable localName;
private Date birthDate;
private Date ceaseDate;
private Long title;
private String gender;
private BigDecimal height;
private BigDecimal weight;
private Long blood;
private Long race;
private Long religion;
private Long nationality;
private Serializable contact;
private Long referId;
private String referType;
private Long parentId;
private Long status;
private Date effectiveDate;
private Serializable remarks;

public Orgperson() {
}

public Orgperson(long id, String personId, Serializable displayName,
Serializable officialName1, Date birthDate, String gender) {
this.id = id;
this.personId = personId;
this.displayName = displayName;
this.officialName1 = officialName1;
this.birthDate = birthDate;
this.gender = gender;
}

public Orgperson(long id, String personId, Serializable displayName,
Serializable shortName, Serializable officialName1,
Serializable officialName2, Serializable officialName3,
Serializable localName, Date birthDate, Date ceaseDate, Long title,
String gender, BigDecimal height, BigDecimal weight, Long blood,
Long race, Long religion, Long nationality, Serializable contact,
Long referId, String referType, Long parentId, Long status,
Date effectiveDate, Serializable remarks) {
this.id = id;
this.personId = personId;
this.displayName = displayName;
this.shortName = shortName;
this.officialName1 = officialName1;
this.officialName2 = officialName2;
this.officialName3 = officialName3;
this.localName = localName;
this.birthDate = birthDate;
this.ceaseDate = ceaseDate;
this.title = title;
this.gender = gender;
this.height = height;
this.weight = weight;
this.blood = blood;
this.race = race;
this.religion = religion;
this.nationality = nationality;
this.contact = contact;
this.referId = referId;
this.referType = referType;
this.parentId = parentId;
this.status = status;
this.effectiveDate = effectiveDate;
this.remarks = remarks;
}

@Id
@Column(name = "ID", unique = true, nullable = false, precision = 12, scale = 0)
public long getId() {
return this.id;
}

public void setId(long id) {
this.id = id;
}

@Column(name = "PERSON_ID", unique = true, nullable = false, length = 20)
@NotNull
@Length(max = 20)
public String getPersonId() {
return this.personId;
}

public void setPersonId(String personId) {
this.personId = personId;
}

@Column(name = "DISPLAY_NAME", unique = true, nullable = false)
@NotNull
public Serializable getDisplayName() {
return this.displayName;
}

public void setDisplayName(Serializable displayName) {
this.displayName = displayName;
}

@Column(name = "SHORT_NAME")
public Serializable getShortName() {
return this.shortName;
}

public void setShortName(Serializable shortName) {
this.shortName = shortName;
}

@Column(name = "OFFICIAL_NAME1", nullable = false)
@NotNull
public Serializable getOfficialName1() {
return this.officialName1;
}

public void setOfficialName1(Serializable officialName1) {
this.officialName1 = officialName1;
}

@Column(name = "OFFICIAL_NAME2")
public Serializable getOfficialName2() {
return this.officialName2;
}

public void setOfficialName2(Serializable officialName2) {
this.officialName2 = officialName2;
}

@Column(name = "OFFICIAL_NAME3")
public Serializable getOfficialName3() {
return this.officialName3;
}

public void setOfficialName3(Serializable officialName3) {
this.officialName3 = officialName3;
}

@Column(name = "LOCAL_NAME")
public Serializable getLocalName() {
return this.localName;
}

public void setLocalName(Serializable localName) {
this.localName = localName;
}

@Temporal(TemporalType.DATE)
@Column(name = "BIRTH_DATE", nullable = false, length = 7)
@NotNull
public Date getBirthDate() {
return this.birthDate;
}

public void setBirthDate(Date birthDate) {
this.birthDate = birthDate;
}

@Temporal(TemporalType.DATE)
@Column(name = "CEASE_DATE", length = 7)
public Date getCeaseDate() {
return this.ceaseDate;
}

public void setCeaseDate(Date ceaseDate) {
this.ceaseDate = ceaseDate;
}

@Column(name = "TITLE", precision = 10, scale = 0)
public Long getTitle() {
return this.title;
}

public void setTitle(Long title) {
this.title = title;
}

@Column(name = "GENDER", nullable = false, length = 1)
@NotNull
@Length(max = 1)
public String getGender() {
return this.gender;
}

public void setGender(String gender) {
this.gender = gender;
}

@Column(name = "HEIGHT", precision = 5)
public BigDecimal getHeight() {
return this.height;
}

public void setHeight(BigDecimal height) {
this.height = height;
}

@Column(name = "WEIGHT", precision = 5)
public BigDecimal getWeight() {
return this.weight;
}

public void setWeight(BigDecimal weight) {
this.weight = weight;
}

@Column(name = "BLOOD", precision = 10, scale = 0)
public Long getBlood() {
return this.blood;
}

public void setBlood(Long blood) {
this.blood = blood;
}

@Column(name = "RACE", precision = 10, scale = 0)
public Long getRace() {
return this.race;
}

public void setRace(Long race) {
this.race = race;
}

@Column(name = "RELIGION", precision = 10, scale = 0)
public Long getReligion() {
return this.religion;
}

public void setReligion(Long religion) {
this.religion = religion;
}

@Column(name = "NATIONALITY", precision = 10, scale = 0)
public Long getNationality() {
return this.nationality;
}

public void setNationality(Long nationality) {
this.nationality = nationality;
}

@Column(name = "CONTACT")
public Serializable getContact() {
return this.contact;
}

public void setContact(Serializable contact) {
this.contact = contact;
}

@Column(name = "REFER_ID", precision = 12, scale = 0)
public Long getReferId() {
return this.referId;
}

public void setReferId(Long referId) {
this.referId = referId;
}

@Column(name = "REFER_TYPE", length = 10)
@Length(max = 10)
public String getReferType() {
return this.referType;
}

public void setReferType(String referType) {
this.referType = referType;
}

@Column(name = "PARENT_ID", precision = 12, scale = 0)
public Long getParentId() {
return this.parentId;
}

public void setParentId(Long parentId) {
this.parentId = parentId;
}

@Column(name = "STATUS", precision = 10, scale = 0)
public Long getStatus() {
return this.status;
}

public void setStatus(Long status) {
this.status = status;
}

@Temporal(TemporalType.DATE)
@Column(name = "EFFECTIVE_DATE", length = 7)
public Date getEffectiveDate() {
return this.effectiveDate;
}

public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}

@Column(name = "REMARKS")
public Serializable getRemarks() {
return this.remarks;
}

public void setRemarks(Serializable remarks) {
this.remarks = remarks;
}

}

These are the classes generated into session package:

package org.domain.oneseamproj.session;

import org.domain.oneseamproj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("orgpersonList")
public class OrgpersonList extends EntityQuery<Orgperson> {

private static final String EJBQL = "SELECT orgperson FROM Orgperson orgperson";

private static final String[] RESTRICTIONS = {
"lower(orgperson.personId) like lower(concat(#{orgpersonList.orgperson.personId},'%'))",
"lower(orgperson.gender) like lower(concat(#{orgpersonList.orgperson.gender},'%'))",
"lower(orgperson.referType) like lower(concat(#{orgpersonList.orgperson.referType},'%'))", };

private Orgperson orgperson = new Orgperson();

public OrgpersonList() {
setEjbql(EJBQL);
setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
setMaxResults(25);
}

public Orgperson getOrgperson() {
return orgperson;
}
}


..and.. OrpersonHome.java:

package org.domain.oneseamproj.session;

import org.domain.oneseamproj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("orgpersonHome")
public class OrgpersonHome extends EntityHome<Orgperson> {

public void setOrgpersonId(Long id) {
setId(id);
}

public Long getOrgpersonId() {
return (Long) getId();
}

@Override
protected Orgperson createInstance() {
Orgperson orgperson = new Orgperson();
return orgperson;
}

public void load() {
if (isIdDefined()) {
wire();
}
}

public void wire() {
getInstance();
}

public boolean isWired() {
return true;
}

public Orgperson getDefinedInstance() {
return isIdDefined() ? getInstance() : null;
}

}

I'm using Seam 2.2.0.GA and JBoss 5.1.0.GA.
I've read other forums, but this might be a Hibernate-related problem. I don't know what else to do, I'm already stuck to this problem. Appreciate your help a lot. Thanks in advance :)


Top
 Profile  
 
 Post subject: Re: Could not deserialize error
PostPosted: Mon Feb 08, 2010 4:52 am 
Newbie

Joined: Mon Feb 08, 2010 3:59 am
Posts: 3
Oh no! I'm so sorry.. I didn't notice I wasn't under Hibernate Users when I posted my query. Please forgive me. :(


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

All times are UTC - 5 hours [ DST ]


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

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