Closed GoogleCodeExporter closed 9 years ago
Today I learned more about the error. It is directly related to issue 746.
Today, I
noticed that the bug manifests itself in different ways on different servers.
Thus, at
the heavily loaded server, it causes the above described effect. At low loading
the
server error does not appear.
Original comment by CTpaH...@gmail.com
on 1 Jun 2009 at 7:39
I wonder why rtmp doesn't work. Well, maybe our three tries are not enough to
connect
using rtmp reliably? How the rtmp connection failures look like?
Original comment by alexei.f...@gmail.com
on 1 Jun 2009 at 8:18
[deleted comment]
Hello! I have same problem.
Original comment by smser.cc...@gmail.com
on 2 Jun 2009 at 10:18
I want to show something else. Maybe this will help find a solution.
1. Configurationmanagment.java:
public Configuration getConfKey(long user_level, String CONF_KEY) {
try {
if (AuthLevelmanagement.getInstance().checkAdminLevel(user_level)) {
Configuration configuration = null;
Object idf = HibernateUtil.createSession();
Session session = HibernateUtil.getSession();
Transaction tx = session.beginTransaction();
Query query = session.createQuery("select c from Configuration as c where
c.conf_key = :conf_key and c.deleted = :deleted");
query.setString("conf_key", CONF_KEY);
query.setString("deleted", "false");
List<Configuration> configs = query.list();
if (configs != null && configs.size() > 0) {
configuration = (Configuration) configs.get(0);
}
tx.commit();
HibernateUtil.closeSession(idf);
return configuration;
} else {
log.error("[getAllConf] Permission denied "+user_level);
}
} catch (HibernateException ex) {
log.error("[getConfKey]: " ,ex);
} catch (Exception ex2) {
log.error("[getConfKey]: " ,ex2);
}
return null;
}
2. ScopeApplicationAdapter.java:
//Only load this Class one time
ScopeApplicationAdapter.configKeyCryptClassName =
Configurationmanagement.getInstance().getConfKey(3,"crypt_ClassName").getConf_va
lue();
I see that only when there is an exception (org.hibernate.QueryException:
ClassNotFoundException) , getConfKey returns null. All of the following errors
occur because
of this.
So far, I do not know the reason for which there is an exception.
Original comment by CTpaH...@gmail.com
on 2 Jun 2009 at 12:18
I think I found the solution. In the hibernate.cfg.xml I changed the line
<property
name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFac
tory</p
roperty>
to line
<property
name="query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFacto
ry</prop
erty>
I have it worked. And an exception no longer appear.
smser.ccu6225, I would be grateful to you if you say whether this works for you.
Original comment by CTpaH...@gmail.com
on 2 Jun 2009 at 1:13
Vasya,
If antlr.jar [1] is put at the beginning of the classpath in java invocation,
does it
fix ANTLR-based translator?
[1] http://markmail.org/message/ccf6wcxevsphtqs3
Original comment by alexei.f...@gmail.com
on 2 Jun 2009 at 1:22
Using ClassicQueryTranslatorFactory fixes the following whiteboard request
problem as
well.
org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlT
oken [select c from org.openmeetings.app.hibernate.beans.recording.Recording as
c where c.whiteBoardConverted = :whiteBoardConverted AND c.deleted != :deleted]
Original comment by alexei.f...@gmail.com
on 2 Jun 2009 at 1:38
>> [1] http://markmail.org/message/ccf6wcxevsphtqs3
it did not help me
Original comment by CTpaH...@gmail.com
on 2 Jun 2009 at 2:35
I made a patch to address this problem. but for an existing installation, you
must independently
make changes in your hibernate.cfg.xml
Original comment by CTpaH...@gmail.com
on 2 Jun 2009 at 5:18
Attachments:
Vasya wrote,
> It is directly related to issue 746.
Closed as a duplicate.
Original comment by alexei.f...@gmail.com
on 2 Jun 2009 at 5:36
to CTpaH...@gmail.com,
I change hibernate.cfg.xml and client connect!
Original comment by smser.cc...@gmail.com
on 3 Jun 2009 at 2:02
Good news! It looks as if it works not only with me.
thanks!
Original comment by CTpaH...@gmail.com
on 3 Jun 2009 at 2:29
Original issue reported on code.google.com by
CTpaH...@gmail.com
on 1 Jun 2009 at 11:15Attachments: