hoangduit / openmeetings

Automatically exported from code.google.com/p/openmeetings
0 stars 0 forks source link

Server error at startup: cannot login to server #747

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of OpenMeetings are you running?

r2045, fresh install

In case its an UI Bug => Images say more then words! Please attach a
Screen-Shot.

screnshot attached

What's your operating system on client and server side?

windows

Is it a problem related to the client/usability or server-side?

It`s server side problem.

Server side loging:
browser your Red5-Home directory. There's a log-file directory. On linux
boxes you can run red5 using:
nohup ./red5.sh &
and debug output will be written to nohup.out

please attach any debug output to get a patch on time

openmeetings.log attached

Original issue reported on code.google.com by CTpaH...@gmail.com on 1 Jun 2009 at 11:15

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello! I have same problem. 

Original comment by smser.cc...@gmail.com on 2 Jun 2009 at 10:18

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
>> [1] http://markmail.org/message/ccf6wcxevsphtqs3

it did not help me

Original comment by CTpaH...@gmail.com on 2 Jun 2009 at 2:35

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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