Try to print all stack traces for threads to stdout, It depends on OS and I am not sure about AIX (it can be kill -3, but it doe's not work on some platforms) or try to connect using jdb.
http://www.unixville.com/~moazam/storie ... heJvm.html
oliver.mondry wrote:
Hi again,
thank you baliukas for your fast response.
I disabled the "reflection optimizer" in the hibernate configuration file with
<property name="hibernate.cglib.use_reflection_optimizer">false</property>.
Now i don't get an error message on the development system but the problem on the production system still exists. It seems that the error message has nothing to do with my real problem.
Nonetheless here is the code of CCDefect. It's a simple pojo:
package com.oerag.auftragsabwicklung.model.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.oerag.auftragsabwicklung.model.exception.ClearCaseException;
import net.sf.hibernate.HibernateException;
import net.sf.hibernate.Session;
public class CCDefect implements Serializable
{
private int id;
private String defectId;
private String name;
private CCUser ersteller;
private Date erstelltAm;
private CCState status;
private CCProject projekt;
// Class Methods --------------------------------------------------------------------
public static CCDefect getDefectForNummer(Session session, String nummer) throws ClearCaseException
{
try
{
return (CCDefect)session.createQuery("from CCDefect defect where defect.id = :nummer")
.setInteger("nummer", Integer.parseInt(nummer))
.uniqueResult();
}
catch (HibernateException e)
{
throw new ClearCaseException(e);
}
}
public static List getDefects(Session session) throws ClearCaseException
{
try
{
return session.createQuery("from CCDefect d where d.status is not null and d.ersteller is not null order by submit_date").list();
}
catch (HibernateException e)
{
throw new ClearCaseException(e);
}
}
// Constructors ---------------------------------------------------------------------
public CCDefect()
{
super();
}
// Accessors ------------------------------------------------------------------------
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return this.id;
}
public void setDefectId(String defectId)
{
this.defectId = defectId;
}
public String getDefectId()
{
return this.defectId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return this.name;
}
public void setErsteller(CCUser ersteller)
{
this.ersteller = ersteller;
}
public CCUser getErsteller()
{
return this.getErsteller();
}
public void setErstelltAm(Date erstelltAm)
{
this.erstelltAm = erstelltAm;
}
public Date getErstelltAm()
{
return this.getErstelltAm();
}
public void setStatus(CCState status)
{
this.status = status;
}
public CCState getStatus()
{
return this.status;
}
public void setProjekt(CCProject projekt)
{
this.projekt = projekt;
}
public CCProject getProjekt()
{
return this.projekt;
}
public String getNummer()
{
return "" + this.getId();
}
// Logic ----------------------------------------------------------------------------
public String toString()
{
return this.getName() + " / " + this.getStatus() + " / " + this.getProjekt();
}
}
And here the mapping:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping package="com.oerag.auftragsabwicklung.model.entity">
<class name="CCDefect" table="defect">
<id name="id" type="integer" column="dbid">
<generator class="hilo">
<param name="table">hi_value</param>
<param name="column">next_value</param>
<param name="max_lo">1</param>
</generator>
</id>
<property name="defectId" type="string" column="id" not-null="true"/>
<property name="name" type="string" column="headline" not-null="true"/>
<property name="erstelltAm" type="date" column="submit_date" not-null="true"/>
<many-to-one name="ersteller" class="CCUser" not-null="false">
<column name="owner"/>
</many-to-one>
<many-to-one name="status" class="CCState" not-null="false">
<column name="state"/>
</many-to-one>
<many-to-one name="projekt" class="CCProject" not-null="false">
<column name="ucm_project"/>
</many-to-one>
</class>
</hibernate-mapping>
Thank you,
Oliver